Skip to content
v2.273.0

AliasTargetInstanceProps Struct ​

Example ​

ts
// 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 ​

customAttributes{ [key: string]: string }custom_attributestyping.Mapping[str, str]customAttributesMap<String, String>CustomAttributesIDictionary<string, string>CustomAttributes*map[string]*string= none#
Custom attributes of the instance.
dnsNamestringdns_namestrdnsNameStringDnsNamestringDnsName*stringrequired#
DNS name of the target.
instanceIdstringinstance_idstrinstanceIdStringInstanceIdstringInstanceId*string= Automatically generated name#
The id of the instance resource.
serviceIServiceserviceIServiceserviceIServiceServiceIServiceServiceIServicerequired#
The Cloudmap service this resource is registered to.

Used as props by ​