Class CfnDirectConnectGatewayAssociation.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnDirectConnectGatewayAssociation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectConnectGatewayAssociation>
- Enclosing class:
CfnDirectConnectGatewayAssociation
@Stability(Stable)
public static final class CfnDirectConnectGatewayAssociation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDirectConnectGatewayAssociation>
A fluent builder for
CfnDirectConnectGatewayAssociation.-
Method Summary
Modifier and TypeMethodDescriptionacceptDirectConnectGatewayAssociationProposalRoleArn(String acceptDirectConnectGatewayAssociationProposalRoleArn) The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal.allowedPrefixesToDirectConnectGateway(List<String> allowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway.associatedGatewayId(String associatedGatewayId) associatedGatewayId(ITransitGatewayRef associatedGatewayId) associatedGatewayId(IVPNGatewayRef associatedGatewayId) build()directConnectGatewayId(String directConnectGatewayId) directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId)
-
Method Details
-
create
@Stability(Stable) public static CfnDirectConnectGatewayAssociation.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnDirectConnectGatewayAssociation.Builder.
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociation.Builder associatedGatewayId(String associatedGatewayId) - Parameters:
associatedGatewayId- This parameter is required.- Returns:
this- See Also:
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociation.Builder associatedGatewayId(ITransitGatewayRef associatedGatewayId) - Parameters:
associatedGatewayId- This parameter is required.- Returns:
this- See Also:
-
associatedGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociation.Builder associatedGatewayId(IVPNGatewayRef associatedGatewayId) - Parameters:
associatedGatewayId- This parameter is required.- Returns:
this- See Also:
-
directConnectGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociation.Builder directConnectGatewayId(String directConnectGatewayId) - Parameters:
directConnectGatewayId- This parameter is required.- Returns:
this- See Also:
-
directConnectGatewayId
@Stability(Stable) public CfnDirectConnectGatewayAssociation.Builder directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) - Parameters:
directConnectGatewayId- This parameter is required.- Returns:
this- See Also:
-
acceptDirectConnectGatewayAssociationProposalRoleArn
@Stability(Stable) public CfnDirectConnectGatewayAssociation.Builder acceptDirectConnectGatewayAssociationProposalRoleArn(String acceptDirectConnectGatewayAssociationProposalRoleArn) The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal.Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
- Parameters:
acceptDirectConnectGatewayAssociationProposalRoleArn- The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. This parameter is required.- Returns:
this- See Also:
-
allowedPrefixesToDirectConnectGateway
@Stability(Stable) public CfnDirectConnectGatewayAssociation.Builder allowedPrefixesToDirectConnectGateway(List<String> allowedPrefixesToDirectConnectGateway) The Amazon VPC prefixes to advertise to the Direct Connect gateway.This parameter is required when you create an association to a transit gateway.
- Parameters:
allowedPrefixesToDirectConnectGateway- The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDirectConnectGatewayAssociation>- Returns:
- a newly built instance of
CfnDirectConnectGatewayAssociation.
-