Class CfnServiceNetworkVpcAssociationPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
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.cfnpropertymixins.services.vpclattice.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnServiceNetworkVpcAssociationPropsMixin cfnServiceNetworkVpcAssociationPropsMixin = CfnServiceNetworkVpcAssociationPropsMixin.Builder.create(CfnServiceNetworkVpcAssociationMixinProps.builder()
.dnsOptions(DnsOptionsProperty.builder()
.privateDnsPreference("privateDnsPreference")
.privateDnsSpecifiedDomains(List.of("privateDnsSpecifiedDomains"))
.build())
.privateDnsEnabled(false)
.securityGroupIds(List.of("securityGroupIds"))
.serviceNetworkIdentifier("serviceNetworkIdentifier")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcIdentifier("vpcIdentifier")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnServiceNetworkVpcAssociationPropsMixin.static interfaceThe DNS configuration options.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::VpcLattice::ServiceNetworkVpcAssociation.CfnServiceNetworkVpcAssociationPropsMixin(CfnServiceNetworkVpcAssociationMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::VpcLattice::ServiceNetworkVpcAssociation.protectedCfnServiceNetworkVpcAssociationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServiceNetworkVpcAssociationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.getProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnServiceNetworkVpcAssociationPropsMixin
protected CfnServiceNetworkVpcAssociationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServiceNetworkVpcAssociationPropsMixin
protected CfnServiceNetworkVpcAssociationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServiceNetworkVpcAssociationPropsMixin
@Stability(Stable) public CfnServiceNetworkVpcAssociationPropsMixin(@NotNull CfnServiceNetworkVpcAssociationMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::VpcLattice::ServiceNetworkVpcAssociation.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnServiceNetworkVpcAssociationPropsMixin
@Stability(Stable) public CfnServiceNetworkVpcAssociationPropsMixin(@NotNull CfnServiceNetworkVpcAssociationMixinProps props) Create a mixin to apply properties toAWS::VpcLattice::ServiceNetworkVpcAssociation.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-