|
5 | 5 | "endpointPrefix":"servicediscovery",
|
6 | 6 | "jsonVersion":"1.1",
|
7 | 7 | "protocol":"json",
|
| 8 | + "protocols":["json"], |
8 | 9 | "serviceAbbreviation":"ServiceDiscovery",
|
9 | 10 | "serviceFullName":"AWS Cloud Map",
|
10 | 11 | "serviceId":"ServiceDiscovery",
|
11 | 12 | "signatureVersion":"v4",
|
12 | 13 | "targetPrefix":"Route53AutoNaming_v20170314",
|
13 |
| - "uid":"servicediscovery-2017-03-14" |
| 14 | + "uid":"servicediscovery-2017-03-14", |
| 15 | + "auth":["aws.auth#sigv4"] |
14 | 16 | },
|
15 | 17 | "operations":{
|
16 | 18 | "CreateHttpNamespace":{
|
|
110 | 112 | {"shape":"ServiceNotFound"},
|
111 | 113 | {"shape":"ResourceInUse"}
|
112 | 114 | ],
|
113 |
| - "documentation":"<p>Deletes a specified service. If the service still contains one or more registered instances, the request fails.</p>" |
| 115 | + "documentation":"<p>Deletes a specified service and all associated service attributes. If the service still contains one or more registered instances, the request fails.</p>" |
| 116 | + }, |
| 117 | + "DeleteServiceAttributes":{ |
| 118 | + "name":"DeleteServiceAttributes", |
| 119 | + "http":{ |
| 120 | + "method":"POST", |
| 121 | + "requestUri":"/" |
| 122 | + }, |
| 123 | + "input":{"shape":"DeleteServiceAttributesRequest"}, |
| 124 | + "output":{"shape":"DeleteServiceAttributesResponse"}, |
| 125 | + "errors":[ |
| 126 | + {"shape":"InvalidInput"}, |
| 127 | + {"shape":"ServiceNotFound"} |
| 128 | + ], |
| 129 | + "documentation":"<p>Deletes specific attributes associated with a service.</p>" |
114 | 130 | },
|
115 | 131 | "DeregisterInstance":{
|
116 | 132 | "name":"DeregisterInstance",
|
|
235 | 251 | ],
|
236 | 252 | "documentation":"<p>Gets the settings for a specified service.</p>"
|
237 | 253 | },
|
| 254 | + "GetServiceAttributes":{ |
| 255 | + "name":"GetServiceAttributes", |
| 256 | + "http":{ |
| 257 | + "method":"POST", |
| 258 | + "requestUri":"/" |
| 259 | + }, |
| 260 | + "input":{"shape":"GetServiceAttributesRequest"}, |
| 261 | + "output":{"shape":"GetServiceAttributesResponse"}, |
| 262 | + "errors":[ |
| 263 | + {"shape":"InvalidInput"}, |
| 264 | + {"shape":"ServiceNotFound"} |
| 265 | + ], |
| 266 | + "documentation":"<p>Returns the attributes associated with a specified service.</p>" |
| 267 | + }, |
238 | 268 | "ListInstances":{
|
239 | 269 | "name":"ListInstances",
|
240 | 270 | "http":{
|
|
425 | 455 | {"shape":"ServiceNotFound"}
|
426 | 456 | ],
|
427 | 457 | "documentation":"<p>Submits a request to perform the following operations:</p> <ul> <li> <p>Update the TTL setting for existing <code>DnsRecords</code> configurations</p> </li> <li> <p>Add, update, or delete <code>HealthCheckConfig</code> for a specified service</p> <note> <p>You can't add, update, or delete a <code>HealthCheckCustomConfig</code> configuration.</p> </note> </li> </ul> <p>For public and private DNS namespaces, note the following:</p> <ul> <li> <p>If you omit any existing <code>DnsRecords</code> or <code>HealthCheckConfig</code> configurations from an <code>UpdateService</code> request, the configurations are deleted from the service.</p> </li> <li> <p>If you omit an existing <code>HealthCheckCustomConfig</code> configuration from an <code>UpdateService</code> request, the configuration isn't deleted from the service.</p> </li> </ul> <p>When you update settings for a service, Cloud Map also updates the corresponding settings in all the records and health checks that were created by using the specified service.</p>"
|
| 458 | + }, |
| 459 | + "UpdateServiceAttributes":{ |
| 460 | + "name":"UpdateServiceAttributes", |
| 461 | + "http":{ |
| 462 | + "method":"POST", |
| 463 | + "requestUri":"/" |
| 464 | + }, |
| 465 | + "input":{"shape":"UpdateServiceAttributesRequest"}, |
| 466 | + "output":{"shape":"UpdateServiceAttributesResponse"}, |
| 467 | + "errors":[ |
| 468 | + {"shape":"InvalidInput"}, |
| 469 | + {"shape":"ServiceNotFound"}, |
| 470 | + {"shape":"ServiceAttributesLimitExceededException"} |
| 471 | + ], |
| 472 | + "documentation":"<p>Submits a request to update a specified service to add service-level attributes.</p>" |
428 | 473 | }
|
429 | 474 | },
|
430 | 475 | "shapes":{
|
|
650 | 695 | }
|
651 | 696 | }
|
652 | 697 | },
|
| 698 | + "DeleteServiceAttributesRequest":{ |
| 699 | + "type":"structure", |
| 700 | + "required":[ |
| 701 | + "ServiceId", |
| 702 | + "Attributes" |
| 703 | + ], |
| 704 | + "members":{ |
| 705 | + "ServiceId":{ |
| 706 | + "shape":"ResourceId", |
| 707 | + "documentation":"<p>The ID of the service from which the attributes will be deleted.</p>" |
| 708 | + }, |
| 709 | + "Attributes":{ |
| 710 | + "shape":"ServiceAttributeKeyList", |
| 711 | + "documentation":"<p>A list of keys corresponding to each attribute that you want to delete.</p>" |
| 712 | + } |
| 713 | + } |
| 714 | + }, |
| 715 | + "DeleteServiceAttributesResponse":{ |
| 716 | + "type":"structure", |
| 717 | + "members":{ |
| 718 | + } |
| 719 | + }, |
653 | 720 | "DeleteServiceRequest":{
|
654 | 721 | "type":"structure",
|
655 | 722 | "required":["Id"],
|
|
784 | 851 | },
|
785 | 852 | "DnsRecords":{
|
786 | 853 | "shape":"DnsRecordList",
|
787 |
| - "documentation":"<p>An array that contains one <code>DnsRecord</code> object for each Route 53 DNS record that you want Cloud Map to create when you register an instance.</p>" |
| 854 | + "documentation":"<p>An array that contains one <code>DnsRecord</code> object for each Route 53 DNS record that you want Cloud Map to create when you register an instance.</p> <important> <p>The record type of a service specified in a <code>DnsRecord</code> object can't be updated. To change a record type, you need to delete the service and recreate it with a new <code>DnsConfig</code>.</p> </important>" |
788 | 855 | }
|
789 | 856 | },
|
790 |
| - "documentation":"<p>A complex type that contains information about the Amazon Route 53 DNS records that you want Cloud Map to create when you register an instance.</p> <important> <p>The record types of a service can only be changed by deleting the service and recreating it with a new <code>Dnsconfig</code>.</p> </important>" |
| 857 | + "documentation":"<p>A complex type that contains information about the Amazon Route 53 DNS records that you want Cloud Map to create when you register an instance.</p>" |
791 | 858 | },
|
792 | 859 | "DnsConfigChange":{
|
793 | 860 | "type":"structure",
|
|
971 | 1038 | }
|
972 | 1039 | }
|
973 | 1040 | },
|
| 1041 | + "GetServiceAttributesRequest":{ |
| 1042 | + "type":"structure", |
| 1043 | + "required":["ServiceId"], |
| 1044 | + "members":{ |
| 1045 | + "ServiceId":{ |
| 1046 | + "shape":"ResourceId", |
| 1047 | + "documentation":"<p>The ID of the service that you want to get attributes for.</p>" |
| 1048 | + } |
| 1049 | + } |
| 1050 | + }, |
| 1051 | + "GetServiceAttributesResponse":{ |
| 1052 | + "type":"structure", |
| 1053 | + "members":{ |
| 1054 | + "ServiceAttributes":{ |
| 1055 | + "shape":"ServiceAttributes", |
| 1056 | + "documentation":"<p>A complex type that contains the service ARN and a list of attribute key-value pairs associated with the service.</p>" |
| 1057 | + } |
| 1058 | + } |
| 1059 | + }, |
974 | 1060 | "GetServiceRequest":{
|
975 | 1061 | "type":"structure",
|
976 | 1062 | "required":["Id"],
|
|
1405 | 1491 | },
|
1406 | 1492 | "NamespaceName":{
|
1407 | 1493 | "type":"string",
|
1408 |
| - "max":1024 |
| 1494 | + "max":1024, |
| 1495 | + "pattern":"^[!-~]{1,1024}$" |
1409 | 1496 | },
|
1410 | 1497 | "NamespaceNameHttp":{
|
1411 | 1498 | "type":"string",
|
|
1946 | 2033 | "documentation":"<p>The service can't be created because a service with the same name already exists.</p>",
|
1947 | 2034 | "exception":true
|
1948 | 2035 | },
|
| 2036 | + "ServiceAttributeKey":{ |
| 2037 | + "type":"string", |
| 2038 | + "max":255 |
| 2039 | + }, |
| 2040 | + "ServiceAttributeKeyList":{ |
| 2041 | + "type":"list", |
| 2042 | + "member":{"shape":"ServiceAttributeKey"}, |
| 2043 | + "max":30, |
| 2044 | + "min":1 |
| 2045 | + }, |
| 2046 | + "ServiceAttributeValue":{ |
| 2047 | + "type":"string", |
| 2048 | + "max":1024 |
| 2049 | + }, |
| 2050 | + "ServiceAttributes":{ |
| 2051 | + "type":"structure", |
| 2052 | + "members":{ |
| 2053 | + "ServiceArn":{ |
| 2054 | + "shape":"Arn", |
| 2055 | + "documentation":"<p>The ARN of the service that the attributes are associated with.</p>" |
| 2056 | + }, |
| 2057 | + "Attributes":{ |
| 2058 | + "shape":"ServiceAttributesMap", |
| 2059 | + "documentation":"<p>A string map that contains the following information for the service that you specify in <code>ServiceArn</code>:</p> <ul> <li> <p>The attributes that apply to the service. </p> </li> <li> <p>For each attribute, the applicable value.</p> </li> </ul> <p>You can specify a total of 30 attributes.</p>" |
| 2060 | + } |
| 2061 | + }, |
| 2062 | + "documentation":"<p>A complex type that contains information about attributes associated with a specific service.</p>" |
| 2063 | + }, |
| 2064 | + "ServiceAttributesLimitExceededException":{ |
| 2065 | + "type":"structure", |
| 2066 | + "members":{ |
| 2067 | + "Message":{"shape":"ErrorMessage"} |
| 2068 | + }, |
| 2069 | + "documentation":"<p>The attribute can't be added to the service because you've exceeded the quota for the number of attributes you can add to a service.</p>", |
| 2070 | + "exception":true |
| 2071 | + }, |
| 2072 | + "ServiceAttributesMap":{ |
| 2073 | + "type":"map", |
| 2074 | + "key":{"shape":"ServiceAttributeKey"}, |
| 2075 | + "value":{"shape":"ServiceAttributeValue"}, |
| 2076 | + "max":30, |
| 2077 | + "min":1 |
| 2078 | + }, |
1949 | 2079 | "ServiceChange":{
|
1950 | 2080 | "type":"structure",
|
1951 | 2081 | "members":{
|
|
2280 | 2410 | }
|
2281 | 2411 | }
|
2282 | 2412 | },
|
| 2413 | + "UpdateServiceAttributesRequest":{ |
| 2414 | + "type":"structure", |
| 2415 | + "required":[ |
| 2416 | + "ServiceId", |
| 2417 | + "Attributes" |
| 2418 | + ], |
| 2419 | + "members":{ |
| 2420 | + "ServiceId":{ |
| 2421 | + "shape":"ResourceId", |
| 2422 | + "documentation":"<p>The ID of the service that you want to update.</p>" |
| 2423 | + }, |
| 2424 | + "Attributes":{ |
| 2425 | + "shape":"ServiceAttributesMap", |
| 2426 | + "documentation":"<p>A string map that contains attribute key-value pairs.</p>" |
| 2427 | + } |
| 2428 | + } |
| 2429 | + }, |
| 2430 | + "UpdateServiceAttributesResponse":{ |
| 2431 | + "type":"structure", |
| 2432 | + "members":{ |
| 2433 | + } |
| 2434 | + }, |
2283 | 2435 | "UpdateServiceRequest":{
|
2284 | 2436 | "type":"structure",
|
2285 | 2437 | "required":[
|
|
2293 | 2445 | },
|
2294 | 2446 | "Service":{
|
2295 | 2447 | "shape":"ServiceChange",
|
2296 |
| - "documentation":"<p>A complex type that contains the new settings for the service.</p>" |
| 2448 | + "documentation":"<p>A complex type that contains the new settings for the service. You can specify a maximum of 30 attributes (key-value pairs).</p>" |
2297 | 2449 | }
|
2298 | 2450 | }
|
2299 | 2451 | },
|
|
0 commit comments