@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:48.227Z") 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 . |
IInstance.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
IpInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IpInstance(software.amazon.jsii.JsiiObjectRef objRef) |
|
IpInstance(software.constructs.Construct scope,
java.lang.String id,
IpInstanceProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInstanceId()
The Id of the instance.
|
java.lang.String |
getIpv4()
The Ipv4 address of the instance, or blank string if none available.
|
java.lang.String |
getIpv6()
The Ipv6 address of the instance, or blank string if none available.
|
java.lang.Number |
getPort()
The exposed port 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 IpInstance(software.amazon.jsii.JsiiObjectRef objRef)
protected IpInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public IpInstance(software.constructs.Construct scope, java.lang.String id, IpInstanceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getInstanceId()
getInstanceId
in interface IInstance
getInstanceId
in class InstanceBase
public java.lang.String getIpv4()
public java.lang.String getIpv6()
public java.lang.Number getPort()
public IService getService()
getService
in interface IInstance
getService
in class InstanceBase