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, IConstruct, IDependable
Syntax (vb)
Public Class CnameInstance Inherits InstanceBase Implements IInstance, IResource, IConstruct, IDependable
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
CnameInstance(Construct, string, ICnameInstanceProps) | Instance that is accessible using a domain name (CNAME). |
Properties
Cname | The domain name returned by DNS queries for the instance. |
InstanceId | The Id of the instance. |
PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Service | The Cloudmap service to which the instance is registered. |
Constructors
CnameInstance(Construct, string, ICnameInstanceProps)
Instance that is accessible using a domain name (CNAME).
public CnameInstance(Construct scope, string id, ICnameInstanceProps props)
Parameters
- scope Construct
- id string
- props ICnameInstanceProps
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"
});
Properties
Cname
The domain name returned by DNS queries for the instance.
public virtual string Cname { get; }
Property Value
Remarks
Resource: AWS::ServiceDiscovery::Instance
ExampleMetadata: fixture=_generated
InstanceId
The Id of the instance.
public override string InstanceId { get; }
Property Value
Overrides
Remarks
Resource: AWS::ServiceDiscovery::Instance
ExampleMetadata: fixture=_generated
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::ServiceDiscovery::Instance
ExampleMetadata: fixture=_generated
Service
The Cloudmap service to which the instance is registered.
public override IService Service { get; }
Property Value
Overrides
Remarks
Resource: AWS::ServiceDiscovery::Instance
ExampleMetadata: fixture=_generated