AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

AliasTargetInstance

Instance that uses Route 53 Alias record type. Currently, the only resource types supported are Elastic Load Balancers.

Import

import { AliasTargetInstance } from 'aws-cdk-lib/aws-servicediscovery';

Or use the module namespace:

import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery';
// servicediscovery.AliasTargetInstance

Properties

Configuration passed to the constructor as AliasTargetInstanceProps.

dnsNameRequired
string

DNS name of the target.

serviceRequired
IService

The Cloudmap service this resource is registered to.

2 properties inherited from BaseInstanceProps
customAttributesOptionalinherited from BaseInstanceProps
{ [key: string]: string }

Custom attributes of the instance.

Default: none

instanceIdOptionalinherited from BaseInstanceProps
string

The id of the instance resource.

Default: Automatically generated name

Learn AWS the Practical Way

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

Subscribe to Newsletter