{ "smithy": "2.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.servicediscovery#AWSAccountId": { "type": "string", "traits": { "smithy.api#length": { "min": 12, "max": 12 } } }, "com.amazonaws.servicediscovery#AmazonResourceName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1011 } } }, "com.amazonaws.servicediscovery#Arn": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 255 } } }, "com.amazonaws.servicediscovery#AttrKey": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 255 }, "smithy.api#pattern": "^[a-zA-Z0-9!-~]+$" } }, "com.amazonaws.servicediscovery#AttrValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 1024 }, "smithy.api#pattern": "^([a-zA-Z0-9!-~][ \\ta-zA-Z0-9!-~]*){0,1}[a-zA-Z0-9!-~]{0,1}$" } }, "com.amazonaws.servicediscovery#Attributes": { "type": "map", "key": { "target": "com.amazonaws.servicediscovery#AttrKey" }, "value": { "target": "com.amazonaws.servicediscovery#AttrValue" } }, "com.amazonaws.servicediscovery#Code": { "type": "string" }, "com.amazonaws.servicediscovery#CreateHttpNamespace": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#CreateHttpNamespaceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#CreateHttpNamespaceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#DuplicateRequest" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#NamespaceAlreadyExists" }, { "target": "com.amazonaws.servicediscovery#ResourceLimitExceeded" }, { "target": "com.amazonaws.servicediscovery#TooManyTagsException" } ], "traits": { "smithy.api#documentation": "
Creates an HTTP namespace. Service instances registered using an HTTP namespace can be\n discovered using a DiscoverInstances request but can't be discovered using\n DNS.
For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see Cloud Map quotas in the\n Cloud Map Developer Guide.
", "smithy.api#examples": [ { "title": "CreateHttpNamespace example", "documentation": "This example creates an HTTP namespace.", "input": { "CreatorRequestId": "example-creator-request-id-0001", "Name": "example-http.com", "Description": "Example.com AWS Cloud Map HTTP Namespace" }, "output": { "OperationId": "httpvoqozuhfet5kzxoxg-a-response-example" } } ] } }, "com.amazonaws.servicediscovery#CreateHttpNamespaceRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.servicediscovery#NamespaceNameHttp", "traits": { "smithy.api#documentation": "The name that you want to assign to this namespace.
", "smithy.api#required": {} } }, "CreatorRequestId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "A unique string that identifies the request and that allows failed\n CreateHttpNamespace requests to be retried without the risk of running the\n operation twice. CreatorRequestId can be any unique string (for example, a date/time\n stamp).
A description for the namespace.
" } }, "Tags": { "target": "com.amazonaws.servicediscovery#TagList", "traits": { "smithy.api#documentation": "The tags to add to the namespace. Each tag consists of a key and an optional value that you\n define. Tags keys can be up to 128 characters in length, and tag values can be up to 256\n characters in length.
" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#CreateHttpNamespaceResponse": { "type": "structure", "members": { "OperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "A value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#CreatePrivateDnsNamespace": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#CreatePrivateDnsNamespaceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#CreatePrivateDnsNamespaceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#DuplicateRequest" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#NamespaceAlreadyExists" }, { "target": "com.amazonaws.servicediscovery#ResourceLimitExceeded" }, { "target": "com.amazonaws.servicediscovery#TooManyTagsException" } ], "traits": { "smithy.api#documentation": "Creates a private namespace based on DNS, which is visible only inside a specified Amazon\n VPC. The namespace defines your service naming scheme. For example, if you name your namespace\n example.com and name your service backend, the resulting DNS name for\n the service is backend.example.com. Service instances that are registered using a\n private DNS namespace can be discovered using either a DiscoverInstances request or\n using DNS. For the current quota on the number of namespaces that you can create using the same\n Amazon Web Services account, see Cloud Map quotas in the\n Cloud Map Developer Guide.
The name that you want to assign to this namespace. When you create a private DNS namespace,\n Cloud Map automatically creates an Amazon Route\u00a053 private hosted zone that has the same name as the\n namespace.
", "smithy.api#required": {} } }, "CreatorRequestId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "A unique string that identifies the request and that allows failed\n CreatePrivateDnsNamespace requests to be retried without the risk of running the\n operation twice. CreatorRequestId can be any unique string (for example, a\n date/timestamp).
A description for the namespace.
" } }, "Vpc": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID of the Amazon VPC that you want to associate the namespace with.
", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.servicediscovery#TagList", "traits": { "smithy.api#documentation": "The tags to add to the namespace. Each tag consists of a key and an optional value that you\n define. Tags keys can be up to 128 characters in length, and tag values can be up to 256\n characters in length.
" } }, "Properties": { "target": "com.amazonaws.servicediscovery#PrivateDnsNamespaceProperties", "traits": { "smithy.api#documentation": "Properties for the\n private DNS namespace.
" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#CreatePrivateDnsNamespaceResponse": { "type": "structure", "members": { "OperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "A value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#CreatePublicDnsNamespace": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#CreatePublicDnsNamespaceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#CreatePublicDnsNamespaceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#DuplicateRequest" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#NamespaceAlreadyExists" }, { "target": "com.amazonaws.servicediscovery#ResourceLimitExceeded" }, { "target": "com.amazonaws.servicediscovery#TooManyTagsException" } ], "traits": { "smithy.api#documentation": "Creates a public namespace based on DNS, which is visible on the internet. The namespace\n defines your service naming scheme. For example, if you name your namespace\n example.com and name your service backend, the resulting DNS name for\n the service is backend.example.com. You can discover instances that were registered\n with a public DNS namespace by using either a DiscoverInstances request or using\n DNS. For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see Cloud Map quotas in the\n Cloud Map Developer Guide.
The CreatePublicDnsNamespace API operation is not supported in the Amazon Web Services GovCloud (US) Regions.
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\n queries.
\nA unique string that identifies the request and that allows failed\n CreatePublicDnsNamespace requests to be retried without the risk of running the\n operation twice. CreatorRequestId can be any unique string (for example, a\n date/timestamp).
A description for the namespace.
" } }, "Tags": { "target": "com.amazonaws.servicediscovery#TagList", "traits": { "smithy.api#documentation": "The tags to add to the namespace. Each tag consists of a key and an optional value that you\n define. Tags keys can be up to 128 characters in length, and tag values can be up to 256\n characters in length.
" } }, "Properties": { "target": "com.amazonaws.servicediscovery#PublicDnsNamespaceProperties", "traits": { "smithy.api#documentation": "Properties for the\n public DNS namespace.
" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#CreatePublicDnsNamespaceResponse": { "type": "structure", "members": { "OperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "A value that you can use to determine whether the request completed successfully. To get the\n status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#CreateService": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#CreateServiceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#CreateServiceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#NamespaceNotFound" }, { "target": "com.amazonaws.servicediscovery#ResourceLimitExceeded" }, { "target": "com.amazonaws.servicediscovery#ServiceAlreadyExists" }, { "target": "com.amazonaws.servicediscovery#TooManyTagsException" } ], "traits": { "smithy.api#documentation": "Creates a service. This action defines the configuration for the following entities:
\nFor public and private DNS namespaces, one of the following combinations of DNS records in\n Amazon Route\u00a053:
\n\n A\n
\n AAAA\n
\n A and AAAA\n
\n SRV\n
\n CNAME\n
Optionally, a health check
\nAfter you create the service, you can submit a RegisterInstance request, and\n Cloud Map uses the values in the configuration to create the specified entities.
\nFor the current quota on the number of instances that you can register using the same\n namespace and using the same service, see Cloud Map quotas in the\n Cloud Map Developer Guide.
", "smithy.api#examples": [ { "title": "Example: Create service", "documentation": "Example: Create service", "input": { "Name": "myservice", "NamespaceId": "ns-ylexjili4cdxy3xm", "DnsConfig": { "NamespaceId": "ns-ylexjili4cdxy3xm", "RoutingPolicy": "MULTIVALUE", "DnsRecords": [ { "Type": "A", "TTL": 60 } ] }, "CreatorRequestId": "567c1193-6b00-4308-bd57-ad38a8822d25" }, "output": { "Service": { "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita", "CreateDate": 1587081768.334, "CreatorRequestId": "567c1193-6b00-4308-bd57-ad38a8822d25", "CreatedByAccount": "123456789012", "DnsConfig": { "DnsRecords": [ { "TTL": 60, "Type": "A" } ], "NamespaceId": "ns-ylexjili4cdxy3xm", "RoutingPolicy": "MULTIVALUE" }, "Id": "srv-p5zdwlg5uvvzjita", "InstanceCount": 0, "Name": "myservice", "NamespaceId": "ns-ylexjili4cdxy3xm", "ResourceOwner": "123456789012", "Type": "DNS_HTTP" } } }, { "title": "Create service using namespace ARN", "documentation": "Namespace sharee creates a service using a namespace ARN instead of namespace ID, useful when working with shared namespaces.", "input": { "Name": "example-service", "NamespaceId": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678", "Description": "Example service using namespace ARN", "DnsConfig": { "DnsRecords": [ { "Type": "A", "TTL": 300 } ], "RoutingPolicy": "MULTIVALUE" } }, "output": { "Service": { "Id": "srv-abcd1234xmpl5678", "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678", "ResourceOwner": "123456789012", "Name": "example-service", "NamespaceId": "ns-abcd1234xmpl5678", "Description": "Example service using namespace ARN", "InstanceCount": 0, "DnsConfig": { "NamespaceId": "ns-abcd1234xmpl5678", "RoutingPolicy": "MULTIVALUE", "DnsRecords": [ { "Type": "A", "TTL": 300 } ] }, "Type": "DNS_HTTP", "CreateDate": 1705161600.0, "CreatorRequestId": "abcd1234-xmpl-5678-9012-abcd1234xmpl", "CreatedByAccount": "111122223333" } } } ] } }, "com.amazonaws.servicediscovery#CreateServiceRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.servicediscovery#ServiceName", "traits": { "smithy.api#documentation": "The 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.
\nThe ID or Amazon Resource Name (ARN) of the namespace that you want to use to create the service. For\n namespaces shared with your Amazon Web Services account, specify the namespace ARN. For more information\n about shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
" } }, "CreatorRequestId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "A unique string that identifies the request and that allows failed\n CreateService requests to be retried without the risk of running the operation\n twice. CreatorRequestId can be any unique string (for example, a\n date/timestamp).
A description for the service.
" } }, "DnsConfig": { "target": "com.amazonaws.servicediscovery#DnsConfig", "traits": { "smithy.api#documentation": "A complex type that contains information about the Amazon Route\u00a053 records that you want\n Cloud Map to create when you register an instance.
" } }, "HealthCheckConfig": { "target": "com.amazonaws.servicediscovery#HealthCheckConfig", "traits": { "smithy.api#documentation": "\n Public DNS and HTTP namespaces only. A complex type that contains\n settings for an optional Route\u00a053 health check. If you specify settings for a health check,\n Cloud Map associates the health check with all the Route\u00a053 DNS records that you specify in\n DnsConfig.
If you specify a health check configuration, you can specify either\n HealthCheckCustomConfig or HealthCheckConfig but not both.
For information about the charges for health checks, see Cloud Map Pricing.
" } }, "HealthCheckCustomConfig": { "target": "com.amazonaws.servicediscovery#HealthCheckCustomConfig", "traits": { "smithy.api#documentation": "A complex type that contains information about an optional custom health check.
\nIf you specify a health check configuration, you can specify either\n HealthCheckCustomConfig or HealthCheckConfig but not both.
You can't add, update, or delete a HealthCheckCustomConfig configuration from\n an existing service.
The tags to add to the service. Each tag consists of a key and an optional value that you\n define. Tags keys can be up to 128 characters in length, and tag values can be up to 256\n characters in length.
" } }, "Type": { "target": "com.amazonaws.servicediscovery#ServiceTypeOption", "traits": { "smithy.api#documentation": "If present, specifies that the service instances are only discoverable using the\n DiscoverInstances API operation. No DNS records is registered for the service\n instances. The only valid value is HTTP.
A complex type that contains information about the new service.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#CustomHealthNotFound": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The health check for the instance that's specified by ServiceId and\n InstanceId isn't a custom health check.
Deletes a namespace from the current account. If the namespace still contains one or more\n services, the request fails.
", "smithy.api#examples": [ { "title": "Example: Delete namespace", "documentation": "Example: Delete namespace", "input": { "Id": "ns-ylexjili4cdxy3xm" }, "output": { "OperationId": "abcd1234-xmpl-5678-9012-abcd1234xmplabcd" } }, { "title": "Delete namespace using namespace ARN", "documentation": "Deletes a namespace using a namespace ARN instead of namespace ID, useful when working with shared namespaces.", "input": { "Id": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678" }, "output": { "OperationId": "abcd1234-xmpl-5678-9012-abcd1234xmplabcd" } } ] } }, "com.amazonaws.servicediscovery#DeleteNamespaceRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the namespace that you want to delete.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#DeleteNamespaceResponse": { "type": "structure", "members": { "OperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "A value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#DeleteService": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#DeleteServiceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#DeleteServiceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ResourceInUse" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Deletes a specified service and all associated service attributes. If the service still\n contains one or more registered instances, the request fails.
", "smithy.api#examples": [ { "title": "Example: Delete service", "documentation": "Example: Delete service", "input": { "Id": "srv-p5zdwlg5uvvzjita" }, "output": {} }, { "title": "Delete service using service ARN", "documentation": "Deletes a service using a service ARN instead of service ID, useful when working with shared namespaces.", "input": { "Id": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" }, "output": {} } ] } }, "com.amazonaws.servicediscovery#DeleteServiceAttributes": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#DeleteServiceAttributesRequest" }, "output": { "target": "com.amazonaws.servicediscovery#DeleteServiceAttributesResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Deletes specific attributes associated with a service.
", "smithy.api#examples": [ { "title": "DeleteServiceAttributes example", "documentation": "Example: Delete service attribute by providing attribute key and service ID", "input": { "Attributes": [ "port" ], "ServiceId": "srv-e4anhexample0004" }, "output": {} }, { "title": "Delete service attributes using service ARN", "documentation": "Deletes service attributes using a service ARN instead of service ID, useful for cross-account scenarios or when working with shared namespaces.", "input": { "ServiceId": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678", "Attributes": [ "Port" ] }, "output": {} } ] } }, "com.amazonaws.servicediscovery#DeleteServiceAttributesRequest": { "type": "structure", "members": { "ServiceId": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service from which the attributes will be deleted. For services\n created in a namespace shared with your Amazon Web Services account, specify the service ARN. For more\n information about shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
", "smithy.api#required": {} } }, "Attributes": { "target": "com.amazonaws.servicediscovery#ServiceAttributeKeyList", "traits": { "smithy.api#documentation": "A list of keys corresponding to each attribute that you want to delete.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#DeleteServiceAttributesResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#DeleteServiceRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that you want to delete. If the namespace associated with\n the service is shared with your Amazon Web Services account, specify the service ARN. For more information\n about shared namespaces, see Cross-account Cloud Map namespace\n sharing.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#DeleteServiceResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#DeregisterInstance": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#DeregisterInstanceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#DeregisterInstanceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#DuplicateRequest" }, { "target": "com.amazonaws.servicediscovery#InstanceNotFound" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ResourceInUse" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Deletes the Amazon Route\u00a053 DNS records and health check, if any, that Cloud Map created for the\n specified instance.
", "smithy.api#examples": [ { "title": "Example: Deregister a service instance", "documentation": "Example: Deregister a service instance", "input": { "ServiceId": "srv-p5zdwlg5uvvzjita", "InstanceId": "myservice-53" }, "output": { "OperationId": "4yejorelbukcjzpnr6tlmrghsjwpngf4-k98rnaiq" } }, { "title": "Deregister instance using service ARN", "documentation": "Deregisters an instance using a service ARN instead of service ID, useful when working with shared namespaces.", "input": { "InstanceId": "i-abcd1234xmpl5678", "ServiceId": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" }, "output": { "OperationId": "abcd1234-xmpl-5678-9012-abcd1234xmpl" } } ] } }, "com.amazonaws.servicediscovery#DeregisterInstanceRequest": { "type": "structure", "members": { "ServiceId": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that the instance is associated with. If the namespace\n associated with the service is shared with your account, specify the service ARN. For more\n information about shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
", "smithy.api#required": {} } }, "InstanceId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The value that you specified for Id in the RegisterInstance request.
A value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#DiscoverInstances": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#DiscoverInstancesRequest" }, "output": { "target": "com.amazonaws.servicediscovery#DiscoverInstancesResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#NamespaceNotFound" }, { "target": "com.amazonaws.servicediscovery#RequestLimitExceeded" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "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.
The HttpName name of the namespace. The HttpName is\n found in the HttpProperties member of the Properties member of the\n namespace. In most cases, Name and HttpName match. However, if you\n reuse Name for namespace creation, a generated hash is added to\n HttpName to distinguish the two.
The name of the service that you specified when you registered the instance.
", "smithy.api#required": {} } }, "MaxResults": { "target": "com.amazonaws.servicediscovery#DiscoverMaxResults", "traits": { "smithy.api#documentation": "The maximum number of instances that you want Cloud Map to return in the response to a\n DiscoverInstances request. If you don't specify a value for\n MaxResults, Cloud Map returns up to 100 instances.
Filters to scope the results based on custom attributes for the instance (for example,\n {version=v1, az=1a}). Only instances that match all the specified key-value pairs\n are returned.
Opportunistic filters to scope the results based on custom attributes. If there are\n instances that match both the filters specified in both the QueryParameters\n parameter and this parameter, all of these instances are returned. Otherwise, the filters are\n ignored, and only instances that match the filters that are specified in the\n QueryParameters parameter are returned.
The health status of the instances that you want to discover. This parameter is ignored for\n services that don't have a health check configured, and\n all\n instances are returned.
\nReturns healthy instances.
\nReturns unhealthy instances.
\nReturns all instances.
\nReturns healthy instances, unless none are reporting a healthy state. In that case,\n return all instances. This is also called failing open.
\nThe ID of the Amazon Web Services account that owns the namespace associated with the instance, as specified in the namespace ResourceOwner field. For\n instances associated with namespaces that are shared with your account, you must specify an OwnerAccount.
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-" }, "smithy.api#examples": [ { "title": "Discover instances revision using owner account", "documentation": "Discovers the instances revision in a shared namespace by specifying the OwnerAccount parameter, useful when working with shared namespaces.", "input": { "NamespaceName": "example-shared-namespace", "ServiceName": "shared-service", "OwnerAccount": "123456789012" }, "output": { "InstancesRevision": 1001 } }, { "title": "To discover the revision for a registered instance", "documentation": "The following example discovers the revision ID for a registered instance.", "input": { "NamespaceName": "example-namespace", "ServiceName": "example-service" }, "output": { "InstancesRevision": 123456 } } ] } }, "com.amazonaws.servicediscovery#DiscoverInstancesRevisionRequest": { "type": "structure", "members": { "NamespaceName": { "target": "com.amazonaws.servicediscovery#NamespaceName", "traits": { "smithy.api#documentation": "The HttpName name of the namespace. The HttpName is\n found in the 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": {} } }, "OwnerAccount": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the namespace associated with the instance, as specified in the namespace ResourceOwner field. For\n instances associated with namespaces that are shared with your account, you must specify an OwnerAccount. For more information about\n shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
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.
\n Use\n NamespaceId in Service instead.\n
\nThe ID of the namespace to use for DNS configuration.
" } }, "RoutingPolicy": { "target": "com.amazonaws.servicediscovery#RoutingPolicy", "traits": { "smithy.api#documentation": "The routing policy that you want to apply to all Route\u00a053 DNS records that Cloud Map creates\n when you register an instance and specify this service.
\nIf you want to use this service to register instances that create alias records, specify\n WEIGHTED for the routing policy.
You can specify the following values:
\nIf you define a health check for the service and the health check is healthy, Route\u00a053\n returns the applicable value for up to eight instances.
\nFor example, suppose that the service includes configurations for one A\n record and a health check. You use the service to register 10 instances. Route\u00a053 responds to DNS\n queries with IP addresses for up to eight healthy instances. If fewer than eight instances are\n healthy, Route\u00a053 responds to every DNS query with the IP addresses for all of the healthy\n instances.
If you don't define a health check for the service, Route\u00a053 assumes that all instances are\n healthy and returns the values for up to eight instances.
\nFor more information about the multivalue routing policy, see Multivalue\n Answer Routing in the Route\u00a053 Developer Guide.
\nRoute\u00a053 returns the applicable value from one randomly selected instance from among the\n instances that you registered using the same service. Currently, all records have the same\n weight, so you can't route more or less traffic to any instances.
\nFor example, suppose that the service includes configurations for one A\n record and a health check. You use the service to register 10 instances. Route\u00a053 responds to DNS\n queries with the IP address for one randomly selected instance from among the healthy\n instances. If no instances are healthy, Route\u00a053 responds to DNS queries as if all of the\n instances were healthy.
If you don't define a health check for the service, Route\u00a053 assumes that all instances are\n healthy and returns the applicable value for one randomly selected instance.
\nFor more information about the weighted routing policy, see Weighted\n Routing in the Route\u00a053 Developer Guide.
\nAn array that contains one DnsRecord object for each Route\u00a053 DNS record that you\n want Cloud Map to create when you register an instance.
The record type of a service specified in a DnsRecord object can't be updated.\n To change a record type, you need to delete the service and recreate it with a new\n DnsConfig.
A complex type that contains information about the Amazon Route\u00a053 DNS records that you want\n Cloud Map to create when you register an instance.
" } }, "com.amazonaws.servicediscovery#DnsConfigChange": { "type": "structure", "members": { "DnsRecords": { "target": "com.amazonaws.servicediscovery#DnsRecordList", "traits": { "smithy.api#documentation": "An array that contains one DnsRecord object for each Route\u00a053 record that you want\n Cloud Map to create when you register an instance.
A complex type that contains information about changes to the Route\u00a053 DNS records that\n Cloud Map creates when you register an instance.
" } }, "com.amazonaws.servicediscovery#DnsProperties": { "type": "structure", "members": { "HostedZoneId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID for the Route\u00a053 hosted zone that Cloud Map creates when you create a namespace.
" } }, "SOA": { "target": "com.amazonaws.servicediscovery#SOA", "traits": { "smithy.api#documentation": "Start of Authority (SOA) record for the hosted zone.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains the ID for the Route\u00a053 hosted zone that Cloud Map creates when\n you create a namespace.
" } }, "com.amazonaws.servicediscovery#DnsRecord": { "type": "structure", "members": { "Type": { "target": "com.amazonaws.servicediscovery#RecordType", "traits": { "smithy.api#documentation": "The type of the resource, which indicates the type of value that Route\u00a053 returns in response\n to DNS queries. You can specify values for Type in the following\n combinations:
\n \n A\n \n
\n \n AAAA\n \n
\n \n A\n and \n AAAA\n \n
\n \n SRV\n \n
\n \n CNAME\n \n
If you want Cloud Map to create a Route\u00a053 alias record when you register an instance, specify\n A or AAAA for Type.
You specify other settings, such as the IP address for A and AAAA\n records, when you register an instance. For more information, see RegisterInstance.
The following values are supported:
\nRoute\u00a053 returns the IP address of the resource in IPv4 format, such as 192.0.2.44.
\nRoute\u00a053 returns the IP address of the resource in IPv6 format, such as\n 2001:0db8:85a3:0000:0000:abcd:0001:2345.
\nRoute\u00a053 returns the domain name of the resource, such as www.example.com. Note the\n following:
\nYou specify the domain name that you want to route traffic to when you register an\n instance. For more information, see Attributes in the topic RegisterInstance.
\nYou must specify WEIGHTED for the value of\n RoutingPolicy.
You can't specify both CNAME for Type and settings for\n HealthCheckConfig. If you do, the request will fail with an\n InvalidInput error.
Route\u00a053 returns the value for an SRV record. The value for an SRV\n record uses the following values:
\n priority weight port service-hostname\n
Note the following about the values:
\nThe values of priority and weight are both set to\n 1 and can't be changed.
The value of port comes from the value that you specify for the\n AWS_INSTANCE_PORT attribute when you submit a RegisterInstance\n request.
The value of service-hostname is a concatenation of the following\n values:
The value that you specify for InstanceId when you register an\n instance.
The name of the service.
\nThe name of the namespace.
\nFor example, if the value of InstanceId is test, the name of\n the service is backend, and the name of the namespace is\n example.com, the value of service-hostname is the\n following:
\n test.backend.example.com\n
If you specify settings for an SRV record, note the following:
If you specify values for AWS_INSTANCE_IPV4,\n AWS_INSTANCE_IPV6, or both in the RegisterInstance request,\n Cloud Map automatically creates A and/or AAAA records that have\n the same name as the value of service-hostname in the SRV record.\n You can ignore these records.
If you're using a system that requires a specific SRV format, such as\n HAProxy, see the Name element in the documentation about CreateService for information\n about how to specify the correct name format.
The amount of time, in seconds, that you want DNS resolvers to cache the settings for this\n record.
\nAlias records don't include a TTL because Route\u00a053 uses the TTL for the Amazon Web Services resource that an\n alias record routes traffic to. If you include the AWS_ALIAS_DNS_NAME attribute\n when you submit a RegisterInstance request, the\n TTL value is ignored. Always specify a TTL for the service; you can use a service\n to register instances that create either alias or non-alias records.
A complex type that contains information about the Route\u00a053 DNS records that you want\n Cloud Map to create when you register an instance.
" } }, "com.amazonaws.servicediscovery#DnsRecordList": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#DnsRecord" } }, "com.amazonaws.servicediscovery#DuplicateRequest": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" }, "DuplicateOperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "The ID of the operation that's already in progress.
" } } }, "traits": { "smithy.api#documentation": "The operation is already in progress.
", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.servicediscovery#ErrorMessage": { "type": "string" }, "com.amazonaws.servicediscovery#FailureThreshold": { "type": "integer", "traits": { "smithy.api#range": { "min": 1, "max": 10 } } }, "com.amazonaws.servicediscovery#FilterCondition": { "type": "enum", "members": { "EQ": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "EQ" } }, "IN": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "IN" } }, "BETWEEN": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "BETWEEN" } }, "BEGINS_WITH": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "BEGINS_WITH" } } } }, "com.amazonaws.servicediscovery#FilterValue": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 } } }, "com.amazonaws.servicediscovery#FilterValues": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#FilterValue", "traits": { "smithy.api#xmlName": "item" } } }, "com.amazonaws.servicediscovery#GetInstance": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#GetInstanceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#GetInstanceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InstanceNotFound" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Gets information about a specified instance.
", "smithy.api#examples": [ { "title": "GetInstance example", "documentation": "This example gets information about a specified instance.", "input": { "InstanceId": "i-abcd1234", "ServiceId": "srv-e4anhexample0004" }, "output": { "ResourceOwner": "123456789012", "Instance": { "Id": "i-abcd1234", "Attributes": { "AWS_INSTANCE_IPV4": "192.0.2.44", "AWS_INSTANCE_PORT": "80", "color": "green", "region": "us-west-2", "stage": "beta" }, "CreatedByAccount": "123456789012" } } }, { "title": "Get instance details using service ARN for shared namespace", "documentation": "This example gets information about an instance using a service ARN instead of service ID. This is useful for listing instances associated with shared namespaces.", "input": { "InstanceId": "i-abcd1234", "ServiceId": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004" }, "output": { "ResourceOwner": "123456789012", "Instance": { "Id": "i-abcd1234", "Attributes": { "AWS_INSTANCE_IPV4": "192.0.2.44", "AWS_INSTANCE_PORT": "80", "color": "green", "region": "us-west-2", "stage": "beta" }, "CreatedByAccount": "111122223333" } } } ] } }, "com.amazonaws.servicediscovery#GetInstanceRequest": { "type": "structure", "members": { "ServiceId": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that the instance is associated with. For services\n created in a shared namespace, specify the service ARN. For more information about shared\n namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
", "smithy.api#required": {} } }, "InstanceId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID of the instance that you want to get information about.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#GetInstanceResponse": { "type": "structure", "members": { "ResourceOwner": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that created the namespace that contains the service that the\n instance is associated with. If this isn't your account ID, it's the ID of the account that\n shared the namespace with your account.
" } }, "Instance": { "target": "com.amazonaws.servicediscovery#Instance", "traits": { "smithy.api#documentation": "A complex type that contains information about a specified instance.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#GetInstancesHealthStatus": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#GetInstancesHealthStatusRequest" }, "output": { "target": "com.amazonaws.servicediscovery#GetInstancesHealthStatusResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InstanceNotFound" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Gets the current health status (Healthy, Unhealthy, or\n Unknown) of one or more instances that are associated with a specified\n service.
There's a brief delay between when you register an instance and when the health status for\n the instance is available.
\nThe ID or Amazon Resource Name (ARN) of the service that the instance is associated with. For services\n created in a shared namespace, specify the service ARN. For more information about shared\n namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
", "smithy.api#required": {} } }, "Instances": { "target": "com.amazonaws.servicediscovery#InstanceIdList", "traits": { "smithy.api#documentation": "An array that contains the IDs of all the instances that you want to get the health status\n for.
\nIf you omit Instances, Cloud Map returns the health status for all the\n instances that are associated with the specified service.
To get the IDs for the instances that you've registered by using a specified service,\n submit a ListInstances request.
\nThe maximum number of instances that you want Cloud Map to return in the response to a\n GetInstancesHealthStatus request. If you don't specify a value for\n MaxResults, Cloud Map returns up to 100 instances.
For the first GetInstancesHealthStatus request, omit this value.
If more than MaxResults instances match the specified criteria, you can submit\n another GetInstancesHealthStatus request to get the next group of results. Specify\n the value of NextToken from the previous response in the next request.
A complex type that contains the IDs and the health status of the instances that you\n specified in the GetInstancesHealthStatus request.
If more than MaxResults instances match the specified criteria, you can submit\n another GetInstancesHealthStatus request to get the next group of results. Specify\n the value of NextToken from the previous response in the next request.
Gets information about a namespace.
" } }, "com.amazonaws.servicediscovery#GetNamespaceRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the namespace that you want to get information about. For namespaces\n shared with your Amazon Web Services account, specify the namespace ARN. For more information about shared\n namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide\n
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#GetNamespaceResponse": { "type": "structure", "members": { "Namespace": { "target": "com.amazonaws.servicediscovery#Namespace", "traits": { "smithy.api#documentation": "A complex type that contains information about the specified namespace.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#GetOperation": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#GetOperationRequest" }, "output": { "target": "com.amazonaws.servicediscovery#GetOperationResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#OperationNotFound" } ], "traits": { "smithy.api#documentation": "Gets 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.
\nThe ID of the operation that you want to get more information about.
", "smithy.api#required": {} } }, "OwnerAccount": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the namespace associated with the operation, as specified in the namespace ResourceOwner field. For\n operations associated with namespaces that are shared with your account, you must specify an OwnerAccount.
A complex type that contains information about the operation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#GetService": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#GetServiceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#GetServiceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Gets the settings for a specified service.
", "smithy.api#examples": [ { "title": "Get service using service ARN", "documentation": "Gets service settings using a service ARN instead of service ID, useful when working with shared namespaces. Shows a service created by a sharee (111122223333) in a namespace owned by another account (123456789012).", "input": { "Id": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" }, "output": { "Service": { "Id": "srv-abcd1234xmpl5678", "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678", "ResourceOwner": "123456789012", "Name": "example-service", "NamespaceId": "ns-abcd1234xmpl5678", "Description": "Example service", "InstanceCount": 2, "DnsConfig": { "NamespaceId": "ns-abcd1234xmpl5678", "RoutingPolicy": "MULTIVALUE", "DnsRecords": [ { "Type": "A", "TTL": 300 } ] }, "Type": "DNS_HTTP", "CreateDate": 1705161600.0, "CreatorRequestId": "abcd1234-xmpl-5678-9012-abcd1234xmpl", "CreatedByAccount": "111122223333" } } } ] } }, "com.amazonaws.servicediscovery#GetServiceAttributes": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#GetServiceAttributesRequest" }, "output": { "target": "com.amazonaws.servicediscovery#GetServiceAttributesResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Returns the attributes associated with a specified service.
", "smithy.api#examples": [ { "title": "Get service attributes using service ARN", "documentation": "Gets service attributes using a service ARN instead of service ID, useful when working with shared namespaces. Shows attributes for a service created by a sharee in a namespace owned by another account.", "input": { "ServiceId": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" }, "output": { "ServiceAttributes": { "ServiceArn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678", "Attributes": { "Port": "80" }, "ResourceOwner": "123456789012" } } }, { "title": "GetServiceAttributes Example", "documentation": "This example gets the attributes for a specified service.", "input": { "ServiceId": "srv-e4anhexample0004" }, "output": { "ServiceAttributes": { "ServiceArn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004", "Attributes": { "port": "80" }, "ResourceOwner": "123456789012" } } } ] } }, "com.amazonaws.servicediscovery#GetServiceAttributesRequest": { "type": "structure", "members": { "ServiceId": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that you want to get attributes for. For services created\n in a namespace shared with your Amazon Web Services account, specify the service ARN. For more information\n about shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#GetServiceAttributesResponse": { "type": "structure", "members": { "ServiceAttributes": { "target": "com.amazonaws.servicediscovery#ServiceAttributes", "traits": { "smithy.api#documentation": "A complex type that contains the service ARN and a list of attribute key-value pairs\n associated with the service.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#GetServiceRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that you want to get settings for. For services created\n by consumers in a shared namespace, specify the service ARN. For more information about shared\n namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#GetServiceResponse": { "type": "structure", "members": { "Service": { "target": "com.amazonaws.servicediscovery#Service", "traits": { "smithy.api#documentation": "A complex type that contains information about the service.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#HealthCheckConfig": { "type": "structure", "members": { "Type": { "target": "com.amazonaws.servicediscovery#HealthCheckType", "traits": { "smithy.api#documentation": "The type of health check that you want to create, which indicates how Route\u00a053 determines\n whether an endpoint is healthy.
\nYou can't change the value of Type after you create a health check.
You can create the following types of health checks:
\n\n HTTP: Route\u00a053 tries to establish a TCP connection. If\n successful, Route\u00a053 submits an HTTP request and waits for an HTTP status code of 200 or greater\n and less than 400.
\n\n HTTPS: Route\u00a053 tries to establish a TCP connection. If\n successful, Route\u00a053 submits an HTTPS request and waits for an HTTP status code of 200 or greater\n and less than 400.
\nIf you specify HTTPS for the value of Type, the endpoint must support TLS\n v1.0 or later.
\n TCP: Route\u00a053 tries to establish a TCP connection.
\nIf you specify TCP for Type, don't specify a value for\n ResourcePath.
For more information, see How Route\u00a053\n Determines Whether an Endpoint Is Healthy in the\n Route\u00a053 Developer Guide.
", "smithy.api#required": {} } }, "ResourcePath": { "target": "com.amazonaws.servicediscovery#ResourcePath", "traits": { "smithy.api#documentation": "The path that you want Route\u00a053 to request when performing health checks. The path can be any\n value that your endpoint returns an HTTP status code of a 2xx or 3xx format for when the endpoint\n is healthy. An example file is /docs/route53-health-check.html. Route\u00a053 automatically\n adds the DNS name for the service. If you don't specify a value for ResourcePath,\n the default value is /.
If you specify TCP for Type, you must not\n specify a value for ResourcePath.
The number of consecutive health checks that an endpoint must pass or fail for Route\u00a053 to\n change the current status of the endpoint from unhealthy to healthy or the other way around. For\n more information, see How Route\u00a053\n Determines Whether an Endpoint Is Healthy in the\n Route\u00a053 Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "\n Public DNS and HTTP namespaces only. A complex type that contains\n settings for an optional health check. If you specify settings for a health check, Cloud Map\n associates the health check with the records that you specify in DnsConfig.
If you specify a health check configuration, you can specify either\n HealthCheckCustomConfig or HealthCheckConfig but not both.
Health checks are basic Route\u00a053 health checks that monitor an Amazon Web Services endpoint. For\n information about pricing for health checks, see Amazon Route\u00a053 Pricing.
\nNote the following about configuring health checks.
\nIf DnsConfig includes configurations for both A and\n AAAA records, Cloud Map creates a health check that uses the IPv4 address to\n check the health of the resource. If the endpoint tthat's specified by the IPv4 address is\n unhealthy, Route\u00a053 considers both the A and AAAA records to be\n unhealthy.
You can't specify settings for HealthCheckConfig when the\n DNSConfig includes CNAME for the value of Type. If you\n do, the CreateService request will fail with an InvalidInput\n error.
A Route\u00a053 health checker in each health-checking Amazon Web Services Region sends a health check request\n to an endpoint every 30 seconds. On average, your endpoint receives a health check request\n about every two seconds. However, health checkers don't coordinate with one another.\n Therefore, you might sometimes see several requests in one second that's followed by a few\n seconds with no health checks at all.
\nHealth checkers perform checks from all Route\u00a053 health-checking Regions. For a list of the\n current Regions, see Regions.
\nWhen you register an instance, if you include the AWS_ALIAS_DNS_NAME\n attribute, Cloud Map creates a Route\u00a053 alias record. Note the following:
Route\u00a053 automatically sets EvaluateTargetHealth to true for alias records.\n When EvaluateTargetHealth is true, the alias record inherits the health of the\n referenced Amazon Web Services resource. such as an ELB load balancer. For more information, see EvaluateTargetHealth.
If you include HealthCheckConfig and then use the service to register an\n instance that creates an alias record, Route\u00a053 doesn't create the health check.
Health checks are basic Route\u00a053 health checks that monitor an Amazon Web Services endpoint. For\n information about pricing for health checks, see Amazon Route\u00a053 Pricing.
\nThis parameter is no longer supported and is always set to 1. Cloud Map waits for\n approximately 30 seconds after receiving an UpdateInstanceCustomHealthStatus\n request before changing the status of the service instance.
The number of 30-second intervals that you want Cloud Map to wait after receiving an\n UpdateInstanceCustomHealthStatus request before it changes the health status of a\n service instance.
Sending a second or subsequent UpdateInstanceCustomHealthStatus request with\n the same value before 30 seconds has passed doesn't accelerate the change. Cloud Map still waits\n 30 seconds after the first request to make the change.
A complex type that contains information about an optional custom health check. A custom\n health check, which requires that you use a third-party health checker to evaluate the health of\n your resources, is useful in the following circumstances:
\nYou can't use a health check that's defined by HealthCheckConfig because the\n resource isn't available over the internet. For example, you can use a custom health check when\n the instance is in an Amazon VPC. (To check the health of resources in a VPC, the health\n checker must also be in the VPC.)
You want to use a third-party health checker regardless of where your resources are\n located.
\nIf you specify a health check configuration, you can specify either\n HealthCheckCustomConfig or HealthCheckConfig but not both.
To change the status of a custom health check, submit an\n UpdateInstanceCustomHealthStatus request. Cloud Map doesn't monitor the status of the\n resource, it just keeps a record of the status specified in the most recent\n UpdateInstanceCustomHealthStatus request.
Here's how custom health checks work:
\nYou create a service.
\nYou register an instance.
\nYou configure a third-party health checker to monitor the resource that's associated with\n the new instance.
\nCloud Map doesn't check the health of the resource directly.
\nThe third-party health-checker determines that the resource is unhealthy and notifies your\n application.
\nYour application submits an UpdateInstanceCustomHealthStatus request.
Cloud Map waits for 30 seconds.
\nIf another UpdateInstanceCustomHealthStatus request doesn't arrive during\n that time to change the status back to healthy, Cloud Map stops routing traffic to the\n resource.
The ID of an instance that matches the values that you specified in the request.
" } }, "NamespaceName": { "target": "com.amazonaws.servicediscovery#NamespaceNameHttp", "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.
" } }, "HealthStatus": { "target": "com.amazonaws.servicediscovery#HealthStatus", "traits": { "smithy.api#documentation": "If you configured health checking in the service, the current health status of the service\n instance.
" } }, "Attributes": { "target": "com.amazonaws.servicediscovery#Attributes", "traits": { "smithy.api#documentation": "If you included any attributes when you registered the instance, the values of those\n attributes.
" } } }, "traits": { "smithy.api#documentation": "In a response to a DiscoverInstances request,\n HttpInstanceSummary contains information about one instance that matches the values\n that you specified in the request.
An updated\n description for the HTTP namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Updated properties\n for the HTTP namespace.
" } }, "com.amazonaws.servicediscovery#HttpProperties": { "type": "structure", "members": { "HttpName": { "target": "com.amazonaws.servicediscovery#NamespaceName", "traits": { "smithy.api#documentation": "The name of an HTTP namespace.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains the name of an HTTP namespace.
" } }, "com.amazonaws.servicediscovery#Instance": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "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 there's also an existing health check, Cloud Map deletes\n 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.
A unique string that identifies the request and that allows failed\n RegisterInstance requests to be retried without the risk of executing the operation\n twice. You must use a unique CreatorRequestId string every time you submit a\n RegisterInstance request if you're registering additional instances for the same\n namespace and service. CreatorRequestId can be any unique string (for example, a\n date/time stamp).
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\u00a053 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\u00a053 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\u00a053 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\u00a053 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\u00a053 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\u00a053 to\n return for the port.
If the service includes HealthCheckConfig, the port on the endpoint that you\n want Route\u00a053 to send requests to.
This value is required if you specified settings for an SRV record or a\n Route\u00a053 health check when you created the service.
The ID of the Amazon Web Services account that registered the instance. If this isn't your account ID,\n it's the ID of the account that shared the namespace with your account or the ID of another\n account with which the namespace has been shared. For more information about shared namespaces,\n see Cross-account\n Cloud Map namespace sharing in the Cloud Map Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains information about an instance that Cloud Map creates when you\n submit a RegisterInstance request.
No instance exists with the specified ID, or the instance was recently registered, and\n information about the instance hasn't propagated yet.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.servicediscovery#InstanceSummary": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID for an instance that you created by using a specified service.
" } }, "Attributes": { "target": "com.amazonaws.servicediscovery#Attributes", "traits": { "smithy.api#documentation": "A string map that contains the following information:
\nThe attributes that are associated with the instance.
\nFor each attribute, the applicable value.
\nSupported attribute keys include the following:
\nFor an alias record that routes traffic to an Elastic Load Balancing load balancer, the DNS name that's\n associated with the load balancer.
\nThe Amazon EC2 instance ID for the instance. When the AWS_EC2_INSTANCE_ID\n attribute is specified, then the AWS_INSTANCE_IPV4 attribute contains the primary\n 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.
For a CNAME record, the domain name that Route\u00a053 returns in response to DNS\n queries (for example, example.com).
For an A record, the IPv4 address that Route\u00a053 returns in response to DNS\n queries (for example, 192.0.2.44).
For an AAAA record, the IPv6 address that Route\u00a053 returns in response to DNS\n queries (for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345).
For an SRV record, the value that Route\u00a053 returns for the port. In addition,\n if the service includes HealthCheckConfig, the port on the endpoint that Route\u00a053\n sends requests to.
The ID of the Amazon Web Services account that registered the instance. If this isn't your account ID,\n it's the ID of the account that shared the namespace with your account or the ID of another\n account with which the namespace has been shared. For more information about shared namespaces,\n see Cross-account\n Cloud Map namespace sharing in the Cloud Map Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains information about the instances that you registered by using a\n specified service.
" } }, "com.amazonaws.servicediscovery#InstanceSummaryList": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#InstanceSummary", "traits": { "smithy.api#xmlName": "InstanceSummary" } } }, "com.amazonaws.servicediscovery#InvalidInput": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "One or more specified values aren't valid. For example, a required value might be missing, a\n numeric value might be outside the allowed range, or a string value might exceed length\n constraints.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.servicediscovery#ListInstances": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#ListInstancesRequest" }, "output": { "target": "com.amazonaws.servicediscovery#ListInstancesResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Lists summary information about the instances that you registered by using a specified\n service.
", "smithy.api#examples": [ { "title": "Example: List service instances", "documentation": "Example: List service instances", "input": { "ServiceId": "srv-qzpwvt2tfqcegapy" }, "output": { "Instances": [ { "Attributes": { "AWS_INSTANCE_IPV4": "172.2.1.3", "AWS_INSTANCE_PORT": "808" }, "Id": "i-06bdabbae60f65a4e" } ] } }, { "title": "List instances using service ARN for shared namespace", "documentation": "This example lists instances using a service ARN instead of service ID. This is useful for listing instances associated with shared namespaces.", "input": { "ServiceId": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004" }, "output": { "Instances": [ { "Id": "i-abcd1234", "Attributes": { "AWS_INSTANCE_IPV4": "192.0.2.44", "AWS_INSTANCE_PORT": "80" } } ], "ResourceOwner": "123456789012" } } ], "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.servicediscovery#ListInstancesRequest": { "type": "structure", "members": { "ServiceId": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that you want to list instances for. For services created\n in a shared namespace, specify the service ARN. For more information about shared namespaces,\n see Cross-account\n Cloud Map namespace sharing in the Cloud Map Developer Guide.
", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.servicediscovery#NextToken", "traits": { "smithy.api#documentation": "For the first ListInstances request, omit this value.
If more than MaxResults instances match the specified criteria, you can submit\n another ListInstances request to get the next group of results. Specify the value of\n NextToken from the previous response in the next request.
The maximum number of instances that you want Cloud Map to return in the response to a\n ListInstances request. If you don't specify a value for MaxResults,\n Cloud Map returns up to 100 instances.
The ID of the Amazon Web Services account that created the namespace that contains the specified service.\n If this isn't your account ID, it's the ID of the account that shared the namespace with your\n account.
" } }, "Instances": { "target": "com.amazonaws.servicediscovery#InstanceSummaryList", "traits": { "smithy.api#documentation": "Summary information about the instances that are associated with the specified\n service.
" } }, "NextToken": { "target": "com.amazonaws.servicediscovery#NextToken", "traits": { "smithy.api#documentation": "If more than MaxResults instances match the specified criteria, you can submit\n another ListInstances request to get the next group of results. Specify the value of\n NextToken from the previous response in the next request.
Lists summary information about the namespaces that were created by the current Amazon Web Services account and shared with the current Amazon Web Services account.
", "smithy.api#examples": [ { "title": "Example: List namespaces", "documentation": "Example: List namespaces", "output": { "Namespaces": [ { "Id": "ns-a3ccy2e7e3a7rile", "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-a3ccy2e7e3a7rile", "ResourceOwner": "123456789012", "Name": "local", "Type": "DNS_PRIVATE", "Properties": { "DnsProperties": { "HostedZoneId": "Z06752353VBUDTC32S84S", "SOA": { "TTL": 60 } }, "HttpProperties": { "HttpName": "local" } }, "CreateDate": 1705161600.0, "ServiceCount": 2 }, { "Id": "ns-pocfyjtrsmwtvcxx", "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-pocfyjtrsmwtvcxx", "ResourceOwner": "123456789012", "Name": "My-second-namespace", "Type": "HTTP", "Description": "My second namespace", "Properties": { "DnsProperties": { "SOA": { "TTL": 60 } }, "HttpProperties": { "HttpName": "My-second-namespace" } }, "CreateDate": 1705161600.0, "ServiceCount": 1 }, { "Id": "ns-ylexjili4cdxy3xm", "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-ylexjili4cdxy3xm", "ResourceOwner": "123456789012", "Name": "example.com", "Type": "DNS_PRIVATE", "Properties": { "DnsProperties": { "HostedZoneId": "Z09983722P0QME1B3KC8I", "SOA": { "TTL": 60 } }, "HttpProperties": { "HttpName": "example.com" } }, "CreateDate": 1705161600.0, "ServiceCount": 3 } ] } }, { "title": "List namespaces filtered by resource owner", "documentation": "This example shows how to list namespaces that are shared with you from other AWS accounts using the RESOURCE_OWNER filter.", "input": { "Filters": [ { "Name": "RESOURCE_OWNER", "Values": [ "OTHER_ACCOUNTS" ] } ] }, "output": { "Namespaces": [ { "Id": "ns-abcd1234xmpl5678", "Arn": "arn:aws:servicediscovery:us-west-2:111122223333:namespace/ns-abcd1234xmpl5678", "ResourceOwner": "111122223333", "Name": "example-namespace", "Type": "DNS_PRIVATE", "Description": "Example private DNS namespace", "Properties": { "DnsProperties": { "HostedZoneId": "Z1D633PJN98FT9", "SOA": { "TTL": 60 } }, "HttpProperties": { "HttpName": "example-namespace" } }, "CreateDate": 1705161600.0, "ServiceCount": 2 } ] } } ], "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.servicediscovery#ListNamespacesRequest": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.servicediscovery#NextToken", "traits": { "smithy.api#documentation": "For the first ListNamespaces request, omit this value.
If the response contains NextToken, submit another ListNamespaces\n request to get the next group of results. Specify the value of NextToken from the\n previous response in the next request.
Cloud Map gets MaxResults namespaces and then filters them based on the\n specified criteria. It's possible that no namespaces in the first MaxResults\n namespaces matched the specified criteria but that subsequent groups of MaxResults\n namespaces do contain namespaces that match the criteria.
The maximum number of namespaces that you want Cloud Map to return in the response to a\n ListNamespaces request. If you don't specify a value for MaxResults,\n Cloud Map returns up to 100 namespaces.
A complex type that contains specifications for the namespaces that you want to list.
\nIf you specify more than one filter, a namespace must match all filters to be returned by\n ListNamespaces.
An array that contains one NamespaceSummary object for each namespace that\n matches the specified filter criteria.
If the response contains NextToken, submit another ListNamespaces\n request to get the next group of results. Specify the value of NextToken from the\n previous response in the next request.
Cloud Map gets MaxResults namespaces and then filters them based on the\n specified criteria. It's possible that no namespaces in the first MaxResults\n namespaces matched the specified criteria but that subsequent groups of MaxResults\n namespaces do contain namespaces that match the criteria.
Lists operations that match the criteria that you specify.
", "smithy.api#examples": [ { "title": "ListOperations Example", "documentation": "This example gets the operations that have a STATUS of either PENDING or SUCCESS.", "input": { "Filters": [ { "Name": "STATUS", "Condition": "IN", "Values": [ "PENDING", "SUCCESS" ] } ] }, "output": { "Operations": [ { "Id": "76yy8ovhpdz0plmjzbsnqgnrqvpv2qdt-kexample", "Status": "SUCCESS" }, { "Id": "prysnyzpji3u2ciy45nke83x2zanl7yk-dexample", "Status": "SUCCESS" }, { "Id": "ko4ekftir7kzlbechsh7xvcdgcpk66gh-7example", "Status": "PENDING" } ] } } ], "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.servicediscovery#ListOperationsRequest": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.servicediscovery#NextToken", "traits": { "smithy.api#documentation": "For the first ListOperations request, omit this value.
If the response contains NextToken, submit another ListOperations\n request to get the next group of results. Specify the value of NextToken from the\n previous response in the next request.
Cloud Map gets MaxResults operations and then filters them based on the\n specified criteria. It's possible that no operations in the first MaxResults\n operations matched the specified criteria but that subsequent groups of MaxResults\n operations do contain operations that match the criteria.
The maximum number of items that you want Cloud Map to return in the response to a\n ListOperations request. If you don't specify a value for MaxResults,\n Cloud Map returns up to 100 operations.
A complex type that contains specifications for the operations that you want to list, for\n example, operations that you started between a specified start date and end date.
\nIf you specify more than one filter, an operation must match all filters to be returned by\n ListOperations.
Summary information about the operations that match the specified criteria.
" } }, "NextToken": { "target": "com.amazonaws.servicediscovery#NextToken", "traits": { "smithy.api#documentation": "If the response contains NextToken, submit another ListOperations\n request to get the next group of results. Specify the value of NextToken from the\n previous response in the next request.
Cloud Map gets MaxResults operations and then filters them based on the\n specified criteria. It's possible that no operations in the first MaxResults\n operations matched the specified criteria but that subsequent groups of MaxResults\n operations do contain operations that match the criteria.
Lists summary information for all the services that are associated with one or more\n namespaces.
", "smithy.api#examples": [ { "title": "Example: List services", "documentation": "Example: List services", "output": { "Services": [ { "Id": "srv-p5zdwlg5uvvzjita", "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita", "ResourceOwner": "123456789012", "Name": "myservice", "Type": "DNS", "DnsConfig": { "DnsRecords": [ { "TTL": 60, "Type": "A" } ], "RoutingPolicy": "MULTIVALUE" }, "CreateDate": 1587081768.334, "CreatedByAccount": "123456789012" } ] } } ], "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.servicediscovery#ListServicesRequest": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.servicediscovery#NextToken", "traits": { "smithy.api#documentation": "For the first ListServices request, omit this value.
If the response contains NextToken, submit another ListServices\n request to get the next group of results. Specify the value of NextToken from the\n previous response in the next request.
Cloud Map gets MaxResults services and then filters them based on the\n specified criteria. It's possible that no services in the first MaxResults services\n matched the specified criteria but that subsequent groups of MaxResults services do\n contain services that match the criteria.
The maximum number of services that you want Cloud Map to return in the response to a\n ListServices request. If you don't specify a value for MaxResults,\n Cloud Map returns up to 100 services.
A complex type that contains specifications for the namespaces that you want to list\n services for.
\nIf you specify more than one filter, an operation must match all filters to be returned by\n ListServices.
An array that contains one ServiceSummary object for each service that matches\n the specified filter criteria.
If the response contains NextToken, submit another ListServices\n request to get the next group of results. Specify the value of NextToken from the\n previous response in the next request.
Cloud Map gets MaxResults services and then filters them based on the\n specified criteria. It's possible that no services in the first MaxResults services\n matched the specified criteria but that subsequent groups of MaxResults services do\n contain services that match the criteria.
Lists tags for the specified resource.
", "smithy.api#examples": [ { "title": "ListTagsForResource example", "documentation": "This example lists the tags of a resource.", "input": { "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm" }, "output": { "Tags": [ { "Key": "Project", "Value": "Zeta" }, { "Key": "Department", "Value": "Engineering" } ] } } ] } }, "com.amazonaws.servicediscovery#ListTagsForResourceRequest": { "type": "structure", "members": { "ResourceARN": { "target": "com.amazonaws.servicediscovery#AmazonResourceName", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource that you want to retrieve tags for.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#ListTagsForResourceResponse": { "type": "structure", "members": { "Tags": { "target": "com.amazonaws.servicediscovery#TagList", "traits": { "smithy.api#documentation": "The tags that are assigned to the resource.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#MaxResults": { "type": "integer", "traits": { "smithy.api#range": { "min": 1, "max": 100 } } }, "com.amazonaws.servicediscovery#Message": { "type": "string" }, "com.amazonaws.servicediscovery#Namespace": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID of a namespace.
" } }, "Arn": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.
" } }, "ResourceOwner": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that created the namespace. If this isn't your account ID, it's\n the ID of the account that shared the namespace with your account. For more information about\n shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
" } }, "Name": { "target": "com.amazonaws.servicediscovery#NamespaceName", "traits": { "smithy.api#documentation": "The name of the namespace, such as example.com.
The type of the namespace. The methods for discovering instances depends on the value that\n you specify:
\nInstances can be discovered only programmatically, using the Cloud Map\n DiscoverInstances API.
Instances can be discovered using public DNS queries and using the\n DiscoverInstances API.
Instances can be discovered using DNS queries in VPCs and using the\n DiscoverInstances API.
The description that you specify for the namespace when you create it.
" } }, "ServiceCount": { "target": "com.amazonaws.servicediscovery#ResourceCount", "traits": { "smithy.api#documentation": "The number of services that are associated with the namespace.
" } }, "Properties": { "target": "com.amazonaws.servicediscovery#NamespaceProperties", "traits": { "smithy.api#documentation": "A complex type that contains information that's specific to the type of the\n namespace.
" } }, "CreateDate": { "target": "com.amazonaws.servicediscovery#Timestamp", "traits": { "smithy.api#documentation": "The date that the namespace was created, in Unix date/time format and Coordinated Universal\n Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the\n value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
A unique string that identifies the request and that allows failed requests to be retried\n without the risk of running an operation twice.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains information about a specified namespace.
" } }, "com.amazonaws.servicediscovery#NamespaceAlreadyExists": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" }, "CreatorRequestId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The CreatorRequestId that was used to create the namespace.
The ID of the existing namespace.
" } } }, "traits": { "smithy.api#documentation": "The namespace that you're trying to create already exists.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.servicediscovery#NamespaceFilter": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.servicediscovery#NamespaceFilterName", "traits": { "smithy.api#documentation": "Specify the namespaces that you want to get using one of the following.
\n\n TYPE: Gets the namespaces of the specified type.
\n NAME: Gets the namespaces with the specified name.
\n HTTP_NAME: Gets the namespaces with the specified HTTP name.
\n RESOURCE_OWNER: Gets the namespaces created by your Amazon Web Services account or by other\n accounts. This can be used to filter for shared namespaces. For more information about shared\n namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
Specify the values that are applicable to the value that you specify for\n Name.
\n TYPE: Specify HTTP, DNS_PUBLIC, or\n DNS_PRIVATE.
\n NAME: Specify the name of the namespace, which is found in\n Namespace.Name.
\n HTTP_NAME: Specify the HTTP name of the namespace, which is found in\n Namespace.Properties.HttpProperties.HttpName.
\n RESOURCE_OWNER: Specify one of SELF or\n OTHER_ACCOUNTS. SELF can be used to filter namespaces created by you\n and OTHER_ACCOUNTS can be used to filter namespaces shared with you that were\n created by other accounts.
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 RESOURCE_OWNER and HTTP_NAME. EQ is the default\n 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.
A complex type that identifies the namespaces that you want to list. You can choose to list\n public or private namespaces.
" } }, "com.amazonaws.servicediscovery#NamespaceFilterName": { "type": "enum", "members": { "TYPE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "TYPE" } }, "NAME": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "NAME" } }, "HTTP_NAME": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "HTTP_NAME" } }, "RESOURCE_OWNER": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "RESOURCE_OWNER" } } } }, "com.amazonaws.servicediscovery#NamespaceFilters": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#NamespaceFilter", "traits": { "smithy.api#xmlName": "item" } } }, "com.amazonaws.servicediscovery#NamespaceName": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 1024 }, "smithy.api#pattern": "^[!-~]{1,1024}$" } }, "com.amazonaws.servicediscovery#NamespaceNameHttp": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 1024 }, "smithy.api#pattern": "^(?!arn:)[!-~]{1,1024}$" } }, "com.amazonaws.servicediscovery#NamespaceNamePrivate": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 253 }, "smithy.api#pattern": "^(?!arn:)[!-~]{1,253}$" } }, "com.amazonaws.servicediscovery#NamespaceNamePublic": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 253 }, "smithy.api#pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?$" } }, "com.amazonaws.servicediscovery#NamespaceNotFound": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "No namespace exists with the specified ID.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.servicediscovery#NamespaceProperties": { "type": "structure", "members": { "DnsProperties": { "target": "com.amazonaws.servicediscovery#DnsProperties", "traits": { "smithy.api#documentation": "A complex type that contains the ID for the Route\u00a053 hosted zone that Cloud Map creates when\n you create a namespace.
" } }, "HttpProperties": { "target": "com.amazonaws.servicediscovery#HttpProperties", "traits": { "smithy.api#documentation": "A complex type that contains the name of an HTTP namespace.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains information that's specific to the namespace type.
" } }, "com.amazonaws.servicediscovery#NamespaceSummariesList": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#NamespaceSummary" } }, "com.amazonaws.servicediscovery#NamespaceSummary": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID of the namespace.
" } }, "Arn": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.
" } }, "ResourceOwner": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that created the namespace. If this isn't your account ID, it's\n the ID of the account that shared the namespace with your account. For more information about\n shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
" } }, "Name": { "target": "com.amazonaws.servicediscovery#NamespaceName", "traits": { "smithy.api#documentation": "The name of the namespace. When you create a namespace, Cloud Map automatically creates a\n Route\u00a053 hosted zone that has the same name as the namespace.
" } }, "Type": { "target": "com.amazonaws.servicediscovery#NamespaceType", "traits": { "smithy.api#documentation": "The type of the namespace, either public or private.
" } }, "Description": { "target": "com.amazonaws.servicediscovery#ResourceDescription", "traits": { "smithy.api#documentation": "A description for the namespace.
" } }, "ServiceCount": { "target": "com.amazonaws.servicediscovery#ResourceCount", "traits": { "smithy.api#documentation": "The number of services that were created using the namespace.
" } }, "Properties": { "target": "com.amazonaws.servicediscovery#NamespaceProperties", "traits": { "smithy.api#documentation": "The properties of the namespace.
" } }, "CreateDate": { "target": "com.amazonaws.servicediscovery#Timestamp", "traits": { "smithy.api#documentation": "The date and time that the namespace was created.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains information about a namespace.
" } }, "com.amazonaws.servicediscovery#NamespaceType": { "type": "enum", "members": { "DNS_PUBLIC": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "DNS_PUBLIC" } }, "DNS_PRIVATE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "DNS_PRIVATE" } }, "HTTP": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "HTTP" } } } }, "com.amazonaws.servicediscovery#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 4096 } } }, "com.amazonaws.servicediscovery#Operation": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "The ID of the operation that you want to get information about.
" } }, "OwnerAccount": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the namespace associated with the operation.
" } }, "Type": { "target": "com.amazonaws.servicediscovery#OperationType", "traits": { "smithy.api#documentation": "The name of the operation that's associated with the specified ID.
" } }, "Status": { "target": "com.amazonaws.servicediscovery#OperationStatus", "traits": { "smithy.api#documentation": "The status of the operation. Values include the following:
\nThis is the initial state that occurs immediately after you submit a request.
\nCloud Map is performing the operation.
\nThe operation succeeded.
\nThe operation failed. For the failure reason, see ErrorMessage.
If the value of Status is FAIL, the reason that the operation\n failed.
The code associated with ErrorMessage. Values for ErrorCode\n include the following:
\n ACCESS_DENIED\n
\n CANNOT_CREATE_HOSTED_ZONE\n
\n EXPIRED_TOKEN\n
\n HOSTED_ZONE_NOT_FOUND\n
\n INTERNAL_FAILURE\n
\n INVALID_CHANGE_BATCH\n
\n THROTTLED_REQUEST\n
The date and time that the request was submitted, in Unix date/time format and Coordinated\n Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For\n example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087\n AM.
The date and time that the value of Status changed to the current value, in\n Unix date/time format and Coordinated Universal Time (UTC). The value of UpdateDate\n is accurate to milliseconds. For example, the value 1516925490.087 represents\n Friday, January 26, 2018 12:11:30.087 AM.
The name of the target entity that's associated with the operation:
\nThe namespace ID is returned in the ResourceId property.
The service ID is returned in the ResourceId property.
The instance ID is returned in the ResourceId property.
A complex type that contains information about a specified operation.
" } }, "com.amazonaws.servicediscovery#OperationFilter": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.servicediscovery#OperationFilterName", "traits": { "smithy.api#documentation": "Specify the operations that you want to get:
\n\n NAMESPACE_ID: Gets operations related to specified\n namespaces.
\n\n SERVICE_ID: Gets operations related to specified\n services.
\n\n STATUS: Gets operations based on the status of the\n operations: SUBMITTED, PENDING, SUCCEED, or\n FAIL.
\n TYPE: Gets specified types of operation.
\n\n UPDATE_DATE: Gets operations that changed status during a\n specified date/time range.
\nSpecify values that are applicable to the value that you specify for Name:
\n NAMESPACE_ID: Specify one namespace ID.
\n\n SERVICE_ID: Specify one service ID.
\n\n STATUS: Specify one or more statuses:\n SUBMITTED, PENDING, SUCCEED, or\n FAIL.
\n TYPE: Specify one or more of the following types:\n CREATE_NAMESPACE, DELETE_NAMESPACE, UPDATE_SERVICE,\n REGISTER_INSTANCE, or DEREGISTER_INSTANCE.
\n UPDATE_DATE: Specify a start date and an end date in Unix\n date/time format and Coordinated Universal Time (UTC). The start date must be the first\n value.
\nThe operator that you want to use to determine whether an operation matches the specified\n value. Valid values for condition include:
\n\n EQ: When you specify EQ for the condition, you can specify only\n one value. EQ is supported for NAMESPACE_ID, SERVICE_ID,\n STATUS, and TYPE. EQ is the default condition and can\n be omitted.
\n IN: When you specify IN for the condition, you can specify a\n list of one or more values. IN is supported for STATUS and\n TYPE. An operation must match one of the specified values to be returned in the\n response.
\n BETWEEN: Specify a start date and an end date in Unix date/time format and\n Coordinated Universal Time (UTC). The start date must be the first value. BETWEEN\n is supported for UPDATE_DATE.
A complex type that lets you select the operations that you want to list.
" } }, "com.amazonaws.servicediscovery#OperationFilterName": { "type": "enum", "members": { "NAMESPACE_ID": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "NAMESPACE_ID" } }, "SERVICE_ID": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "SERVICE_ID" } }, "STATUS": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "STATUS" } }, "TYPE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "TYPE" } }, "UPDATE_DATE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "UPDATE_DATE" } } } }, "com.amazonaws.servicediscovery#OperationFilters": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#OperationFilter", "traits": { "smithy.api#xmlName": "item" } } }, "com.amazonaws.servicediscovery#OperationId": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 255 } } }, "com.amazonaws.servicediscovery#OperationNotFound": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "No operation exists with the specified ID.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.servicediscovery#OperationStatus": { "type": "enum", "members": { "SUBMITTED": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "SUBMITTED" } }, "PENDING": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "PENDING" } }, "SUCCESS": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "SUCCESS" } }, "FAIL": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "FAIL" } } } }, "com.amazonaws.servicediscovery#OperationSummary": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "The ID for an operation.
" } }, "Status": { "target": "com.amazonaws.servicediscovery#OperationStatus", "traits": { "smithy.api#documentation": "The status of the operation. Values include the following:
\n\n SUBMITTED: This is the initial state immediately after\n you submit a request.
\n\n PENDING: Cloud Map is performing the operation.
\n\n SUCCESS: The operation succeeded.
\n\n FAIL: The operation failed. For the failure reason, see\n ErrorMessage.
A complex type that contains information about an operation that matches the criteria that\n you specified in a ListOperations request.
" } }, "com.amazonaws.servicediscovery#OperationSummaryList": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#OperationSummary", "traits": { "smithy.api#xmlName": "OperationSummary" } } }, "com.amazonaws.servicediscovery#OperationTargetType": { "type": "enum", "members": { "NAMESPACE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "NAMESPACE" } }, "SERVICE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "SERVICE" } }, "INSTANCE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "INSTANCE" } } } }, "com.amazonaws.servicediscovery#OperationTargetsMap": { "type": "map", "key": { "target": "com.amazonaws.servicediscovery#OperationTargetType" }, "value": { "target": "com.amazonaws.servicediscovery#ResourceId" } }, "com.amazonaws.servicediscovery#OperationType": { "type": "enum", "members": { "CREATE_NAMESPACE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "CREATE_NAMESPACE" } }, "DELETE_NAMESPACE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "DELETE_NAMESPACE" } }, "UPDATE_NAMESPACE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "UPDATE_NAMESPACE" } }, "UPDATE_SERVICE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "UPDATE_SERVICE" } }, "REGISTER_INSTANCE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "REGISTER_INSTANCE" } }, "DEREGISTER_INSTANCE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "DEREGISTER_INSTANCE" } } } }, "com.amazonaws.servicediscovery#PrivateDnsNamespaceChange": { "type": "structure", "members": { "Description": { "target": "com.amazonaws.servicediscovery#ResourceDescription", "traits": { "smithy.api#documentation": "An updated\n description for the private DNS namespace.
" } }, "Properties": { "target": "com.amazonaws.servicediscovery#PrivateDnsNamespacePropertiesChange", "traits": { "smithy.api#documentation": "Properties to be\n updated in the private DNS namespace.
" } } }, "traits": { "smithy.api#documentation": "Updated properties\n for the private DNS namespace.
" } }, "com.amazonaws.servicediscovery#PrivateDnsNamespaceProperties": { "type": "structure", "members": { "DnsProperties": { "target": "com.amazonaws.servicediscovery#PrivateDnsPropertiesMutable", "traits": { "smithy.api#documentation": "DNS properties for\n the private DNS namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "DNS properties for\n the private DNS namespace.
" } }, "com.amazonaws.servicediscovery#PrivateDnsNamespacePropertiesChange": { "type": "structure", "members": { "DnsProperties": { "target": "com.amazonaws.servicediscovery#PrivateDnsPropertiesMutableChange", "traits": { "smithy.api#documentation": "Updated DNS\n properties for the private DNS namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Updated properties\n for the private DNS namespace.
" } }, "com.amazonaws.servicediscovery#PrivateDnsPropertiesMutable": { "type": "structure", "members": { "SOA": { "target": "com.amazonaws.servicediscovery#SOA", "traits": { "smithy.api#documentation": "Fields for the Start\n of Authority (SOA) record for the hosted zone for the private DNS\n namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "DNS properties for\n the private DNS namespace.
" } }, "com.amazonaws.servicediscovery#PrivateDnsPropertiesMutableChange": { "type": "structure", "members": { "SOA": { "target": "com.amazonaws.servicediscovery#SOAChange", "traits": { "smithy.api#documentation": "Updated fields for\n the Start of Authority (SOA) record for the hosted zone for the private DNS\n namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Updated DNS\n properties for the private DNS namespace.
" } }, "com.amazonaws.servicediscovery#PublicDnsNamespaceChange": { "type": "structure", "members": { "Description": { "target": "com.amazonaws.servicediscovery#ResourceDescription", "traits": { "smithy.api#documentation": "An updated\n description for the public DNS namespace.
" } }, "Properties": { "target": "com.amazonaws.servicediscovery#PublicDnsNamespacePropertiesChange", "traits": { "smithy.api#documentation": "Properties to be\n updated in the public DNS namespace.
" } } }, "traits": { "smithy.api#documentation": "Updated properties\n for the public DNS namespace.
" } }, "com.amazonaws.servicediscovery#PublicDnsNamespaceProperties": { "type": "structure", "members": { "DnsProperties": { "target": "com.amazonaws.servicediscovery#PublicDnsPropertiesMutable", "traits": { "smithy.api#documentation": "DNS properties for\n the public DNS namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "DNS properties for\n the public DNS namespace.
" } }, "com.amazonaws.servicediscovery#PublicDnsNamespacePropertiesChange": { "type": "structure", "members": { "DnsProperties": { "target": "com.amazonaws.servicediscovery#PublicDnsPropertiesMutableChange", "traits": { "smithy.api#documentation": "Updated DNS\n properties for the hosted zone for the public DNS namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Updated properties\n for the public DNS namespace.
" } }, "com.amazonaws.servicediscovery#PublicDnsPropertiesMutable": { "type": "structure", "members": { "SOA": { "target": "com.amazonaws.servicediscovery#SOA", "traits": { "smithy.api#documentation": "Start of Authority\n (SOA) record for the hosted zone for the public DNS namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "DNS properties for\n the public DNS namespace.
" } }, "com.amazonaws.servicediscovery#PublicDnsPropertiesMutableChange": { "type": "structure", "members": { "SOA": { "target": "com.amazonaws.servicediscovery#SOAChange", "traits": { "smithy.api#documentation": "Updated fields for\n the Start of Authority (SOA) record for the hosted zone for the public DNS\n namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Updated DNS\n properties for the public DNS namespace.
" } }, "com.amazonaws.servicediscovery#RecordTTL": { "type": "long", "traits": { "smithy.api#range": { "min": 0, "max": 2147483647 } } }, "com.amazonaws.servicediscovery#RecordType": { "type": "enum", "members": { "SRV": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "SRV" } }, "A": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "A" } }, "AAAA": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "AAAA" } }, "CNAME": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "CNAME" } } } }, "com.amazonaws.servicediscovery#RegisterInstance": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#RegisterInstanceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#RegisterInstanceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#DuplicateRequest" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ResourceInUse" }, { "target": "com.amazonaws.servicediscovery#ResourceLimitExceeded" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Creates or updates one or more records and, optionally, creates a health check based on the\n settings in a specified service. When you submit a RegisterInstance request, the\n following occurs:
For each DNS record that you define in the service that's specified by\n ServiceId, a record is created or updated in the hosted zone that's associated\n with the corresponding namespace.
If the service includes HealthCheckConfig, a health check is created based on\n the settings in the health check configuration.
The health check, if any, is associated with each of the new or updated records.
\nOne RegisterInstance request must complete before you can submit another\n request and specify the same service ID and instance ID.
For more information, see CreateService.
\nWhen Cloud Map receives a DNS query for the specified DNS name, it returns the applicable\n value:
\n\n If the health check is healthy: returns all the\n records
\n\n If the health check is unhealthy: returns the applicable\n value for the last healthy instance
\n\n If you didn't specify a health check configuration:\n returns all the records
\nFor the current quota on the number of instances that you can register using the same\n namespace and using the same service, see Cloud Map quotas in the\n Cloud Map Developer Guide.
", "smithy.api#examples": [ { "title": "Example: Register Instance", "documentation": "Example: Register Instance", "input": { "ServiceId": "srv-p5zdwlg5uvvzjita", "InstanceId": "myservice-53", "Attributes": { "AWS_INSTANCE_IPV4": "172.2.1.3", "AWS_INSTANCE_PORT": "808" }, "CreatorRequestId": "7a48a98a-72e6-4849-bfa7-1a458e030d7b" }, "output": { "OperationId": "4yejorelbukcjzpnr6tlmrghsjwpngf4-k95yg2u7" } }, { "title": "Register instance using service ARN", "documentation": "Registers an instance using a service ARN instead of service ID, useful when working with shared namespaces. Shows registering an instance to a service created by a sharee in a namespace owned by another account.", "input": { "InstanceId": "i-abcd1234xmpl5678", "ServiceId": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678", "Attributes": { "AWS_INSTANCE_IPV4": "192.0.2.44", "AWS_INSTANCE_PORT": "80" } }, "output": { "OperationId": "abcd1234-xmpl-5678-9012-abcd1234xmpl" } } ] } }, "com.amazonaws.servicediscovery#RegisterInstanceRequest": { "type": "structure", "members": { "ServiceId": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance. For\n services created in a shared namespace, specify the service ARN. For more information about\n shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide.
", "smithy.api#required": {} } }, "InstanceId": { "target": "com.amazonaws.servicediscovery#InstanceId", "traits": { "smithy.api#documentation": "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 unique string that identifies the request and that allows failed\n RegisterInstance requests to be retried without the risk of executing the operation\n twice. You must use a unique CreatorRequestId string every time you submit a\n RegisterInstance request if you're registering additional instances for the same\n namespace and service. CreatorRequestId can be any unique string (for example, a\n date/time stamp).
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.
\nThe following are the supported attribute keys.
\nIf you want Cloud Map to create an Amazon Route\u00a053 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\u00a053 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\u00a053 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.
The AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US)\n Regions.
\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\u00a053 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\u00a053 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\u00a053 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\u00a053 to\n return for the port.
If the service includes HealthCheckConfig, the port on the endpoint that you\n want Route\u00a053 to send requests to.
This value is required if you specified settings for an SRV record or a\n Route\u00a053 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 value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#RequestLimitExceeded": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The operation can't be completed because you've reached the quota for the number of\n requests. For more information, see Cloud Map API request throttling quota in the\n Cloud Map Developer Guide.
", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.servicediscovery#ResourceCount": { "type": "integer" }, "com.amazonaws.servicediscovery#ResourceDescription": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 1024 } } }, "com.amazonaws.servicediscovery#ResourceId": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 64 } } }, "com.amazonaws.servicediscovery#ResourceInUse": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The specified resource can't be deleted because it contains other resources. For example,\n you can't delete a service that contains any instances.
", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.servicediscovery#ResourceLimitExceeded": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The resource can't be created because you've reached the quota on the number of\n resources.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.servicediscovery#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The operation can't be completed because the resource was not found.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.servicediscovery#ResourcePath": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 255 } } }, "com.amazonaws.servicediscovery#Revision": { "type": "long" }, "com.amazonaws.servicediscovery#Route53AutoNaming_v20170314": { "type": "service", "version": "2017-03-14", "operations": [ { "target": "com.amazonaws.servicediscovery#CreateHttpNamespace" }, { "target": "com.amazonaws.servicediscovery#CreatePrivateDnsNamespace" }, { "target": "com.amazonaws.servicediscovery#CreatePublicDnsNamespace" }, { "target": "com.amazonaws.servicediscovery#CreateService" }, { "target": "com.amazonaws.servicediscovery#DeleteNamespace" }, { "target": "com.amazonaws.servicediscovery#DeleteService" }, { "target": "com.amazonaws.servicediscovery#DeleteServiceAttributes" }, { "target": "com.amazonaws.servicediscovery#DeregisterInstance" }, { "target": "com.amazonaws.servicediscovery#DiscoverInstances" }, { "target": "com.amazonaws.servicediscovery#DiscoverInstancesRevision" }, { "target": "com.amazonaws.servicediscovery#GetInstance" }, { "target": "com.amazonaws.servicediscovery#GetInstancesHealthStatus" }, { "target": "com.amazonaws.servicediscovery#GetNamespace" }, { "target": "com.amazonaws.servicediscovery#GetOperation" }, { "target": "com.amazonaws.servicediscovery#GetService" }, { "target": "com.amazonaws.servicediscovery#GetServiceAttributes" }, { "target": "com.amazonaws.servicediscovery#ListInstances" }, { "target": "com.amazonaws.servicediscovery#ListNamespaces" }, { "target": "com.amazonaws.servicediscovery#ListOperations" }, { "target": "com.amazonaws.servicediscovery#ListServices" }, { "target": "com.amazonaws.servicediscovery#ListTagsForResource" }, { "target": "com.amazonaws.servicediscovery#RegisterInstance" }, { "target": "com.amazonaws.servicediscovery#TagResource" }, { "target": "com.amazonaws.servicediscovery#UntagResource" }, { "target": "com.amazonaws.servicediscovery#UpdateHttpNamespace" }, { "target": "com.amazonaws.servicediscovery#UpdateInstanceCustomHealthStatus" }, { "target": "com.amazonaws.servicediscovery#UpdatePrivateDnsNamespace" }, { "target": "com.amazonaws.servicediscovery#UpdatePublicDnsNamespace" }, { "target": "com.amazonaws.servicediscovery#UpdateService" }, { "target": "com.amazonaws.servicediscovery#UpdateServiceAttributes" } ], "traits": { "aws.api#service": { "sdkId": "ServiceDiscovery", "arnNamespace": "servicediscovery", "cloudFormationName": "ServiceDiscovery", "cloudTrailEventSource": "servicediscovery.amazonaws.com", "endpointPrefix": "servicediscovery" }, "aws.auth#sigv4": { "name": "servicediscovery" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your\n microservice applications run in. When an instance becomes available, you can call the Cloud Map\n API to register the instance with Cloud Map. For public or private DNS namespaces, Cloud Map\n automatically creates DNS records and an optional health check. Clients that submit public or\n private DNS queries, or HTTP requests, for the service receive an answer that contains up to\n eight healthy records.
", "smithy.api#title": "AWS Cloud Map", "smithy.protocols#rpcv2Cbor": {}, "smithy.rules#endpointBdd": { "version": "1.1", "parameters": { "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" }, "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" } }, "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] }, { "fn": "isSet", "argv": [ { "ref": "Region" } ] }, { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" }, { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "results": [ { "conditions": [], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://servicediscovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://servicediscovery-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://servicediscovery.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://servicediscovery.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "root": 2, "nodeCount": 13, "nodes": "/////wAAAAH/////AAAAAAAAAAwAAAADAAAAAQAAAAQF9eELAAAAAgAAAAUF9eELAAAAAwAAAAgAAAAGAAAABAAAAAcF9eEKAAAABQX14QgF9eEJAAAABAAAAAoAAAAJAAAABgX14QYF9eEHAAAABQAAAAsF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAANAAAABAX14QIF9eED" }, "smithy.rules#endpointRuleSet": { "version": "1.0", "parameters": { "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" }, "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" } }, "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Region" } ] } ], "rules": [ { "conditions": [ { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] } ] }, { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://servicediscovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, false ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://servicediscovery-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, false ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://servicediscovery.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } ], "type": "tree" }, { "conditions": [], "endpoint": { "url": "https://servicediscovery.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "type": "tree" } ] }, "smithy.rules#endpointTests": { "testCases": [ { "documentation": "For custom endpoint with region not set and fips disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "Endpoint": "https://example.com", "UseFIPS": false } }, { "documentation": "For custom endpoint with fips enabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Endpoint": "https://example.com", "UseFIPS": true } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Endpoint": "https://example.com", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.cn-northwest-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-northwest-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.cn-northwest-1.amazonaws.com.cn" } }, "params": { "Region": "cn-northwest-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery.cn-northwest-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-northwest-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.cn-northwest-1.amazonaws.com.cn" } }, "params": { "Region": "cn-northwest-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eusc-de-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.eusc-de-east-1.amazonaws.eu" } }, "params": { "Region": "eusc-de-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region eusc-de-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.eusc-de-east-1.amazonaws.eu" } }, "params": { "Region": "eusc-de-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-isoe-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.eu-isoe-west-1.cloud.adc-e.uk" } }, "params": { "Region": "eu-isoe-west-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.eu-isoe-west-1.cloud.adc-e.uk" } }, "params": { "Region": "eu-isoe-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-isof-south-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-isof-south-1.csp.hci.ic.gov" } }, "params": { "Region": "us-isof-south-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-isof-south-1.csp.hci.ic.gov" } }, "params": { "Region": "us-isof-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-gov-west-1.api.aws" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery-fips.us-gov-west-1.amazonaws.com" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-gov-west-1.api.aws" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://servicediscovery.us-gov-west-1.amazonaws.com" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "Missing region", "expect": { "error": "Invalid Configuration: Missing Region" } } ], "version": "1.0" } } }, "com.amazonaws.servicediscovery#RoutingPolicy": { "type": "enum", "members": { "MULTIVALUE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "MULTIVALUE" } }, "WEIGHTED": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "WEIGHTED" } } } }, "com.amazonaws.servicediscovery#SOA": { "type": "structure", "members": { "TTL": { "target": "com.amazonaws.servicediscovery#RecordTTL", "traits": { "smithy.api#documentation": "The time to live\n (TTL) for purposes of negative caching.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Start of Authority\n (SOA) properties for a public or private DNS namespace.
" } }, "com.amazonaws.servicediscovery#SOAChange": { "type": "structure", "members": { "TTL": { "target": "com.amazonaws.servicediscovery#RecordTTL", "traits": { "smithy.api#documentation": "The updated time to\n live (TTL) for purposes of negative caching.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Updated Start of\n Authority (SOA) properties for a public or private DNS namespace.
" } }, "com.amazonaws.servicediscovery#Service": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID that Cloud Map assigned to the service when you created it.
" } }, "Arn": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
" } }, "ResourceOwner": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that created the namespace with which the service is associated.\n If this isn't your account ID, it is the ID of the account that shared the namespace with your\n account. For more information about shared namespaces, see Cross-account Cloud Map\n namespace sharing in the Cloud Map Developer Guide.
" } }, "Name": { "target": "com.amazonaws.servicediscovery#ServiceName", "traits": { "smithy.api#documentation": "The name of the service.
" } }, "NamespaceId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID of the namespace that was used to create the service.
" } }, "Description": { "target": "com.amazonaws.servicediscovery#ResourceDescription", "traits": { "smithy.api#documentation": "The description of the service.
" } }, "InstanceCount": { "target": "com.amazonaws.servicediscovery#ResourceCount", "traits": { "smithy.api#documentation": "The number of instances that are currently associated with the service. Instances that were\n previously associated with the service but that are deleted aren't included in the count. The\n count might not reflect pending registrations and deregistrations.
" } }, "DnsConfig": { "target": "com.amazonaws.servicediscovery#DnsConfig", "traits": { "smithy.api#documentation": "A complex type that contains information about the Route\u00a053 DNS records that you want\n Cloud Map to create when you register an instance.
\nThe record types of a service can only be changed by deleting the service and recreating it\n with a new Dnsconfig.
Describes the systems that can be used to discover the service instances.
\nThe service instances can be discovered using either DNS queries or the\n DiscoverInstances API operation.
The service instances can only be discovered using the DiscoverInstances API\n operation.
Reserved.
\n\n Public DNS and HTTP namespaces only. A complex type that contains\n settings for an optional health check. If you specify settings for a health check, Cloud Map\n associates the health check with the records that you specify in DnsConfig.
For information about the charges for health checks, see Amazon Route\u00a053 Pricing.
" } }, "HealthCheckCustomConfig": { "target": "com.amazonaws.servicediscovery#HealthCheckCustomConfig", "traits": { "smithy.api#documentation": "A complex type that contains information about an optional custom health check.
\nIf you specify a health check configuration, you can specify either\n HealthCheckCustomConfig or HealthCheckConfig but not both.
The date and time that the service was created, in Unix format and Coordinated Universal\n Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the\n value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
A unique string that identifies the request and that allows failed requests to be retried\n without the risk of running the operation twice. CreatorRequestId can be any unique\n string (for example, a date/timestamp).
The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is\n the ID of account of the namespace owner or of another account with which the namespace has been\n shared. For more information about shared namespaces, see Cross-account Cloud Map\n namespace sharing in the Cloud Map Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains information about the specified service.
" } }, "com.amazonaws.servicediscovery#ServiceAlreadyExists": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" }, "CreatorRequestId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The CreatorRequestId that was used to create the service.
The ID of the existing service.
" } }, "ServiceArn": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ARN of the existing service.
" } } }, "traits": { "smithy.api#documentation": "The service can't be created because a service with the same name already exists.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.servicediscovery#ServiceAttributeKey": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 255 } } }, "com.amazonaws.servicediscovery#ServiceAttributeKeyList": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#ServiceAttributeKey" }, "traits": { "smithy.api#length": { "min": 1, "max": 30 } } }, "com.amazonaws.servicediscovery#ServiceAttributeValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 1024 } } }, "com.amazonaws.servicediscovery#ServiceAttributes": { "type": "structure", "members": { "ServiceArn": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ARN of the service that the attributes are associated with.
" } }, "ResourceOwner": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that created the namespace with which the service is associated.\n If this isn't your account ID, it is the ID of the account that shared the namespace with your\n account. For more information about shared namespaces, see Cross-account Cloud Map\n namespace sharing in the Cloud Map Developer Guide.
" } }, "Attributes": { "target": "com.amazonaws.servicediscovery#ServiceAttributesMap", "traits": { "smithy.api#documentation": "A string map that contains the following information for the service that you specify in\n ServiceArn:
The attributes that apply to the service.
\nFor each attribute, the applicable value.
\nYou can specify a total of 30 attributes.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains information about attributes associated with a specific\n service.
" } }, "com.amazonaws.servicediscovery#ServiceAttributesLimitExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The attribute can't be added to the service because you've exceeded the quota for the number\n of attributes you can add to a service.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.servicediscovery#ServiceAttributesMap": { "type": "map", "key": { "target": "com.amazonaws.servicediscovery#ServiceAttributeKey" }, "value": { "target": "com.amazonaws.servicediscovery#ServiceAttributeValue" }, "traits": { "smithy.api#length": { "min": 1, "max": 30 } } }, "com.amazonaws.servicediscovery#ServiceChange": { "type": "structure", "members": { "Description": { "target": "com.amazonaws.servicediscovery#ResourceDescription", "traits": { "smithy.api#documentation": "A description for the service.
" } }, "DnsConfig": { "target": "com.amazonaws.servicediscovery#DnsConfigChange", "traits": { "smithy.api#documentation": "Information about the Route\u00a053 DNS records that you want Cloud Map to create when you register\n an instance.
" } }, "HealthCheckConfig": { "target": "com.amazonaws.servicediscovery#HealthCheckConfig", "traits": { "smithy.api#documentation": "\n Public DNS and HTTP namespaces only. Settings for an optional health\n check. If you specify settings for a health check, Cloud Map associates the health check with\n the records that you specify in DnsConfig.
A complex type that contains changes to an existing service.
" } }, "com.amazonaws.servicediscovery#ServiceFilter": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.servicediscovery#ServiceFilterName", "traits": { "smithy.api#documentation": "Specify the services that you want to get using one of the following.
\n\n NAMESPACE_ID: Gets the services associated with the specified\n namespace.
\n RESOURCE_OWNER: Gets the services associated with the namespaces created by\n your Amazon Web Services account or by other accounts. This can be used to filter for services created in a\n shared namespace. For more information about shared namespaces, see Cross-account Cloud Map\n namespace sharing in the Cloud Map Developer Guide.
The values that are applicable to the value that you specify for Condition to\n filter the list of services.
\n NAMESPACE_ID: Specify one namespace ID or ARN. Specify\n the namespace ARN for namespaces that are shared with your Amazon Web Services account.
\n\n RESOURCE_OWNER: Specify one of SELF or\n OTHER_ACCOUNTS. SELF can be used to filter services associated with\n namespaces created by you and OTHER_ACCOUNTS can be used to filter services\n associated with namespaces that were shared with you.
The operator that you want to use to determine whether a service is returned by\n ListServices. Valid values for Condition include the following:
\n EQ: When you specify EQ, specify one value. EQ is\n the default condition and can be omitted.
A complex type that lets you specify the namespaces that you want to list services\n for.
" } }, "com.amazonaws.servicediscovery#ServiceFilterName": { "type": "enum", "members": { "NAMESPACE_ID": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "NAMESPACE_ID" } }, "RESOURCE_OWNER": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "RESOURCE_OWNER" } } } }, "com.amazonaws.servicediscovery#ServiceFilters": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#ServiceFilter", "traits": { "smithy.api#xmlName": "item" } } }, "com.amazonaws.servicediscovery#ServiceName": { "type": "string", "traits": { "smithy.api#pattern": "^((?=^.{1,127}$)^([a-zA-Z0-9_][a-zA-Z0-9-_]{0,61}[a-zA-Z0-9_]|[a-zA-Z0-9])(\\.([a-zA-Z0-9_][a-zA-Z0-9-_]{0,61}[a-zA-Z0-9_]|[a-zA-Z0-9]))*$)|(^\\.$)$" } }, "com.amazonaws.servicediscovery#ServiceNotFound": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "No service exists with the specified ID.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.servicediscovery#ServiceSummariesList": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#ServiceSummary" } }, "com.amazonaws.servicediscovery#ServiceSummary": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID that Cloud Map assigned to the service when you created it.
" } }, "Arn": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
" } }, "ResourceOwner": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that created the namespace with which the service is associated.\n If this isn't your account ID, it is the ID of the account that shared the namespace with your\n account. For more information about shared namespaces, see Cross-account Cloud Map\n namespace sharing in the Cloud Map Developer Guide.
" } }, "Name": { "target": "com.amazonaws.servicediscovery#ServiceName", "traits": { "smithy.api#documentation": "The name of the service.
" } }, "Type": { "target": "com.amazonaws.servicediscovery#ServiceType", "traits": { "smithy.api#documentation": "Describes the systems that can be used to discover the service instances.
\nThe service instances can be discovered using either DNS queries or the\n DiscoverInstances API operation.
The service instances can only be discovered using the DiscoverInstances API\n operation.
Reserved.
\nThe description that you specify when you create the service.
" } }, "InstanceCount": { "target": "com.amazonaws.servicediscovery#ResourceCount", "traits": { "smithy.api#documentation": "The number of instances that are currently associated with the service. Instances that were\n previously associated with the service but that are deleted aren't included in the count. The\n count might not reflect pending registrations and deregistrations.
" } }, "DnsConfig": { "target": "com.amazonaws.servicediscovery#DnsConfig", "traits": { "smithy.api#documentation": "Information about the Route\u00a053 DNS records that you want Cloud Map to create when you register\n an instance.
" } }, "HealthCheckConfig": { "target": "com.amazonaws.servicediscovery#HealthCheckConfig", "traits": { "smithy.api#documentation": "\n Public DNS and HTTP namespaces only. Settings for an optional health\n check. If you specify settings for a health check, Cloud Map associates the health check with\n the records that you specify in DnsConfig.
Information about an optional custom health check. A custom health check, which requires\n that you use a third-party health checker to evaluate the health of your resources, is useful in\n the following circumstances:
\nYou can't use a health check that's defined by HealthCheckConfig because the\n resource isn't available over the internet. For example, you can use a custom health check when\n the instance is in an Amazon VPC. (To check the health of resources in a VPC, the health\n checker must also be in the VPC.)
You want to use a third-party health checker regardless of where your resources are\n located.
\nIf you specify a health check configuration, you can specify either\n HealthCheckCustomConfig or HealthCheckConfig but not both.
The date and time that the service was created.
" } }, "CreatedByAccount": { "target": "com.amazonaws.servicediscovery#AWSAccountId", "traits": { "smithy.api#documentation": "The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is\n the account ID of the namespace owner or of another account with which the namespace has been\n shared. For more information about shared namespaces, see Cross-account Cloud Map\n namespace sharing in the Cloud Map Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "A complex type that contains information about a specified service.
" } }, "com.amazonaws.servicediscovery#ServiceType": { "type": "enum", "members": { "HTTP": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "HTTP" } }, "DNS_HTTP": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "DNS_HTTP" } }, "DNS": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "DNS" } } } }, "com.amazonaws.servicediscovery#ServiceTypeOption": { "type": "enum", "members": { "HTTP": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "HTTP" } } } }, "com.amazonaws.servicediscovery#Tag": { "type": "structure", "members": { "Key": { "target": "com.amazonaws.servicediscovery#TagKey", "traits": { "smithy.api#documentation": "The key identifier, or name, of the tag.
", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.servicediscovery#TagValue", "traits": { "smithy.api#documentation": "The string value that's associated with the key of the tag. You can set the value of a tag\n to an empty string, but you can't set the value of a tag to null.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A custom key-value pair that's associated with a resource.
" } }, "com.amazonaws.servicediscovery#TagKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.servicediscovery#TagKeyList": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#TagKey" }, "traits": { "smithy.api#length": { "min": 0, "max": 200 } } }, "com.amazonaws.servicediscovery#TagList": { "type": "list", "member": { "target": "com.amazonaws.servicediscovery#Tag" }, "traits": { "smithy.api#length": { "min": 0, "max": 200 } } }, "com.amazonaws.servicediscovery#TagResource": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#TagResourceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#TagResourceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ResourceNotFoundException" }, { "target": "com.amazonaws.servicediscovery#TooManyTagsException" } ], "traits": { "smithy.api#documentation": "Adds one or more tags to the specified resource.
", "smithy.api#examples": [ { "title": "TagResource example", "documentation": "This example adds \"Department\" and \"Project\" tags to a resource.", "input": { "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm", "Tags": [ { "Key": "Department", "Value": "Engineering" }, { "Key": "Project", "Value": "Zeta" } ] }, "output": {} } ] } }, "com.amazonaws.servicediscovery#TagResourceRequest": { "type": "structure", "members": { "ResourceARN": { "target": "com.amazonaws.servicediscovery#AmazonResourceName", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource that you want to retrieve tags for.
", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.servicediscovery#TagList", "traits": { "smithy.api#documentation": "The tags to add to the specified resource. Specifying the tag key is required. You can set\n the value of a tag to an empty string, but you can't set the value of a tag to null.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#TagResourceResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#TagValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.servicediscovery#Timestamp": { "type": "timestamp" }, "com.amazonaws.servicediscovery#TooManyTagsException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.servicediscovery#ErrorMessage" }, "ResourceName": { "target": "com.amazonaws.servicediscovery#AmazonResourceName", "traits": { "smithy.api#documentation": "The name of the resource.
" } } }, "traits": { "smithy.api#documentation": "The list of tags on the resource is over the quota. The maximum number of tags that can be\n applied to a resource is 50.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.servicediscovery#UntagResource": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#UntagResourceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#UntagResourceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Removes one or more tags from the specified resource.
", "smithy.api#examples": [ { "title": "UntagResource example", "documentation": "This example removes the \"Department\" and \"Project\" tags from a resource.", "input": { "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm", "TagKeys": [ "Project", "Department" ] }, "output": {} } ] } }, "com.amazonaws.servicediscovery#UntagResourceRequest": { "type": "structure", "members": { "ResourceARN": { "target": "com.amazonaws.servicediscovery#AmazonResourceName", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource that you want to retrieve tags for.
", "smithy.api#required": {} } }, "TagKeys": { "target": "com.amazonaws.servicediscovery#TagKeyList", "traits": { "smithy.api#documentation": "The tag keys to remove from the specified resource.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#UntagResourceResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#UpdateHttpNamespace": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#UpdateHttpNamespaceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#UpdateHttpNamespaceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#DuplicateRequest" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#NamespaceNotFound" }, { "target": "com.amazonaws.servicediscovery#ResourceInUse" } ], "traits": { "smithy.api#documentation": "Updates an HTTP\n namespace.
", "smithy.api#examples": [ { "title": "To update a HTTP namespace", "documentation": "The following example updates the description of a HTTP namespace.", "input": { "Id": "ns-vh4nbmEXAMPLE", "Namespace": { "Description": "The updated namespace description." } }, "output": { "OperationId": "ft52xe2koxhoeormaceymagglsdjyvEXAMPLE" } }, { "title": "Update HTTP namespace using namespace ARN for shared namespace", "documentation": "This example updates an HTTP namespace using a namespace ARN instead of namespace ID.", "input": { "Id": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-vh4nbmexample", "Namespace": { "Description": "Updated description for shared HTTP namespace." } }, "output": { "OperationId": "ft52xe2koxhoeormaceymagglsdjyvexample" } } ] } }, "com.amazonaws.servicediscovery#UpdateHttpNamespaceRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the namespace that you want to update.
", "smithy.api#required": {} } }, "UpdaterRequestId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "A unique string that identifies the request and that allows failed\n UpdateHttpNamespace requests to be retried without the risk of running the\n operation twice. UpdaterRequestId can be any unique string (for example, a\n date/timestamp).
Updated properties for the the HTTP namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#UpdateHttpNamespaceResponse": { "type": "structure", "members": { "OperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "A value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#UpdateInstanceCustomHealthStatus": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#UpdateInstanceCustomHealthStatusRequest" }, "output": { "target": "smithy.api#Unit" }, "errors": [ { "target": "com.amazonaws.servicediscovery#CustomHealthNotFound" }, { "target": "com.amazonaws.servicediscovery#InstanceNotFound" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Submits a request to change the health status of a custom health check to healthy or\n unhealthy.
\nYou can use UpdateInstanceCustomHealthStatus to change the status only for\n custom health checks, which you define using HealthCheckCustomConfig when you create\n a service. You can't use it to change the status for Route\u00a053 health checks, which you define using\n HealthCheckConfig.
For more information, see HealthCheckCustomConfig.
", "smithy.api#examples": [ { "title": "Update instance custom health status using service ARN", "documentation": "Updates instance custom health status using a service ARN instead of service ID, useful when working with shared namespaces.", "input": { "InstanceId": "i-abcd1234xmpl5678", "ServiceId": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678", "Status": "HEALTHY" }, "output": {} }, { "title": "UpdateInstanceCustomHealthStatus Example", "documentation": "This example submits a request to change the health status of an instance associated with a service with a custom health check to HEALTHY.", "input": { "InstanceId": "i-abcd1234", "ServiceId": "srv-e4anhexample0004", "Status": "HEALTHY" } } ] } }, "com.amazonaws.servicediscovery#UpdateInstanceCustomHealthStatusRequest": { "type": "structure", "members": { "ServiceId": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that includes the configuration for the custom health\n check that you want to change the status for. For services created in a shared namespace, specify\n the service ARN. For more information about shared namespaces, see Cross-account Cloud Map\n namespace sharing in the Cloud Map Developer Guide.
", "smithy.api#required": {} } }, "InstanceId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "The ID of the instance that you want to change the health status for.
", "smithy.api#required": {} } }, "Status": { "target": "com.amazonaws.servicediscovery#CustomHealthStatus", "traits": { "smithy.api#documentation": "The new status of the instance, HEALTHY or UNHEALTHY.
Updates a private DNS\n namespace.
", "smithy.api#examples": [ { "title": "To update a private DNS namespace", "documentation": "The following example updates the description of a private DNS namespace.", "input": { "Id": "ns-bk3aEXAMPLE", "UpdaterRequestId": "", "Namespace": { "Description": "The updated namespace description." } }, "output": { "OperationId": "ft52xe2koxhoeormaceymagglsdjyvEXAMPLE" } }, { "title": "Update private DNS namespace using namespace ARN for shared namespace", "documentation": "This example updates a private DNS namespace using a namespace ARN instead of namespace ID.", "input": { "Id": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-bk3aexample", "Namespace": { "Description": "Updated description for shared private DNS namespace." } }, "output": { "OperationId": "ft52xe2koxhoeormaceymagglsdjyvexample" } } ] } }, "com.amazonaws.servicediscovery#UpdatePrivateDnsNamespaceRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the namespace that you want to update.
", "smithy.api#required": {} } }, "UpdaterRequestId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "A unique string that identifies the request and that allows failed\n UpdatePrivateDnsNamespace requests to be retried without the risk of running the\n operation twice. UpdaterRequestId can be any unique string (for example, a\n date/timestamp).
Updated properties for the private DNS namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#UpdatePrivateDnsNamespaceResponse": { "type": "structure", "members": { "OperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "A value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#UpdatePublicDnsNamespace": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#UpdatePublicDnsNamespaceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#UpdatePublicDnsNamespaceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#DuplicateRequest" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#NamespaceNotFound" }, { "target": "com.amazonaws.servicediscovery#ResourceInUse" } ], "traits": { "smithy.api#documentation": "Updates a public DNS namespace.
", "smithy.api#examples": [ { "title": "To update a public DNS namespace", "documentation": "The following example updates the description of a public DNS namespace.", "input": { "Id": "ns-bk3aEXAMPLE", "UpdaterRequestId": "", "Namespace": { "Description": "The updated namespace description." } }, "output": { "OperationId": "ft52xe2koxhoeormaceymagglsdjEXAMPLE" } }, { "title": "Update public DNS namespace using namespace ARN for shared namespace", "documentation": "This example updates a public DNS namespace using a namespace ARN instead of namespace ID.", "input": { "Id": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-bk3aexample", "Namespace": { "Description": "Updated description for shared public DNS namespace." } }, "output": { "OperationId": "ft52xe2koxhoeormaceymagglsdjexample" } } ] } }, "com.amazonaws.servicediscovery#UpdatePublicDnsNamespaceRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the namespace being updated.
", "smithy.api#required": {} } }, "UpdaterRequestId": { "target": "com.amazonaws.servicediscovery#ResourceId", "traits": { "smithy.api#documentation": "A unique string that identifies the request and that allows failed\n UpdatePublicDnsNamespace requests to be retried without the risk of running the\n operation twice. UpdaterRequestId can be any unique string (for example, a\n date/timestamp).
Updated properties for the public DNS namespace.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#UpdatePublicDnsNamespaceResponse": { "type": "structure", "members": { "OperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "A value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#UpdateService": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#UpdateServiceRequest" }, "output": { "target": "com.amazonaws.servicediscovery#UpdateServiceResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#DuplicateRequest" }, { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Submits a request to perform the following operations:
\nUpdate the TTL setting for existing DnsRecords configurations
Add, update, or delete HealthCheckConfig for a specified service
You can't add, update, or delete a HealthCheckCustomConfig\n configuration.
For public and private DNS namespaces, note the following:
\nIf you omit any existing DnsRecords or HealthCheckConfig\n configurations from an UpdateService request, the configurations are deleted from\n the service.
If you omit an existing HealthCheckCustomConfig configuration from an\n UpdateService request, the configuration isn't deleted from the service.
You can't call UpdateService and update settings in the following\n scenarios:
When the service is associated with an HTTP namespace
\nWhen the service is associated with a shared namespace and contains instances that were\n registered by Amazon Web Services accounts other than the account making the UpdateService\n call
When you update settings for a service, Cloud Map also updates the corresponding settings\n in all the records and health checks that were created by using the specified service.
", "smithy.api#examples": [ { "title": "UpdateService Example", "documentation": "This example submits a request to replace the DnsConfig and HealthCheckConfig settings of a specified service.", "input": { "Id": "srv-e4anhexample0004", "Service": { "HealthCheckConfig": { "Type": "HTTP", "ResourcePath": "/", "FailureThreshold": 2 }, "DnsConfig": { "DnsRecords": [ { "Type": "A", "TTL": 60 } ] } } }, "output": { "OperationId": "m35hsdrkxwjffm3xef4bxyy6vc3ewakx-jdn3y5g5" } }, { "title": "Update service using service ARN for shared namespace", "documentation": "This example updates a service using a service ARN instead of service ID. This is useful for updating services associated with shared namespaces.", "input": { "Id": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004", "Service": { "Description": "Updated service description for shared namespace" } }, "output": { "OperationId": "m35hsdrkxwjffm3xef4bxyy6vc3ewakx-jdn3y5g5" } } ] } }, "com.amazonaws.servicediscovery#UpdateServiceAttributes": { "type": "operation", "input": { "target": "com.amazonaws.servicediscovery#UpdateServiceAttributesRequest" }, "output": { "target": "com.amazonaws.servicediscovery#UpdateServiceAttributesResponse" }, "errors": [ { "target": "com.amazonaws.servicediscovery#InvalidInput" }, { "target": "com.amazonaws.servicediscovery#ServiceAttributesLimitExceededException" }, { "target": "com.amazonaws.servicediscovery#ServiceNotFound" } ], "traits": { "smithy.api#documentation": "Submits a request to update a specified service to add service-level attributes.
", "smithy.api#examples": [ { "title": "Update service attributes using service ARN", "documentation": "Updates service attributes using a service ARN instead of service ID, useful when working with shared namespaces.", "input": { "ServiceId": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678", "Attributes": { "Port": "8080", "Protocol": "HTTP" } }, "output": {} }, { "title": "UpdateServiceAttributes Example", "documentation": "This example submits a request to update the specified service to add a port attribute with the value 80.", "input": { "ServiceId": "srv-e4anhexample0004", "Attributes": { "port": "80" } }, "output": {} } ] } }, "com.amazonaws.servicediscovery#UpdateServiceAttributesRequest": { "type": "structure", "members": { "ServiceId": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that you want to update. For services created in a\n namespace shared with your Amazon Web Services account, specify the service ARN.
", "smithy.api#required": {} } }, "Attributes": { "target": "com.amazonaws.servicediscovery#ServiceAttributesMap", "traits": { "smithy.api#documentation": "A string map that contains attribute key-value pairs.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#UpdateServiceAttributesResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#output": {} } }, "com.amazonaws.servicediscovery#UpdateServiceRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.servicediscovery#Arn", "traits": { "smithy.api#documentation": "The ID or Amazon Resource Name (ARN) of the service that you want to update. If the namespace associated with\n the service is shared with your Amazon Web Services account, specify the service ARN. For more information\n about shared namespaces, see Cross-account Cloud Map namespace sharing in the\n Cloud Map Developer Guide\n
", "smithy.api#required": {} } }, "Service": { "target": "com.amazonaws.servicediscovery#ServiceChange", "traits": { "smithy.api#documentation": "A complex type that contains the new settings for the service. You can specify a maximum of\n 30 attributes (key-value pairs).
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.servicediscovery#UpdateServiceResponse": { "type": "structure", "members": { "OperationId": { "target": "com.amazonaws.servicediscovery#OperationId", "traits": { "smithy.api#documentation": "A value that you can use to determine whether the request completed successfully.\n To get the status of the operation, see GetOperation.
" } } }, "traits": { "smithy.api#output": {} } } } }