Class CfnServiceNetworkVpcAssociationPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.vpclattice.CfnServiceNetworkVpcAssociationPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:05.958Z") @Stability(Stable) public class CfnServiceNetworkVpcAssociationPropsMixin extends Mixin implements software.constructs.IMixin
Associates a VPC with a service network.

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:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> 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 to AWS::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 to AWS::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.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnServiceNetworkVpcAssociationMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()