Skip to content

Commit 796ae6d

Browse files
author
awstools
committed
docs(client-servicediscovery): This release adds examples to several Cloud Map actions.
1 parent c264ecc commit 796ae6d

33 files changed

+1097
-1158
lines changed

clients/client-servicediscovery/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ AWS SDK for JavaScript ServiceDiscovery Client for Node.js, Browser and React Na
88

99
<fullname>Cloud Map</fullname>
1010

11-
<p>With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your
12-
microservice applications run in. When an instance becomes available, you can call the Cloud Map
13-
API to register the instance with Cloud Map. For public or private DNS namespaces, Cloud Map
14-
automatically creates DNS records and an optional health check. Clients that submit public or
15-
private DNS queries, or HTTP requests, for the service receive an answer that contains up to
16-
eight healthy records. </p>
11+
<p>With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your microservice
12+
applications run in. When an instance becomes available, you can call the Cloud Map API to register the
13+
instance with Cloud Map. For public or private DNS namespaces, Cloud Map automatically creates DNS records and
14+
an optional health check. Clients that submit public or private DNS queries, or HTTP requests, for the service
15+
receive an answer that contains up to eight healthy records. </p>
1716

1817
## Installing
1918

clients/client-servicediscovery/src/ServiceDiscovery.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,12 +548,11 @@ export interface ServiceDiscovery {
548548

549549
/**
550550
* <fullname>Cloud Map</fullname>
551-
* <p>With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your
552-
* microservice applications run in. When an instance becomes available, you can call the Cloud Map
553-
* API to register the instance with Cloud Map. For public or private DNS namespaces, Cloud Map
554-
* automatically creates DNS records and an optional health check. Clients that submit public or
555-
* private DNS queries, or HTTP requests, for the service receive an answer that contains up to
556-
* eight healthy records. </p>
551+
* <p>With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your microservice
552+
* applications run in. When an instance becomes available, you can call the Cloud Map API to register the
553+
* instance with Cloud Map. For public or private DNS namespaces, Cloud Map automatically creates DNS records and
554+
* an optional health check. Clients that submit public or private DNS queries, or HTTP requests, for the service
555+
* receive an answer that contains up to eight healthy records. </p>
557556
* @public
558557
*/
559558
export class ServiceDiscovery extends ServiceDiscoveryClient implements ServiceDiscovery {}

clients/client-servicediscovery/src/ServiceDiscoveryClient.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,11 @@ export interface ServiceDiscoveryClientResolvedConfig extends ServiceDiscoveryCl
358358

359359
/**
360360
* <fullname>Cloud Map</fullname>
361-
* <p>With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your
362-
* microservice applications run in. When an instance becomes available, you can call the Cloud Map
363-
* API to register the instance with Cloud Map. For public or private DNS namespaces, Cloud Map
364-
* automatically creates DNS records and an optional health check. Clients that submit public or
365-
* private DNS queries, or HTTP requests, for the service receive an answer that contains up to
366-
* eight healthy records. </p>
361+
* <p>With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your microservice
362+
* applications run in. When an instance becomes available, you can call the Cloud Map API to register the
363+
* instance with Cloud Map. For public or private DNS namespaces, Cloud Map automatically creates DNS records and
364+
* an optional health check. Clients that submit public or private DNS queries, or HTTP requests, for the service
365+
* receive an answer that contains up to eight healthy records. </p>
367366
* @public
368367
*/
369368
export class ServiceDiscoveryClient extends __Client<

clients/client-servicediscovery/src/commands/CreateHttpNamespaceCommand.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ export interface CreateHttpNamespaceCommandInput extends CreateHttpNamespaceRequ
2727
export interface CreateHttpNamespaceCommandOutput extends CreateHttpNamespaceResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Creates an HTTP namespace. Service instances registered using an HTTP namespace can be
31-
* discovered using a <code>DiscoverInstances</code> request but can't be discovered using
32-
* DNS.</p>
33-
* <p>For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
34-
* <i>Cloud Map Developer Guide</i>.</p>
30+
* <p>Creates an HTTP namespace. Service instances registered using an HTTP namespace can be discovered using a
31+
* <code>DiscoverInstances</code> request but can't be discovered using DNS.</p>
32+
* <p>For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map
33+
* quotas</a> in the <i>Cloud Map Developer Guide</i>.</p>
3534
* @example
3635
* Use a bare-bones client and the command you need to make an API call.
3736
* ```javascript
@@ -67,20 +66,18 @@ export interface CreateHttpNamespaceCommandOutput extends CreateHttpNamespaceRes
6766
* <p>The operation is already in progress.</p>
6867
*
6968
* @throws {@link InvalidInput} (client fault)
70-
* <p>One or more specified values aren't valid. For example, a required value might be missing, a
71-
* numeric value might be outside the allowed range, or a string value might exceed length
72-
* constraints.</p>
69+
* <p>One or more specified values aren't valid. For example, a required value might be missing, a numeric value
70+
* might be outside the allowed range, or a string value might exceed length constraints.</p>
7371
*
7472
* @throws {@link NamespaceAlreadyExists} (client fault)
7573
* <p>The namespace that you're trying to create already exists.</p>
7674
*
7775
* @throws {@link ResourceLimitExceeded} (client fault)
78-
* <p>The resource can't be created because you've reached the quota on the number of
79-
* resources.</p>
76+
* <p>The resource can't be created because you've reached the quota on the number of resources.</p>
8077
*
8178
* @throws {@link TooManyTagsException} (client fault)
82-
* <p>The list of tags on the resource is over the quota. The maximum number of tags that can be
83-
* applied to a resource is 50.</p>
79+
* <p>The list of tags on the resource is over the quota. The maximum number of tags that can be applied to a
80+
* resource is 50.</p>
8481
*
8582
* @throws {@link ServiceDiscoveryServiceException}
8683
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>

clients/client-servicediscovery/src/commands/CreatePrivateDnsNamespaceCommand.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ export interface CreatePrivateDnsNamespaceCommandInput extends CreatePrivateDnsN
2727
export interface CreatePrivateDnsNamespaceCommandOutput extends CreatePrivateDnsNamespaceResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Creates a private namespace based on DNS, which is visible only inside a specified Amazon
31-
* VPC. The namespace defines your service naming scheme. For example, if you name your namespace
32-
* <code>example.com</code> and name your service <code>backend</code>, the resulting DNS name for
33-
* the service is <code>backend.example.com</code>. Service instances that are registered using a
34-
* private DNS namespace can be discovered using either a <code>DiscoverInstances</code> request or
35-
* using DNS. For the current quota on the number of namespaces that you can create using the same
36-
* Amazon Web Services account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
30+
* <p>Creates a private namespace based on DNS, which is visible only inside a specified Amazon VPC. The
31+
* namespace defines your service naming scheme. For example, if you name your namespace <code>example.com</code>
32+
* and name your service <code>backend</code>, the resulting DNS name for the service is
33+
* <code>backend.example.com</code>. Service instances that are registered using a private DNS namespace can be
34+
* discovered using either a <code>DiscoverInstances</code> request or using DNS. For the current quota on the
35+
* number of namespaces that you can create using the same Amazon Web Services account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
3736
* <i>Cloud Map Developer Guide</i>.</p>
3837
* @example
3938
* Use a bare-bones client and the command you need to make an API call.
@@ -78,20 +77,18 @@ export interface CreatePrivateDnsNamespaceCommandOutput extends CreatePrivateDns
7877
* <p>The operation is already in progress.</p>
7978
*
8079
* @throws {@link InvalidInput} (client fault)
81-
* <p>One or more specified values aren't valid. For example, a required value might be missing, a
82-
* numeric value might be outside the allowed range, or a string value might exceed length
83-
* constraints.</p>
80+
* <p>One or more specified values aren't valid. For example, a required value might be missing, a numeric value
81+
* might be outside the allowed range, or a string value might exceed length constraints.</p>
8482
*
8583
* @throws {@link NamespaceAlreadyExists} (client fault)
8684
* <p>The namespace that you're trying to create already exists.</p>
8785
*
8886
* @throws {@link ResourceLimitExceeded} (client fault)
89-
* <p>The resource can't be created because you've reached the quota on the number of
90-
* resources.</p>
87+
* <p>The resource can't be created because you've reached the quota on the number of resources.</p>
9188
*
9289
* @throws {@link TooManyTagsException} (client fault)
93-
* <p>The list of tags on the resource is over the quota. The maximum number of tags that can be
94-
* applied to a resource is 50.</p>
90+
* <p>The list of tags on the resource is over the quota. The maximum number of tags that can be applied to a
91+
* resource is 50.</p>
9592
*
9693
* @throws {@link ServiceDiscoveryServiceException}
9794
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>

clients/client-servicediscovery/src/commands/CreatePublicDnsNamespaceCommand.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ export interface CreatePublicDnsNamespaceCommandInput extends CreatePublicDnsNam
2727
export interface CreatePublicDnsNamespaceCommandOutput extends CreatePublicDnsNamespaceResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Creates a public namespace based on DNS, which is visible on the internet. The namespace
31-
* defines your service naming scheme. For example, if you name your namespace
32-
* <code>example.com</code> and name your service <code>backend</code>, the resulting DNS name for
33-
* the service is <code>backend.example.com</code>. You can discover instances that were registered
34-
* with a public DNS namespace by using either a <code>DiscoverInstances</code> request or using
35-
* DNS. For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
30+
* <p>Creates a public namespace based on DNS, which is visible on the internet. The namespace defines your
31+
* service naming scheme. For example, if you name your namespace <code>example.com</code> and name your service
32+
* <code>backend</code>, the resulting DNS name for the service is <code>backend.example.com</code>. You can
33+
* discover instances that were registered with a public DNS namespace by using either a
34+
* <code>DiscoverInstances</code> request or using DNS. For the current quota on the number of namespaces that you
35+
* can create using the same Amazon Web Services account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
3636
* <i>Cloud Map Developer Guide</i>.</p>
3737
* <important>
38-
* <p>The <code>CreatePublicDnsNamespace</code> API operation is not supported in the Amazon Web Services GovCloud (US) Regions.</p>
38+
* <p>The <code>CreatePublicDnsNamespace</code> API operation is not supported in the Amazon Web Services GovCloud (US)
39+
* Regions.</p>
3940
* </important>
4041
* @example
4142
* Use a bare-bones client and the command you need to make an API call.
@@ -79,20 +80,18 @@ export interface CreatePublicDnsNamespaceCommandOutput extends CreatePublicDnsNa
7980
* <p>The operation is already in progress.</p>
8081
*
8182
* @throws {@link InvalidInput} (client fault)
82-
* <p>One or more specified values aren't valid. For example, a required value might be missing, a
83-
* numeric value might be outside the allowed range, or a string value might exceed length
84-
* constraints.</p>
83+
* <p>One or more specified values aren't valid. For example, a required value might be missing, a numeric value
84+
* might be outside the allowed range, or a string value might exceed length constraints.</p>
8585
*
8686
* @throws {@link NamespaceAlreadyExists} (client fault)
8787
* <p>The namespace that you're trying to create already exists.</p>
8888
*
8989
* @throws {@link ResourceLimitExceeded} (client fault)
90-
* <p>The resource can't be created because you've reached the quota on the number of
91-
* resources.</p>
90+
* <p>The resource can't be created because you've reached the quota on the number of resources.</p>
9291
*
9392
* @throws {@link TooManyTagsException} (client fault)
94-
* <p>The list of tags on the resource is over the quota. The maximum number of tags that can be
95-
* applied to a resource is 50.</p>
93+
* <p>The list of tags on the resource is over the quota. The maximum number of tags that can be applied to a
94+
* resource is 50.</p>
9695
*
9796
* @throws {@link ServiceDiscoveryServiceException}
9897
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>

clients/client-servicediscovery/src/commands/CreateServiceCommand.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
6464
* <p>Optionally, a health check</p>
6565
* </li>
6666
* </ul>
67-
* <p>After you create the service, you can submit a <a href="https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html">RegisterInstance</a> request, and
68-
* Cloud Map uses the values in the configuration to create the specified entities.</p>
69-
* <p>For the current quota on the number of instances that you can register using the same
70-
* namespace and using the same service, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
71-
* <i>Cloud Map Developer Guide</i>.</p>
67+
* <p>After you create the service, you can submit a <a href="https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html">RegisterInstance</a> request, and Cloud Map uses the
68+
* values in the configuration to create the specified entities.</p>
69+
* <p>For the current quota on the number of instances that you can register using the same namespace and using
70+
* the same service, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map
71+
* quotas</a> in the <i>Cloud Map Developer Guide</i>.</p>
7272
* @example
7373
* Use a bare-bones client and the command you need to make an API call.
7474
* ```javascript
@@ -149,23 +149,21 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
149149
* @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape.
150150
*
151151
* @throws {@link InvalidInput} (client fault)
152-
* <p>One or more specified values aren't valid. For example, a required value might be missing, a
153-
* numeric value might be outside the allowed range, or a string value might exceed length
154-
* constraints.</p>
152+
* <p>One or more specified values aren't valid. For example, a required value might be missing, a numeric value
153+
* might be outside the allowed range, or a string value might exceed length constraints.</p>
155154
*
156155
* @throws {@link NamespaceNotFound} (client fault)
157156
* <p>No namespace exists with the specified ID.</p>
158157
*
159158
* @throws {@link ResourceLimitExceeded} (client fault)
160-
* <p>The resource can't be created because you've reached the quota on the number of
161-
* resources.</p>
159+
* <p>The resource can't be created because you've reached the quota on the number of resources.</p>
162160
*
163161
* @throws {@link ServiceAlreadyExists} (client fault)
164162
* <p>The service can't be created because a service with the same name already exists.</p>
165163
*
166164
* @throws {@link TooManyTagsException} (client fault)
167-
* <p>The list of tags on the resource is over the quota. The maximum number of tags that can be
168-
* applied to a resource is 50.</p>
165+
* <p>The list of tags on the resource is over the quota. The maximum number of tags that can be applied to a
166+
* resource is 50.</p>
169167
*
170168
* @throws {@link ServiceDiscoveryServiceException}
171169
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>

clients/client-servicediscovery/src/commands/DeleteNamespaceCommand.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export interface DeleteNamespaceCommandInput extends DeleteNamespaceRequest {}
2727
export interface DeleteNamespaceCommandOutput extends DeleteNamespaceResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Deletes a namespace from the current account. If the namespace still contains one or more
31-
* services, the request fails.</p>
30+
* <p>Deletes a namespace from the current account. If the namespace still contains one or more services, the
31+
* request fails.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript
@@ -56,16 +56,15 @@ export interface DeleteNamespaceCommandOutput extends DeleteNamespaceResponse, _
5656
* <p>The operation is already in progress.</p>
5757
*
5858
* @throws {@link InvalidInput} (client fault)
59-
* <p>One or more specified values aren't valid. For example, a required value might be missing, a
60-
* numeric value might be outside the allowed range, or a string value might exceed length
61-
* constraints.</p>
59+
* <p>One or more specified values aren't valid. For example, a required value might be missing, a numeric value
60+
* might be outside the allowed range, or a string value might exceed length constraints.</p>
6261
*
6362
* @throws {@link NamespaceNotFound} (client fault)
6463
* <p>No namespace exists with the specified ID.</p>
6564
*
6665
* @throws {@link ResourceInUse} (client fault)
67-
* <p>The specified resource can't be deleted because it contains other resources. For example,
68-
* you can't delete a service that contains any instances.</p>
66+
* <p>The specified resource can't be deleted because it contains other resources. For example, you can't delete
67+
* a service that contains any instances.</p>
6968
*
7069
* @throws {@link ServiceDiscoveryServiceException}
7170
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>

clients/client-servicediscovery/src/commands/DeleteServiceCommand.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export interface DeleteServiceCommandInput extends DeleteServiceRequest {}
2727
export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Deletes a specified service. If the service still contains one or more registered instances,
31-
* the request fails.</p>
30+
* <p>Deletes a specified service. If the service still contains one or more registered instances, the request
31+
* fails.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript
@@ -51,13 +51,12 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
5151
* @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape.
5252
*
5353
* @throws {@link InvalidInput} (client fault)
54-
* <p>One or more specified values aren't valid. For example, a required value might be missing, a
55-
* numeric value might be outside the allowed range, or a string value might exceed length
56-
* constraints.</p>
54+
* <p>One or more specified values aren't valid. For example, a required value might be missing, a numeric value
55+
* might be outside the allowed range, or a string value might exceed length constraints.</p>
5756
*
5857
* @throws {@link ResourceInUse} (client fault)
59-
* <p>The specified resource can't be deleted because it contains other resources. For example,
60-
* you can't delete a service that contains any instances.</p>
58+
* <p>The specified resource can't be deleted because it contains other resources. For example, you can't delete
59+
* a service that contains any instances.</p>
6160
*
6261
* @throws {@link ServiceNotFound} (client fault)
6362
* <p>No service exists with the specified ID.</p>

0 commit comments

Comments
 (0)