@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:48.212Z") public class CnameInstance extends InstanceBase
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.servicediscovery.*; Service service; CnameInstance cnameInstance = CnameInstance.Builder.create(this, "MyCnameInstance") .instanceCname("instanceCname") .service(service) // the properties below are optional .customAttributes(Map.of( "customAttributesKey", "customAttributes")) .instanceId("instanceId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CnameInstance.Builder
A fluent builder for
CnameInstance . |
IInstance.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
CnameInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CnameInstance(software.amazon.jsii.JsiiObjectRef objRef) |
|
CnameInstance(software.constructs.Construct scope,
java.lang.String id,
CnameInstanceProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCname()
The domain name returned by DNS queries for the instance.
|
java.lang.String |
getInstanceId()
The Id of the instance.
|
IService |
getService()
The Cloudmap service to which the instance is registered.
|
uniqueInstanceId
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected CnameInstance(software.amazon.jsii.JsiiObjectRef objRef)
protected CnameInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CnameInstance(software.constructs.Construct scope, java.lang.String id, CnameInstanceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getCname()
public java.lang.String getInstanceId()
getInstanceId
in interface IInstance
getInstanceId
in class InstanceBase
public IService getService()
getService
in interface IInstance
getService
in class InstanceBase