aws-cdk-lib.aws_servicediscovery.NonIpInstanceProps

interface NonIpInstanceProps

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

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 nonIpInstanceProps: servicediscovery.NonIpInstanceProps = {
  service: service,

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

Properties

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

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.