We recommend new projects start with resources from the AWS provider.
aws-native.ec2.GatewayRouteTableAssociation
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Associates a gateway with a route table. The gateway and route table must be in the same VPC. This association causes the incoming traffic to the gateway to be routed according to the routes in the route table.
Create GatewayRouteTableAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayRouteTableAssociation(name: string, args: GatewayRouteTableAssociationArgs, opts?: CustomResourceOptions);
@overload
def GatewayRouteTableAssociation(resource_name: str,
args: GatewayRouteTableAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayRouteTableAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
route_table_id: Optional[str] = None)
func NewGatewayRouteTableAssociation(ctx *Context, name string, args GatewayRouteTableAssociationArgs, opts ...ResourceOption) (*GatewayRouteTableAssociation, error)
public GatewayRouteTableAssociation(string name, GatewayRouteTableAssociationArgs args, CustomResourceOptions? opts = null)
public GatewayRouteTableAssociation(String name, GatewayRouteTableAssociationArgs args)
public GatewayRouteTableAssociation(String name, GatewayRouteTableAssociationArgs args, CustomResourceOptions options)
type: aws-native:ec2:GatewayRouteTableAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GatewayRouteTableAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GatewayRouteTableAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GatewayRouteTableAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayRouteTableAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayRouteTableAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GatewayRouteTableAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GatewayRouteTableAssociation resource accepts the following input properties:
- Gateway
Id string - The ID of the gateway.
- Route
Table stringId - The ID of the route table.
- Gateway
Id string - The ID of the gateway.
- Route
Table stringId - The ID of the route table.
- gateway
Id String - The ID of the gateway.
- route
Table StringId - The ID of the route table.
- gateway
Id string - The ID of the gateway.
- route
Table stringId - The ID of the route table.
- gateway_
id str - The ID of the gateway.
- route_
table_ strid - The ID of the route table.
- gateway
Id String - The ID of the gateway.
- route
Table StringId - The ID of the route table.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayRouteTableAssociation resource produces the following output properties:
- Association
Id string - The route table association ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Association
Id string - The route table association ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- association
Id String - The route table association ID.
- id String
- The provider-assigned unique ID for this managed resource.
- association
Id string - The route table association ID.
- id string
- The provider-assigned unique ID for this managed resource.
- association_
id str - The route table association ID.
- id str
- The provider-assigned unique ID for this managed resource.
- association
Id String - The route table association ID.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.