Class AliasTargetInstanceProps
Inheritance
System.Object
AliasTargetInstanceProps
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AliasTargetInstanceProps : Object, IAliasTargetInstanceProps, IBaseInstanceProps
Syntax (vb)
Public Class AliasTargetInstanceProps
Inherits Object
Implements IAliasTargetInstanceProps, 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 aliasTargetInstanceProps = new AliasTargetInstanceProps {
DnsName = "dnsName",
Service = service,
// the properties below are optional
CustomAttributes = new Dictionary<string, string> {
{ "customAttributesKey", "customAttributes" }
},
InstanceId = "instanceId"
};
Synopsis
Constructors
AliasTargetInstanceProps() |
Properties
CustomAttributes | Custom attributes of the instance. |
DnsName | DNS name of the target. |
InstanceId | The id of the instance resource. |
Service | The Cloudmap service this resource is registered to. |
Constructors
AliasTargetInstanceProps()
public AliasTargetInstanceProps()
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
DnsName
DNS name of the target.
public string DnsName { 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