interface BaseInstanceProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ServiceDiscovery.BaseInstanceProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsservicediscovery#BaseInstanceProps |
Java | software.amazon.awscdk.services.servicediscovery.BaseInstanceProps |
Python | aws_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
Name | Type | Description |
---|---|---|
custom | { [string]: string } | Custom attributes of the instance. |
instance | string | The 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.