@aws-sdk/client-imagebuilder 3.525.0 → 3.529.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/dist-cjs/index.js +95 -115
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +23 -41
- package/dist-types/commands/GetLifecycleExecutionCommand.d.ts +1 -1
- package/dist-types/commands/ListLifecycleExecutionResourcesCommand.d.ts +3 -1
- package/dist-types/commands/ListLifecycleExecutionsCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +15 -3
- package/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -324,6 +324,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
324
324
|
var import_types = require("@smithy/types");
|
|
325
325
|
|
|
326
326
|
// src/protocols/Aws_restJson1.ts
|
|
327
|
+
var import_core2 = require("@aws-sdk/core");
|
|
327
328
|
|
|
328
329
|
|
|
329
330
|
var import_uuid = require("uuid");
|
|
@@ -698,6 +699,7 @@ var LifecycleExecutionStatus = {
|
|
|
698
699
|
CANCELLING: "CANCELLING",
|
|
699
700
|
FAILED: "FAILED",
|
|
700
701
|
IN_PROGRESS: "IN_PROGRESS",
|
|
702
|
+
PENDING: "PENDING",
|
|
701
703
|
SUCCESS: "SUCCESS"
|
|
702
704
|
};
|
|
703
705
|
var WorkflowStatus = {
|
|
@@ -2019,7 +2021,7 @@ var de_CancelImageCreationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2019
2021
|
const contents = (0, import_smithy_client.map)({
|
|
2020
2022
|
$metadata: deserializeMetadata(output)
|
|
2021
2023
|
});
|
|
2022
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2024
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2023
2025
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2024
2026
|
clientToken: import_smithy_client.expectString,
|
|
2025
2027
|
imageBuildVersionArn: import_smithy_client.expectString,
|
|
@@ -2035,7 +2037,7 @@ var de_CancelLifecycleExecutionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2035
2037
|
const contents = (0, import_smithy_client.map)({
|
|
2036
2038
|
$metadata: deserializeMetadata(output)
|
|
2037
2039
|
});
|
|
2038
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2040
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2039
2041
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2040
2042
|
lifecycleExecutionId: import_smithy_client.expectString
|
|
2041
2043
|
});
|
|
@@ -2049,7 +2051,7 @@ var de_CreateComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2049
2051
|
const contents = (0, import_smithy_client.map)({
|
|
2050
2052
|
$metadata: deserializeMetadata(output)
|
|
2051
2053
|
});
|
|
2052
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2054
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2053
2055
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2054
2056
|
clientToken: import_smithy_client.expectString,
|
|
2055
2057
|
componentBuildVersionArn: import_smithy_client.expectString,
|
|
@@ -2065,7 +2067,7 @@ var de_CreateContainerRecipeCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2065
2067
|
const contents = (0, import_smithy_client.map)({
|
|
2066
2068
|
$metadata: deserializeMetadata(output)
|
|
2067
2069
|
});
|
|
2068
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2070
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2069
2071
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2070
2072
|
clientToken: import_smithy_client.expectString,
|
|
2071
2073
|
containerRecipeArn: import_smithy_client.expectString,
|
|
@@ -2081,7 +2083,7 @@ var de_CreateDistributionConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2081
2083
|
const contents = (0, import_smithy_client.map)({
|
|
2082
2084
|
$metadata: deserializeMetadata(output)
|
|
2083
2085
|
});
|
|
2084
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2086
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2085
2087
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2086
2088
|
clientToken: import_smithy_client.expectString,
|
|
2087
2089
|
distributionConfigurationArn: import_smithy_client.expectString,
|
|
@@ -2097,7 +2099,7 @@ var de_CreateImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2097
2099
|
const contents = (0, import_smithy_client.map)({
|
|
2098
2100
|
$metadata: deserializeMetadata(output)
|
|
2099
2101
|
});
|
|
2100
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2102
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2101
2103
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2102
2104
|
clientToken: import_smithy_client.expectString,
|
|
2103
2105
|
imageBuildVersionArn: import_smithy_client.expectString,
|
|
@@ -2113,7 +2115,7 @@ var de_CreateImagePipelineCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2113
2115
|
const contents = (0, import_smithy_client.map)({
|
|
2114
2116
|
$metadata: deserializeMetadata(output)
|
|
2115
2117
|
});
|
|
2116
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2118
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2117
2119
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2118
2120
|
clientToken: import_smithy_client.expectString,
|
|
2119
2121
|
imagePipelineArn: import_smithy_client.expectString,
|
|
@@ -2129,7 +2131,7 @@ var de_CreateImageRecipeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2129
2131
|
const contents = (0, import_smithy_client.map)({
|
|
2130
2132
|
$metadata: deserializeMetadata(output)
|
|
2131
2133
|
});
|
|
2132
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2134
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2133
2135
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2134
2136
|
clientToken: import_smithy_client.expectString,
|
|
2135
2137
|
imageRecipeArn: import_smithy_client.expectString,
|
|
@@ -2145,7 +2147,7 @@ var de_CreateInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
2145
2147
|
const contents = (0, import_smithy_client.map)({
|
|
2146
2148
|
$metadata: deserializeMetadata(output)
|
|
2147
2149
|
});
|
|
2148
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2150
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2149
2151
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2150
2152
|
clientToken: import_smithy_client.expectString,
|
|
2151
2153
|
infrastructureConfigurationArn: import_smithy_client.expectString,
|
|
@@ -2161,7 +2163,7 @@ var de_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2161
2163
|
const contents = (0, import_smithy_client.map)({
|
|
2162
2164
|
$metadata: deserializeMetadata(output)
|
|
2163
2165
|
});
|
|
2164
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2166
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2165
2167
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2166
2168
|
clientToken: import_smithy_client.expectString,
|
|
2167
2169
|
lifecyclePolicyArn: import_smithy_client.expectString
|
|
@@ -2176,7 +2178,7 @@ var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2176
2178
|
const contents = (0, import_smithy_client.map)({
|
|
2177
2179
|
$metadata: deserializeMetadata(output)
|
|
2178
2180
|
});
|
|
2179
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2181
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2180
2182
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2181
2183
|
clientToken: import_smithy_client.expectString,
|
|
2182
2184
|
workflowBuildVersionArn: import_smithy_client.expectString
|
|
@@ -2191,7 +2193,7 @@ var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2191
2193
|
const contents = (0, import_smithy_client.map)({
|
|
2192
2194
|
$metadata: deserializeMetadata(output)
|
|
2193
2195
|
});
|
|
2194
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2196
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2195
2197
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2196
2198
|
componentBuildVersionArn: import_smithy_client.expectString,
|
|
2197
2199
|
requestId: import_smithy_client.expectString
|
|
@@ -2206,7 +2208,7 @@ var de_DeleteContainerRecipeCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2206
2208
|
const contents = (0, import_smithy_client.map)({
|
|
2207
2209
|
$metadata: deserializeMetadata(output)
|
|
2208
2210
|
});
|
|
2209
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2211
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2210
2212
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2211
2213
|
containerRecipeArn: import_smithy_client.expectString,
|
|
2212
2214
|
requestId: import_smithy_client.expectString
|
|
@@ -2221,7 +2223,7 @@ var de_DeleteDistributionConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2221
2223
|
const contents = (0, import_smithy_client.map)({
|
|
2222
2224
|
$metadata: deserializeMetadata(output)
|
|
2223
2225
|
});
|
|
2224
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2226
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2225
2227
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2226
2228
|
distributionConfigurationArn: import_smithy_client.expectString,
|
|
2227
2229
|
requestId: import_smithy_client.expectString
|
|
@@ -2236,7 +2238,7 @@ var de_DeleteImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2236
2238
|
const contents = (0, import_smithy_client.map)({
|
|
2237
2239
|
$metadata: deserializeMetadata(output)
|
|
2238
2240
|
});
|
|
2239
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2241
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2240
2242
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2241
2243
|
imageBuildVersionArn: import_smithy_client.expectString,
|
|
2242
2244
|
requestId: import_smithy_client.expectString
|
|
@@ -2251,7 +2253,7 @@ var de_DeleteImagePipelineCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2251
2253
|
const contents = (0, import_smithy_client.map)({
|
|
2252
2254
|
$metadata: deserializeMetadata(output)
|
|
2253
2255
|
});
|
|
2254
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2256
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2255
2257
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2256
2258
|
imagePipelineArn: import_smithy_client.expectString,
|
|
2257
2259
|
requestId: import_smithy_client.expectString
|
|
@@ -2266,7 +2268,7 @@ var de_DeleteImageRecipeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2266
2268
|
const contents = (0, import_smithy_client.map)({
|
|
2267
2269
|
$metadata: deserializeMetadata(output)
|
|
2268
2270
|
});
|
|
2269
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2271
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2270
2272
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2271
2273
|
imageRecipeArn: import_smithy_client.expectString,
|
|
2272
2274
|
requestId: import_smithy_client.expectString
|
|
@@ -2281,7 +2283,7 @@ var de_DeleteInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
2281
2283
|
const contents = (0, import_smithy_client.map)({
|
|
2282
2284
|
$metadata: deserializeMetadata(output)
|
|
2283
2285
|
});
|
|
2284
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2286
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2285
2287
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2286
2288
|
infrastructureConfigurationArn: import_smithy_client.expectString,
|
|
2287
2289
|
requestId: import_smithy_client.expectString
|
|
@@ -2296,7 +2298,7 @@ var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2296
2298
|
const contents = (0, import_smithy_client.map)({
|
|
2297
2299
|
$metadata: deserializeMetadata(output)
|
|
2298
2300
|
});
|
|
2299
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2301
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2300
2302
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2301
2303
|
lifecyclePolicyArn: import_smithy_client.expectString
|
|
2302
2304
|
});
|
|
@@ -2310,7 +2312,7 @@ var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2310
2312
|
const contents = (0, import_smithy_client.map)({
|
|
2311
2313
|
$metadata: deserializeMetadata(output)
|
|
2312
2314
|
});
|
|
2313
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2315
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2314
2316
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2315
2317
|
workflowBuildVersionArn: import_smithy_client.expectString
|
|
2316
2318
|
});
|
|
@@ -2324,7 +2326,7 @@ var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2324
2326
|
const contents = (0, import_smithy_client.map)({
|
|
2325
2327
|
$metadata: deserializeMetadata(output)
|
|
2326
2328
|
});
|
|
2327
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2329
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2328
2330
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2329
2331
|
component: import_smithy_client._json,
|
|
2330
2332
|
requestId: import_smithy_client.expectString
|
|
@@ -2339,7 +2341,7 @@ var de_GetComponentPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2339
2341
|
const contents = (0, import_smithy_client.map)({
|
|
2340
2342
|
$metadata: deserializeMetadata(output)
|
|
2341
2343
|
});
|
|
2342
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2344
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2343
2345
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2344
2346
|
policy: import_smithy_client.expectString,
|
|
2345
2347
|
requestId: import_smithy_client.expectString
|
|
@@ -2354,7 +2356,7 @@ var de_GetContainerRecipeCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2354
2356
|
const contents = (0, import_smithy_client.map)({
|
|
2355
2357
|
$metadata: deserializeMetadata(output)
|
|
2356
2358
|
});
|
|
2357
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2359
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2358
2360
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2359
2361
|
containerRecipe: import_smithy_client._json,
|
|
2360
2362
|
requestId: import_smithy_client.expectString
|
|
@@ -2369,7 +2371,7 @@ var de_GetContainerRecipePolicyCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2369
2371
|
const contents = (0, import_smithy_client.map)({
|
|
2370
2372
|
$metadata: deserializeMetadata(output)
|
|
2371
2373
|
});
|
|
2372
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2374
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2373
2375
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2374
2376
|
policy: import_smithy_client.expectString,
|
|
2375
2377
|
requestId: import_smithy_client.expectString
|
|
@@ -2384,7 +2386,7 @@ var de_GetDistributionConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2384
2386
|
const contents = (0, import_smithy_client.map)({
|
|
2385
2387
|
$metadata: deserializeMetadata(output)
|
|
2386
2388
|
});
|
|
2387
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2389
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2388
2390
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2389
2391
|
distributionConfiguration: import_smithy_client._json,
|
|
2390
2392
|
requestId: import_smithy_client.expectString
|
|
@@ -2399,7 +2401,7 @@ var de_GetImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2399
2401
|
const contents = (0, import_smithy_client.map)({
|
|
2400
2402
|
$metadata: deserializeMetadata(output)
|
|
2401
2403
|
});
|
|
2402
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2404
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2403
2405
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2404
2406
|
image: (_) => de_Image(_, context),
|
|
2405
2407
|
requestId: import_smithy_client.expectString
|
|
@@ -2414,7 +2416,7 @@ var de_GetImagePipelineCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2414
2416
|
const contents = (0, import_smithy_client.map)({
|
|
2415
2417
|
$metadata: deserializeMetadata(output)
|
|
2416
2418
|
});
|
|
2417
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2419
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2418
2420
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2419
2421
|
imagePipeline: import_smithy_client._json,
|
|
2420
2422
|
requestId: import_smithy_client.expectString
|
|
@@ -2429,7 +2431,7 @@ var de_GetImagePolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2429
2431
|
const contents = (0, import_smithy_client.map)({
|
|
2430
2432
|
$metadata: deserializeMetadata(output)
|
|
2431
2433
|
});
|
|
2432
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2434
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2433
2435
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2434
2436
|
policy: import_smithy_client.expectString,
|
|
2435
2437
|
requestId: import_smithy_client.expectString
|
|
@@ -2444,7 +2446,7 @@ var de_GetImageRecipeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2444
2446
|
const contents = (0, import_smithy_client.map)({
|
|
2445
2447
|
$metadata: deserializeMetadata(output)
|
|
2446
2448
|
});
|
|
2447
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2449
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2448
2450
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2449
2451
|
imageRecipe: import_smithy_client._json,
|
|
2450
2452
|
requestId: import_smithy_client.expectString
|
|
@@ -2459,7 +2461,7 @@ var de_GetImageRecipePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2459
2461
|
const contents = (0, import_smithy_client.map)({
|
|
2460
2462
|
$metadata: deserializeMetadata(output)
|
|
2461
2463
|
});
|
|
2462
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2464
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2463
2465
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2464
2466
|
policy: import_smithy_client.expectString,
|
|
2465
2467
|
requestId: import_smithy_client.expectString
|
|
@@ -2474,7 +2476,7 @@ var de_GetInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
2474
2476
|
const contents = (0, import_smithy_client.map)({
|
|
2475
2477
|
$metadata: deserializeMetadata(output)
|
|
2476
2478
|
});
|
|
2477
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2479
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2478
2480
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2479
2481
|
infrastructureConfiguration: import_smithy_client._json,
|
|
2480
2482
|
requestId: import_smithy_client.expectString
|
|
@@ -2489,7 +2491,7 @@ var de_GetLifecycleExecutionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2489
2491
|
const contents = (0, import_smithy_client.map)({
|
|
2490
2492
|
$metadata: deserializeMetadata(output)
|
|
2491
2493
|
});
|
|
2492
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2494
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2493
2495
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2494
2496
|
lifecycleExecution: (_) => de_LifecycleExecution(_, context)
|
|
2495
2497
|
});
|
|
@@ -2503,7 +2505,7 @@ var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2503
2505
|
const contents = (0, import_smithy_client.map)({
|
|
2504
2506
|
$metadata: deserializeMetadata(output)
|
|
2505
2507
|
});
|
|
2506
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2508
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2507
2509
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2508
2510
|
lifecyclePolicy: (_) => de_LifecyclePolicy(_, context)
|
|
2509
2511
|
});
|
|
@@ -2517,7 +2519,7 @@ var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2517
2519
|
const contents = (0, import_smithy_client.map)({
|
|
2518
2520
|
$metadata: deserializeMetadata(output)
|
|
2519
2521
|
});
|
|
2520
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2522
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2521
2523
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2522
2524
|
workflow: import_smithy_client._json
|
|
2523
2525
|
});
|
|
@@ -2531,7 +2533,7 @@ var de_GetWorkflowExecutionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2531
2533
|
const contents = (0, import_smithy_client.map)({
|
|
2532
2534
|
$metadata: deserializeMetadata(output)
|
|
2533
2535
|
});
|
|
2534
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2536
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2535
2537
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2536
2538
|
endTime: import_smithy_client.expectString,
|
|
2537
2539
|
imageBuildVersionArn: import_smithy_client.expectString,
|
|
@@ -2558,7 +2560,7 @@ var de_GetWorkflowStepExecutionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2558
2560
|
const contents = (0, import_smithy_client.map)({
|
|
2559
2561
|
$metadata: deserializeMetadata(output)
|
|
2560
2562
|
});
|
|
2561
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2563
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2562
2564
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2563
2565
|
action: import_smithy_client.expectString,
|
|
2564
2566
|
description: import_smithy_client.expectString,
|
|
@@ -2588,7 +2590,7 @@ var de_ImportComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2588
2590
|
const contents = (0, import_smithy_client.map)({
|
|
2589
2591
|
$metadata: deserializeMetadata(output)
|
|
2590
2592
|
});
|
|
2591
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2593
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2592
2594
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2593
2595
|
clientToken: import_smithy_client.expectString,
|
|
2594
2596
|
componentBuildVersionArn: import_smithy_client.expectString,
|
|
@@ -2604,7 +2606,7 @@ var de_ImportVmImageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2604
2606
|
const contents = (0, import_smithy_client.map)({
|
|
2605
2607
|
$metadata: deserializeMetadata(output)
|
|
2606
2608
|
});
|
|
2607
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2609
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2608
2610
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2609
2611
|
clientToken: import_smithy_client.expectString,
|
|
2610
2612
|
imageArn: import_smithy_client.expectString,
|
|
@@ -2620,7 +2622,7 @@ var de_ListComponentBuildVersionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2620
2622
|
const contents = (0, import_smithy_client.map)({
|
|
2621
2623
|
$metadata: deserializeMetadata(output)
|
|
2622
2624
|
});
|
|
2623
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2625
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2624
2626
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2625
2627
|
componentSummaryList: import_smithy_client._json,
|
|
2626
2628
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2636,7 +2638,7 @@ var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2636
2638
|
const contents = (0, import_smithy_client.map)({
|
|
2637
2639
|
$metadata: deserializeMetadata(output)
|
|
2638
2640
|
});
|
|
2639
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2641
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2640
2642
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2641
2643
|
componentVersionList: import_smithy_client._json,
|
|
2642
2644
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2652,7 +2654,7 @@ var de_ListContainerRecipesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2652
2654
|
const contents = (0, import_smithy_client.map)({
|
|
2653
2655
|
$metadata: deserializeMetadata(output)
|
|
2654
2656
|
});
|
|
2655
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2657
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2656
2658
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2657
2659
|
containerRecipeSummaryList: import_smithy_client._json,
|
|
2658
2660
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2668,7 +2670,7 @@ var de_ListDistributionConfigurationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
2668
2670
|
const contents = (0, import_smithy_client.map)({
|
|
2669
2671
|
$metadata: deserializeMetadata(output)
|
|
2670
2672
|
});
|
|
2671
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2673
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2672
2674
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2673
2675
|
distributionConfigurationSummaryList: import_smithy_client._json,
|
|
2674
2676
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2684,7 +2686,7 @@ var de_ListImageBuildVersionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2684
2686
|
const contents = (0, import_smithy_client.map)({
|
|
2685
2687
|
$metadata: deserializeMetadata(output)
|
|
2686
2688
|
});
|
|
2687
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2689
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2688
2690
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2689
2691
|
imageSummaryList: (_) => de_ImageSummaryList(_, context),
|
|
2690
2692
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2700,7 +2702,7 @@ var de_ListImagePackagesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2700
2702
|
const contents = (0, import_smithy_client.map)({
|
|
2701
2703
|
$metadata: deserializeMetadata(output)
|
|
2702
2704
|
});
|
|
2703
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2705
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2704
2706
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2705
2707
|
imagePackageList: import_smithy_client._json,
|
|
2706
2708
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2716,7 +2718,7 @@ var de_ListImagePipelineImagesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2716
2718
|
const contents = (0, import_smithy_client.map)({
|
|
2717
2719
|
$metadata: deserializeMetadata(output)
|
|
2718
2720
|
});
|
|
2719
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2721
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2720
2722
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2721
2723
|
imageSummaryList: (_) => de_ImageSummaryList(_, context),
|
|
2722
2724
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2732,7 +2734,7 @@ var de_ListImagePipelinesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2732
2734
|
const contents = (0, import_smithy_client.map)({
|
|
2733
2735
|
$metadata: deserializeMetadata(output)
|
|
2734
2736
|
});
|
|
2735
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2737
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2736
2738
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2737
2739
|
imagePipelineList: import_smithy_client._json,
|
|
2738
2740
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2748,7 +2750,7 @@ var de_ListImageRecipesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2748
2750
|
const contents = (0, import_smithy_client.map)({
|
|
2749
2751
|
$metadata: deserializeMetadata(output)
|
|
2750
2752
|
});
|
|
2751
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2753
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2752
2754
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2753
2755
|
imageRecipeSummaryList: import_smithy_client._json,
|
|
2754
2756
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2764,7 +2766,7 @@ var de_ListImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2764
2766
|
const contents = (0, import_smithy_client.map)({
|
|
2765
2767
|
$metadata: deserializeMetadata(output)
|
|
2766
2768
|
});
|
|
2767
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2769
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2768
2770
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2769
2771
|
imageVersionList: import_smithy_client._json,
|
|
2770
2772
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2780,7 +2782,7 @@ var de_ListImageScanFindingAggregationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
2780
2782
|
const contents = (0, import_smithy_client.map)({
|
|
2781
2783
|
$metadata: deserializeMetadata(output)
|
|
2782
2784
|
});
|
|
2783
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2785
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2784
2786
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2785
2787
|
aggregationType: import_smithy_client.expectString,
|
|
2786
2788
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2797,7 +2799,7 @@ var de_ListImageScanFindingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2797
2799
|
const contents = (0, import_smithy_client.map)({
|
|
2798
2800
|
$metadata: deserializeMetadata(output)
|
|
2799
2801
|
});
|
|
2800
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2802
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2801
2803
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2802
2804
|
findings: (_) => de_ImageScanFindingsList(_, context),
|
|
2803
2805
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2813,7 +2815,7 @@ var de_ListInfrastructureConfigurationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
2813
2815
|
const contents = (0, import_smithy_client.map)({
|
|
2814
2816
|
$metadata: deserializeMetadata(output)
|
|
2815
2817
|
});
|
|
2816
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2818
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2817
2819
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2818
2820
|
infrastructureConfigurationSummaryList: import_smithy_client._json,
|
|
2819
2821
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2829,12 +2831,12 @@ var de_ListLifecycleExecutionResourcesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2829
2831
|
const contents = (0, import_smithy_client.map)({
|
|
2830
2832
|
$metadata: deserializeMetadata(output)
|
|
2831
2833
|
});
|
|
2832
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2834
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2833
2835
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2834
2836
|
lifecycleExecutionId: import_smithy_client.expectString,
|
|
2835
2837
|
lifecycleExecutionState: import_smithy_client._json,
|
|
2836
2838
|
nextToken: import_smithy_client.expectString,
|
|
2837
|
-
resources:
|
|
2839
|
+
resources: (_) => de_LifecycleExecutionResourceList(_, context)
|
|
2838
2840
|
});
|
|
2839
2841
|
Object.assign(contents, doc);
|
|
2840
2842
|
return contents;
|
|
@@ -2846,7 +2848,7 @@ var de_ListLifecycleExecutionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2846
2848
|
const contents = (0, import_smithy_client.map)({
|
|
2847
2849
|
$metadata: deserializeMetadata(output)
|
|
2848
2850
|
});
|
|
2849
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2851
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2850
2852
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2851
2853
|
lifecycleExecutions: (_) => de_LifecycleExecutionsList(_, context),
|
|
2852
2854
|
nextToken: import_smithy_client.expectString
|
|
@@ -2861,7 +2863,7 @@ var de_ListLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2861
2863
|
const contents = (0, import_smithy_client.map)({
|
|
2862
2864
|
$metadata: deserializeMetadata(output)
|
|
2863
2865
|
});
|
|
2864
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2866
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2865
2867
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2866
2868
|
lifecyclePolicySummaryList: (_) => de_LifecyclePolicySummaryList(_, context),
|
|
2867
2869
|
nextToken: import_smithy_client.expectString
|
|
@@ -2876,7 +2878,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2876
2878
|
const contents = (0, import_smithy_client.map)({
|
|
2877
2879
|
$metadata: deserializeMetadata(output)
|
|
2878
2880
|
});
|
|
2879
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2881
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2880
2882
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2881
2883
|
tags: import_smithy_client._json
|
|
2882
2884
|
});
|
|
@@ -2890,7 +2892,7 @@ var de_ListWaitingWorkflowStepsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2890
2892
|
const contents = (0, import_smithy_client.map)({
|
|
2891
2893
|
$metadata: deserializeMetadata(output)
|
|
2892
2894
|
});
|
|
2893
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2895
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2894
2896
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2895
2897
|
nextToken: import_smithy_client.expectString,
|
|
2896
2898
|
steps: import_smithy_client._json
|
|
@@ -2905,7 +2907,7 @@ var de_ListWorkflowBuildVersionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2905
2907
|
const contents = (0, import_smithy_client.map)({
|
|
2906
2908
|
$metadata: deserializeMetadata(output)
|
|
2907
2909
|
});
|
|
2908
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2910
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2909
2911
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2910
2912
|
nextToken: import_smithy_client.expectString,
|
|
2911
2913
|
workflowSummaryList: import_smithy_client._json
|
|
@@ -2920,7 +2922,7 @@ var de_ListWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2920
2922
|
const contents = (0, import_smithy_client.map)({
|
|
2921
2923
|
$metadata: deserializeMetadata(output)
|
|
2922
2924
|
});
|
|
2923
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2925
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2924
2926
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2925
2927
|
imageBuildVersionArn: import_smithy_client.expectString,
|
|
2926
2928
|
message: import_smithy_client.expectString,
|
|
@@ -2938,7 +2940,7 @@ var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2938
2940
|
const contents = (0, import_smithy_client.map)({
|
|
2939
2941
|
$metadata: deserializeMetadata(output)
|
|
2940
2942
|
});
|
|
2941
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2943
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2942
2944
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2943
2945
|
nextToken: import_smithy_client.expectString,
|
|
2944
2946
|
workflowVersionList: import_smithy_client._json
|
|
@@ -2953,7 +2955,7 @@ var de_ListWorkflowStepExecutionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2953
2955
|
const contents = (0, import_smithy_client.map)({
|
|
2954
2956
|
$metadata: deserializeMetadata(output)
|
|
2955
2957
|
});
|
|
2956
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2958
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2957
2959
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2958
2960
|
imageBuildVersionArn: import_smithy_client.expectString,
|
|
2959
2961
|
message: import_smithy_client.expectString,
|
|
@@ -2973,7 +2975,7 @@ var de_PutComponentPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2973
2975
|
const contents = (0, import_smithy_client.map)({
|
|
2974
2976
|
$metadata: deserializeMetadata(output)
|
|
2975
2977
|
});
|
|
2976
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2978
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2977
2979
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2978
2980
|
componentArn: import_smithy_client.expectString,
|
|
2979
2981
|
requestId: import_smithy_client.expectString
|
|
@@ -2988,7 +2990,7 @@ var de_PutContainerRecipePolicyCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2988
2990
|
const contents = (0, import_smithy_client.map)({
|
|
2989
2991
|
$metadata: deserializeMetadata(output)
|
|
2990
2992
|
});
|
|
2991
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2993
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2992
2994
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2993
2995
|
containerRecipeArn: import_smithy_client.expectString,
|
|
2994
2996
|
requestId: import_smithy_client.expectString
|
|
@@ -3003,7 +3005,7 @@ var de_PutImagePolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3003
3005
|
const contents = (0, import_smithy_client.map)({
|
|
3004
3006
|
$metadata: deserializeMetadata(output)
|
|
3005
3007
|
});
|
|
3006
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3008
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3007
3009
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3008
3010
|
imageArn: import_smithy_client.expectString,
|
|
3009
3011
|
requestId: import_smithy_client.expectString
|
|
@@ -3018,7 +3020,7 @@ var de_PutImageRecipePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3018
3020
|
const contents = (0, import_smithy_client.map)({
|
|
3019
3021
|
$metadata: deserializeMetadata(output)
|
|
3020
3022
|
});
|
|
3021
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3023
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3022
3024
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3023
3025
|
imageRecipeArn: import_smithy_client.expectString,
|
|
3024
3026
|
requestId: import_smithy_client.expectString
|
|
@@ -3033,7 +3035,7 @@ var de_SendWorkflowStepActionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3033
3035
|
const contents = (0, import_smithy_client.map)({
|
|
3034
3036
|
$metadata: deserializeMetadata(output)
|
|
3035
3037
|
});
|
|
3036
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3038
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3037
3039
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3038
3040
|
clientToken: import_smithy_client.expectString,
|
|
3039
3041
|
imageBuildVersionArn: import_smithy_client.expectString,
|
|
@@ -3049,7 +3051,7 @@ var de_StartImagePipelineExecutionCommand = /* @__PURE__ */ __name(async (output
|
|
|
3049
3051
|
const contents = (0, import_smithy_client.map)({
|
|
3050
3052
|
$metadata: deserializeMetadata(output)
|
|
3051
3053
|
});
|
|
3052
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3054
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3053
3055
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3054
3056
|
clientToken: import_smithy_client.expectString,
|
|
3055
3057
|
imageBuildVersionArn: import_smithy_client.expectString,
|
|
@@ -3065,7 +3067,7 @@ var de_StartResourceStateUpdateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3065
3067
|
const contents = (0, import_smithy_client.map)({
|
|
3066
3068
|
$metadata: deserializeMetadata(output)
|
|
3067
3069
|
});
|
|
3068
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3070
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3069
3071
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3070
3072
|
lifecycleExecutionId: import_smithy_client.expectString,
|
|
3071
3073
|
resourceArn: import_smithy_client.expectString
|
|
@@ -3100,7 +3102,7 @@ var de_UpdateDistributionConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3100
3102
|
const contents = (0, import_smithy_client.map)({
|
|
3101
3103
|
$metadata: deserializeMetadata(output)
|
|
3102
3104
|
});
|
|
3103
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3105
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3104
3106
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3105
3107
|
clientToken: import_smithy_client.expectString,
|
|
3106
3108
|
distributionConfigurationArn: import_smithy_client.expectString,
|
|
@@ -3116,7 +3118,7 @@ var de_UpdateImagePipelineCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3116
3118
|
const contents = (0, import_smithy_client.map)({
|
|
3117
3119
|
$metadata: deserializeMetadata(output)
|
|
3118
3120
|
});
|
|
3119
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3121
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3120
3122
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3121
3123
|
clientToken: import_smithy_client.expectString,
|
|
3122
3124
|
imagePipelineArn: import_smithy_client.expectString,
|
|
@@ -3132,7 +3134,7 @@ var de_UpdateInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
3132
3134
|
const contents = (0, import_smithy_client.map)({
|
|
3133
3135
|
$metadata: deserializeMetadata(output)
|
|
3134
3136
|
});
|
|
3135
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3137
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3136
3138
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3137
3139
|
clientToken: import_smithy_client.expectString,
|
|
3138
3140
|
infrastructureConfigurationArn: import_smithy_client.expectString,
|
|
@@ -3148,7 +3150,7 @@ var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3148
3150
|
const contents = (0, import_smithy_client.map)({
|
|
3149
3151
|
$metadata: deserializeMetadata(output)
|
|
3150
3152
|
});
|
|
3151
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
3153
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3152
3154
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3153
3155
|
lifecyclePolicyArn: import_smithy_client.expectString
|
|
3154
3156
|
});
|
|
@@ -3158,9 +3160,9 @@ var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3158
3160
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3159
3161
|
const parsedOutput = {
|
|
3160
3162
|
...output,
|
|
3161
|
-
body: await
|
|
3163
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
3162
3164
|
};
|
|
3163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3165
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
3164
3166
|
switch (errorCode) {
|
|
3165
3167
|
case "CallRateLimitExceededException":
|
|
3166
3168
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3562,6 +3564,25 @@ var de_LifecycleExecution = /* @__PURE__ */ __name((output, context) => {
|
|
|
3562
3564
|
state: import_smithy_client._json
|
|
3563
3565
|
});
|
|
3564
3566
|
}, "de_LifecycleExecution");
|
|
3567
|
+
var de_LifecycleExecutionResource = /* @__PURE__ */ __name((output, context) => {
|
|
3568
|
+
return (0, import_smithy_client.take)(output, {
|
|
3569
|
+
accountId: import_smithy_client.expectString,
|
|
3570
|
+
action: import_smithy_client._json,
|
|
3571
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3572
|
+
imageUris: import_smithy_client._json,
|
|
3573
|
+
region: import_smithy_client.expectString,
|
|
3574
|
+
resourceId: import_smithy_client.expectString,
|
|
3575
|
+
snapshots: import_smithy_client._json,
|
|
3576
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3577
|
+
state: import_smithy_client._json
|
|
3578
|
+
});
|
|
3579
|
+
}, "de_LifecycleExecutionResource");
|
|
3580
|
+
var de_LifecycleExecutionResourceList = /* @__PURE__ */ __name((output, context) => {
|
|
3581
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3582
|
+
return de_LifecycleExecutionResource(entry, context);
|
|
3583
|
+
});
|
|
3584
|
+
return retVal;
|
|
3585
|
+
}, "de_LifecycleExecutionResourceList");
|
|
3565
3586
|
var de_LifecycleExecutionsList = /* @__PURE__ */ __name((output, context) => {
|
|
3566
3587
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3567
3588
|
return de_LifecycleExecution(entry, context);
|
|
@@ -3624,7 +3645,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
3624
3645
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3625
3646
|
cfId: output.headers["x-amz-cf-id"]
|
|
3626
3647
|
}), "deserializeMetadata");
|
|
3627
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
3628
3648
|
var _cA = "componentArn";
|
|
3629
3649
|
var _cBVA = "componentBuildVersionArn";
|
|
3630
3650
|
var _cRA = "containerRecipeArn";
|
|
@@ -3640,46 +3660,6 @@ var _sEI = "stepExecutionId";
|
|
|
3640
3660
|
var _tK = "tagKeys";
|
|
3641
3661
|
var _wBVA = "workflowBuildVersionArn";
|
|
3642
3662
|
var _wEI = "workflowExecutionId";
|
|
3643
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3644
|
-
if (encoded.length) {
|
|
3645
|
-
return JSON.parse(encoded);
|
|
3646
|
-
}
|
|
3647
|
-
return {};
|
|
3648
|
-
}), "parseBody");
|
|
3649
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
3650
|
-
const value = await parseBody(errorBody, context);
|
|
3651
|
-
value.message = value.message ?? value.Message;
|
|
3652
|
-
return value;
|
|
3653
|
-
}, "parseErrorBody");
|
|
3654
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
3655
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
3656
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
3657
|
-
let cleanValue = rawValue;
|
|
3658
|
-
if (typeof cleanValue === "number") {
|
|
3659
|
-
cleanValue = cleanValue.toString();
|
|
3660
|
-
}
|
|
3661
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3662
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3663
|
-
}
|
|
3664
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3665
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3666
|
-
}
|
|
3667
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3668
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3669
|
-
}
|
|
3670
|
-
return cleanValue;
|
|
3671
|
-
}, "sanitizeErrorCode");
|
|
3672
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3673
|
-
if (headerKey !== void 0) {
|
|
3674
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3675
|
-
}
|
|
3676
|
-
if (data.code !== void 0) {
|
|
3677
|
-
return sanitizeErrorCode(data.code);
|
|
3678
|
-
}
|
|
3679
|
-
if (data["__type"] !== void 0) {
|
|
3680
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3681
|
-
}
|
|
3682
|
-
}, "loadRestJsonErrorCode");
|
|
3683
3663
|
|
|
3684
3664
|
// src/commands/CancelImageCreationCommand.ts
|
|
3685
3665
|
var _CancelImageCreationCommand = class _CancelImageCreationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1937,7 +1938,7 @@ export const de_ListLifecycleExecutionResourcesCommand = async (output, context)
|
|
|
1937
1938
|
lifecycleExecutionId: __expectString,
|
|
1938
1939
|
lifecycleExecutionState: _json,
|
|
1939
1940
|
nextToken: __expectString,
|
|
1940
|
-
resources:
|
|
1941
|
+
resources: (_) => de_LifecycleExecutionResourceList(_, context),
|
|
1941
1942
|
});
|
|
1942
1943
|
Object.assign(contents, doc);
|
|
1943
1944
|
return contents;
|
|
@@ -2671,6 +2672,27 @@ const de_LifecycleExecution = (output, context) => {
|
|
|
2671
2672
|
state: _json,
|
|
2672
2673
|
});
|
|
2673
2674
|
};
|
|
2675
|
+
const de_LifecycleExecutionResource = (output, context) => {
|
|
2676
|
+
return take(output, {
|
|
2677
|
+
accountId: __expectString,
|
|
2678
|
+
action: _json,
|
|
2679
|
+
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2680
|
+
imageUris: _json,
|
|
2681
|
+
region: __expectString,
|
|
2682
|
+
resourceId: __expectString,
|
|
2683
|
+
snapshots: _json,
|
|
2684
|
+
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2685
|
+
state: _json,
|
|
2686
|
+
});
|
|
2687
|
+
};
|
|
2688
|
+
const de_LifecycleExecutionResourceList = (output, context) => {
|
|
2689
|
+
const retVal = (output || [])
|
|
2690
|
+
.filter((e) => e != null)
|
|
2691
|
+
.map((entry) => {
|
|
2692
|
+
return de_LifecycleExecutionResource(entry, context);
|
|
2693
|
+
});
|
|
2694
|
+
return retVal;
|
|
2695
|
+
};
|
|
2674
2696
|
const de_LifecycleExecutionsList = (output, context) => {
|
|
2675
2697
|
const retVal = (output || [])
|
|
2676
2698
|
.filter((e) => e != null)
|
|
@@ -2758,43 +2780,3 @@ const _sEI = "stepExecutionId";
|
|
|
2758
2780
|
const _tK = "tagKeys";
|
|
2759
2781
|
const _wBVA = "workflowBuildVersionArn";
|
|
2760
2782
|
const _wEI = "workflowExecutionId";
|
|
2761
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2762
|
-
if (encoded.length) {
|
|
2763
|
-
return JSON.parse(encoded);
|
|
2764
|
-
}
|
|
2765
|
-
return {};
|
|
2766
|
-
});
|
|
2767
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2768
|
-
const value = await parseBody(errorBody, context);
|
|
2769
|
-
value.message = value.message ?? value.Message;
|
|
2770
|
-
return value;
|
|
2771
|
-
};
|
|
2772
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2773
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2774
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2775
|
-
let cleanValue = rawValue;
|
|
2776
|
-
if (typeof cleanValue === "number") {
|
|
2777
|
-
cleanValue = cleanValue.toString();
|
|
2778
|
-
}
|
|
2779
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2780
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2781
|
-
}
|
|
2782
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2783
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2784
|
-
}
|
|
2785
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2786
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2787
|
-
}
|
|
2788
|
-
return cleanValue;
|
|
2789
|
-
};
|
|
2790
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2791
|
-
if (headerKey !== undefined) {
|
|
2792
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2793
|
-
}
|
|
2794
|
-
if (data.code !== undefined) {
|
|
2795
|
-
return sanitizeErrorCode(data.code);
|
|
2796
|
-
}
|
|
2797
|
-
if (data["__type"] !== undefined) {
|
|
2798
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2799
|
-
}
|
|
2800
|
-
};
|
|
@@ -46,7 +46,7 @@ declare const GetLifecycleExecutionCommand_base: {
|
|
|
46
46
|
* // hasImpactedResources: true || false,
|
|
47
47
|
* // },
|
|
48
48
|
* // state: { // LifecycleExecutionState
|
|
49
|
-
* // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS",
|
|
49
|
+
* // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS" || "PENDING",
|
|
50
50
|
* // reason: "STRING_VALUE",
|
|
51
51
|
* // },
|
|
52
52
|
* // startTime: new Date("TIMESTAMP"),
|
|
@@ -44,7 +44,7 @@ declare const ListLifecycleExecutionResourcesCommand_base: {
|
|
|
44
44
|
* // { // ListLifecycleExecutionResourcesResponse
|
|
45
45
|
* // lifecycleExecutionId: "STRING_VALUE",
|
|
46
46
|
* // lifecycleExecutionState: { // LifecycleExecutionState
|
|
47
|
-
* // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS",
|
|
47
|
+
* // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS" || "PENDING",
|
|
48
48
|
* // reason: "STRING_VALUE",
|
|
49
49
|
* // },
|
|
50
50
|
* // resources: [ // LifecycleExecutionResourceList
|
|
@@ -72,6 +72,8 @@ declare const ListLifecycleExecutionResourcesCommand_base: {
|
|
|
72
72
|
* // imageUris: [ // StringList
|
|
73
73
|
* // "STRING_VALUE",
|
|
74
74
|
* // ],
|
|
75
|
+
* // startTime: new Date("TIMESTAMP"),
|
|
76
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
75
77
|
* // },
|
|
76
78
|
* // ],
|
|
77
79
|
* // nextToken: "STRING_VALUE",
|
|
@@ -49,7 +49,7 @@ declare const ListLifecycleExecutionsCommand_base: {
|
|
|
49
49
|
* // hasImpactedResources: true || false,
|
|
50
50
|
* // },
|
|
51
51
|
* // state: { // LifecycleExecutionState
|
|
52
|
-
* // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS",
|
|
52
|
+
* // status: "IN_PROGRESS" || "CANCELLED" || "CANCELLING" || "FAILED" || "SUCCESS" || "PENDING",
|
|
53
53
|
* // reason: "STRING_VALUE",
|
|
54
54
|
* // },
|
|
55
55
|
* // startTime: new Date("TIMESTAMP"),
|
|
@@ -2499,7 +2499,8 @@ export interface LifecyclePolicyDetailExclusionRulesAmis {
|
|
|
2499
2499
|
export interface LifecyclePolicyDetailExclusionRules {
|
|
2500
2500
|
/**
|
|
2501
2501
|
* @public
|
|
2502
|
-
* <p>Contains a list of tags that Image Builder uses to skip lifecycle actions for
|
|
2502
|
+
* <p>Contains a list of tags that Image Builder uses to skip lifecycle actions for Image Builder image
|
|
2503
|
+
* resources that have them.</p>
|
|
2503
2504
|
*/
|
|
2504
2505
|
tagMap?: Record<string, string>;
|
|
2505
2506
|
/**
|
|
@@ -2607,8 +2608,8 @@ export interface LifecyclePolicyResourceSelection {
|
|
|
2607
2608
|
recipes?: LifecyclePolicyResourceSelectionRecipe[];
|
|
2608
2609
|
/**
|
|
2609
2610
|
* @public
|
|
2610
|
-
* <p>A list of tags that are used as selection criteria for the
|
|
2611
|
-
* that the lifecycle policy applies to.</p>
|
|
2611
|
+
* <p>A list of tags that are used as selection criteria for the Image Builder image
|
|
2612
|
+
* resources that the lifecycle policy applies to.</p>
|
|
2612
2613
|
*/
|
|
2613
2614
|
tagMap?: Record<string, string>;
|
|
2614
2615
|
}
|
|
@@ -4116,6 +4117,7 @@ export declare const LifecycleExecutionStatus: {
|
|
|
4116
4117
|
readonly CANCELLING: "CANCELLING";
|
|
4117
4118
|
readonly FAILED: "FAILED";
|
|
4118
4119
|
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
4120
|
+
readonly PENDING: "PENDING";
|
|
4119
4121
|
readonly SUCCESS: "SUCCESS";
|
|
4120
4122
|
};
|
|
4121
4123
|
/**
|
|
@@ -6555,6 +6557,16 @@ export interface LifecycleExecutionResource {
|
|
|
6555
6557
|
* container images distributed to ECR repositories.</p>
|
|
6556
6558
|
*/
|
|
6557
6559
|
imageUris?: string[];
|
|
6560
|
+
/**
|
|
6561
|
+
* @public
|
|
6562
|
+
* <p>The starting timestamp from the lifecycle action that was applied to the resource.</p>
|
|
6563
|
+
*/
|
|
6564
|
+
startTime?: Date;
|
|
6565
|
+
/**
|
|
6566
|
+
* @public
|
|
6567
|
+
* <p>The ending timestamp from the lifecycle action that was applied to the resource.</p>
|
|
6568
|
+
*/
|
|
6569
|
+
endTime?: Date;
|
|
6558
6570
|
}
|
|
6559
6571
|
/**
|
|
6560
6572
|
* @public
|
|
@@ -991,6 +991,7 @@ export declare const LifecycleExecutionStatus: {
|
|
|
991
991
|
readonly CANCELLING: "CANCELLING";
|
|
992
992
|
readonly FAILED: "FAILED";
|
|
993
993
|
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
994
|
+
readonly PENDING: "PENDING";
|
|
994
995
|
readonly SUCCESS: "SUCCESS";
|
|
995
996
|
};
|
|
996
997
|
export type LifecycleExecutionStatus =
|
|
@@ -1494,6 +1495,8 @@ export interface LifecycleExecutionResource {
|
|
|
1494
1495
|
region?: string;
|
|
1495
1496
|
snapshots?: LifecycleExecutionSnapshotResource[];
|
|
1496
1497
|
imageUris?: string[];
|
|
1498
|
+
startTime?: Date;
|
|
1499
|
+
endTime?: Date;
|
|
1497
1500
|
}
|
|
1498
1501
|
export interface ListLifecycleExecutionResourcesResponse {
|
|
1499
1502
|
lifecycleExecutionId?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-imagebuilder",
|
|
3
3
|
"description": "AWS SDK for JavaScript Imagebuilder Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.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-imagebuilder",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|