@aws-sdk/client-appconfig 3.799.0 → 3.801.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.
- package/README.md +1 -1
- package/dist-cjs/index.js +114 -2
- package/dist-es/commands/StartDeploymentCommand.js +2 -1
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForDeploymentComplete.js +49 -0
- package/dist-es/waiters/waitForEnvironmentReadyForDeployment.js +49 -0
- package/dist-types/AppConfig.d.ts +1 -1
- package/dist-types/AppConfigClient.d.ts +1 -1
- package/dist-types/index.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +31 -37
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForDeploymentComplete.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForEnvironmentReadyForDeployment.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForDeploymentComplete.d.ts +14 -0
- package/dist-types/waiters/waitForEnvironmentReadyForDeployment.d.ts +14 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ and dynamic configurations, you can update block lists, allow lists, throttling
|
|
|
16
16
|
logging verbosity, and perform other operational tuning to quickly respond to issues in
|
|
17
17
|
production environments.</p>
|
|
18
18
|
<note>
|
|
19
|
-
<p>AppConfig is a
|
|
19
|
+
<p>AppConfig is a tool in Amazon Web Services Systems Manager.</p>
|
|
20
20
|
</note>
|
|
21
21
|
<p>Despite the fact that application configuration content can vary greatly from
|
|
22
22
|
application to application, AppConfig supports the following use cases, which
|
package/dist-cjs/index.js
CHANGED
|
@@ -79,6 +79,7 @@ __export(index_exports, {
|
|
|
79
79
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
80
80
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
81
81
|
StartDeploymentCommand: () => StartDeploymentCommand,
|
|
82
|
+
StartDeploymentRequestFilterSensitiveLog: () => StartDeploymentRequestFilterSensitiveLog,
|
|
82
83
|
StopDeploymentCommand: () => StopDeploymentCommand,
|
|
83
84
|
TagResourceCommand: () => TagResourceCommand,
|
|
84
85
|
TriggeredBy: () => TriggeredBy,
|
|
@@ -102,7 +103,11 @@ __export(index_exports, {
|
|
|
102
103
|
paginateListEnvironments: () => paginateListEnvironments,
|
|
103
104
|
paginateListExtensionAssociations: () => paginateListExtensionAssociations,
|
|
104
105
|
paginateListExtensions: () => paginateListExtensions,
|
|
105
|
-
paginateListHostedConfigurationVersions: () => paginateListHostedConfigurationVersions
|
|
106
|
+
paginateListHostedConfigurationVersions: () => paginateListHostedConfigurationVersions,
|
|
107
|
+
waitForDeploymentComplete: () => waitForDeploymentComplete,
|
|
108
|
+
waitForEnvironmentReadyForDeployment: () => waitForEnvironmentReadyForDeployment,
|
|
109
|
+
waitUntilDeploymentComplete: () => waitUntilDeploymentComplete,
|
|
110
|
+
waitUntilEnvironmentReadyForDeployment: () => waitUntilEnvironmentReadyForDeployment
|
|
106
111
|
});
|
|
107
112
|
module.exports = __toCommonJS(index_exports);
|
|
108
113
|
|
|
@@ -509,6 +514,10 @@ var ConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
509
514
|
...obj,
|
|
510
515
|
...obj.Content && { Content: import_smithy_client.SENSITIVE_STRING }
|
|
511
516
|
}), "ConfigurationFilterSensitiveLog");
|
|
517
|
+
var StartDeploymentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
518
|
+
...obj,
|
|
519
|
+
...obj.DynamicExtensionParameters && { DynamicExtensionParameters: import_smithy_client.SENSITIVE_STRING }
|
|
520
|
+
}), "StartDeploymentRequestFilterSensitiveLog");
|
|
512
521
|
var UpdateConfigurationProfileRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
513
522
|
...obj,
|
|
514
523
|
...obj.Validators && { Validators: obj.Validators.map((item) => ValidatorFilterSensitiveLog(item)) }
|
|
@@ -2654,7 +2663,7 @@ var StartDeploymentCommand = class extends import_smithy_client.Command.classBui
|
|
|
2654
2663
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2655
2664
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2656
2665
|
];
|
|
2657
|
-
}).s("AmazonAppConfig", "StartDeployment", {}).n("AppConfigClient", "StartDeploymentCommand").f(
|
|
2666
|
+
}).s("AmazonAppConfig", "StartDeployment", {}).n("AppConfigClient", "StartDeploymentCommand").f(StartDeploymentRequestFilterSensitiveLog, void 0).ser(se_StartDeploymentCommand).de(de_StartDeploymentCommand).build() {
|
|
2658
2667
|
static {
|
|
2659
2668
|
__name(this, "StartDeploymentCommand");
|
|
2660
2669
|
}
|
|
@@ -2911,6 +2920,104 @@ var paginateListExtensions = (0, import_core.createPaginator)(AppConfigClient, L
|
|
|
2911
2920
|
// src/pagination/ListHostedConfigurationVersionsPaginator.ts
|
|
2912
2921
|
|
|
2913
2922
|
var paginateListHostedConfigurationVersions = (0, import_core.createPaginator)(AppConfigClient, ListHostedConfigurationVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2923
|
+
|
|
2924
|
+
// src/waiters/waitForDeploymentComplete.ts
|
|
2925
|
+
var import_util_waiter = require("@smithy/util-waiter");
|
|
2926
|
+
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
2927
|
+
let reason;
|
|
2928
|
+
try {
|
|
2929
|
+
const result = await client.send(new GetDeploymentCommand(input));
|
|
2930
|
+
reason = result;
|
|
2931
|
+
try {
|
|
2932
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2933
|
+
return result.State;
|
|
2934
|
+
}, "returnComparator");
|
|
2935
|
+
if (returnComparator() === "COMPLETE") {
|
|
2936
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2937
|
+
}
|
|
2938
|
+
} catch (e) {
|
|
2939
|
+
}
|
|
2940
|
+
try {
|
|
2941
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2942
|
+
return result.State;
|
|
2943
|
+
}, "returnComparator");
|
|
2944
|
+
if (returnComparator() === "ROLLED_BACK") {
|
|
2945
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2946
|
+
}
|
|
2947
|
+
} catch (e) {
|
|
2948
|
+
}
|
|
2949
|
+
try {
|
|
2950
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2951
|
+
return result.State;
|
|
2952
|
+
}, "returnComparator");
|
|
2953
|
+
if (returnComparator() === "REVERTED") {
|
|
2954
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2955
|
+
}
|
|
2956
|
+
} catch (e) {
|
|
2957
|
+
}
|
|
2958
|
+
} catch (exception) {
|
|
2959
|
+
reason = exception;
|
|
2960
|
+
}
|
|
2961
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2962
|
+
}, "checkState");
|
|
2963
|
+
var waitForDeploymentComplete = /* @__PURE__ */ __name(async (params, input) => {
|
|
2964
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2965
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2966
|
+
}, "waitForDeploymentComplete");
|
|
2967
|
+
var waitUntilDeploymentComplete = /* @__PURE__ */ __name(async (params, input) => {
|
|
2968
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2969
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2970
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2971
|
+
}, "waitUntilDeploymentComplete");
|
|
2972
|
+
|
|
2973
|
+
// src/waiters/waitForEnvironmentReadyForDeployment.ts
|
|
2974
|
+
|
|
2975
|
+
var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2976
|
+
let reason;
|
|
2977
|
+
try {
|
|
2978
|
+
const result = await client.send(new GetEnvironmentCommand(input));
|
|
2979
|
+
reason = result;
|
|
2980
|
+
try {
|
|
2981
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2982
|
+
return result.State;
|
|
2983
|
+
}, "returnComparator");
|
|
2984
|
+
if (returnComparator() === "ReadyForDeployment") {
|
|
2985
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2986
|
+
}
|
|
2987
|
+
} catch (e) {
|
|
2988
|
+
}
|
|
2989
|
+
try {
|
|
2990
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2991
|
+
return result.State;
|
|
2992
|
+
}, "returnComparator");
|
|
2993
|
+
if (returnComparator() === "RolledBack") {
|
|
2994
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2995
|
+
}
|
|
2996
|
+
} catch (e) {
|
|
2997
|
+
}
|
|
2998
|
+
try {
|
|
2999
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
3000
|
+
return result.State;
|
|
3001
|
+
}, "returnComparator");
|
|
3002
|
+
if (returnComparator() === "Reverted") {
|
|
3003
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
3004
|
+
}
|
|
3005
|
+
} catch (e) {
|
|
3006
|
+
}
|
|
3007
|
+
} catch (exception) {
|
|
3008
|
+
reason = exception;
|
|
3009
|
+
}
|
|
3010
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
3011
|
+
}, "checkState");
|
|
3012
|
+
var waitForEnvironmentReadyForDeployment = /* @__PURE__ */ __name(async (params, input) => {
|
|
3013
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
3014
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
3015
|
+
}, "waitForEnvironmentReadyForDeployment");
|
|
3016
|
+
var waitUntilEnvironmentReadyForDeployment = /* @__PURE__ */ __name(async (params, input) => {
|
|
3017
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
3018
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
3019
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
3020
|
+
}, "waitUntilEnvironmentReadyForDeployment");
|
|
2914
3021
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2915
3022
|
|
|
2916
3023
|
0 && (module.exports = {
|
|
@@ -2972,6 +3079,10 @@ var paginateListHostedConfigurationVersions = (0, import_core.createPaginator)(A
|
|
|
2972
3079
|
paginateListExtensionAssociations,
|
|
2973
3080
|
paginateListExtensions,
|
|
2974
3081
|
paginateListHostedConfigurationVersions,
|
|
3082
|
+
waitForDeploymentComplete,
|
|
3083
|
+
waitUntilDeploymentComplete,
|
|
3084
|
+
waitForEnvironmentReadyForDeployment,
|
|
3085
|
+
waitUntilEnvironmentReadyForDeployment,
|
|
2975
3086
|
ActionPoint,
|
|
2976
3087
|
BadRequestDetails,
|
|
2977
3088
|
BadRequestReason,
|
|
@@ -2996,6 +3107,7 @@ var paginateListHostedConfigurationVersions = (0, import_core.createPaginator)(A
|
|
|
2996
3107
|
CreateHostedConfigurationVersionRequestFilterSensitiveLog,
|
|
2997
3108
|
HostedConfigurationVersionFilterSensitiveLog,
|
|
2998
3109
|
ConfigurationFilterSensitiveLog,
|
|
3110
|
+
StartDeploymentRequestFilterSensitiveLog,
|
|
2999
3111
|
UpdateConfigurationProfileRequestFilterSensitiveLog
|
|
3000
3112
|
});
|
|
3001
3113
|
|
|
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { StartDeploymentRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
6
|
import { de_StartDeploymentCommand, se_StartDeploymentCommand } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
7
8
|
export class StartDeploymentCommand extends $Command
|
|
@@ -15,7 +16,7 @@ export class StartDeploymentCommand extends $Command
|
|
|
15
16
|
})
|
|
16
17
|
.s("AmazonAppConfig", "StartDeployment", {})
|
|
17
18
|
.n("AppConfigClient", "StartDeploymentCommand")
|
|
18
|
-
.f(
|
|
19
|
+
.f(StartDeploymentRequestFilterSensitiveLog, void 0)
|
|
19
20
|
.ser(se_StartDeploymentCommand)
|
|
20
21
|
.de(de_StartDeploymentCommand)
|
|
21
22
|
.build() {
|
package/dist-es/index.js
CHANGED
|
@@ -192,6 +192,10 @@ export const ConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
192
192
|
...obj,
|
|
193
193
|
...(obj.Content && { Content: SENSITIVE_STRING }),
|
|
194
194
|
});
|
|
195
|
+
export const StartDeploymentRequestFilterSensitiveLog = (obj) => ({
|
|
196
|
+
...obj,
|
|
197
|
+
...(obj.DynamicExtensionParameters && { DynamicExtensionParameters: SENSITIVE_STRING }),
|
|
198
|
+
});
|
|
195
199
|
export const UpdateConfigurationProfileRequestFilterSensitiveLog = (obj) => ({
|
|
196
200
|
...obj,
|
|
197
201
|
...(obj.Validators && { Validators: obj.Validators.map((item) => ValidatorFilterSensitiveLog(item)) }),
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetDeploymentCommand } from "../commands/GetDeploymentCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetDeploymentCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETE") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "ROLLED_BACK") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.State;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "REVERTED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForDeploymentComplete = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilDeploymentComplete = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetEnvironmentCommand } from "../commands/GetEnvironmentCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetEnvironmentCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ReadyForDeployment") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "RolledBack") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.State;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "Reverted") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForEnvironmentReadyForDeployment = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilEnvironmentReadyForDeployment = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -334,7 +334,7 @@ export interface AppConfig {
|
|
|
334
334
|
* logging verbosity, and perform other operational tuning to quickly respond to issues in
|
|
335
335
|
* production environments.</p>
|
|
336
336
|
* <note>
|
|
337
|
-
* <p>AppConfig is a
|
|
337
|
+
* <p>AppConfig is a tool in Amazon Web Services Systems Manager.</p>
|
|
338
338
|
* </note>
|
|
339
339
|
* <p>Despite the fact that application configuration content can vary greatly from
|
|
340
340
|
* application to application, AppConfig supports the following use cases, which
|
|
@@ -224,7 +224,7 @@ export interface AppConfigClientResolvedConfig extends AppConfigClientResolvedCo
|
|
|
224
224
|
* logging verbosity, and perform other operational tuning to quickly respond to issues in
|
|
225
225
|
* production environments.</p>
|
|
226
226
|
* <note>
|
|
227
|
-
* <p>AppConfig is a
|
|
227
|
+
* <p>AppConfig is a tool in Amazon Web Services Systems Manager.</p>
|
|
228
228
|
* </note>
|
|
229
229
|
* <p>Despite the fact that application configuration content can vary greatly from
|
|
230
230
|
* application to application, AppConfig supports the following use cases, which
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* logging verbosity, and perform other operational tuning to quickly respond to issues in
|
|
10
10
|
* production environments.</p>
|
|
11
11
|
* <note>
|
|
12
|
-
* <p>AppConfig is a
|
|
12
|
+
* <p>AppConfig is a tool in Amazon Web Services Systems Manager.</p>
|
|
13
13
|
* </note>
|
|
14
14
|
* <p>Despite the fact that application configuration content can vary greatly from
|
|
15
15
|
* application to application, AppConfig supports the following use cases, which
|
|
@@ -159,5 +159,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
159
159
|
export type { AppConfigExtensionConfiguration } from "./extensionConfiguration";
|
|
160
160
|
export * from "./commands";
|
|
161
161
|
export * from "./pagination";
|
|
162
|
+
export * from "./waiters";
|
|
162
163
|
export * from "./models";
|
|
163
164
|
export { AppConfigServiceException } from "./models/AppConfigServiceException";
|
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { AppConfigServiceException as __BaseException } from "./AppConfigServiceException";
|
|
3
3
|
/**
|
|
4
|
-
* <p>A parameter to configure deletion protection.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* <p>A parameter to configure deletion protection. Deletion protection prevents a user from
|
|
5
|
+
* deleting a configuration profile or an environment if AppConfig has called either
|
|
6
|
+
* <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or for the
|
|
7
7
|
* configuration profile or from the environment during the specified interval.</p>
|
|
8
|
-
* <p>
|
|
9
|
-
*
|
|
10
|
-
*
|
|
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>
|
|
8
|
+
* <p>The default interval specified by <code>ProtectionPeriodInMinutes</code> is 60.
|
|
9
|
+
* <code>DeletionProtectionCheck</code> skips configuration profiles and environments that
|
|
10
|
+
* were created in the past hour.</p>
|
|
23
11
|
* @public
|
|
24
12
|
*/
|
|
25
13
|
export interface DeletionProtectionSettings {
|
|
@@ -44,12 +32,11 @@ export interface DeletionProtectionSettings {
|
|
|
44
32
|
*/
|
|
45
33
|
export interface AccountSettings {
|
|
46
34
|
/**
|
|
47
|
-
* <p>A parameter to configure deletion protection.
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* configuration profile or from the environment during the specified interval.
|
|
51
|
-
*
|
|
52
|
-
* <code>ProtectionPeriodInMinutes</code> is 60.</p>
|
|
35
|
+
* <p>A parameter to configure deletion protection. Deletion protection prevents a user from
|
|
36
|
+
* deleting a configuration profile or an environment if AppConfig has called either
|
|
37
|
+
* <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or for the
|
|
38
|
+
* configuration profile or from the environment during the specified interval. The default
|
|
39
|
+
* interval for <code>ProtectionPeriodInMinutes</code> is 60.</p>
|
|
53
40
|
* @public
|
|
54
41
|
*/
|
|
55
42
|
DeletionProtection?: DeletionProtectionSettings | undefined;
|
|
@@ -526,7 +513,7 @@ export interface CreateConfigurationProfileRequest {
|
|
|
526
513
|
* <p>The ARN of an IAM role with permission to access the configuration at the specified
|
|
527
514
|
* <code>LocationUri</code>.</p>
|
|
528
515
|
* <important>
|
|
529
|
-
* <p>A retrieval role ARN is not required for configurations stored in the AppConfig hosted configuration store. It is required for all other sources that
|
|
516
|
+
* <p>A retrieval role ARN is not required for configurations stored in CodePipeline or the AppConfig hosted configuration store. It is required for all other sources that
|
|
530
517
|
* store your configuration. </p>
|
|
531
518
|
* </important>
|
|
532
519
|
* @public
|
|
@@ -1196,8 +1183,8 @@ export interface DeleteConfigurationProfileRequest {
|
|
|
1196
1183
|
*/
|
|
1197
1184
|
ConfigurationProfileId: string | undefined;
|
|
1198
1185
|
/**
|
|
1199
|
-
* <p>A parameter to configure deletion protection.
|
|
1200
|
-
*
|
|
1186
|
+
* <p>A parameter to configure deletion protection. Deletion protection prevents a user from
|
|
1187
|
+
* 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
|
|
1201
1188
|
* configuration profile during the specified interval. </p>
|
|
1202
1189
|
* <p>This parameter supports the following values:</p>
|
|
1203
1190
|
* <ul>
|
|
@@ -1205,7 +1192,7 @@ export interface DeleteConfigurationProfileRequest {
|
|
|
1205
1192
|
* <p>
|
|
1206
1193
|
* <code>BYPASS</code>: Instructs AppConfig to bypass the deletion
|
|
1207
1194
|
* protection check and delete a configuration profile even if deletion protection would
|
|
1208
|
-
* have otherwise prevented it
|
|
1195
|
+
* have otherwise prevented it.</p>
|
|
1209
1196
|
* </li>
|
|
1210
1197
|
* <li>
|
|
1211
1198
|
* <p>
|
|
@@ -1249,8 +1236,8 @@ export interface DeleteEnvironmentRequest {
|
|
|
1249
1236
|
*/
|
|
1250
1237
|
ApplicationId: string | undefined;
|
|
1251
1238
|
/**
|
|
1252
|
-
* <p>A parameter to configure deletion protection.
|
|
1253
|
-
*
|
|
1239
|
+
* <p>A parameter to configure deletion protection. Deletion protection prevents a user from
|
|
1240
|
+
* 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
|
|
1254
1241
|
* environment during the specified interval. </p>
|
|
1255
1242
|
* <p>This parameter supports the following values:</p>
|
|
1256
1243
|
* <ul>
|
|
@@ -1265,7 +1252,7 @@ export interface DeleteEnvironmentRequest {
|
|
|
1265
1252
|
* <code>APPLY</code>: Instructs the deletion protection check to run, even if
|
|
1266
1253
|
* deletion protection is disabled at the account level. <code>APPLY</code> also forces
|
|
1267
1254
|
* the deletion protection check to run against resources created in the past hour,
|
|
1268
|
-
* which are normally excluded from deletion protection checks
|
|
1255
|
+
* which are normally excluded from deletion protection checks.</p>
|
|
1269
1256
|
* </li>
|
|
1270
1257
|
* <li>
|
|
1271
1258
|
* <p>
|
|
@@ -2451,12 +2438,11 @@ export interface UntagResourceRequest {
|
|
|
2451
2438
|
*/
|
|
2452
2439
|
export interface UpdateAccountSettingsRequest {
|
|
2453
2440
|
/**
|
|
2454
|
-
* <p>A parameter to configure deletion protection.
|
|
2455
|
-
*
|
|
2456
|
-
*
|
|
2457
|
-
* configuration profile or from the environment during the specified interval.
|
|
2458
|
-
*
|
|
2459
|
-
* <code>ProtectionPeriodInMinutes</code> is 60.</p>
|
|
2441
|
+
* <p>A parameter to configure deletion protection. Deletion protection prevents a user from
|
|
2442
|
+
* deleting a configuration profile or an environment if AppConfig has called either
|
|
2443
|
+
* <a href="https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html">GetLatestConfiguration</a> or for the
|
|
2444
|
+
* configuration profile or from the environment during the specified interval. The default
|
|
2445
|
+
* interval for <code>ProtectionPeriodInMinutes</code> is 60.</p>
|
|
2460
2446
|
* @public
|
|
2461
2447
|
*/
|
|
2462
2448
|
DeletionProtection?: DeletionProtectionSettings | undefined;
|
|
@@ -2508,6 +2494,10 @@ export interface UpdateConfigurationProfileRequest {
|
|
|
2508
2494
|
/**
|
|
2509
2495
|
* <p>The ARN of an IAM role with permission to access the configuration at the specified
|
|
2510
2496
|
* <code>LocationUri</code>.</p>
|
|
2497
|
+
* <important>
|
|
2498
|
+
* <p>A retrieval role ARN is not required for configurations stored in CodePipeline or the AppConfig hosted configuration store. It is required for all other sources that
|
|
2499
|
+
* store your configuration. </p>
|
|
2500
|
+
* </important>
|
|
2511
2501
|
* @public
|
|
2512
2502
|
*/
|
|
2513
2503
|
RetrievalRoleArn?: string | undefined;
|
|
@@ -2709,6 +2699,10 @@ export declare const HostedConfigurationVersionFilterSensitiveLog: (obj: HostedC
|
|
|
2709
2699
|
* @internal
|
|
2710
2700
|
*/
|
|
2711
2701
|
export declare const ConfigurationFilterSensitiveLog: (obj: Configuration) => any;
|
|
2702
|
+
/**
|
|
2703
|
+
* @internal
|
|
2704
|
+
*/
|
|
2705
|
+
export declare const StartDeploymentRequestFilterSensitiveLog: (obj: StartDeploymentRequest) => any;
|
|
2712
2706
|
/**
|
|
2713
2707
|
* @internal
|
|
2714
2708
|
*/
|
|
@@ -5,5 +5,6 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { AppConfigExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
+
export * from "./waiters";
|
|
8
9
|
export * from "./models";
|
|
9
10
|
export { AppConfigServiceException } from "./models/AppConfigServiceException";
|
|
@@ -633,6 +633,9 @@ export declare const HostedConfigurationVersionFilterSensitiveLog: (
|
|
|
633
633
|
export declare const ConfigurationFilterSensitiveLog: (
|
|
634
634
|
obj: Configuration
|
|
635
635
|
) => any;
|
|
636
|
+
export declare const StartDeploymentRequestFilterSensitiveLog: (
|
|
637
|
+
obj: StartDeploymentRequest
|
|
638
|
+
) => any;
|
|
636
639
|
export declare const UpdateConfigurationProfileRequestFilterSensitiveLog: (
|
|
637
640
|
obj: UpdateConfigurationProfileRequest
|
|
638
641
|
) => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { AppConfigClient } from "../AppConfigClient";
|
|
3
|
+
import { GetDeploymentCommandInput } from "../commands/GetDeploymentCommand";
|
|
4
|
+
export declare const waitForDeploymentComplete: (
|
|
5
|
+
params: WaiterConfiguration<AppConfigClient>,
|
|
6
|
+
input: GetDeploymentCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilDeploymentComplete: (
|
|
9
|
+
params: WaiterConfiguration<AppConfigClient>,
|
|
10
|
+
input: GetDeploymentCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { AppConfigClient } from "../AppConfigClient";
|
|
3
|
+
import { GetEnvironmentCommandInput } from "../commands/GetEnvironmentCommand";
|
|
4
|
+
export declare const waitForEnvironmentReadyForDeployment: (
|
|
5
|
+
params: WaiterConfiguration<AppConfigClient>,
|
|
6
|
+
input: GetEnvironmentCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilEnvironmentReadyForDeployment: (
|
|
9
|
+
params: WaiterConfiguration<AppConfigClient>,
|
|
10
|
+
input: GetEnvironmentCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { AppConfigClient } from "../AppConfigClient";
|
|
3
|
+
import { GetDeploymentCommandInput } from "../commands/GetDeploymentCommand";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilDeploymentComplete instead. waitForDeploymentComplete does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForDeploymentComplete: (params: WaiterConfiguration<AppConfigClient>, input: GetDeploymentCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetDeploymentCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilDeploymentComplete: (params: WaiterConfiguration<AppConfigClient>, input: GetDeploymentCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { AppConfigClient } from "../AppConfigClient";
|
|
3
|
+
import { GetEnvironmentCommandInput } from "../commands/GetEnvironmentCommand";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilEnvironmentReadyForDeployment instead. waitForEnvironmentReadyForDeployment does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForEnvironmentReadyForDeployment: (params: WaiterConfiguration<AppConfigClient>, input: GetEnvironmentCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetEnvironmentCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilEnvironmentReadyForDeployment: (params: WaiterConfiguration<AppConfigClient>, input: GetEnvironmentCommandInput) => Promise<WaiterResult>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appconfig",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appconfig Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.801.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-appconfig",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@smithy/util-retry": "^4.0.2",
|
|
58
58
|
"@smithy/util-stream": "^4.2.0",
|
|
59
59
|
"@smithy/util-utf8": "^4.0.0",
|
|
60
|
+
"@smithy/util-waiter": "^4.0.3",
|
|
60
61
|
"tslib": "^2.6.2"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|