Class CfnVPCPeeringConnectionPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCPeeringConnectionPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:58.766Z")
@Stability(Stable)
public class CfnVPCPeeringConnectionPropsMixin
extends Mixin
implements software.constructs.IMixin
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ec2.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnVPCPeeringConnectionPropsMixin cfnVPCPeeringConnectionPropsMixin = CfnVPCPeeringConnectionPropsMixin.Builder.create(CfnVPCPeeringConnectionMixinProps.builder()
.assumeRoleRegion("assumeRoleRegion")
.peerOwnerId("peerOwnerId")
.peerRegion("peerRegion")
.peerRoleArn("peerRoleArn")
.peerVpcId("peerVpcId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcId("vpcId")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnVPCPeeringConnectionPropsMixin.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::EC2::VPCPeeringConnection.CfnVPCPeeringConnectionPropsMixin(CfnVPCPeeringConnectionMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::EC2::VPCPeeringConnection.protectedCfnVPCPeeringConnectionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVPCPeeringConnectionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnVPCPeeringConnectionMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnVPCPeeringConnectionPropsMixin
protected CfnVPCPeeringConnectionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVPCPeeringConnectionPropsMixin
protected CfnVPCPeeringConnectionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVPCPeeringConnectionPropsMixin
@Stability(Stable) public CfnVPCPeeringConnectionPropsMixin(@NotNull CfnVPCPeeringConnectionMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::EC2::VPCPeeringConnection.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnVPCPeeringConnectionPropsMixin
@Stability(Stable) public CfnVPCPeeringConnectionPropsMixin(@NotNull CfnVPCPeeringConnectionMixinProps props) Create a mixin to apply properties toAWS::EC2::VPCPeeringConnection.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-