1. Packages
  2. AWS Native
  3. API Docs
  4. ec2
  5. getSubnetRouteTableAssociation

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.ec2.getSubnetRouteTableAssociation

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

    Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. A route table can be associated with multiple subnets. To create a route table, see AWS::EC2::RouteTable.

    Using getSubnetRouteTableAssociation

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSubnetRouteTableAssociation(args: GetSubnetRouteTableAssociationArgs, opts?: InvokeOptions): Promise<GetSubnetRouteTableAssociationResult>
    function getSubnetRouteTableAssociationOutput(args: GetSubnetRouteTableAssociationOutputArgs, opts?: InvokeOptions): Output<GetSubnetRouteTableAssociationResult>
    def get_subnet_route_table_association(id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetSubnetRouteTableAssociationResult
    def get_subnet_route_table_association_output(id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetSubnetRouteTableAssociationResult]
    func LookupSubnetRouteTableAssociation(ctx *Context, args *LookupSubnetRouteTableAssociationArgs, opts ...InvokeOption) (*LookupSubnetRouteTableAssociationResult, error)
    func LookupSubnetRouteTableAssociationOutput(ctx *Context, args *LookupSubnetRouteTableAssociationOutputArgs, opts ...InvokeOption) LookupSubnetRouteTableAssociationResultOutput

    > Note: This function is named LookupSubnetRouteTableAssociation in the Go SDK.

    public static class GetSubnetRouteTableAssociation 
    {
        public static Task<GetSubnetRouteTableAssociationResult> InvokeAsync(GetSubnetRouteTableAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetSubnetRouteTableAssociationResult> Invoke(GetSubnetRouteTableAssociationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSubnetRouteTableAssociationResult> getSubnetRouteTableAssociation(GetSubnetRouteTableAssociationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getSubnetRouteTableAssociation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getSubnetRouteTableAssociation Result

    The following output properties are available:

    Id string
    Id string
    id String
    id string
    id str
    id String

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi