Class CfnTransitGatewayPeering

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.networkmanager.CfnTransitGatewayPeering
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:04.928Z") @Stability(Stable) public class CfnTransitGatewayPeering extends CfnResource implements IInspectable, ITaggable
Creates a transit gateway peering connection.

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.*;
 CfnTransitGatewayPeering cfnTransitGatewayPeering = CfnTransitGatewayPeering.Builder.create(this, "MyCfnTransitGatewayPeering")
         .coreNetworkId("coreNetworkId")
         .transitGatewayArn("transitGatewayArn")
         // the properties below are optional
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • 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

    • CfnTransitGatewayPeering

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

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

      @Stability(Stable) public CfnTransitGatewayPeering(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTransitGatewayPeeringProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). 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.
    • getAttrCoreNetworkArn

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

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the core network peering was created.
    • getAttrEdgeLocation

      @Stability(Stable) @NotNull public String getAttrEdgeLocation()
      The edge location for the peer.
    • getAttrOwnerAccountId

      @Stability(Stable) @NotNull public String getAttrOwnerAccountId()
      The ID of the account owner.
    • getAttrPeeringId

      @Stability(Stable) @NotNull public String getAttrPeeringId()
      The ID of the peering.
    • getAttrPeeringType

      @Stability(Stable) @NotNull public String getAttrPeeringType()
      The peering type.

      This will be TRANSIT_GATEWAY .

    • getAttrResourceArn

      @Stability(Stable) @NotNull public String getAttrResourceArn()
      The ARN of the resource peered to a core network.
    • getAttrState

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

      This can be CREATING | FAILED | AVAILABLE | DELETING .

    • getAttrTransitGatewayPeeringAttachmentId

      @Stability(Stable) @NotNull public String getAttrTransitGatewayPeeringAttachmentId()
      The ID of the peering attachment.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getCoreNetworkId

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

      @Stability(Stable) public void setCoreNetworkId(@NotNull String value)
      The ID of the core network.
    • getTransitGatewayArn

      @Stability(Stable) @NotNull public String getTransitGatewayArn()
      The ARN of the transit gateway.
    • setTransitGatewayArn

      @Stability(Stable) public void setTransitGatewayArn(@NotNull String value)
      The ARN of the transit gateway.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The list of key-value tags associated with the peering.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The list of key-value tags associated with the peering.