From 5bfe554e73eabcb636103b3826bb699440e1cb24 Mon Sep 17 00:00:00 2001
From: awstools Discovers registered instances for a specified namespace and service. You can use
- *
+DiscoverInstancesRevision
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/classes/discoverinstancesrevisioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/interfaces/discoverinstancesrevisioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/interfaces/discoverinstancesrevisioncommandoutput.html)
+
diff --git a/clients/client-servicediscovery/src/ServiceDiscovery.ts b/clients/client-servicediscovery/src/ServiceDiscovery.ts
index 5862c9727512..6342b29e651e 100644
--- a/clients/client-servicediscovery/src/ServiceDiscovery.ts
+++ b/clients/client-servicediscovery/src/ServiceDiscovery.ts
@@ -42,6 +42,11 @@ import {
DiscoverInstancesCommandInput,
DiscoverInstancesCommandOutput,
} from "./commands/DiscoverInstancesCommand";
+import {
+ DiscoverInstancesRevisionCommand,
+ DiscoverInstancesRevisionCommandInput,
+ DiscoverInstancesRevisionCommandOutput,
+} from "./commands/DiscoverInstancesRevisionCommand";
import { GetInstanceCommand, GetInstanceCommandInput, GetInstanceCommandOutput } from "./commands/GetInstanceCommand";
import {
GetInstancesHealthStatusCommand,
@@ -131,6 +136,7 @@ const commands = {
DeleteServiceCommand,
DeregisterInstanceCommand,
DiscoverInstancesCommand,
+ DiscoverInstancesRevisionCommand,
GetInstanceCommand,
GetInstancesHealthStatusCommand,
GetNamespaceCommand,
@@ -273,6 +279,23 @@ export interface ServiceDiscovery {
cb: (err: any, data?: DiscoverInstancesCommandOutput) => void
): void;
+ /**
+ * @see {@link DiscoverInstancesRevisionCommand}
+ */
+ discoverInstancesRevision(
+ args: DiscoverInstancesRevisionCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise
DiscoverInstances
to discover instances for any type of namespace. For public and
- * private DNS namespaces, you can also use DNS queries to discover instances.DiscoverInstances
to discover instances for any type of namespace.
+ * DiscoverInstances
returns a randomized list of instances allowing customers to
+ * distribute traffic evenly across instances. For public and private DNS namespaces, you can also
+ * use DNS queries to discover instances.
Discovers the increasing revision associated with an instance.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ServiceDiscoveryClient, DiscoverInstancesRevisionCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import + * // const { ServiceDiscoveryClient, DiscoverInstancesRevisionCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import + * const client = new ServiceDiscoveryClient(config); + * const input = { // DiscoverInstancesRevisionRequest + * NamespaceName: "STRING_VALUE", // required + * ServiceName: "STRING_VALUE", // required + * }; + * const command = new DiscoverInstancesRevisionCommand(input); + * const response = await client.send(command); + * // { // DiscoverInstancesRevisionResponse + * // InstancesRevision: Number("long"), + * // }; + * + * ``` + * + * @param DiscoverInstancesRevisionCommandInput - {@link DiscoverInstancesRevisionCommandInput} + * @returns {@link DiscoverInstancesRevisionCommandOutput} + * @see {@link DiscoverInstancesRevisionCommandInput} for command's `input` shape. + * @see {@link DiscoverInstancesRevisionCommandOutput} for command's `response` shape. + * @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape. + * + * @throws {@link InvalidInput} (client fault) + *One or more specified values aren't valid. For example, a required value might be missing, a + * numeric value might be outside the allowed range, or a string value might exceed length + * constraints.
+ * + * @throws {@link NamespaceNotFound} (client fault) + *No namespace exists with the specified ID.
+ * + * @throws {@link RequestLimitExceeded} (client fault) + *The operation can't be completed because you've reached the quota for the number of + * requests. For more information, see Cloud Map API request throttling quota in the + * Cloud Map Developer Guide.
+ * + * @throws {@link ServiceNotFound} (client fault) + *No service exists with the specified ID.
+ * + * @throws {@link ServiceDiscoveryServiceException} + *Base exception class for all service exceptions from ServiceDiscovery service.
+ * + */ +export class DiscoverInstancesRevisionCommand extends $Command< + DiscoverInstancesRevisionCommandInput, + DiscoverInstancesRevisionCommandOutput, + ServiceDiscoveryClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DiscoverInstancesRevisionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackGets information about any operation that returns an operation ID in the response, such as a
- * CreateService
request.
CreateHttpNamespace
request.
* To get a list of operations that match specified criteria, see ListOperations.
*The name that you want to assign to this namespace.
*Do not include sensitive information in the name. The name is publicly available using DNS queries.
+ *Do not include sensitive information in the name. The name is publicly available using DNS + * queries.
*The name that you want to assign to the service.
*Do not include sensitive information in the name if the namespace is discoverable by public DNS queries.
+ *Do not include sensitive information in the name if the namespace is discoverable by public + * DNS queries.
*If you want Cloud Map to create an SRV
record when you register an instance and you're using a
- * system that requires a specific SRV
format, such as HAProxy, specify the following for Name
:
If you want Cloud Map to create an SRV
record when you register an instance
+ * and you're using a system that requires a specific SRV
format, such as HAProxy, specify the following for
+ * Name
:
Start the name with an underscore (_), such as _exampleservice
.
The increasing revision associated to the response Instances list. If a new instance is
+ * registered or deregistered, the InstancesRevision
updates. The health status updates
+ * don't update InstancesRevision
.
The HttpName
name of the namespace. It's found in the
+ * HttpProperties
member of the Properties
member of the
+ * namespace.
The name of the service that you specified when you registered the instance.
+ */ + ServiceName: string | undefined; +} + +/** + * @public + */ +export interface DiscoverInstancesRevisionResponse { + /** + * @public + *The increasing revision associated to the response Instances list. If a new instance is
+ * registered or deregistered, the InstancesRevision
updates. The health status updates
+ * don't update InstancesRevision
.
A complex type that contains information about changes to the Route 53 DNS records that @@ -1680,8 +1723,8 @@ export interface Instance { *
Do not include sensitive information in the attributes if the namespace is discoverable by public DNS - * queries.
+ *Do not include sensitive information in the attributes if the namespace is discoverable by + * public DNS queries.
*Supported attribute keys include the following:
*Specify the operator that you want to use to determine whether a namespace matches the
- * specified value. Valid values for Condition
are one of the following.
Condition
are one of the following.
*
* EQ
: When you specify EQ
for Condition
, you can
- * specify only one value. EQ
is supported for TYPE
, NAME
,
- * and HTTP_NAME
. EQ
is the default condition and can be
- * omitted.
EQ
is supported for TYPE
, NAME
,
+ * and HTTP_NAME
. EQ
is the default condition and can be omitted.
*
* BEGINS_WITH
: When you specify BEGINS_WITH
for
- * Condition
, you can specify only one value. BEGINS_WITH
is supported
- * for TYPE
, NAME
, and HTTP_NAME
.
Condition
, you can specify only one value. BEGINS_WITH
is supported
+ * for TYPE
, NAME
, and HTTP_NAME
.
* Do not include sensitive information in InstanceId
if the namespace is discoverable by public DNS
- * queries and any Type
member of DnsRecord
for the service contains SRV
because
- * the InstanceId
is discoverable by public DNS queries.
Do not include sensitive information in InstanceId
if the namespace is
+ * discoverable by public DNS queries and any Type
member of DnsRecord
+ * for the service contains SRV
because the InstanceId
is discoverable by
+ * public DNS queries.
Do not include sensitive information in the attributes if the namespace is discoverable by public DNS - * queries.
+ *Do not include sensitive information in the attributes if the namespace is discoverable by + * public DNS queries.
*Supported attribute keys include the following:
*Auto naming currently doesn't support creating alias records that route traffic to + *
Cloud Map currently doesn't support creating alias records that route traffic to * Amazon Web Services resources other than Elastic Load Balancing load balancers.
*The name that you want to assign to this namespace.
\nDo not include sensitive information in the name. The name is publicly available using DNS queries.
\nThe name that you want to assign to this namespace.
\nDo not include sensitive information in the name. The name is publicly available using DNS\n queries.
\nThe name that you want to assign to the service.
\nDo not include sensitive information in the name if the namespace is discoverable by public DNS queries.
\nIf you want Cloud Map to create an SRV
record when you register an instance and you're using a\n system that requires a specific SRV
format, such as HAProxy, specify the following for Name
:
Start the name with an underscore (_), such as _exampleservice
.
End the name with ._protocol, such as ._tcp
.
When you register an instance, Cloud Map creates an SRV
record and assigns a\n name to the record by concatenating the service name and the namespace name (for example,
\n _exampleservice._tcp.example.com
).
For services that are accessible by DNS queries, you can't create multiple services with\n names that differ only by case (such as EXAMPLE and example). Otherwise, these services have the\n same DNS name and can't be distinguished. However, if you use a namespace that's only accessible\n by API calls, then you can create services that with names that differ only by case.
\nThe name that you want to assign to the service.
\nDo not include sensitive information in the name if the namespace is discoverable by public\n DNS queries.
\nIf you want Cloud Map to create an SRV
record when you register an instance\n and you're using a system that requires a specific SRV
format, such as HAProxy, specify the following for\n Name
:
Start the name with an underscore (_), such as _exampleservice
.
End the name with ._protocol, such as ._tcp
.
When you register an instance, Cloud Map creates an SRV
record and assigns a\n name to the record by concatenating the service name and the namespace name (for example,
\n _exampleservice._tcp.example.com
).
For services that are accessible by DNS queries, you can't create multiple services with\n names that differ only by case (such as EXAMPLE and example). Otherwise, these services have the\n same DNS name and can't be distinguished. However, if you use a namespace that's only accessible\n by API calls, then you can create services that with names that differ only by case.
\nDiscovers registered instances for a specified namespace and service. You can use\n DiscoverInstances
to discover instances for any type of namespace. For public and\n private DNS namespaces, you can also use DNS queries to discover instances.
Discovers registered instances for a specified namespace and service. You can use\n DiscoverInstances
to discover instances for any type of namespace.\n DiscoverInstances
returns a randomized list of instances allowing customers to\n distribute traffic evenly across instances. For public and private DNS namespaces, you can also\n use DNS queries to discover instances.
A complex type that contains one HttpInstanceSummary
for each registered\n instance.
The increasing revision associated to the response Instances list. If a new instance is\n registered or deregistered, the InstancesRevision
updates. The health status updates\n don't update InstancesRevision
.
Discovers the increasing revision associated with an instance.
", + "smithy.api#endpoint": { + "hostPrefix": "data-" + } + } + }, + "com.amazonaws.servicediscovery#DiscoverInstancesRevisionRequest": { + "type": "structure", + "members": { + "NamespaceName": { + "target": "com.amazonaws.servicediscovery#NamespaceName", + "traits": { + "smithy.api#documentation": "The HttpName
name of the namespace. It's found in the\n HttpProperties
member of the Properties
member of the\n namespace.
The name of the service that you specified when you registered the instance.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.servicediscovery#DiscoverInstancesRevisionResponse": { + "type": "structure", + "members": { + "InstancesRevision": { + "target": "com.amazonaws.servicediscovery#Revision", + "traits": { + "smithy.api#documentation": "The increasing revision associated to the response Instances list. If a new instance is\n registered or deregistered, the InstancesRevision
updates. The health status updates\n don't update InstancesRevision
.
Gets information about any operation that returns an operation ID in the response, such as a\n CreateService
request.
To get a list of operations that match specified criteria, see ListOperations.
\nGets information about any operation that returns an operation ID in the response, such as a\n CreateHttpNamespace
request.
To get a list of operations that match specified criteria, see ListOperations.
\nA string map that contains the following information for the service that you specify in\n ServiceId
:
The attributes that apply to the records that are defined in the service.
\nFor each attribute, the applicable value.
\nDo not include sensitive information in the attributes if the namespace is discoverable by public DNS\n queries.
\nSupported attribute keys include the following:
\nIf you want Cloud Map to create a Route 53 alias record that routes traffic to an Elastic Load Balancing\n load balancer, specify the DNS name that's associated with the load balancer. For information\n about how to get the DNS name, see AliasTarget->DNSName in the Route 53 API Reference.
\nNote the following:
\nThe configuration for the service that's specified by ServiceId
must\n include settings for an A
record, an AAAA
record, or both.
In the service that's specified by ServiceId
, the value of\n RoutingPolicy
must be WEIGHTED
.
If the service that's specified by ServiceId
includes\n HealthCheckConfig
settings, Cloud Map creates the health check, but it won't\n associate the health check with the alias record.
Auto naming currently doesn't support creating alias records that route traffic to\n Amazon Web Services resources other than ELB load balancers.
\nIf you specify a value for AWS_ALIAS_DNS_NAME
, don't specify values for\n any of the AWS_INSTANCE
attributes.
\n HTTP namespaces only. The Amazon EC2 instance ID for the instance. The\n AWS_INSTANCE_IPV4
attribute contains the primary private IPv4 address.
If the service configuration includes HealthCheckCustomConfig
, you can\n optionally use AWS_INIT_HEALTH_STATUS
to specify the initial status of the custom\n health check, HEALTHY
or UNHEALTHY
. If you don't specify a value for\n AWS_INIT_HEALTH_STATUS
, the initial status is HEALTHY
.
If the service configuration includes a CNAME
record, the domain name that\n you want Route 53 to return in response to DNS queries (for example,\n example.com
).
This value is required if the service specified by ServiceId
includes\n settings for an CNAME
record.
If the service configuration includes an A
record, the IPv4 address that you\n want Route 53 to return in response to DNS queries (for example, 192.0.2.44
).
This value is required if the service specified by ServiceId
includes\n settings for an A
record. If the service includes settings for an\n SRV
record, you must specify a value for AWS_INSTANCE_IPV4
,\n AWS_INSTANCE_IPV6
, or both.
If the service configuration includes an AAAA
record, the IPv6 address that\n you want Route 53 to return in response to DNS queries (for example,\n 2001:0db8:85a3:0000:0000:abcd:0001:2345
).
This value is required if the service specified by ServiceId
includes\n settings for an AAAA
record. If the service includes settings for an\n SRV
record, you must specify a value for AWS_INSTANCE_IPV4
,\n AWS_INSTANCE_IPV6
, or both.
If the service includes an SRV
record, the value that you want Route 53 to\n return for the port.
If the service includes HealthCheckConfig
, the port on the endpoint that you\n want Route 53 to send requests to.
This value is required if you specified settings for an SRV
record or a\n Route 53 health check when you created the service.
A string map that contains the following information for the service that you specify in\n ServiceId
:
The attributes that apply to the records that are defined in the service.
\nFor each attribute, the applicable value.
\nDo not include sensitive information in the attributes if the namespace is discoverable by\n public DNS queries.
\nSupported attribute keys include the following:
\nIf you want Cloud Map to create a Route 53 alias record that routes traffic to an Elastic Load Balancing\n load balancer, specify the DNS name that's associated with the load balancer. For information\n about how to get the DNS name, see AliasTarget->DNSName in the Route 53 API Reference.
\nNote the following:
\nThe configuration for the service that's specified by ServiceId
must\n include settings for an A
record, an AAAA
record, or both.
In the service that's specified by ServiceId
, the value of\n RoutingPolicy
must be WEIGHTED
.
If the service that's specified by ServiceId
includes\n HealthCheckConfig
settings, Cloud Map creates the health check, but it won't\n associate the health check with the alias record.
Auto naming currently doesn't support creating alias records that route traffic to\n Amazon Web Services resources other than ELB load balancers.
\nIf you specify a value for AWS_ALIAS_DNS_NAME
, don't specify values for\n any of the AWS_INSTANCE
attributes.
\n HTTP namespaces only. The Amazon EC2 instance ID for the instance. The\n AWS_INSTANCE_IPV4
attribute contains the primary private IPv4 address.
If the service configuration includes HealthCheckCustomConfig
, you can\n optionally use AWS_INIT_HEALTH_STATUS
to specify the initial status of the custom\n health check, HEALTHY
or UNHEALTHY
. If you don't specify a value for\n AWS_INIT_HEALTH_STATUS
, the initial status is HEALTHY
.
If the service configuration includes a CNAME
record, the domain name that\n you want Route 53 to return in response to DNS queries (for example,\n example.com
).
This value is required if the service specified by ServiceId
includes\n settings for an CNAME
record.
If the service configuration includes an A
record, the IPv4 address that you\n want Route 53 to return in response to DNS queries (for example, 192.0.2.44
).
This value is required if the service specified by ServiceId
includes\n settings for an A
record. If the service includes settings for an\n SRV
record, you must specify a value for AWS_INSTANCE_IPV4
,\n AWS_INSTANCE_IPV6
, or both.
If the service configuration includes an AAAA
record, the IPv6 address that\n you want Route 53 to return in response to DNS queries (for example,\n 2001:0db8:85a3:0000:0000:abcd:0001:2345
).
This value is required if the service specified by ServiceId
includes\n settings for an AAAA
record. If the service includes settings for an\n SRV
record, you must specify a value for AWS_INSTANCE_IPV4
,\n AWS_INSTANCE_IPV6
, or both.
If the service includes an SRV
record, the value that you want Route 53 to\n return for the port.
If the service includes HealthCheckConfig
, the port on the endpoint that you\n want Route 53 to send requests to.
This value is required if you specified settings for an SRV
record or a\n Route 53 health check when you created the service.
Specify the operator that you want to use to determine whether a namespace matches the\n specified value. Valid values for Condition
are one of the following.
\n EQ
: When you specify EQ
for Condition
, you can\n specify only one value. EQ
is supported for TYPE
, NAME
,\n and HTTP_NAME
. EQ
is the default condition and can be\n omitted.
\n BEGINS_WITH
: When you specify BEGINS_WITH
for\n Condition
, you can specify only one value. BEGINS_WITH
is supported\n for TYPE
, NAME
, and HTTP_NAME
.
Specify the operator that you want to use to determine whether a namespace matches the\n specified value. Valid values for Condition
are one of the following.
\n EQ
: When you specify EQ
for Condition
, you can\n specify only one value. EQ
is supported for TYPE
, NAME
,\n and HTTP_NAME
. EQ
is the default condition and can be omitted.
\n BEGINS_WITH
: When you specify BEGINS_WITH
for\n Condition
, you can specify only one value. BEGINS_WITH
is supported\n for TYPE
, NAME
, and HTTP_NAME
.
An identifier that you want to associate with the instance. Note the following:
\nIf the service that's specified by ServiceId
includes settings for an\n SRV
record, the value of InstanceId
is automatically included as\n part of the value for the SRV
record. For more information, see DnsRecord >\n Type.
You can use this value to update an existing instance.
\nTo register a new instance, you must specify a value that's unique among instances that\n you register by using the same service.
\nIf you specify an existing InstanceId
and ServiceId
, Cloud Map\n updates the existing DNS records, if any. If there's also an existing health check, Cloud Map\n deletes the old health check and creates a new one.
The health check isn't deleted immediately, so it will still appear for a while if you\n submit a ListHealthChecks
request, for example.
Do not include sensitive information in InstanceId
if the namespace is discoverable by public DNS\n queries and any Type
member of DnsRecord
for the service contains SRV
because\n the InstanceId
is discoverable by public DNS queries.
An identifier that you want to associate with the instance. Note the following:
\nIf the service that's specified by ServiceId
includes settings for an\n SRV
record, the value of InstanceId
is automatically included as\n part of the value for the SRV
record. For more information, see DnsRecord >\n Type.
You can use this value to update an existing instance.
\nTo register a new instance, you must specify a value that's unique among instances that\n you register by using the same service.
\nIf you specify an existing InstanceId
and ServiceId
, Cloud Map\n updates the existing DNS records, if any. If there's also an existing health check, Cloud Map\n deletes the old health check and creates a new one.
The health check isn't deleted immediately, so it will still appear for a while if you\n submit a ListHealthChecks
request, for example.
Do not include sensitive information in InstanceId
if the namespace is\n discoverable by public DNS queries and any Type
member of DnsRecord
\n for the service contains SRV
because the InstanceId
is discoverable by\n public DNS queries.
A string map that contains the following information for the service that you specify in\n ServiceId
:
The attributes that apply to the records that are defined in the service.
\nFor each attribute, the applicable value.
\nDo not include sensitive information in the attributes if the namespace is discoverable by public DNS\n queries.
\nSupported attribute keys include the following:
\nIf you want Cloud Map to create an Amazon Route 53 alias record that routes traffic to an\n Elastic Load Balancing load balancer, specify the DNS name that's associated with the load balancer. For\n information about how to get the DNS name, see \"DNSName\" in the topic AliasTarget in the Route 53 API Reference.
\nNote the following:
\nThe configuration for the service that's specified by ServiceId
must\n include settings for an A
record, an AAAA
record, or both.
In the service that's specified by ServiceId
, the value of\n RoutingPolicy
must be WEIGHTED
.
If the service that's specified by ServiceId
includes\n HealthCheckConfig
settings, Cloud Map will create the Route 53 health check, but\n it doesn't associate the health check with the alias record.
Auto naming currently doesn't support creating alias records that route traffic to\n Amazon Web Services resources other than Elastic Load Balancing load balancers.
\nIf you specify a value for AWS_ALIAS_DNS_NAME
, don't specify values for\n any of the AWS_INSTANCE
attributes.
\n HTTP namespaces only. The Amazon EC2 instance ID for the instance. If the\n AWS_EC2_INSTANCE_ID
attribute is specified, then the only other attribute that\n can be specified is AWS_INIT_HEALTH_STATUS
. When the\n AWS_EC2_INSTANCE_ID
attribute is specified, then the\n AWS_INSTANCE_IPV4
attribute will be filled out with the primary private IPv4\n address.
If the service configuration includes HealthCheckCustomConfig
, you can\n optionally use AWS_INIT_HEALTH_STATUS
to specify the initial status of the custom\n health check, HEALTHY
or UNHEALTHY
. If you don't specify a value for\n AWS_INIT_HEALTH_STATUS
, the initial status is HEALTHY
.
If the service configuration includes a CNAME
record, the domain name that\n you want Route 53 to return in response to DNS queries (for example,\n example.com
).
This value is required if the service specified by ServiceId
includes\n settings for an CNAME
record.
If the service configuration includes an A
record, the IPv4 address that you\n want Route 53 to return in response to DNS queries (for example, 192.0.2.44
).
This value is required if the service specified by ServiceId
includes\n settings for an A
record. If the service includes settings for an\n SRV
record, you must specify a value for AWS_INSTANCE_IPV4
,\n AWS_INSTANCE_IPV6
, or both.
If the service configuration includes an AAAA
record, the IPv6 address that\n you want Route 53 to return in response to DNS queries (for example,\n 2001:0db8:85a3:0000:0000:abcd:0001:2345
).
This value is required if the service specified by ServiceId
includes\n settings for an AAAA
record. If the service includes settings for an\n SRV
record, you must specify a value for AWS_INSTANCE_IPV4
,\n AWS_INSTANCE_IPV6
, or both.
If the service includes an SRV
record, the value that you want Route 53 to\n return for the port.
If the service includes HealthCheckConfig
, the port on the endpoint that you\n want Route 53 to send requests to.
This value is required if you specified settings for an SRV
record or a\n Route 53 health check when you created the service.
You can add up to 30 custom attributes. For each key-value pair, the maximum length of\n the attribute name is 255 characters, and the maximum length of the attribute value is 1,024\n characters. The total size of all provided attributes (sum of all keys and values) must not\n exceed 5,000 characters.
\nA string map that contains the following information for the service that you specify in\n ServiceId
:
The attributes that apply to the records that are defined in the service.
\nFor each attribute, the applicable value.
\nDo not include sensitive information in the attributes if the namespace is discoverable by\n public DNS queries.
\nSupported attribute keys include the following:
\nIf you want Cloud Map to create an Amazon Route 53 alias record that routes traffic to an\n Elastic Load Balancing load balancer, specify the DNS name that's associated with the load balancer. For\n information about how to get the DNS name, see \"DNSName\" in the topic AliasTarget in the Route 53 API Reference.
\nNote the following:
\nThe configuration for the service that's specified by ServiceId
must\n include settings for an A
record, an AAAA
record, or both.
In the service that's specified by ServiceId
, the value of\n RoutingPolicy
must be WEIGHTED
.
If the service that's specified by ServiceId
includes\n HealthCheckConfig
settings, Cloud Map will create the Route 53 health check, but\n it doesn't associate the health check with the alias record.
Cloud Map currently doesn't support creating alias records that route traffic to\n Amazon Web Services resources other than Elastic Load Balancing load balancers.
\nIf you specify a value for AWS_ALIAS_DNS_NAME
, don't specify values for\n any of the AWS_INSTANCE
attributes.
\n HTTP namespaces only. The Amazon EC2 instance ID for the instance. If the\n AWS_EC2_INSTANCE_ID
attribute is specified, then the only other attribute that\n can be specified is AWS_INIT_HEALTH_STATUS
. When the\n AWS_EC2_INSTANCE_ID
attribute is specified, then the\n AWS_INSTANCE_IPV4
attribute will be filled out with the primary private IPv4\n address.
If the service configuration includes HealthCheckCustomConfig
, you can\n optionally use AWS_INIT_HEALTH_STATUS
to specify the initial status of the custom\n health check, HEALTHY
or UNHEALTHY
. If you don't specify a value for\n AWS_INIT_HEALTH_STATUS
, the initial status is HEALTHY
.
If the service configuration includes a CNAME
record, the domain name that\n you want Route 53 to return in response to DNS queries (for example,\n example.com
).
This value is required if the service specified by ServiceId
includes\n settings for an CNAME
record.
If the service configuration includes an A
record, the IPv4 address that you\n want Route 53 to return in response to DNS queries (for example, 192.0.2.44
).
This value is required if the service specified by ServiceId
includes\n settings for an A
record. If the service includes settings for an\n SRV
record, you must specify a value for AWS_INSTANCE_IPV4
,\n AWS_INSTANCE_IPV6
, or both.
If the service configuration includes an AAAA
record, the IPv6 address that\n you want Route 53 to return in response to DNS queries (for example,\n 2001:0db8:85a3:0000:0000:abcd:0001:2345
).
This value is required if the service specified by ServiceId
includes\n settings for an AAAA
record. If the service includes settings for an\n SRV
record, you must specify a value for AWS_INSTANCE_IPV4
,\n AWS_INSTANCE_IPV6
, or both.
If the service includes an SRV
record, the value that you want Route 53 to\n return for the port.
If the service includes HealthCheckConfig
, the port on the endpoint that you\n want Route 53 to send requests to.
This value is required if you specified settings for an SRV
record or a\n Route 53 health check when you created the service.
You can add up to 30 custom attributes. For each key-value pair, the maximum length of\n the attribute name is 255 characters, and the maximum length of the attribute value is 1,024\n characters. The total size of all provided attributes (sum of all keys and values) must not\n exceed 5,000 characters.
\n