@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.116Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInstance.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
AliasTargetInstance(software.constructs.Construct scope,
String id,
AliasTargetInstanceProps props) |
protected |
AliasTargetInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AliasTargetInstance(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDnsName()
The Route53 DNS name of the alias target.
|
String |
getInstanceId()
The Id of the instance.
|
IService |
getService()
The Cloudmap service to which the instance is registered.
|
uniqueInstanceIdapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected AliasTargetInstance(software.amazon.jsii.JsiiObjectRef objRef)
protected AliasTargetInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AliasTargetInstance(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
AliasTargetInstanceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public String getDnsName()
@Stability(value=Stable) @NotNull public String getInstanceId()
getInstanceId in interface IInstancegetInstanceId in class InstanceBase@Stability(value=Stable) @NotNull public IService getService()
getService in interface IInstancegetService in class InstanceBaseCopyright © 2022. All rights reserved.