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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDirectConnectGatewayAssociation.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.directconnect.IDirectConnectGatewayAssociationRef
IDirectConnectGatewayAssociationRef.Jsii$Default, IDirectConnectGatewayAssociationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDirectConnectGatewayAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDirectConnectGatewayAssociation(software.amazon.jsii.JsiiObjectRef objRef) CfnDirectConnectGatewayAssociation(software.constructs.Construct scope, String id, CfnDirectConnectGatewayAssociationProps props) Create a newAWS::DirectConnect::DirectConnectGatewayAssociation. -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal.The Amazon VPC prefixes to advertise to the Direct Connect gateway.The ID of the Direct Connect gateway association.A reference to a DirectConnectGatewayAssociation resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDirectConnectGatewayAssociation.renderProperties(Map<String, Object> props) voidThe Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal.voidThe Amazon VPC prefixes to advertise to the Direct Connect gateway.voidsetAssociatedGatewayId(String value) voidsetDirectConnectGatewayId(String value) Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 newAWS::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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAssociationId
The ID of the Direct Connect gateway association. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDirectConnectGatewayAssociationRef
@Stability(Stable) @NotNull public DirectConnectGatewayAssociationReference getDirectConnectGatewayAssociationRef()A reference to a DirectConnectGatewayAssociation resource.- Specified by:
getDirectConnectGatewayAssociationRefin interfaceIDirectConnectGatewayAssociationRef
-
getAssociatedGatewayId
-
setAssociatedGatewayId
-
getDirectConnectGatewayId
-
setDirectConnectGatewayId
-
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
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.
-