Commit fbec847 awstools
committed
1 parent 8afc56c commit fbec847 Copy full SHA for fbec847
File tree 3 files changed +49
-0
lines changed
clients/client-servicediscovery/src/commands
3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,20 @@ export interface DeleteServiceAttributesCommandOutput extends DeleteServiceAttri
64
64
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>
65
65
*
66
66
* @public
67
+ * @example DeleteServiceAttributes example
68
+ * ```javascript
69
+ * // Example: Delete service attribute by providing attribute key and service ID
70
+ * const input = {
71
+ * "Attributes": [
72
+ * "port"
73
+ * ],
74
+ * "ServiceId": "srv-e4anhexample0004"
75
+ * };
76
+ * const command = new DeleteServiceAttributesCommand(input);
77
+ * await client.send(command);
78
+ * // example id: example-delete-service-attributes-1587416462902
79
+ * ```
80
+ *
67
81
*/
68
82
export class DeleteServiceAttributesCommand extends $Command
69
83
. classBuilder <
Original file line number Diff line number Diff line change @@ -68,6 +68,27 @@ export interface GetServiceAttributesCommandOutput extends GetServiceAttributesR
68
68
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>
69
69
*
70
70
* @public
71
+ * @example GetServiceAttributes Example
72
+ * ```javascript
73
+ * // This example gets the attributes for a specified service.
74
+ * const input = {
75
+ * "ServiceId": "srv-e4anhexample0004"
76
+ * };
77
+ * const command = new GetServiceAttributesCommand(input);
78
+ * const response = await client.send(command);
79
+ * /* response ==
80
+ * {
81
+ * "ServiceAttributes": {
82
+ * "Attributes": {
83
+ * "port": "80"
84
+ * },
85
+ * "ServiceArn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004"
86
+ * }
87
+ * }
88
+ * *\/
89
+ * // example id: get-service-attributes-example-1590117234294
90
+ * ```
91
+ *
71
92
*/
72
93
export class GetServiceAttributesCommand extends $Command
73
94
. classBuilder <
Original file line number Diff line number Diff line change @@ -67,6 +67,20 @@ export interface UpdateServiceAttributesCommandOutput extends UpdateServiceAttri
67
67
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>
68
68
*
69
69
* @public
70
+ * @example UpdateServiceAttributes Example
71
+ * ```javascript
72
+ * // This example submits a request to update the specified service to add a port attribute with the value 80.
73
+ * const input = {
74
+ * "Attributes": {
75
+ * "port": "80"
76
+ * },
77
+ * "ServiceId": "srv-e4anhexample0004"
78
+ * };
79
+ * const command = new UpdateServiceAttributesCommand(input);
80
+ * await client.send(command);
81
+ * // example id: update-service-attributes-example-1590117830880
82
+ * ```
83
+ *
70
84
*/
71
85
export class UpdateServiceAttributesCommand extends $Command
72
86
. classBuilder <
You can’t perform that action at this time.
0 commit comments