

# EC2AssociateRouteTableAction


The action of associating an EC2 resource, such as a subnet or internet gateway, with a route table.

## Contents


 ** RouteTableId **   <a name="fms-Type-EC2AssociateRouteTableAction-RouteTableId"></a>
The ID of the EC2 route table that is associated with the remediation action.  
Type: [ActionTarget](API_ActionTarget.md) object  
Required: Yes

 ** Description **   <a name="fms-Type-EC2AssociateRouteTableAction-Description"></a>
A description of the EC2 route table that is associated with the remediation action.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Required: No

 ** GatewayId **   <a name="fms-Type-EC2AssociateRouteTableAction-GatewayId"></a>
The ID of the gateway to be used with the EC2 route table that is associated with the remediation action.  
Type: [ActionTarget](API_ActionTarget.md) object  
Required: No

 ** SubnetId **   <a name="fms-Type-EC2AssociateRouteTableAction-SubnetId"></a>
The ID of the subnet for the EC2 route table that is associated with the remediation action.  
Type: [ActionTarget](API_ActionTarget.md) object  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/fms-2018-01-01/EC2AssociateRouteTableAction) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/fms-2018-01-01/EC2AssociateRouteTableAction) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/fms-2018-01-01/EC2AssociateRouteTableAction) 