// Associates a subnet in your VPC or an internet gateway or virtual private
// gateway attached to your VPC with a route table in your VPC. This association
// causes traffic from the subnet or gateway to be routed according to the routes
// in the route table. The action returns an association ID, which you need in
// order to disassociate the route table later. A route table can be associated
// with multiple subnets. For more information, see Route Tables
// (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the
// Amazon Virtual Private Cloud User Guide.
Associates a subnet in your VPC or an internet gateway or virtual private
gateway attached to your VPC with a route table in your VPC. This association
causes traffic from the subnet or gateway to be routed according to the routes
in the route table. The action returns an association ID, which you need in
order to disassociate the route table later. A route table can be associated
with multiple subnets. For more information, see Route Tables
in the
Amazon Virtual Private Cloud User Guide.
// Associates a subnet in your VPC or an internet gateway or virtual private // gateway attached to your VPC with a route table in your VPC . This association // causes traffic from the subnet or gateway to be routed according to the routes // in the route table . The action returns an association ID which you need in // order to disassociate the route table later . A route table can be associated // with multiple subnets . For more information see Route Tables // ( https : // docs . aws . amazon . com / vpc / latest / userguide / VPC_Route_Tables . html ) in the // Amazon Virtual Private Cloud User Guide .
func (c *Client) AssociateRouteTable(ctx context.Context, params *AssociateRouteTableInput, optFns ...func(*Options)) (*AssociateRouteTableOutput, error) {
	if params == nil {
		params = &AssociateRouteTableInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "AssociateRouteTable", params, optFns, addOperationAssociateRouteTableMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*AssociateRouteTableOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) AssociateRouteTable ( ctx context . Context , params * AssociateRouteTableInput , optFns ... func ( * Options ) ) ( * AssociateRouteTableOutput , error ) { if params == nil { params = & AssociateRouteTableInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationAssociateRouteTableMiddlewares ) if err != nil { return nil , err } out := result . ( * AssociateRouteTableOutput ) out . ResultMetadata = metadata return out , nil }
Associates a subnet in your VPC or an internet gateway or virtual private
gateway attached to your VPC with a route table in your VPC.
Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC .