-
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-appconfig): This release adds support for deletion protec…
…tion, which is a safety guardrail to prevent the unintentional deletion of a recently used AWS AppConfig Configuration Profile or Environment. This also includes a change to increase the maximum length of the Name parameter in UpdateConfigurationProfile.
- Loading branch information
awstools
committed
Aug 28, 2024
1 parent
5a8ca89
commit 950682d
Showing
15 changed files
with
700 additions
and
45 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
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
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
90 changes: 90 additions & 0 deletions
90
clients/client-appconfig/src/commands/GetAccountSettingsCommand.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,90 @@ | ||
// 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 { AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { AccountSettings } from "../models/models_0"; | ||
import { de_GetAccountSettingsCommand, se_GetAccountSettingsCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link GetAccountSettingsCommand}. | ||
*/ | ||
export interface GetAccountSettingsCommandInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link GetAccountSettingsCommand}. | ||
*/ | ||
export interface GetAccountSettingsCommandOutput extends AccountSettings, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Returns information about the status of the <code>DeletionProtection</code> | ||
* parameter.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { AppConfigClient, GetAccountSettingsCommand } from "@aws-sdk/client-appconfig"; // ES Modules import | ||
* // const { AppConfigClient, GetAccountSettingsCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import | ||
* const client = new AppConfigClient(config); | ||
* const input = {}; | ||
* const command = new GetAccountSettingsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // AccountSettings | ||
* // DeletionProtection: { // DeletionProtectionSettings | ||
* // Enabled: true || false, | ||
* // ProtectionPeriodInMinutes: Number("int"), | ||
* // }, | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param GetAccountSettingsCommandInput - {@link GetAccountSettingsCommandInput} | ||
* @returns {@link GetAccountSettingsCommandOutput} | ||
* @see {@link GetAccountSettingsCommandInput} for command's `input` shape. | ||
* @see {@link GetAccountSettingsCommandOutput} for command's `response` shape. | ||
* @see {@link AppConfigClientResolvedConfig | config} for AppConfigClient's `config` shape. | ||
* | ||
* @throws {@link BadRequestException} (client fault) | ||
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>There was an internal failure in the AppConfig service.</p> | ||
* | ||
* @throws {@link AppConfigServiceException} | ||
* <p>Base exception class for all service exceptions from AppConfig service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class GetAccountSettingsCommand extends $Command | ||
.classBuilder< | ||
GetAccountSettingsCommandInput, | ||
GetAccountSettingsCommandOutput, | ||
AppConfigClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: AppConfigClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AmazonAppConfig", "GetAccountSettings", {}) | ||
.n("AppConfigClient", "GetAccountSettingsCommand") | ||
.f(void 0, void 0) | ||
.ser(se_GetAccountSettingsCommand) | ||
.de(de_GetAccountSettingsCommand) | ||
.build() {} |
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.