Class CfnInstanceMixinProps
Properties for CfnInstancePropsMixin.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.ServiceDiscovery
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnInstanceMixinProps : ICfnInstanceMixinProps
Syntax (vb)
Public Class CfnInstanceMixinProps Implements ICfnInstanceMixinProps
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.CfnPropertyMixins.AWS.ServiceDiscovery;
var instanceAttributes;
var cfnInstanceMixinProps = new CfnInstanceMixinProps {
InstanceAttributes = instanceAttributes,
InstanceId = "instanceId",
ServiceId = "serviceId"
};
Synopsis
Constructors
| CfnInstanceMixinProps() | Properties for CfnInstancePropsMixin. |
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 or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance. |
Constructors
CfnInstanceMixinProps()
Properties for CfnInstancePropsMixin.
public CfnInstanceMixinProps()
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.CfnPropertyMixins.AWS.ServiceDiscovery;
var instanceAttributes;
var cfnInstanceMixinProps = new CfnInstanceMixinProps {
InstanceAttributes = instanceAttributes,
InstanceId = "instanceId",
ServiceId = "serviceId"
};
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
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
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 or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance.
public string? ServiceId { get; set; }
Property Value
Remarks
For services created in a shared namespace, specify the service ARN. For more information about shared namespaces, see Cross-account AWS Cloud Map namespace sharing in the AWS Cloud Map Developer Guide .