Class CfnVpcAttachment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.networkmanager.CfnVpcAttachment
- All Implemented Interfaces:
IInspectable,ITaggable,IVpcAttachmentRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:42.624Z")
@Stability(Stable)
public class CfnVpcAttachment
extends CfnResource
implements IInspectable, IVpcAttachmentRef, ITaggable
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")
.subnetArns(List.of("subnetArns"))
.vpcArn("vpcArn")
// the properties below are optional
.options(VpcOptionsProperty.builder()
.applianceModeSupport(false)
.dnsSupport(false)
.ipv6Support(false)
.securityGroupReferencingSupport(false)
.build())
.proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder()
.attachmentPolicyRuleNumber(123)
.networkFunctionGroupName("networkFunctionGroupName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.proposedSegmentChange(ProposedSegmentChangeProperty.builder()
.attachmentPolicyRuleNumber(123)
.segmentName("segmentName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnVpcAttachment.static interfaceDescribes proposed changes to a network function group.static interfaceDescribes a proposed segment change.static interfaceDescribes the VPC options.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.networkmanager.IVpcAttachmentRef
IVpcAttachmentRef.Jsii$Default, IVpcAttachmentRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnVpcAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVpcAttachment(software.amazon.jsii.JsiiObjectRef objRef) CfnVpcAttachment(software.constructs.Construct scope, String id, CfnVpcAttachmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IVpcAttachmentReffromAttachmentId(software.constructs.Construct scope, String id, String attachmentId) Creates a new IVpcAttachmentRef from a attachmentId.The ID of the VPC attachment.The policy rule number associated with the attachment.The type of attachment.The ARN of the core network.The timestamp when the VPC attachment was created.The Region where the core network edge is located.Errors from the last modification of the attachment.The name of the network function group.The ID of the VPC attachment owner.The resource ARN for the VPC attachment.The name of the attachment's segment.The state of the attachment.The timestamp when the VPC attachment was last updated.The core network ID.Options for creating the VPC attachment.Describes proposed changes to a network function group.Describes a proposed segment change.The subnet ARNs.getTags()Tag Manager which manages the tags for this resource.The tags associated with the VPC attachment.The ARN of the VPC attachment.A reference to a VpcAttachment resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCoreNetworkId(String value) The core network ID.voidsetOptions(IResolvable value) Options for creating the VPC attachment.voidOptions for creating the VPC attachment.voidDescribes proposed changes to a network function group.voidsetProposedNetworkFunctionGroupChange(CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty value) Describes proposed changes to a network function group.voidDescribes a proposed segment change.voidDescribes a proposed segment change.voidsetSubnetArns(List<String> value) The subnet ARNs.voidsetTagsRaw(List<CfnTag> value) The tags associated with the VPC attachment.voidThe ARN of the VPC attachment.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnVpcAttachment
protected CfnVpcAttachment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVpcAttachment
protected CfnVpcAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVpcAttachment
@Stability(Stable) public CfnVpcAttachment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnVpcAttachmentProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromAttachmentId
@Stability(Stable) @NotNull public static IVpcAttachmentRef fromAttachmentId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String attachmentId) Creates a new IVpcAttachmentRef from a attachmentId.- Parameters:
scope- This parameter is required.id- This parameter is required.attachmentId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAttachmentId
The ID of the VPC attachment. -
getAttrAttachmentPolicyRuleNumber
The policy rule number associated with the attachment. -
getAttrAttachmentType
The type of attachment.This will be
VPC. -
getAttrCoreNetworkArn
The ARN of the core network. -
getAttrCreatedAt
The timestamp when the VPC attachment was created. -
getAttrEdgeLocation
The Region where the core network edge is located. -
getAttrLastModificationErrors
Errors from the last modification of the attachment. -
getAttrNetworkFunctionGroupName
The name of the network function group. -
getAttrOwnerAccountId
The ID of the VPC attachment owner. -
getAttrResourceArn
The resource ARN for the VPC attachment. -
getAttrSegmentName
The name of the attachment's segment. -
getAttrState
The state of the attachment.This can be:
REJECTED|PENDING_ATTACHMENT_ACCEPTANCE|CREATING|FAILED|AVAILABLE|UPDATING|PENDING_NETWORK_UPDATE|PENDING_TAG_ACCEPTANCE|DELETING. -
getAttrUpdatedAt
The timestamp when the VPC attachment was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getVpcAttachmentRef
A reference to a VpcAttachment resource.- Specified by:
getVpcAttachmentRefin interfaceIVpcAttachmentRef
-
getCoreNetworkId
The core network ID. -
setCoreNetworkId
The core network ID. -
getSubnetArns
The subnet ARNs. -
setSubnetArns
The subnet ARNs. -
getVpcArn
The ARN of the VPC attachment. -
setVpcArn
The ARN of the VPC attachment. -
getOptions
Options for creating the VPC attachment.Returns union: either
IResolvableorCfnVpcAttachment.VpcOptionsProperty -
setOptions
Options for creating the VPC attachment. -
setOptions
Options for creating the VPC attachment. -
getProposedNetworkFunctionGroupChange
Describes proposed changes to a network function group.Returns union: either
IResolvableorCfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty -
setProposedNetworkFunctionGroupChange
Describes proposed changes to a network function group. -
setProposedNetworkFunctionGroupChange
@Stability(Stable) public void setProposedNetworkFunctionGroupChange(@Nullable CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty value) Describes proposed changes to a network function group. -
getProposedSegmentChange
Describes a proposed segment change.Returns union: either
IResolvableorCfnVpcAttachment.ProposedSegmentChangeProperty -
setProposedSegmentChange
Describes a proposed segment change. -
setProposedSegmentChange
@Stability(Stable) public void setProposedSegmentChange(@Nullable CfnVpcAttachment.ProposedSegmentChangeProperty value) Describes a proposed segment change. -
getTagsRaw
The tags associated with the VPC attachment. -
setTagsRaw
The tags associated with the VPC attachment.
-