aws-cdk-lib.aws_servicediscovery.AliasTargetInstanceProps

interface AliasTargetInstanceProps

LanguageType name
.NETAmazon.CDK.AWS.ServiceDiscovery.AliasTargetInstanceProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsservicediscovery#AliasTargetInstanceProps
Javasoftware.amazon.awscdk.services.servicediscovery.AliasTargetInstanceProps
Pythonaws_cdk.aws_servicediscovery.AliasTargetInstanceProps
TypeScript (source)aws-cdk-lib » aws_servicediscovery » AliasTargetInstanceProps

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_servicediscovery as servicediscovery } from 'aws-cdk-lib';

declare const service: servicediscovery.Service;
const aliasTargetInstanceProps: servicediscovery.AliasTargetInstanceProps = {
  dnsName: 'dnsName',
  service: service,

  // the properties below are optional
  customAttributes: {
    customAttributesKey: 'customAttributes',
  },
  instanceId: 'instanceId',
};

Properties

NameTypeDescription
dnsNamestringDNS name of the target.
serviceIServiceThe Cloudmap service this resource is registered to.
customAttributes?{ [string]: string }Custom attributes of the instance.
instanceId?stringThe id of the instance resource.

dnsName

Type: string

DNS name of the target.


service

Type: IService

The Cloudmap service this resource is registered to.


customAttributes?

Type: { [string]: string } (optional, default: none)

Custom attributes of the instance.


instanceId?

Type: string (optional, default: Automatically generated name)

The id of the instance resource.