AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::VpcLattice::ServiceNetwork

CfnServiceNetwork

Creates a service network. A service network is a logical boundary for a collection of services. You can associate services and VPCs with a service network. For more information, see [Service networks](https://docs.aws.amazon.com/vpc-lattice/latest/ug/service-networks.html) in the *Amazon VPC Lattice User Guide* .

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnServiceNetworkProps.

authTypeOptional
string

The type of IAM policy. - `NONE` : The resource does not use an IAM policy. This is the default. - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.

Default: - "NONE"

nameOptional
string

The name of the service network. The name must be unique to the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.

sharingConfigOptional
IResolvable | SharingConfigProperty

Specify if the service network should be enabled for sharing.

tagsOptional
CfnTag[]

The tags for the service network.

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