CfnServiceNetworkServiceAssociationPropsMixin

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

Bases: Mixin

Associates the specified service with the specified service network.

For more information, see Manage service associations in the Amazon VPC Lattice User Guide .

You can’t use this operation if the service and service network are already associated or if there is a disassociation or deletion in progress. If the association fails, you can retry the operation by deleting the association and recreating it.

You cannot associate a service and service network that are shared with a caller. The caller must own either the service or the service network.

As a result of this operation, the association is created in the service network account and the association owner account.

See:

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

CloudformationResource:

AWS::VpcLattice::ServiceNetworkServiceAssociation

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_service_association_props_mixin = vpclattice_mixins.CfnServiceNetworkServiceAssociationPropsMixin(vpclattice_mixins.CfnServiceNetworkServiceAssociationMixinProps(
    dns_entry=vpclattice_mixins.CfnServiceNetworkServiceAssociationPropsMixin.DnsEntryProperty(
        domain_name="domainName",
        hosted_zone_id="hostedZoneId"
    ),
    service_identifier="serviceIdentifier",
    service_network_identifier="serviceNetworkIdentifier",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

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

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 = ['dnsEntry', 'serviceIdentifier', 'serviceNetworkIdentifier', 'tags']

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

DnsEntryProperty

class CfnServiceNetworkServiceAssociationPropsMixin.DnsEntryProperty(*, domain_name=None, hosted_zone_id=None)

Bases: object

The DNS information.

Parameters:
  • domain_name (Optional[str]) – The domain name of the service.

  • hosted_zone_id (Optional[str]) – The ID of the hosted zone.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-servicenetworkserviceassociation-dnsentry.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_entry_property = vpclattice_mixins.CfnServiceNetworkServiceAssociationPropsMixin.DnsEntryProperty(
    domain_name="domainName",
    hosted_zone_id="hostedZoneId"
)

Attributes

domain_name

The domain name of the service.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-servicenetworkserviceassociation-dnsentry.html#cfn-vpclattice-servicenetworkserviceassociation-dnsentry-domainname

hosted_zone_id

The ID of the hosted zone.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-servicenetworkserviceassociation-dnsentry.html#cfn-vpclattice-servicenetworkserviceassociation-dnsentry-hostedzoneid