class CfnServiceNetworkVpcAssociationPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.VpcLattice.Mixins.CfnServiceNetworkVpcAssociationPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsvpclattice/mixins#CfnServiceNetworkVpcAssociationPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.vpclattice.mixins.CfnServiceNetworkVpcAssociationPropsMixin |
Python | aws_cdk.mixins_preview.aws_vpclattice.mixins.CfnServiceNetworkVpcAssociationPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_vpclattice » mixins » CfnServiceNetworkVpcAssociationPropsMixin |
Implements
IMixin
Extends
Mixin
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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as vpclattice_mixins } from '@aws-cdk/mixins-preview/aws-vpclattice';
const cfnServiceNetworkVpcAssociationPropsMixin = new vpclattice_mixins.CfnServiceNetworkVpcAssociationPropsMixin({
dnsOptions: {
privateDnsPreference: 'privateDnsPreference',
privateDnsSpecifiedDomains: ['privateDnsSpecifiedDomains'],
},
privateDnsEnabled: false,
securityGroupIds: ['securityGroupIds'],
serviceNetworkIdentifier: 'serviceNetworkIdentifier',
tags: [{
key: 'key',
value: 'value',
}],
vpcIdentifier: 'vpcIdentifier',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnServiceNetworkVpcAssociationPropsMixin(props: CfnServiceNetworkVpcAssociationMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Service Network Vpc Association Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::VpcLattice::ServiceNetworkVpcAssociation.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript