@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.379Z") @Stability(value=Stable) public interface CfnVPCPeeringConnectionProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnVPCPeeringConnectionProps.Builder
A builder for
CfnVPCPeeringConnectionProps |
static class |
CfnVPCPeeringConnectionProps.Jsii$Proxy
An implementation for
CfnVPCPeeringConnectionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnVPCPeeringConnectionProps.Builder |
builder() |
default String |
getPeerOwnerId()
The AWS account ID of the owner of the accepter VPC.
|
default String |
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 String |
getPeerRoleArn()
The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.
|
String |
getPeerVpcId()
The ID of the VPC with which you are creating the VPC peering connection.
|
default List<CfnTag> |
getTags()
Any tags assigned to the resource.
|
String |
getVpcId()
The ID of the VPC.
|
@Stability(value=Stable) @NotNull String getPeerVpcId()
You must specify this parameter in the request.
@Stability(value=Stable) @NotNull String getVpcId()
@Stability(value=Stable) @Nullable default String getPeerOwnerId()
Default: Your AWS account ID
@Stability(value=Stable) @Nullable default String getPeerRegion()
Default: The Region in which you make the request.
@Stability(value=Stable) @Nullable default String getPeerRoleArn()
This is required when you are peering a VPC in a different AWS account.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnVPCPeeringConnectionProps.Builder builder()
Copyright © 2022. All rights reserved.