@aws-sdk/client-appconfig 3.635.0 → 3.641.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +105 -3
  3. package/dist-es/AppConfig.js +4 -0
  4. package/dist-es/commands/GetAccountSettingsCommand.js +24 -0
  5. package/dist-es/commands/UpdateAccountSettingsCommand.js +24 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +5 -0
  8. package/dist-es/protocols/Aws_restJson1.js +58 -3
  9. package/dist-types/AppConfig.d.ts +16 -0
  10. package/dist-types/AppConfigClient.d.ts +4 -2
  11. package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +4 -2
  12. package/dist-types/commands/DeleteApplicationCommand.d.ts +1 -2
  13. package/dist-types/commands/DeleteConfigurationProfileCommand.d.ts +5 -2
  14. package/dist-types/commands/DeleteDeploymentStrategyCommand.d.ts +1 -2
  15. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +5 -3
  16. package/dist-types/commands/GetAccountSettingsCommand.d.ts +68 -0
  17. package/dist-types/commands/GetConfigurationCommand.d.ts +1 -1
  18. package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +72 -0
  19. package/dist-types/commands/index.d.ts +2 -0
  20. package/dist-types/models/models_0.d.ts +155 -15
  21. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  22. package/dist-types/ts3.4/AppConfig.d.ts +36 -0
  23. package/dist-types/ts3.4/AppConfigClient.d.ts +12 -0
  24. package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +36 -0
  25. package/dist-types/ts3.4/commands/UpdateAccountSettingsCommand.d.ts +40 -0
  26. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +20 -1
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  29. package/package.json +6 -6
@@ -27,8 +27,9 @@ declare const DeleteEnvironmentCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes an environment. Deleting an environment does not delete a configuration from a
31
- * host.</p>
30
+ * <p>Deletes an environment.</p>
31
+ * <p>To prevent users from unintentionally deleting actively-used environments, enable <a href="https://docs.aws.amazon.com/appconfig/latest/userguide/deletion-protection.html">deletion
32
+ * protection</a>.</p>
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
34
35
  * ```javascript
@@ -36,8 +37,9 @@ declare const DeleteEnvironmentCommand_base: {
36
37
  * // const { AppConfigClient, DeleteEnvironmentCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
37
38
  * const client = new AppConfigClient(config);
38
39
  * const input = { // DeleteEnvironmentRequest
39
- * ApplicationId: "STRING_VALUE", // required
40
40
  * EnvironmentId: "STRING_VALUE", // required
41
+ * ApplicationId: "STRING_VALUE", // required
42
+ * DeletionProtectionCheck: "ACCOUNT_DEFAULT" || "APPLY" || "BYPASS",
41
43
  * };
42
44
  * const command = new DeleteEnvironmentCommand(input);
43
45
  * const response = await client.send(command);
@@ -0,0 +1,68 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigClient";
4
+ import { AccountSettings } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetAccountSettingsCommand}.
14
+ */
15
+ export interface GetAccountSettingsCommandInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAccountSettingsCommand}.
21
+ */
22
+ export interface GetAccountSettingsCommandOutput extends AccountSettings, __MetadataBearer {
23
+ }
24
+ declare const GetAccountSettingsCommand_base: {
25
+ new (input: GetAccountSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetAccountSettingsCommandInput]): import("@smithy/smithy-client").CommandImpl<GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns information about the status of the <code>DeletionProtection</code>
31
+ * parameter.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { AppConfigClient, GetAccountSettingsCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
36
+ * // const { AppConfigClient, GetAccountSettingsCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
37
+ * const client = new AppConfigClient(config);
38
+ * const input = {};
39
+ * const command = new GetAccountSettingsCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // AccountSettings
42
+ * // DeletionProtection: { // DeletionProtectionSettings
43
+ * // Enabled: true || false,
44
+ * // ProtectionPeriodInMinutes: Number("int"),
45
+ * // },
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param GetAccountSettingsCommandInput - {@link GetAccountSettingsCommandInput}
51
+ * @returns {@link GetAccountSettingsCommandOutput}
52
+ * @see {@link GetAccountSettingsCommandInput} for command's `input` shape.
53
+ * @see {@link GetAccountSettingsCommandOutput} for command's `response` shape.
54
+ * @see {@link AppConfigClientResolvedConfig | config} for AppConfigClient's `config` shape.
55
+ *
56
+ * @throws {@link BadRequestException} (client fault)
57
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>There was an internal failure in the AppConfig service.</p>
61
+ *
62
+ * @throws {@link AppConfigServiceException}
63
+ * <p>Base exception class for all service exceptions from AppConfig service.</p>
64
+ *
65
+ * @public
66
+ */
67
+ export declare class GetAccountSettingsCommand extends GetAccountSettingsCommand_base {
68
+ }
@@ -44,7 +44,7 @@ declare const GetConfigurationCommand_base: {
44
44
  * </li>
45
45
  * <li>
46
46
  * <p>
47
- * <code>GetConfiguration</code> is a priced call. For more information, see
47
+ * <a>GetConfiguration</a> is a priced call. For more information, see
48
48
  * <a href="https://aws.amazon.com/systems-manager/pricing/">Pricing</a>.</p>
49
49
  * </li>
50
50
  * </ul>
@@ -0,0 +1,72 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigClient";
4
+ import { AccountSettings, UpdateAccountSettingsRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateAccountSettingsCommand}.
14
+ */
15
+ export interface UpdateAccountSettingsCommandInput extends UpdateAccountSettingsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateAccountSettingsCommand}.
21
+ */
22
+ export interface UpdateAccountSettingsCommandOutput extends AccountSettings, __MetadataBearer {
23
+ }
24
+ declare const UpdateAccountSettingsCommand_base: {
25
+ new (input: UpdateAccountSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateAccountSettingsCommandInput, UpdateAccountSettingsCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [UpdateAccountSettingsCommandInput]): import("@smithy/smithy-client").CommandImpl<UpdateAccountSettingsCommandInput, UpdateAccountSettingsCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates the value of the <code>DeletionProtection</code> parameter.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppConfigClient, UpdateAccountSettingsCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
35
+ * // const { AppConfigClient, UpdateAccountSettingsCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
36
+ * const client = new AppConfigClient(config);
37
+ * const input = { // UpdateAccountSettingsRequest
38
+ * DeletionProtection: { // DeletionProtectionSettings
39
+ * Enabled: true || false,
40
+ * ProtectionPeriodInMinutes: Number("int"),
41
+ * },
42
+ * };
43
+ * const command = new UpdateAccountSettingsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // AccountSettings
46
+ * // DeletionProtection: { // DeletionProtectionSettings
47
+ * // Enabled: true || false,
48
+ * // ProtectionPeriodInMinutes: Number("int"),
49
+ * // },
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param UpdateAccountSettingsCommandInput - {@link UpdateAccountSettingsCommandInput}
55
+ * @returns {@link UpdateAccountSettingsCommandOutput}
56
+ * @see {@link UpdateAccountSettingsCommandInput} for command's `input` shape.
57
+ * @see {@link UpdateAccountSettingsCommandOutput} for command's `response` shape.
58
+ * @see {@link AppConfigClientResolvedConfig | config} for AppConfigClient's `config` shape.
59
+ *
60
+ * @throws {@link BadRequestException} (client fault)
61
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
62
+ *
63
+ * @throws {@link InternalServerException} (server fault)
64
+ * <p>There was an internal failure in the AppConfig service.</p>
65
+ *
66
+ * @throws {@link AppConfigServiceException}
67
+ * <p>Base exception class for all service exceptions from AppConfig service.</p>
68
+ *
69
+ * @public
70
+ */
71
+ export declare class UpdateAccountSettingsCommand extends UpdateAccountSettingsCommand_base {
72
+ }
@@ -12,6 +12,7 @@ export * from "./DeleteEnvironmentCommand";
12
12
  export * from "./DeleteExtensionAssociationCommand";
13
13
  export * from "./DeleteExtensionCommand";
14
14
  export * from "./DeleteHostedConfigurationVersionCommand";
15
+ export * from "./GetAccountSettingsCommand";
15
16
  export * from "./GetApplicationCommand";
16
17
  export * from "./GetConfigurationCommand";
17
18
  export * from "./GetConfigurationProfileCommand";
@@ -34,6 +35,7 @@ export * from "./StartDeploymentCommand";
34
35
  export * from "./StopDeploymentCommand";
35
36
  export * from "./TagResourceCommand";
36
37
  export * from "./UntagResourceCommand";
38
+ export * from "./UpdateAccountSettingsCommand";
37
39
  export * from "./UpdateApplicationCommand";
38
40
  export * from "./UpdateConfigurationProfileCommand";
39
41
  export * from "./UpdateDeploymentStrategyCommand";
@@ -1,5 +1,59 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { AppConfigServiceException as __BaseException } from "./AppConfigServiceException";
3
+ /**
4
+ * <p>A parameter to configure deletion protection. If enabled, deletion protection prevents a
5
+ * user from deleting a configuration profile or an environment if AppConfig has
6
+ * called either <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or for the
7
+ * configuration profile or from the environment during the specified interval.</p>
8
+ * <p>This setting uses the following default values:</p>
9
+ * <ul>
10
+ * <li>
11
+ * <p>Deletion protection is disabled by default. </p>
12
+ * </li>
13
+ * <li>
14
+ * <p>The default interval specified by <code>ProtectionPeriodInMinutes</code> is
15
+ * 60.</p>
16
+ * </li>
17
+ * <li>
18
+ * <p>
19
+ * <code>DeletionProtectionCheck</code> skips configuration profiles and environments
20
+ * that were created in the past hour.</p>
21
+ * </li>
22
+ * </ul>
23
+ * @public
24
+ */
25
+ export interface DeletionProtectionSettings {
26
+ /**
27
+ * <p>A parameter that indicates if deletion protection is enabled or not.</p>
28
+ * @public
29
+ */
30
+ Enabled?: boolean;
31
+ /**
32
+ * <p>The time interval during which AppConfig monitors for calls to <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or for a
33
+ * configuration profile or from an environment. AppConfig returns an error if a
34
+ * user calls or for the designated configuration profile or
35
+ * environment. To bypass the error and delete a configuration profile or an environment,
36
+ * specify <code>BYPASS</code> for the <code>DeletionProtectionCheck</code> parameter for
37
+ * either or .</p>
38
+ * @public
39
+ */
40
+ ProtectionPeriodInMinutes?: number;
41
+ }
42
+ /**
43
+ * @public
44
+ */
45
+ export interface AccountSettings {
46
+ /**
47
+ * <p>A parameter to configure deletion protection. If enabled, deletion protection prevents a
48
+ * user from deleting a configuration profile or an environment if AppConfig has
49
+ * called either <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or for the
50
+ * configuration profile or from the environment during the specified interval. Deletion
51
+ * protection is disabled by default. The default interval for
52
+ * <code>ProtectionPeriodInMinutes</code> is 60.</p>
53
+ * @public
54
+ */
55
+ DeletionProtection?: DeletionProtectionSettings;
56
+ }
3
57
  /**
4
58
  * <p>An action defines the tasks that the extension performs during the AppConfig
5
59
  * workflow. Each action includes an action point such as
@@ -319,8 +373,8 @@ export type ValidatorType = (typeof ValidatorType)[keyof typeof ValidatorType];
319
373
  * <p>A validator provides a syntactic or semantic check to ensure the configuration that you
320
374
  * want to deploy functions as intended. To validate your application configuration data, you
321
375
  * provide a schema or an Amazon Web Services Lambda function that runs against the configuration. The
322
- * configuration deployment or update can only proceed when the configuration data is
323
- * valid.</p>
376
+ * configuration deployment or update can only proceed when the configuration data is valid.
377
+ * For more information, see <a href="https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-profile.html#appconfig-creating-configuration-and-profile-validators">About validators</a> in the <i>AppConfig User Guide</i>.</p>
324
378
  * @public
325
379
  */
326
380
  export interface Validator {
@@ -993,7 +1047,11 @@ export interface CreateHostedConfigurationVersionRequest {
993
1047
  */
994
1048
  Description?: string;
995
1049
  /**
996
- * <p>The content of the configuration or the configuration data.</p>
1050
+ * <p>The configuration data, as bytes.</p>
1051
+ * <note>
1052
+ * <p>AppConfig accepts any type of data, including text formats like JSON or
1053
+ * TOML, or binary formats like protocol buffers or compressed data.</p>
1054
+ * </note>
997
1055
  * @public
998
1056
  */
999
1057
  Content: Uint8Array | undefined;
@@ -1104,6 +1162,19 @@ export interface DeleteApplicationRequest {
1104
1162
  */
1105
1163
  ApplicationId: string | undefined;
1106
1164
  }
1165
+ /**
1166
+ * @public
1167
+ * @enum
1168
+ */
1169
+ export declare const DeletionProtectionCheck: {
1170
+ readonly ACCOUNT_DEFAULT: "ACCOUNT_DEFAULT";
1171
+ readonly APPLY: "APPLY";
1172
+ readonly BYPASS: "BYPASS";
1173
+ };
1174
+ /**
1175
+ * @public
1176
+ */
1177
+ export type DeletionProtectionCheck = (typeof DeletionProtectionCheck)[keyof typeof DeletionProtectionCheck];
1107
1178
  /**
1108
1179
  * @public
1109
1180
  */
@@ -1118,6 +1189,34 @@ export interface DeleteConfigurationProfileRequest {
1118
1189
  * @public
1119
1190
  */
1120
1191
  ConfigurationProfileId: string | undefined;
1192
+ /**
1193
+ * <p>A parameter to configure deletion protection. If enabled, deletion protection prevents a
1194
+ * user from deleting a configuration profile if your application has called either <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or for the
1195
+ * configuration profile during the specified interval. </p>
1196
+ * <p>This parameter supports the following values:</p>
1197
+ * <ul>
1198
+ * <li>
1199
+ * <p>
1200
+ * <code>BYPASS</code>: Instructs AppConfig to bypass the deletion
1201
+ * protection check and delete a configuration profile even if deletion protection would
1202
+ * have otherwise prevented it. </p>
1203
+ * </li>
1204
+ * <li>
1205
+ * <p>
1206
+ * <code>APPLY</code>: Instructs the deletion protection check to run, even if
1207
+ * deletion protection is disabled at the account level. <code>APPLY</code> also forces
1208
+ * the deletion protection check to run against resources created in the past hour,
1209
+ * which are normally excluded from deletion protection checks. </p>
1210
+ * </li>
1211
+ * <li>
1212
+ * <p>
1213
+ * <code>ACCOUNT_DEFAULT</code>: The default setting, which instructs AppConfig to implement the deletion protection value specified in the
1214
+ * <code>UpdateAccountSettings</code> API.</p>
1215
+ * </li>
1216
+ * </ul>
1217
+ * @public
1218
+ */
1219
+ DeletionProtectionCheck?: DeletionProtectionCheck;
1121
1220
  }
1122
1221
  /**
1123
1222
  * @public
@@ -1133,16 +1232,44 @@ export interface DeleteDeploymentStrategyRequest {
1133
1232
  * @public
1134
1233
  */
1135
1234
  export interface DeleteEnvironmentRequest {
1235
+ /**
1236
+ * <p>The ID of the environment that you want to delete.</p>
1237
+ * @public
1238
+ */
1239
+ EnvironmentId: string | undefined;
1136
1240
  /**
1137
1241
  * <p>The application ID that includes the environment that you want to delete.</p>
1138
1242
  * @public
1139
1243
  */
1140
1244
  ApplicationId: string | undefined;
1141
1245
  /**
1142
- * <p>The ID of the environment that you want to delete.</p>
1246
+ * <p>A parameter to configure deletion protection. If enabled, deletion protection prevents a
1247
+ * user from deleting an environment if your application called either <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or in the
1248
+ * environment during the specified interval. </p>
1249
+ * <p>This parameter supports the following values:</p>
1250
+ * <ul>
1251
+ * <li>
1252
+ * <p>
1253
+ * <code>BYPASS</code>: Instructs AppConfig to bypass the deletion
1254
+ * protection check and delete a configuration profile even if deletion protection would
1255
+ * have otherwise prevented it. </p>
1256
+ * </li>
1257
+ * <li>
1258
+ * <p>
1259
+ * <code>APPLY</code>: Instructs the deletion protection check to run, even if
1260
+ * deletion protection is disabled at the account level. <code>APPLY</code> also forces
1261
+ * the deletion protection check to run against resources created in the past hour,
1262
+ * which are normally excluded from deletion protection checks. </p>
1263
+ * </li>
1264
+ * <li>
1265
+ * <p>
1266
+ * <code>ACCOUNT_DEFAULT</code>: The default setting, which instructs AppConfig to implement the deletion protection value specified in the
1267
+ * <code>UpdateAccountSettings</code> API.</p>
1268
+ * </li>
1269
+ * </ul>
1143
1270
  * @public
1144
1271
  */
1145
- EnvironmentId: string | undefined;
1272
+ DeletionProtectionCheck?: DeletionProtectionCheck;
1146
1273
  }
1147
1274
  /**
1148
1275
  * @public
@@ -1258,22 +1385,20 @@ export interface GetConfigurationRequest {
1258
1385
  */
1259
1386
  ClientId: string | undefined;
1260
1387
  /**
1261
- * <p>The configuration version returned in the most recent <code>GetConfiguration</code>
1388
+ * <p>The configuration version returned in the most recent <a>GetConfiguration</a>
1262
1389
  * response.</p>
1263
1390
  * <important>
1264
1391
  * <p>AppConfig uses the value of the <code>ClientConfigurationVersion</code>
1265
1392
  * parameter to identify the configuration version on your clients. If you don’t send
1266
- * <code>ClientConfigurationVersion</code> with each call to
1267
- * <code>GetConfiguration</code>, your clients receive the current configuration. You
1268
- * are charged each time your clients receive a configuration.</p>
1393
+ * <code>ClientConfigurationVersion</code> with each call to <a>GetConfiguration</a>, your clients receive the current configuration. You are
1394
+ * charged each time your clients receive a configuration.</p>
1269
1395
  * <p>To avoid excess charges, we recommend you use the <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/StartConfigurationSession.html">StartConfigurationSession</a> and <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/GetLatestConfiguration.html">GetLatestConfiguration</a> APIs, which track the client configuration version on
1270
- * your behalf. If you choose to continue using <code>GetConfiguration</code>, we recommend
1271
- * that you include the <code>ClientConfigurationVersion</code> value with every call to
1272
- * <code>GetConfiguration</code>. The value to use for
1396
+ * your behalf. If you choose to continue using <a>GetConfiguration</a>, we
1397
+ * recommend that you include the <code>ClientConfigurationVersion</code> value with every
1398
+ * call to <a>GetConfiguration</a>. The value to use for
1273
1399
  * <code>ClientConfigurationVersion</code> comes from the
1274
- * <code>ConfigurationVersion</code> attribute returned by <code>GetConfiguration</code>
1275
- * when there is new or updated data, and should be saved for subsequent calls to
1276
- * <code>GetConfiguration</code>.</p>
1400
+ * <code>ConfigurationVersion</code> attribute returned by <a>GetConfiguration</a> when there is new or updated data, and should be saved
1401
+ * for subsequent calls to <a>GetConfiguration</a>.</p>
1277
1402
  * </important>
1278
1403
  * <p>For more information about working with configurations, see <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving the
1279
1404
  * Configuration</a> in the <i>AppConfig User Guide</i>.</p>
@@ -2304,6 +2429,21 @@ export interface UntagResourceRequest {
2304
2429
  */
2305
2430
  TagKeys: string[] | undefined;
2306
2431
  }
2432
+ /**
2433
+ * @public
2434
+ */
2435
+ export interface UpdateAccountSettingsRequest {
2436
+ /**
2437
+ * <p>A parameter to configure deletion protection. If enabled, deletion protection prevents a
2438
+ * user from deleting a configuration profile or an environment if AppConfig has
2439
+ * called either <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or for the
2440
+ * configuration profile or from the environment during the specified interval. Deletion
2441
+ * protection is disabled by default. The default interval for
2442
+ * <code>ProtectionPeriodInMinutes</code> is 60.</p>
2443
+ * @public
2444
+ */
2445
+ DeletionProtection?: DeletionProtectionSettings;
2446
+ }
2307
2447
  /**
2308
2448
  * @public
2309
2449
  */
@@ -14,6 +14,7 @@ import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from ".
14
14
  import { DeleteExtensionAssociationCommandInput, DeleteExtensionAssociationCommandOutput } from "../commands/DeleteExtensionAssociationCommand";
15
15
  import { DeleteExtensionCommandInput, DeleteExtensionCommandOutput } from "../commands/DeleteExtensionCommand";
16
16
  import { DeleteHostedConfigurationVersionCommandInput, DeleteHostedConfigurationVersionCommandOutput } from "../commands/DeleteHostedConfigurationVersionCommand";
17
+ import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "../commands/GetAccountSettingsCommand";
17
18
  import { GetApplicationCommandInput, GetApplicationCommandOutput } from "../commands/GetApplicationCommand";
18
19
  import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "../commands/GetConfigurationCommand";
19
20
  import { GetConfigurationProfileCommandInput, GetConfigurationProfileCommandOutput } from "../commands/GetConfigurationProfileCommand";
@@ -36,6 +37,7 @@ import { StartDeploymentCommandInput, StartDeploymentCommandOutput } from "../co
36
37
  import { StopDeploymentCommandInput, StopDeploymentCommandOutput } from "../commands/StopDeploymentCommand";
37
38
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
38
39
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
40
+ import { UpdateAccountSettingsCommandInput, UpdateAccountSettingsCommandOutput } from "../commands/UpdateAccountSettingsCommand";
39
41
  import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "../commands/UpdateApplicationCommand";
40
42
  import { UpdateConfigurationProfileCommandInput, UpdateConfigurationProfileCommandOutput } from "../commands/UpdateConfigurationProfileCommand";
41
43
  import { UpdateDeploymentStrategyCommandInput, UpdateDeploymentStrategyCommandOutput } from "../commands/UpdateDeploymentStrategyCommand";
@@ -99,6 +101,10 @@ export declare const se_DeleteExtensionAssociationCommand: (input: DeleteExtensi
99
101
  * serializeAws_restJson1DeleteHostedConfigurationVersionCommand
100
102
  */
101
103
  export declare const se_DeleteHostedConfigurationVersionCommand: (input: DeleteHostedConfigurationVersionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
104
+ /**
105
+ * serializeAws_restJson1GetAccountSettingsCommand
106
+ */
107
+ export declare const se_GetAccountSettingsCommand: (input: GetAccountSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
102
108
  /**
103
109
  * serializeAws_restJson1GetApplicationCommand
104
110
  */
@@ -187,6 +193,10 @@ export declare const se_TagResourceCommand: (input: TagResourceCommandInput, con
187
193
  * serializeAws_restJson1UntagResourceCommand
188
194
  */
189
195
  export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
196
+ /**
197
+ * serializeAws_restJson1UpdateAccountSettingsCommand
198
+ */
199
+ export declare const se_UpdateAccountSettingsCommand: (input: UpdateAccountSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
190
200
  /**
191
201
  * serializeAws_restJson1UpdateApplicationCommand
192
202
  */
@@ -271,6 +281,10 @@ export declare const de_DeleteExtensionAssociationCommand: (output: __HttpRespon
271
281
  * deserializeAws_restJson1DeleteHostedConfigurationVersionCommand
272
282
  */
273
283
  export declare const de_DeleteHostedConfigurationVersionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteHostedConfigurationVersionCommandOutput>;
284
+ /**
285
+ * deserializeAws_restJson1GetAccountSettingsCommand
286
+ */
287
+ export declare const de_GetAccountSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAccountSettingsCommandOutput>;
274
288
  /**
275
289
  * deserializeAws_restJson1GetApplicationCommand
276
290
  */
@@ -359,6 +373,10 @@ export declare const de_TagResourceCommand: (output: __HttpResponse, context: __
359
373
  * deserializeAws_restJson1UntagResourceCommand
360
374
  */
361
375
  export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
376
+ /**
377
+ * deserializeAws_restJson1UpdateAccountSettingsCommand
378
+ */
379
+ export declare const de_UpdateAccountSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateAccountSettingsCommandOutput>;
362
380
  /**
363
381
  * deserializeAws_restJson1UpdateApplicationCommand
364
382
  */
@@ -56,6 +56,10 @@ import {
56
56
  DeleteHostedConfigurationVersionCommandInput,
57
57
  DeleteHostedConfigurationVersionCommandOutput,
58
58
  } from "./commands/DeleteHostedConfigurationVersionCommand";
59
+ import {
60
+ GetAccountSettingsCommandInput,
61
+ GetAccountSettingsCommandOutput,
62
+ } from "./commands/GetAccountSettingsCommand";
59
63
  import {
60
64
  GetApplicationCommandInput,
61
65
  GetApplicationCommandOutput,
@@ -144,6 +148,10 @@ import {
144
148
  UntagResourceCommandInput,
145
149
  UntagResourceCommandOutput,
146
150
  } from "./commands/UntagResourceCommand";
151
+ import {
152
+ UpdateAccountSettingsCommandInput,
153
+ UpdateAccountSettingsCommandOutput,
154
+ } from "./commands/UpdateAccountSettingsCommand";
147
155
  import {
148
156
  UpdateApplicationCommandInput,
149
157
  UpdateApplicationCommandOutput,
@@ -355,6 +363,20 @@ export interface AppConfig {
355
363
  options: __HttpHandlerOptions,
356
364
  cb: (err: any, data?: DeleteHostedConfigurationVersionCommandOutput) => void
357
365
  ): void;
366
+ getAccountSettings(): Promise<GetAccountSettingsCommandOutput>;
367
+ getAccountSettings(
368
+ args: GetAccountSettingsCommandInput,
369
+ options?: __HttpHandlerOptions
370
+ ): Promise<GetAccountSettingsCommandOutput>;
371
+ getAccountSettings(
372
+ args: GetAccountSettingsCommandInput,
373
+ cb: (err: any, data?: GetAccountSettingsCommandOutput) => void
374
+ ): void;
375
+ getAccountSettings(
376
+ args: GetAccountSettingsCommandInput,
377
+ options: __HttpHandlerOptions,
378
+ cb: (err: any, data?: GetAccountSettingsCommandOutput) => void
379
+ ): void;
358
380
  getApplication(
359
381
  args: GetApplicationCommandInput,
360
382
  options?: __HttpHandlerOptions
@@ -645,6 +667,20 @@ export interface AppConfig {
645
667
  options: __HttpHandlerOptions,
646
668
  cb: (err: any, data?: UntagResourceCommandOutput) => void
647
669
  ): void;
670
+ updateAccountSettings(): Promise<UpdateAccountSettingsCommandOutput>;
671
+ updateAccountSettings(
672
+ args: UpdateAccountSettingsCommandInput,
673
+ options?: __HttpHandlerOptions
674
+ ): Promise<UpdateAccountSettingsCommandOutput>;
675
+ updateAccountSettings(
676
+ args: UpdateAccountSettingsCommandInput,
677
+ cb: (err: any, data?: UpdateAccountSettingsCommandOutput) => void
678
+ ): void;
679
+ updateAccountSettings(
680
+ args: UpdateAccountSettingsCommandInput,
681
+ options: __HttpHandlerOptions,
682
+ cb: (err: any, data?: UpdateAccountSettingsCommandOutput) => void
683
+ ): void;
648
684
  updateApplication(
649
685
  args: UpdateApplicationCommandInput,
650
686
  options?: __HttpHandlerOptions
@@ -101,6 +101,10 @@ import {
101
101
  DeleteHostedConfigurationVersionCommandInput,
102
102
  DeleteHostedConfigurationVersionCommandOutput,
103
103
  } from "./commands/DeleteHostedConfigurationVersionCommand";
104
+ import {
105
+ GetAccountSettingsCommandInput,
106
+ GetAccountSettingsCommandOutput,
107
+ } from "./commands/GetAccountSettingsCommand";
104
108
  import {
105
109
  GetApplicationCommandInput,
106
110
  GetApplicationCommandOutput,
@@ -189,6 +193,10 @@ import {
189
193
  UntagResourceCommandInput,
190
194
  UntagResourceCommandOutput,
191
195
  } from "./commands/UntagResourceCommand";
196
+ import {
197
+ UpdateAccountSettingsCommandInput,
198
+ UpdateAccountSettingsCommandOutput,
199
+ } from "./commands/UpdateAccountSettingsCommand";
192
200
  import {
193
201
  UpdateApplicationCommandInput,
194
202
  UpdateApplicationCommandOutput,
@@ -239,6 +247,7 @@ export type ServiceInputTypes =
239
247
  | DeleteExtensionAssociationCommandInput
240
248
  | DeleteExtensionCommandInput
241
249
  | DeleteHostedConfigurationVersionCommandInput
250
+ | GetAccountSettingsCommandInput
242
251
  | GetApplicationCommandInput
243
252
  | GetConfigurationCommandInput
244
253
  | GetConfigurationProfileCommandInput
@@ -261,6 +270,7 @@ export type ServiceInputTypes =
261
270
  | StopDeploymentCommandInput
262
271
  | TagResourceCommandInput
263
272
  | UntagResourceCommandInput
273
+ | UpdateAccountSettingsCommandInput
264
274
  | UpdateApplicationCommandInput
265
275
  | UpdateConfigurationProfileCommandInput
266
276
  | UpdateDeploymentStrategyCommandInput
@@ -283,6 +293,7 @@ export type ServiceOutputTypes =
283
293
  | DeleteExtensionAssociationCommandOutput
284
294
  | DeleteExtensionCommandOutput
285
295
  | DeleteHostedConfigurationVersionCommandOutput
296
+ | GetAccountSettingsCommandOutput
286
297
  | GetApplicationCommandOutput
287
298
  | GetConfigurationCommandOutput
288
299
  | GetConfigurationProfileCommandOutput
@@ -305,6 +316,7 @@ export type ServiceOutputTypes =
305
316
  | StopDeploymentCommandOutput
306
317
  | TagResourceCommandOutput
307
318
  | UntagResourceCommandOutput
319
+ | UpdateAccountSettingsCommandOutput
308
320
  | UpdateApplicationCommandOutput
309
321
  | UpdateConfigurationProfileCommandOutput
310
322
  | UpdateDeploymentStrategyCommandOutput
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ AppConfigClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../AppConfigClient";
8
+ import { AccountSettings } from "../models/models_0";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface GetAccountSettingsCommandInput {}
12
+ export interface GetAccountSettingsCommandOutput
13
+ extends AccountSettings,
14
+ __MetadataBearer {}
15
+ declare const GetAccountSettingsCommand_base: {
16
+ new (
17
+ input: GetAccountSettingsCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ GetAccountSettingsCommandInput,
20
+ GetAccountSettingsCommandOutput,
21
+ AppConfigClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ ...[input]: [] | [GetAccountSettingsCommandInput]
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ GetAccountSettingsCommandInput,
29
+ GetAccountSettingsCommandOutput,
30
+ AppConfigClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class GetAccountSettingsCommand extends GetAccountSettingsCommand_base {}