Skip to content
v2.277.0

CfnTransitGatewayRouteTableAttachmentProps Struct ​

Properties for defining a CfnTransitGatewayRouteTableAttachment.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkmanager as networkmanager } from 'aws-cdk-lib';
const cfnTransitGatewayRouteTableAttachmentProps: networkmanager.CfnTransitGatewayRouteTableAttachmentProps = {
  peeringId: 'peeringId',
  transitGatewayRouteTableArn: 'transitGatewayRouteTableArn',

  // the properties below are optional
  networkFunctionGroupName: 'networkFunctionGroupName',
  proposedSegmentChange: {
    attachmentPolicyRuleNumber: 123,
    segmentName: 'segmentName',
    tags: [{
      key: 'key',
      value: 'value',
    }],
  },
  routingPolicyLabel: 'routingPolicyLabel',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag, CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkmanager as networkmanager

cfn_transit_gateway_route_table_attachment_props = networkmanager.CfnTransitGatewayRouteTableAttachmentProps(
    peering_id="peeringId",
    transit_gateway_route_table_arn="transitGatewayRouteTableArn",

    # the properties below are optional
    network_function_group_name="networkFunctionGroupName",
    proposed_segment_change=networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedSegmentChangeProperty(
        attachment_policy_rule_number=123,
        segment_name="segmentName",
        tags=[CfnTag(
            key="key",
            value="value"
        )]
    ),
    routing_policy_label="routingPolicyLabel",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkmanager.*;

CfnTransitGatewayRouteTableAttachmentProps cfnTransitGatewayRouteTableAttachmentProps = CfnTransitGatewayRouteTableAttachmentProps.builder()
        .peeringId("peeringId")
        .transitGatewayRouteTableArn("transitGatewayRouteTableArn")

        // the properties below are optional
        .networkFunctionGroupName("networkFunctionGroupName")
        .proposedSegmentChange(ProposedSegmentChangeProperty.builder()
                .attachmentPolicyRuleNumber(123)
                .segmentName("segmentName")
                .tags(List.of(CfnTag.builder()
                        .key("key")
                        .value("value")
                        .build()))
                .build())
        .routingPolicyLabel("routingPolicyLabel")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkManager;

var cfnTransitGatewayRouteTableAttachmentProps = new CfnTransitGatewayRouteTableAttachmentProps {
    PeeringId = "peeringId",
    TransitGatewayRouteTableArn = "transitGatewayRouteTableArn",

    // the properties below are optional
    NetworkFunctionGroupName = "networkFunctionGroupName",
    ProposedSegmentChange = new ProposedSegmentChangeProperty {
        AttachmentPolicyRuleNumber = 123,
        SegmentName = "segmentName",
        Tags = new [] { new CfnTag {
            Key = "key",
            Value = "value"
        } }
    },
    RoutingPolicyLabel = "routingPolicyLabel",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnTransitGatewayRouteTableAttachmentProps := &CfnTransitGatewayRouteTableAttachmentProps{
	PeeringId: jsii.String("peeringId"),
	TransitGatewayRouteTableArn: jsii.String("transitGatewayRouteTableArn"),

	// the properties below are optional
	NetworkFunctionGroupName: jsii.String("networkFunctionGroupName"),
	ProposedSegmentChange: &ProposedSegmentChangeProperty{
		AttachmentPolicyRuleNumber: jsii.Number(123),
		SegmentName: jsii.String("segmentName"),
		Tags: []CfnTag{
			&CfnTag{
				Key: jsii.String("key"),
				Value: jsii.String("value"),
			},
		},
	},
	RoutingPolicyLabel: jsii.String("routingPolicyLabel"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

networkFunctionGroupNameoptionalstringnetwork_function_group_nameoptionalstrnetworkFunctionGroupNameoptionalStringNetworkFunctionGroupNameoptionalstringNetworkFunctionGroupNameoptional*string#
The name of the network function group.
peeringIdstringpeering_idstrpeeringIdStringPeeringIdstringPeeringId*stringrequired#
The ID of the transit gateway peering.
proposedSegmentChangeoptionalIResolvable | CfnTransitGatewayRouteTableAttachment.ProposedSegmentChangePropertyproposed_segment_changeoptionaltyping.Union[IResolvable, ProposedSegmentChangeProperty]proposedSegmentChangeoptionalIResolvableProposedSegmentChangeoptionalIResolvableProposedSegmentChangeoptionalinterface{}#
This property is read-only.

Values can't be assigned to it.

routingPolicyLabeloptionalstringrouting_policy_labeloptionalstrroutingPolicyLabeloptionalStringRoutingPolicyLabeloptionalstringRoutingPolicyLabeloptional*string#
Routing policy label.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The list of key-value pairs associated with the transit gateway route table attachment.
transitGatewayRouteTableArnstringtransit_gateway_route_table_arnstrtransitGatewayRouteTableArnStringTransitGatewayRouteTableArnstringTransitGatewayRouteTableArn*stringrequired#
The ARN of the transit gateway attachment route table.

For example, "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456" .