@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:52.105Z") public class CfnVpcAttachment extends CfnResource implements IInspectable
Creates a VPC attachment on an edge location of a core network.
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.networkmanager.*; CfnVpcAttachment cfnVpcAttachment = CfnVpcAttachment.Builder.create(this, "MyCfnVpcAttachment") .coreNetworkId("coreNetworkId") .options(VpcOptionsProperty.builder() .ipv6Support(false) .build()) .subnetArns(List.of("subnetArns")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .vpcArn("vpcArn") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnVpcAttachment.Builder
A fluent builder for
CfnVpcAttachment . |
static interface |
CfnVpcAttachment.VpcOptionsProperty
Describes the VPC options.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnVpcAttachment(Construct scope,
java.lang.String id)
Create a new `AWS::NetworkManager::VpcAttachment`.
|
|
CfnVpcAttachment(Construct scope,
java.lang.String id,
CfnVpcAttachmentProps props)
Create a new `AWS::NetworkManager::VpcAttachment`.
|
protected |
CfnVpcAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnVpcAttachment(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrAttachmentId()
The ID of the VPC attachment.
|
java.lang.Number |
getAttrAttachmentPolicyRuleNumber()
The policy rule number associated with the attachment.
|
java.lang.String |
getAttrAttachmentType()
The type of attachment.
|
java.lang.String |
getAttrCoreNetworkArn()
The ARN of the core network.
|
java.lang.String |
getAttrCreatedAt()
The timestamp when the VPC attachment was created.
|
java.lang.String |
getAttrEdgeLocation()
The Region where the core network edge is located.
|
java.lang.String |
getAttrOwnerAccountId()
The ID of the VPC attachment owner.
|
java.lang.String |
getAttrResourceArn()
The resource ARN for the VPC attachment.
|
java.lang.String |
getAttrSegmentName()
The name of the attachment's segment.
|
java.lang.String |
getAttrState()
The state of the attachment.
|
java.lang.String |
getAttrUpdatedAt()
The timestamp when the VPC attachment was last updated.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getCoreNetworkId()
The core network ID.
|
java.lang.Object |
getOptions()
Options for creating the VPC attachment.
|
java.util.List<java.lang.String> |
getSubnetArns()
The subnet ARNs.
|
TagManager |
getTags()
The tags associated with the VPC attachment.
|
java.lang.String |
getVpcArn()
The ARN of the VPC attachment.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCoreNetworkId(java.lang.String value)
The core network ID.
|
void |
setOptions(CfnVpcAttachment.VpcOptionsProperty value)
Options for creating the VPC attachment.
|
void |
setOptions(IResolvable value)
Options for creating the VPC attachment.
|
void |
setSubnetArns(java.util.List<java.lang.String> value)
The subnet ARNs.
|
void |
setVpcArn(java.lang.String value)
The ARN of the VPC attachment.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnVpcAttachment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVpcAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnVpcAttachment(Construct scope, java.lang.String id, CfnVpcAttachmentProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnVpcAttachment(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrAttachmentId()
public java.lang.Number getAttrAttachmentPolicyRuleNumber()
public java.lang.String getAttrAttachmentType()
This will be VPC
.
public java.lang.String getAttrCoreNetworkArn()
public java.lang.String getAttrCreatedAt()
public java.lang.String getAttrEdgeLocation()
public java.lang.String getAttrOwnerAccountId()
public java.lang.String getAttrResourceArn()
public java.lang.String getAttrSegmentName()
public java.lang.String getAttrState()
This can be: REJECTED
| PENDING_ATTACHMENT_ACCEPTANCE
| CREATING
| FAILED
| AVAILABLE
| UPDATING
| PENDING_NETWORK_UPDATE
| PENDING_TAG_ACCEPTANCE
| DELETING
.
public java.lang.String getAttrUpdatedAt()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getCoreNetworkId()
public void setCoreNetworkId(java.lang.String value)
public java.lang.Object getOptions()
public void setOptions(IResolvable value)
public void setOptions(CfnVpcAttachment.VpcOptionsProperty value)
public java.util.List<java.lang.String> getSubnetArns()
public void setSubnetArns(java.util.List<java.lang.String> value)
public java.lang.String getVpcArn()
public void setVpcArn(java.lang.String value)