AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::VpcLattice::ServiceNetworkServiceAssociation

CfnServiceNetworkServiceAssociation

Associates 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

import { CfnServiceNetworkServiceAssociation } from 'aws-cdk-lib/aws-vpclattice';

Or use the module namespace:

import * as vpclattice from 'aws-cdk-lib/aws-vpclattice';
// vpclattice.CfnServiceNetworkServiceAssociation

Properties

Configuration passed to the constructor as CfnServiceNetworkServiceAssociationProps.

dnsEntryOptional
IResolvable | DnsEntryProperty

The DNS information of the service.

serviceIdentifierOptional
string

The ID or ARN of the service.

serviceNetworkIdentifierOptional
string

The ID or ARN of the service network. You must use an ARN if the resources are in different accounts.

tagsOptional
CfnTag[]

The tags for the association.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter