Class CfnServiceNetworkVpcAssociation
- All Implemented Interfaces:
IInspectable,ITaggable,IServiceNetworkVpcAssociationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
When you associate a VPC with the service network, it enables all the resources within that VPC to be clients and communicate with other services in the service network. For more information, see Manage VPC associations in the Amazon VPC Lattice User Guide .
You can't use this operation if there is a disassociation in progress. If the association fails, retry by deleting the association and recreating it.
As a result of this operation, the association gets created in the service network account and the VPC owner account.
If you add a security group to the service network and VPC association, the association must continue to always have at least one security group. You can add or edit security groups at any time. However, to remove all security groups, you must first delete the association and recreate it without security groups.
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.vpclattice.*;
CfnServiceNetworkVpcAssociation cfnServiceNetworkVpcAssociation = CfnServiceNetworkVpcAssociation.Builder.create(this, "MyCfnServiceNetworkVpcAssociation")
.securityGroupIds(List.of("securityGroupIds"))
.serviceNetworkIdentifier("serviceNetworkIdentifier")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcIdentifier("vpcIdentifier")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnServiceNetworkVpcAssociation.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.services.vpclattice.IServiceNetworkVpcAssociationRef
IServiceNetworkVpcAssociationRef.Jsii$Default, IServiceNetworkVpcAssociationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnServiceNetworkVpcAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServiceNetworkVpcAssociation(software.amazon.jsii.JsiiObjectRef objRef) CfnServiceNetworkVpcAssociation(software.constructs.Construct scope, String id) CfnServiceNetworkVpcAssociation(software.constructs.Construct scope, String id, CfnServiceNetworkVpcAssociationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the association between the service network and the VPC.The date and time that the association was created, specified in ISO-8601 format.The ID of the specified association between the service network and the VPC.The Amazon Resource Name (ARN) of the service network.The ID of the service network.The name of the service network.The status of the association.The ID of the VPC.The IDs of the security groups.The ID or ARN of the service network.A reference to a ServiceNetworkVpcAssociation resource.getTags()Tag Manager which manages the tags for this resource.The tags for the association.The ID of the VPC.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetSecurityGroupIds(List<String> value) The IDs of the security groups.voidThe ID or ARN of the service network.voidsetTagsRaw(List<CfnTag> value) The tags for the association.voidsetVpcIdentifier(String value) The ID of the VPC.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
-
CfnServiceNetworkVpcAssociation
protected CfnServiceNetworkVpcAssociation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServiceNetworkVpcAssociation
protected CfnServiceNetworkVpcAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServiceNetworkVpcAssociation
@Stability(Stable) public CfnServiceNetworkVpcAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnServiceNetworkVpcAssociationProps 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.
-
CfnServiceNetworkVpcAssociation
@Stability(Stable) public CfnServiceNetworkVpcAssociation(@NotNull software.constructs.Construct scope, @NotNull String id) - 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.
-
-
Method Details
-
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.
-
getAttrArn
The Amazon Resource Name (ARN) of the association between the service network and the VPC. -
getAttrCreatedAt
The date and time that the association was created, specified in ISO-8601 format. -
getAttrId
The ID of the specified association between the service network and the VPC. -
getAttrServiceNetworkArn
The Amazon Resource Name (ARN) of the service network. -
getAttrServiceNetworkId
The ID of the service network. -
getAttrServiceNetworkName
The name of the service network. -
getAttrStatus
The status of the association. -
getAttrVpcId
The ID of the VPC. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getServiceNetworkVpcAssociationRef
@Stability(Stable) @NotNull public ServiceNetworkVpcAssociationReference getServiceNetworkVpcAssociationRef()A reference to a ServiceNetworkVpcAssociation resource.- Specified by:
getServiceNetworkVpcAssociationRefin interfaceIServiceNetworkVpcAssociationRef
-
getTags
Tag Manager which manages the tags for this resource. -
getSecurityGroupIds
The IDs of the security groups. -
setSecurityGroupIds
The IDs of the security groups. -
getServiceNetworkIdentifier
The ID or ARN of the service network. -
setServiceNetworkIdentifier
The ID or ARN of the service network. -
getTagsRaw
The tags for the association. -
setTagsRaw
The tags for the association. -
getVpcIdentifier
The ID of the VPC. -
setVpcIdentifier
The ID of the VPC.
-