@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.155Z") @Stability(value=Stable) public class IpInstance 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;
IpInstance ipInstance = IpInstance.Builder.create(this, "MyIpInstance")
.service(service)
// the properties below are optional
.customAttributes(Map.of(
"customAttributesKey", "customAttributes"))
.instanceId("instanceId")
.ipv4("ipv4")
.ipv6("ipv6")
.port(123)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
IpInstance.Builder
A fluent builder for
IpInstance. |
software.amazon.jsii.JsiiObject.InitializationModeIInstance.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
IpInstance(software.constructs.Construct scope,
String id,
IpInstanceProps props) |
protected |
IpInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IpInstance(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInstanceId()
The Id of the instance.
|
String |
getIpv4()
The Ipv4 address of the instance, or blank string if none available.
|
String |
getIpv6()
The Ipv6 address of the instance, or blank string if none available.
|
Number |
getPort()
The exposed port 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 IpInstance(software.amazon.jsii.JsiiObjectRef objRef)
protected IpInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public IpInstance(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
IpInstanceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public String getInstanceId()
getInstanceId in interface IInstancegetInstanceId in class InstanceBase@Stability(value=Stable) @NotNull public String getIpv4()
@Stability(value=Stable) @NotNull public String getIpv6()
@Stability(value=Stable) @NotNull public Number getPort()
@Stability(value=Stable) @NotNull public IService getService()
getService in interface IInstancegetService in class InstanceBaseCopyright © 2022. All rights reserved.