aws-cdk-lib.aws_servicediscovery.BaseInstanceProps

interface BaseInstanceProps

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

Used when the resource that's associated with the service instance is accessible using values other than an IP address or a domain name (CNAME), i.e. for non-ip-instances.

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';
const baseInstanceProps: servicediscovery.BaseInstanceProps = {
  customAttributes: {
    customAttributesKey: 'customAttributes',
  },
  instanceId: 'instanceId',
};

Properties

NameTypeDescription
customAttributes?{ [string]: string }Custom attributes of the instance.
instanceId?stringThe id of the instance resource.

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.