1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. GatewayRouteTableAssociation

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.ec2.GatewayRouteTableAssociation

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    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:

    GatewayId string
    The ID of the gateway.
    RouteTableId string
    The ID of the route table.
    GatewayId string
    The ID of the gateway.
    RouteTableId string
    The ID of the route table.
    gatewayId String
    The ID of the gateway.
    routeTableId String
    The ID of the route table.
    gatewayId string
    The ID of the gateway.
    routeTableId string
    The ID of the route table.
    gateway_id str
    The ID of the gateway.
    route_table_id str
    The ID of the route table.
    gatewayId String
    The ID of the gateway.
    routeTableId String
    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:

    AssociationId string
    The route table association ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociationId string
    The route table association ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    associationId String
    The route table association ID.
    id String
    The provider-assigned unique ID for this managed resource.
    associationId 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.
    associationId 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
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi