CfnServiceNetworkVpcAssociationPropsMixin

class aws_cdk.mixins_preview.aws_vpclattice.mixins.CfnServiceNetworkVpcAssociationPropsMixin(props, *, strategy=None)

Bases: 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html

CloudformationResource:

AWS::VpcLattice::ServiceNetworkVpcAssociation

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_vpclattice import mixins as vpclattice_mixins

cfn_service_network_vpc_association_props_mixin = vpclattice_mixins.CfnServiceNetworkVpcAssociationPropsMixin(vpclattice_mixins.CfnServiceNetworkVpcAssociationMixinProps(
    dns_options=vpclattice_mixins.CfnServiceNetworkVpcAssociationPropsMixin.DnsOptionsProperty(
        private_dns_preference="privateDnsPreference",
        private_dns_specified_domains=["privateDnsSpecifiedDomains"]
    ),
    private_dns_enabled=False,
    security_group_ids=["securityGroupIds"],
    service_network_identifier="serviceNetworkIdentifier",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_identifier="vpcIdentifier"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::VpcLattice::ServiceNetworkVpcAssociation.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['dnsOptions', 'privateDnsEnabled', 'securityGroupIds', 'serviceNetworkIdentifier', 'tags', 'vpcIdentifier']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

DnsOptionsProperty

class CfnServiceNetworkVpcAssociationPropsMixin.DnsOptionsProperty(*, private_dns_preference=None, private_dns_specified_domains=None)

Bases: object

The DNS configuration options.

Parameters:
  • private_dns_preference (Optional[str]) – The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.

  • private_dns_specified_domains (Optional[Sequence[str]]) – Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-servicenetworkvpcassociation-dnsoptions.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_vpclattice import mixins as vpclattice_mixins

dns_options_property = vpclattice_mixins.CfnServiceNetworkVpcAssociationPropsMixin.DnsOptionsProperty(
    private_dns_preference="privateDnsPreference",
    private_dns_specified_domains=["privateDnsSpecifiedDomains"]
)

Attributes

private_dns_preference

The preference for which private domains have a private hosted zone created for and associated with the specified VPC.

Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-servicenetworkvpcassociation-dnsoptions.html#cfn-vpclattice-servicenetworkvpcassociation-dnsoptions-privatednspreference

private_dns_specified_domains

Indicates which of the private domains to create private hosted zones for and associate with the specified VPC.

Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-servicenetworkvpcassociation-dnsoptions.html#cfn-vpclattice-servicenetworkvpcassociation-dnsoptions-privatednsspecifieddomains