Interface CfnVPCPeeringConnectionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVPCPeeringConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:18.081Z")
@Stability(Stable)
public interface CfnVPCPeeringConnectionProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnVPCPeeringConnection
.
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.ec2.*; CfnVPCPeeringConnectionProps cfnVPCPeeringConnectionProps = CfnVPCPeeringConnectionProps.builder() .peerVpcId("peerVpcId") .vpcId("vpcId") // the properties below are optional .peerOwnerId("peerOwnerId") .peerRegion("peerRegion") .peerRoleArn("peerRoleArn") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnVPCPeeringConnectionProps
static final class
An implementation forCfnVPCPeeringConnectionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The AWS account ID of the owner of the accepter VPC.default String
The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.default String
The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.The ID of the VPC with which you are creating the VPC peering connection.getTags()
Any tags assigned to the resource.getVpcId()
The ID of the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPeerVpcId
The ID of the VPC with which you are creating the VPC peering connection.You must specify this parameter in the request.
- See Also:
-
getVpcId
The ID of the VPC.- See Also:
-
getPeerOwnerId
The AWS account ID of the owner of the accepter VPC.Default: Your AWS account ID
- See Also:
-
getPeerRegion
The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.Default: The Region in which you make the request.
- See Also:
-
getPeerRoleArn
The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.This is required when you are peering a VPC in a different AWS account.
- See Also:
-
getTags
Any tags assigned to the resource.- See Also:
-
builder
-