Class CfnInstanceProps
Properties for defining a CfnInstance
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.AWS.ServiceDiscovery.dll
Syntax (csharp)
public class CfnInstanceProps : Object, ICfnInstanceProps
Syntax (vb)
Public Class CfnInstanceProps
Inherits Object
Implements ICfnInstanceProps
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;
var instanceAttributes;
var cfnInstanceProps = new CfnInstanceProps {
InstanceAttributes = instanceAttributes,
ServiceId = "serviceId",
// the properties below are optional
InstanceId = "instanceId"
};
Synopsis
Constructors
CfnInstanceProps() |
Properties
InstanceAttributes | A string map that contains the following information for the service that you specify in |
InstanceId | An identifier that you want to associate with the instance. Note the following:. |
ServiceId | The ID of the service that you want to use for settings for the instance. |
Constructors
CfnInstanceProps()
public CfnInstanceProps()
Properties
InstanceAttributes
A string map that contains the following information for the service that you specify in ServiceId
:.
public object InstanceAttributes { get; set; }
Property Value
System.Object
Remarks
Supported attribute keys include the following:
Note the following:
This value is required if the service specified by ServiceId
includes settings for an CNAME
record.
This value is required if the service specified by ServiceId
includes settings for an A
record. If the service includes settings for an SRV
record, you must specify a value for AWS_INSTANCE_IPV4
, AWS_INSTANCE_IPV6
, or both.
This value is required if the service specified by ServiceId
includes settings for an AAAA
record. If the service includes settings for an SRV
record, you must specify a value for AWS_INSTANCE_IPV4
, AWS_INSTANCE_IPV6
, or both.
If the service includes HealthCheckConfig
, the port on the endpoint that you want Route 53 to send requests to.
This value is required if you specified settings for an SRV
record or a Route 53 health check when you created the service.
InstanceId
An identifier that you want to associate with the instance. Note the following:.
public string InstanceId { get; set; }
Property Value
System.String
Remarks
The health check isn't deleted immediately, so it will still appear for a while if you submit a <code>ListHealthChecks</code> request, for example.
Do not include sensitive information in <code>InstanceId</code> if the namespace is discoverable by public DNS queries and any <code>Type</code> member of <code>DnsRecord</code> for the service contains <code>SRV</code> because the <code>InstanceId</code> is discoverable by public DNS queries.
ServiceId
The ID of the service that you want to use for settings for the instance.
public string ServiceId { get; set; }
Property Value
System.String