CfnServiceNetworkServiceAssociationPropsMixin
- class aws_cdk.mixins_preview.aws_vpclattice.mixins.CfnServiceNetworkServiceAssociationPropsMixin(props, *, strategy=None)
Bases:
MixinAssociates 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:
- 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:
props (
Union[CfnServiceNetworkServiceAssociationMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
DnsEntryProperty
- class CfnServiceNetworkServiceAssociationPropsMixin.DnsEntryProperty(*, domain_name=None, hosted_zone_id=None)
Bases:
objectThe 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:
- 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.