Class AliasTargetInstance
Instance that uses Route 53 Alias record type.
Inherited Members
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AliasTargetInstance : InstanceBase, IInstance, IResource
Syntax (vb)
Public Class AliasTargetInstance
Inherits InstanceBase
Implements IInstance, IResource
Remarks
Currently, the only resource types supported are Elastic Load Balancers.
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 aliasTargetInstance = new AliasTargetInstance(this, "MyAliasTargetInstance", new AliasTargetInstanceProps {
DnsName = "dnsName",
Service = service,
// the properties below are optional
CustomAttributes = new Dictionary<string, string> {
{ "customAttributesKey", "customAttributes" }
},
InstanceId = "instanceId"
});
Synopsis
Constructors
AliasTargetInstance(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AliasTargetInstance(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AliasTargetInstance(Construct, String, IAliasTargetInstanceProps) |
Properties
DnsName | The Route53 DNS name of the alias target. |
InstanceId | The Id of the instance. |
Service | The Cloudmap service to which the instance is registered. |
Constructors
AliasTargetInstance(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AliasTargetInstance(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AliasTargetInstance(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AliasTargetInstance(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AliasTargetInstance(Construct, String, IAliasTargetInstanceProps)
public AliasTargetInstance(Construct scope, string id, IAliasTargetInstanceProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IAliasTargetInstanceProps
Properties
DnsName
The Route53 DNS name of the alias target.
public virtual string DnsName { get; }
Property Value
System.String
InstanceId
The Id of the instance.
public override string InstanceId { get; }
Property Value
System.String
Overrides
Service
The Cloudmap service to which the instance is registered.
public override IService Service { get; }
Property Value