Interface ICfnInstanceProps
Properties for defining a CfnInstance
.
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnInstanceProps
Syntax (vb)
Public Interface 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
Properties
InstanceAttributes | A string map that contains the following information for the service that you specify in |
InstanceId | |
ServiceId | The ID of the service that you want to use for settings for the instance. |
Properties
InstanceAttributes
A string map that contains the following information for the service that you specify in ServiceId
:.
object InstanceAttributes { get; }
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
virtual string InstanceId { get; }
Property Value
System.String
Remarks
ServiceId
The ID of the service that you want to use for settings for the instance.
string ServiceId { get; }
Property Value
System.String