Class IpInstance
Instance that is accessible using an IP address.
Inherited Members
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class IpInstance : InstanceBase, IInstance, IResource
Syntax (vb)
Public Class IpInstance
Inherits InstanceBase
Implements IInstance, IResource
Remarks
Resource: AWS::ServiceDiscovery::Instance
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ServiceDiscovery;
Service service;
var ipInstance = new IpInstance(this, "MyIpInstance", new IpInstanceProps {
Service = service,
// the properties below are optional
CustomAttributes = new Dictionary<string, string> {
{ "customAttributesKey", "customAttributes" }
},
InstanceId = "instanceId",
Ipv4 = "ipv4",
Ipv6 = "ipv6",
Port = 123
});
Synopsis
Constructors
IpInstance(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
IpInstance(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
IpInstance(Construct, String, IIpInstanceProps) |
Properties
InstanceId | The Id of the instance. |
Ipv4 | The Ipv4 address of the instance, or blank string if none available. |
Ipv6 | The Ipv6 address of the instance, or blank string if none available. |
Port | The exposed port of the instance. |
Service | The Cloudmap service to which the instance is registered. |
Constructors
IpInstance(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected IpInstance(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
IpInstance(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected IpInstance(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
IpInstance(Construct, String, IIpInstanceProps)
public IpInstance(Construct scope, string id, IIpInstanceProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IIpInstanceProps
Properties
InstanceId
The Id of the instance.
public override string InstanceId { get; }
Property Value
System.String
Overrides
Ipv4
The Ipv4 address of the instance, or blank string if none available.
public virtual string Ipv4 { get; }
Property Value
System.String
Ipv6
The Ipv6 address of the instance, or blank string if none available.
public virtual string Ipv6 { get; }
Property Value
System.String
Port
The exposed port of the instance.
public virtual double Port { get; }
Property Value
System.Double
Service
The Cloudmap service to which the instance is registered.
public override IService Service { get; }
Property Value