-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-servicediscovery): AWS Cloud Map now supports service-lev…
…el attributes, allowing you to associate custom metadata directly with services. These attributes can be retrieved, updated, and deleted using the new GetServiceAttributes, UpdateServiceAttributes, and DeleteServiceAttributes API calls.
- Loading branch information
awstools
committed
Dec 13, 2024
1 parent
b525bd5
commit c908c6c
Showing
11 changed files
with
983 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
clients/client-servicediscovery/src/commands/DeleteServiceAttributesCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DeleteServiceAttributesRequest, DeleteServiceAttributesResponse } from "../models/models_0"; | ||
import { de_DeleteServiceAttributesCommand, se_DeleteServiceAttributesCommand } from "../protocols/Aws_json1_1"; | ||
import { ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceDiscoveryClient"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DeleteServiceAttributesCommand}. | ||
*/ | ||
export interface DeleteServiceAttributesCommandInput extends DeleteServiceAttributesRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DeleteServiceAttributesCommand}. | ||
*/ | ||
export interface DeleteServiceAttributesCommandOutput extends DeleteServiceAttributesResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Deletes specific attributes associated with a service.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { ServiceDiscoveryClient, DeleteServiceAttributesCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import | ||
* // const { ServiceDiscoveryClient, DeleteServiceAttributesCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import | ||
* const client = new ServiceDiscoveryClient(config); | ||
* const input = { // DeleteServiceAttributesRequest | ||
* ServiceId: "STRING_VALUE", // required | ||
* Attributes: [ // ServiceAttributeKeyList // required | ||
* "STRING_VALUE", | ||
* ], | ||
* }; | ||
* const command = new DeleteServiceAttributesCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param DeleteServiceAttributesCommandInput - {@link DeleteServiceAttributesCommandInput} | ||
* @returns {@link DeleteServiceAttributesCommandOutput} | ||
* @see {@link DeleteServiceAttributesCommandInput} for command's `input` shape. | ||
* @see {@link DeleteServiceAttributesCommandOutput} for command's `response` shape. | ||
* @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape. | ||
* | ||
* @throws {@link InvalidInput} (client fault) | ||
* <p>One or more specified values aren't valid. For example, a required value might be missing, a numeric value | ||
* might be outside the allowed range, or a string value might exceed length constraints.</p> | ||
* | ||
* @throws {@link ServiceNotFound} (client fault) | ||
* <p>No service exists with the specified ID.</p> | ||
* | ||
* @throws {@link ServiceDiscoveryServiceException} | ||
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DeleteServiceAttributesCommand extends $Command | ||
.classBuilder< | ||
DeleteServiceAttributesCommandInput, | ||
DeleteServiceAttributesCommandOutput, | ||
ServiceDiscoveryClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: ServiceDiscoveryClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("Route53AutoNaming_v20170314", "DeleteServiceAttributes", {}) | ||
.n("ServiceDiscoveryClient", "DeleteServiceAttributesCommand") | ||
.f(void 0, void 0) | ||
.ser(se_DeleteServiceAttributesCommand) | ||
.de(de_DeleteServiceAttributesCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: DeleteServiceAttributesRequest; | ||
output: {}; | ||
}; | ||
sdk: { | ||
input: DeleteServiceAttributesCommandInput; | ||
output: DeleteServiceAttributesCommandOutput; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.