Show / Hide Table of Contents

Class CnameInstance

Instance that is accessible using a domain name (CNAME).

Inheritance
object
Resource
InstanceBase
CnameInstance
Implements
IInstance
IResource
IConstruct
IDependable
Inherited Members
InstanceBase.UniqueInstanceId()
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

string

Remarks

Resource: AWS::ServiceDiscovery::Instance

ExampleMetadata: fixture=_generated

InstanceId

The Id of the instance.

public override string InstanceId { get; }
Property Value

string

Overrides
InstanceBase.InstanceId
Remarks

Resource: AWS::ServiceDiscovery::Instance

ExampleMetadata: fixture=_generated

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

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

IService

Overrides
InstanceBase.Service
Remarks

Resource: AWS::ServiceDiscovery::Instance

ExampleMetadata: fixture=_generated

Implements

IInstance
IResource
Constructs.IConstruct
Constructs.IDependable
Back to top Generated by DocFX