Class CfnTransitGatewayRouteTableAttachment

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:00.485Z") @Stability(Stable) public class CfnTransitGatewayRouteTableAttachment extends CfnResource implements IInspectable
A CloudFormation AWS::NetworkManager::TransitGatewayRouteTableAttachment.

Creates a transit gateway route table attachment.

Example:

 // 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.*;
 CfnTransitGatewayRouteTableAttachment cfnTransitGatewayRouteTableAttachment = CfnTransitGatewayRouteTableAttachment.Builder.create(this, "MyCfnTransitGatewayRouteTableAttachment")
         .peeringId("peeringId")
         .transitGatewayRouteTableArn("transitGatewayRouteTableArn")
         // the properties below are optional
         .proposedSegmentChange(ProposedSegmentChangeProperty.builder()
                 .attachmentPolicyRuleNumber(123)
                 .segmentName("segmentName")
                 .tags(List.of(CfnTag.builder()
                         .key("key")
                         .value("value")
                         .build()))
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnTransitGatewayRouteTableAttachment

      protected CfnTransitGatewayRouteTableAttachment(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnTransitGatewayRouteTableAttachment

      protected CfnTransitGatewayRouteTableAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnTransitGatewayRouteTableAttachment

      @Stability(Stable) public CfnTransitGatewayRouteTableAttachment(@NotNull Construct scope, @NotNull String id, @NotNull CfnTransitGatewayRouteTableAttachmentProps props)
      Create a new AWS::NetworkManager::TransitGatewayRouteTableAttachment.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAttachmentId

      @Stability(Stable) @NotNull public String getAttrAttachmentId()
      The ID of the transit gateway route table attachment.
    • getAttrAttachmentPolicyRuleNumber

      @Stability(Stable) @NotNull public Number getAttrAttachmentPolicyRuleNumber()
      The policy rule number associated with the attachment.
    • getAttrAttachmentType

      @Stability(Stable) @NotNull public String getAttrAttachmentType()
      The type of attachment.

      This will be TRANSIT_GATEWAY_ROUTE_TABLE .

    • getAttrCoreNetworkArn

      @Stability(Stable) @NotNull public String getAttrCoreNetworkArn()
      The ARN of the core network.
    • getAttrCoreNetworkId

      @Stability(Stable) @NotNull public String getAttrCoreNetworkId()
      The ID of the core network.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the transit gateway route table attachment was created.
    • getAttrEdgeLocation

      @Stability(Stable) @NotNull public String getAttrEdgeLocation()
      The Region where the core network edge is located.
    • getAttrOwnerAccountId

      @Stability(Stable) @NotNull public String getAttrOwnerAccountId()
      The ID of the transit gateway route table attachment owner.
    • getAttrResourceArn

      @Stability(Stable) @NotNull public String getAttrResourceArn()
      The resource ARN for the transit gateway route table attachment.
    • getAttrSegmentName

      @Stability(Stable) @NotNull public String getAttrSegmentName()
      The name of the attachment's segment.
    • getAttrState

      @Stability(Stable) @NotNull public String getAttrState()
      The state of the attachment.

      This can be: REJECTED | PENDING_ATTACHMENT_ACCEPTANCE | CREATING | FAILED | AVAILABLE | UPDATING | PENDING_NETWORK_UPDATE | PENDING_TAG_ACCEPTANCE | DELETING .

    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the transit gateway route table attachment was last updated.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      The list of key-value pairs associated with the transit gateway route table attachment.
    • getPeeringId

      @Stability(Stable) @NotNull public String getPeeringId()
      The ID of the transit gateway peering.
    • setPeeringId

      @Stability(Stable) public void setPeeringId(@NotNull String value)
      The ID of the transit gateway peering.
    • getTransitGatewayRouteTableArn

      @Stability(Stable) @NotNull public String getTransitGatewayRouteTableArn()
      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" .

    • setTransitGatewayRouteTableArn

      @Stability(Stable) public void setTransitGatewayRouteTableArn(@NotNull String value)
      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" .

    • getProposedSegmentChange

      @Stability(Stable) @Nullable public Object getProposedSegmentChange()
      This property is read-only.

      Values can't be assigned to it.

    • setProposedSegmentChange

      @Stability(Stable) public void setProposedSegmentChange(@Nullable IResolvable value)
      This property is read-only.

      Values can't be assigned to it.

    • setProposedSegmentChange

      @Stability(Stable) public void setProposedSegmentChange(@Nullable CfnTransitGatewayRouteTableAttachment.ProposedSegmentChangeProperty value)
      This property is read-only.

      Values can't be assigned to it.