Class CnameInstance
Instance that is accessible using a domain name (CNAME).
Inherited Members
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CnameInstance : InstanceBase, IInstance, IResource
Syntax (vb)
Public Class CnameInstance
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 cnameInstance = new CnameInstance(this, "MyCnameInstance", new CnameInstanceProps {
InstanceCname = "instanceCname",
Service = service,
// the properties below are optional
CustomAttributes = new Dictionary<string, string> {
{ "customAttributesKey", "customAttributes" }
},
InstanceId = "instanceId"
});
Synopsis
Constructors
Cname |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cname |
Used by jsii to construct an instance of this class from DeputyProps |
Cname |
Properties
Cname | The domain name returned by DNS queries for the instance. |
Instance |
The Id of the instance. |
Service | The Cloudmap service to which the instance is registered. |
Constructors
CnameInstance(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CnameInstance(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CnameInstance(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CnameInstance(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CnameInstance(Construct, String, ICnameInstanceProps)
public CnameInstance(Construct scope, string id, ICnameInstanceProps props)
Parameters
- scope Constructs.
Construct - id System.
String - props ICname
Instance Props
Properties
Cname
The domain name returned by DNS queries for the instance.
public virtual string Cname { get; }
Property Value
System.
InstanceId
The Id of the instance.
public override string InstanceId { get; }
Property Value
System.
Overrides
Service
The Cloudmap service to which the instance is registered.
public override IService Service { get; }
Property Value