Class CfnDirectConnectGatewayAssociation

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.directconnect.CfnDirectConnectGatewayAssociation
All Implemented Interfaces:
IInspectable, IDirectConnectGatewayAssociationRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:41.937Z") @Stability(Stable) public class CfnDirectConnectGatewayAssociation extends CfnResource implements IInspectable, IDirectConnectGatewayAssociationRef
Resource Type definition for AWS::DirectConnect::DirectConnectGatewayAssociation.

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.directconnect.*;
 CfnDirectConnectGatewayAssociation cfnDirectConnectGatewayAssociation = CfnDirectConnectGatewayAssociation.Builder.create(this, "MyCfnDirectConnectGatewayAssociation")
         .associatedGatewayId("associatedGatewayId")
         .directConnectGatewayId("directConnectGatewayId")
         // the properties below are optional
         .acceptDirectConnectGatewayAssociationProposalRoleArn("acceptDirectConnectGatewayAssociationProposalRoleArn")
         .allowedPrefixesToDirectConnectGateway(List.of("allowedPrefixesToDirectConnectGateway"))
         .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

    • CfnDirectConnectGatewayAssociation

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

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

      @Stability(Stable) public CfnDirectConnectGatewayAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDirectConnectGatewayAssociationProps props)
      Create a new AWS::DirectConnect::DirectConnectGatewayAssociation.

      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

    • isCfnDirectConnectGatewayAssociation

      @Stability(Stable) @NotNull public static Boolean isCfnDirectConnectGatewayAssociation(@NotNull Object x)
      Checks whether the given object is a CfnDirectConnectGatewayAssociation.

      Parameters:
      x - This parameter is required.
    • 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.
    • getAttrAssociationId

      @Stability(Stable) @NotNull public String getAttrAssociationId()
      The ID of the Direct Connect gateway association.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public DirectConnectGatewayAssociationReference getDirectConnectGatewayAssociationRef()
      A reference to a DirectConnectGatewayAssociation resource.
      Specified by:
      getDirectConnectGatewayAssociationRef in interface IDirectConnectGatewayAssociationRef
    • getAssociatedGatewayId

      @Stability(Stable) @NotNull public String getAssociatedGatewayId()
    • setAssociatedGatewayId

      @Stability(Stable) public void setAssociatedGatewayId(@NotNull String value)
    • getDirectConnectGatewayId

      @Stability(Stable) @NotNull public String getDirectConnectGatewayId()
    • setDirectConnectGatewayId

      @Stability(Stable) public void setDirectConnectGatewayId(@NotNull String value)
    • getAcceptDirectConnectGatewayAssociationProposalRoleArn

      @Stability(Stable) @Nullable public String getAcceptDirectConnectGatewayAssociationProposalRoleArn()
      The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal.
    • setAcceptDirectConnectGatewayAssociationProposalRoleArn

      @Stability(Stable) public void setAcceptDirectConnectGatewayAssociationProposalRoleArn(@Nullable String value)
      The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal.
    • getAllowedPrefixesToDirectConnectGateway

      @Stability(Stable) @Nullable public List<String> getAllowedPrefixesToDirectConnectGateway()
      The Amazon VPC prefixes to advertise to the Direct Connect gateway.
    • setAllowedPrefixesToDirectConnectGateway

      @Stability(Stable) public void setAllowedPrefixesToDirectConnectGateway(@Nullable List<String> value)
      The Amazon VPC prefixes to advertise to the Direct Connect gateway.