Class CnameInstanceProps
Inheritance
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CnameInstanceProps : Object, ICnameInstanceProps, ICnameInstanceBaseProps, IBaseInstanceProps
Syntax (vb)
Public Class CnameInstanceProps
Inherits Object
Implements ICnameInstanceProps, ICnameInstanceBaseProps, IBaseInstanceProps
Remarks
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 cnameInstanceProps = new CnameInstanceProps {
InstanceCname = "instanceCname",
Service = service,
// the properties below are optional
CustomAttributes = new Dictionary<string, string> {
{ "customAttributesKey", "customAttributes" }
},
InstanceId = "instanceId"
};
Synopsis
Constructors
CnameInstanceProps() |
Properties
CustomAttributes | Custom attributes of the instance. |
InstanceCname | If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com. This value is required if the service specified by ServiceId includes settings for an CNAME record. |
InstanceId | The id of the instance resource. |
Service | The Cloudmap service this resource is registered to. |
Constructors
CnameInstanceProps()
public CnameInstanceProps()
Properties
CustomAttributes
Custom attributes of the instance.
public IDictionary<string, string> CustomAttributes { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: none
InstanceCname
If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com. This value is required if the service specified by ServiceId includes settings for an CNAME record.
public string InstanceCname { get; set; }
Property Value
System.String
InstanceId
The id of the instance resource.
public string InstanceId { get; set; }
Property Value
System.String
Remarks
Default: Automatically generated name
Service
The Cloudmap service this resource is registered to.
public IService Service { get; set; }
Property Value