# CfnSubnetRouteTableAssociationProps

Properties for defining a `CfnSubnetRouteTableAssociation`.

Extends: CfnSubnetRouteTableAssociationProps
Used as props by: CfnSubnetRouteTableAssociation

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnSubnetRouteTableAssociationProps: ec2.CfnSubnetRouteTableAssociationProps = {
  routeTableId: 'routeTableId',
  subnetId: 'subnetId',
};
```

## Properties

- `routeTableId`: string | [IRouteTableRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IRouteTableRef.html) (required) — The ID of the route table.

  The physical ID changes when the route table ID is changed.

- `subnetId`: string | [ISubnetRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.ISubnetRef.html) (required) — The ID of the subnet.
