Class NonIpInstance
Instance accessible using values other than an IP address or a domain name (CNAME).
Inherited Members
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NonIpInstance : InstanceBase, IInstance, IResource
Syntax (vb)
Public Class NonIpInstance
Inherits InstanceBase
Implements IInstance, IResource
Remarks
Specify the other values in Custom attributes.
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 nonIpInstance = new NonIpInstance(this, "MyNonIpInstance", new NonIpInstanceProps {
Service = service,
// the properties below are optional
CustomAttributes = new Dictionary<string, string> {
{ "customAttributesKey", "customAttributes" }
},
InstanceId = "instanceId"
});
Synopsis
Constructors
NonIpInstance(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
NonIpInstance(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
NonIpInstance(Construct, String, INonIpInstanceProps) |
Properties
InstanceId | The Id of the instance. |
Service | The Cloudmap service to which the instance is registered. |
Constructors
NonIpInstance(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected NonIpInstance(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
NonIpInstance(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected NonIpInstance(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
NonIpInstance(Construct, String, INonIpInstanceProps)
public NonIpInstance(Construct scope, string id, INonIpInstanceProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props INonIpInstanceProps
Properties
InstanceId
The Id of the instance.
public override string InstanceId { get; }
Property Value
System.String
Overrides
Service
The Cloudmap service to which the instance is registered.
public override IService Service { get; }
Property Value