@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:40.811Z") public class AliasTargetInstance extends InstanceBase
Currently, the only resource types supported are Elastic Load Balancers.
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; AliasTargetInstance aliasTargetInstance = AliasTargetInstance.Builder.create(this, "MyAliasTargetInstance") .dnsName("dnsName") .service(service) // the properties below are optional .customAttributes(Map.of( "customAttributesKey", "customAttributes")) .instanceId("instanceId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
AliasTargetInstance.Builder
A fluent builder for
AliasTargetInstance . |
IInstance.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
AliasTargetInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AliasTargetInstance(software.amazon.jsii.JsiiObjectRef objRef) |
|
AliasTargetInstance(software.constructs.Construct scope,
java.lang.String id,
AliasTargetInstanceProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDnsName()
The Route53 DNS name of the alias target.
|
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 AliasTargetInstance(software.amazon.jsii.JsiiObjectRef objRef)
protected AliasTargetInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public AliasTargetInstance(software.constructs.Construct scope, java.lang.String id, AliasTargetInstanceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getDnsName()
public java.lang.String getInstanceId()
getInstanceId
in interface IInstance
getInstanceId
in class InstanceBase
public IService getService()
getService
in interface IInstance
getService
in class InstanceBase