AWS::VpcLattice::ServiceNetworkServiceAssociationAssociates the specified service with the specified service network. For more information, see [Manage service associations](https://docs.aws.amazon.com/vpc-lattice/latest/ug/service-network-associations.html#service-network-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.
import { CfnServiceNetworkServiceAssociation } from 'aws-cdk-lib/aws-vpclattice';Or use the module namespace:
import * as vpclattice from 'aws-cdk-lib/aws-vpclattice';
// vpclattice.CfnServiceNetworkServiceAssociationConfiguration passed to the constructor as CfnServiceNetworkServiceAssociationProps.
dnsEntryOptionalIResolvable | DnsEntryPropertyThe DNS information of the service.
serviceIdentifierOptionalstringThe ID or ARN of the service.
serviceNetworkIdentifierOptionalstringThe ID or ARN of the service network. You must use an ARN if the resources are in different accounts.
tagsOptionalCfnTag[]The tags for the association.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-vpclatticeAWS::VpcLattice::ServiceNetworkServiceAssociation