Skip to content
v2.273.0

CfnVPCPeeringConnectionPropsMixin Mixin ​

Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection.

The accepter VPC can belong to a different AWS account and can be in a different Region than the requester VPC.

The requester VPC and accepter VPC cannot have overlapping CIDR blocks. If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed .

If the VPCs belong to different accounts, the acceptor account must have a role that allows the requester account to accept the VPC peering connection. For an example, see Walkthrough: Peer with a VPC in another AWS account .

If the requester and acceptor VPCs are in the same account, the peering request is accepted without a peering role.

Initializer ​

ts
new CfnVPCPeeringConnectionPropsMixin(props: CfnVPCPeeringConnectionMixinProps, options?: CfnPropertyMixinOptions)
python
CfnVPCPeeringConnectionPropsMixin(props: CfnVPCPeeringConnectionMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnVPCPeeringConnectionPropsMixin(CfnVPCPeeringConnectionMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnVPCPeeringConnectionPropsMixin(CfnVPCPeeringConnectionMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnVPCPeeringConnectionPropsMixin(Props CfnVPCPeeringConnectionMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.