diff --git a/clients/client-servicediscovery/src/commands/DeleteServiceAttributesCommand.ts b/clients/client-servicediscovery/src/commands/DeleteServiceAttributesCommand.ts index 01e9d1871dee..62479f046a91 100644 --- a/clients/client-servicediscovery/src/commands/DeleteServiceAttributesCommand.ts +++ b/clients/client-servicediscovery/src/commands/DeleteServiceAttributesCommand.ts @@ -64,6 +64,20 @@ export interface DeleteServiceAttributesCommandOutput extends DeleteServiceAttri *

Base exception class for all service exceptions from ServiceDiscovery service.

* * @public + * @example DeleteServiceAttributes example + * ```javascript + * // Example: Delete service attribute by providing attribute key and service ID + * const input = { + * "Attributes": [ + * "port" + * ], + * "ServiceId": "srv-e4anhexample0004" + * }; + * const command = new DeleteServiceAttributesCommand(input); + * await client.send(command); + * // example id: example-delete-service-attributes-1587416462902 + * ``` + * */ export class DeleteServiceAttributesCommand extends $Command .classBuilder< diff --git a/clients/client-servicediscovery/src/commands/GetServiceAttributesCommand.ts b/clients/client-servicediscovery/src/commands/GetServiceAttributesCommand.ts index c468cd49a68c..b76e078b50f2 100644 --- a/clients/client-servicediscovery/src/commands/GetServiceAttributesCommand.ts +++ b/clients/client-servicediscovery/src/commands/GetServiceAttributesCommand.ts @@ -68,6 +68,27 @@ export interface GetServiceAttributesCommandOutput extends GetServiceAttributesR *

Base exception class for all service exceptions from ServiceDiscovery service.

* * @public + * @example GetServiceAttributes Example + * ```javascript + * // This example gets the attributes for a specified service. + * const input = { + * "ServiceId": "srv-e4anhexample0004" + * }; + * const command = new GetServiceAttributesCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "ServiceAttributes": { + * "Attributes": { + * "port": "80" + * }, + * "ServiceArn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004" + * } + * } + * *\/ + * // example id: get-service-attributes-example-1590117234294 + * ``` + * */ export class GetServiceAttributesCommand extends $Command .classBuilder< diff --git a/clients/client-servicediscovery/src/commands/UpdateServiceAttributesCommand.ts b/clients/client-servicediscovery/src/commands/UpdateServiceAttributesCommand.ts index 223e27c39dbb..bc24679253be 100644 --- a/clients/client-servicediscovery/src/commands/UpdateServiceAttributesCommand.ts +++ b/clients/client-servicediscovery/src/commands/UpdateServiceAttributesCommand.ts @@ -67,6 +67,20 @@ export interface UpdateServiceAttributesCommandOutput extends UpdateServiceAttri *

Base exception class for all service exceptions from ServiceDiscovery service.

* * @public + * @example UpdateServiceAttributes Example + * ```javascript + * // This example submits a request to update the specified service to add a port attribute with the value 80. + * const input = { + * "Attributes": { + * "port": "80" + * }, + * "ServiceId": "srv-e4anhexample0004" + * }; + * const command = new UpdateServiceAttributesCommand(input); + * await client.send(command); + * // example id: update-service-attributes-example-1590117830880 + * ``` + * */ export class UpdateServiceAttributesCommand extends $Command .classBuilder<