AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::VpcLattice::Service

CfnService

Creates a service. A service is any software application that can run on instances containers, or serverless functions within an account or virtual private cloud (VPC). For more information, see [Services](https://docs.aws.amazon.com/vpc-lattice/latest/ug/services.html) in the *Amazon VPC Lattice User Guide* .

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnServiceProps.

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"

certificateArnOptional
string

The Amazon Resource Name (ARN) of the certificate.

customDomainNameOptional
string

The custom domain name of the service.

dnsEntryOptional
IResolvable | DnsEntryProperty

Describes the DNS information of the service. This field is read-only.

nameOptional
string

The name of the service. The name must be unique within 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.

tagsOptional
CfnTag[]

The tags for the service.

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