@aws-sdk/client-inspector2 3.525.0 → 3.529.1
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 +51 -92
- package/dist-es/protocols/Aws_restJson1.js +1 -41
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -2052,7 +2052,7 @@ var de_AssociateMemberCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2052
2052
|
const contents = (0, import_smithy_client.map)({
|
|
2053
2053
|
$metadata: deserializeMetadata(output)
|
|
2054
2054
|
});
|
|
2055
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2055
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2056
2056
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2057
2057
|
accountId: import_smithy_client.expectString
|
|
2058
2058
|
});
|
|
@@ -2066,7 +2066,7 @@ var de_BatchGetAccountStatusCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2066
2066
|
const contents = (0, import_smithy_client.map)({
|
|
2067
2067
|
$metadata: deserializeMetadata(output)
|
|
2068
2068
|
});
|
|
2069
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2069
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2070
2070
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2071
2071
|
accounts: import_smithy_client._json,
|
|
2072
2072
|
failedAccounts: import_smithy_client._json
|
|
@@ -2081,7 +2081,7 @@ var de_BatchGetCodeSnippetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2081
2081
|
const contents = (0, import_smithy_client.map)({
|
|
2082
2082
|
$metadata: deserializeMetadata(output)
|
|
2083
2083
|
});
|
|
2084
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2084
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2085
2085
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2086
2086
|
codeSnippetResults: import_smithy_client._json,
|
|
2087
2087
|
errors: import_smithy_client._json
|
|
@@ -2096,7 +2096,7 @@ var de_BatchGetFindingDetailsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2096
2096
|
const contents = (0, import_smithy_client.map)({
|
|
2097
2097
|
$metadata: deserializeMetadata(output)
|
|
2098
2098
|
});
|
|
2099
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2099
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2100
2100
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2101
2101
|
errors: import_smithy_client._json,
|
|
2102
2102
|
findingDetails: (_) => de_FindingDetails(_, context)
|
|
@@ -2111,7 +2111,7 @@ var de_BatchGetFreeTrialInfoCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2111
2111
|
const contents = (0, import_smithy_client.map)({
|
|
2112
2112
|
$metadata: deserializeMetadata(output)
|
|
2113
2113
|
});
|
|
2114
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2114
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2115
2115
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2116
2116
|
accounts: (_) => de_FreeTrialAccountInfoList(_, context),
|
|
2117
2117
|
failedAccounts: import_smithy_client._json
|
|
@@ -2126,7 +2126,7 @@ var de_BatchGetMemberEc2DeepInspectionStatusCommand = /* @__PURE__ */ __name(asy
|
|
|
2126
2126
|
const contents = (0, import_smithy_client.map)({
|
|
2127
2127
|
$metadata: deserializeMetadata(output)
|
|
2128
2128
|
});
|
|
2129
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2129
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2130
2130
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2131
2131
|
accountIds: import_smithy_client._json,
|
|
2132
2132
|
failedAccountIds: import_smithy_client._json
|
|
@@ -2141,7 +2141,7 @@ var de_BatchUpdateMemberEc2DeepInspectionStatusCommand = /* @__PURE__ */ __name(
|
|
|
2141
2141
|
const contents = (0, import_smithy_client.map)({
|
|
2142
2142
|
$metadata: deserializeMetadata(output)
|
|
2143
2143
|
});
|
|
2144
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2144
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2145
2145
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2146
2146
|
accountIds: import_smithy_client._json,
|
|
2147
2147
|
failedAccountIds: import_smithy_client._json
|
|
@@ -2156,7 +2156,7 @@ var de_CancelFindingsReportCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2156
2156
|
const contents = (0, import_smithy_client.map)({
|
|
2157
2157
|
$metadata: deserializeMetadata(output)
|
|
2158
2158
|
});
|
|
2159
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2159
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2160
2160
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2161
2161
|
reportId: import_smithy_client.expectString
|
|
2162
2162
|
});
|
|
@@ -2170,7 +2170,7 @@ var de_CancelSbomExportCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2170
2170
|
const contents = (0, import_smithy_client.map)({
|
|
2171
2171
|
$metadata: deserializeMetadata(output)
|
|
2172
2172
|
});
|
|
2173
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2173
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2174
2174
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2175
2175
|
reportId: import_smithy_client.expectString
|
|
2176
2176
|
});
|
|
@@ -2184,7 +2184,7 @@ var de_CreateCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2184
2184
|
const contents = (0, import_smithy_client.map)({
|
|
2185
2185
|
$metadata: deserializeMetadata(output)
|
|
2186
2186
|
});
|
|
2187
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2187
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2188
2188
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2189
2189
|
scanConfigurationArn: import_smithy_client.expectString
|
|
2190
2190
|
});
|
|
@@ -2198,7 +2198,7 @@ var de_CreateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2198
2198
|
const contents = (0, import_smithy_client.map)({
|
|
2199
2199
|
$metadata: deserializeMetadata(output)
|
|
2200
2200
|
});
|
|
2201
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2201
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2202
2202
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2203
2203
|
arn: import_smithy_client.expectString
|
|
2204
2204
|
});
|
|
@@ -2212,7 +2212,7 @@ var de_CreateFindingsReportCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2212
2212
|
const contents = (0, import_smithy_client.map)({
|
|
2213
2213
|
$metadata: deserializeMetadata(output)
|
|
2214
2214
|
});
|
|
2215
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2215
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2216
2216
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2217
2217
|
reportId: import_smithy_client.expectString
|
|
2218
2218
|
});
|
|
@@ -2226,7 +2226,7 @@ var de_CreateSbomExportCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2226
2226
|
const contents = (0, import_smithy_client.map)({
|
|
2227
2227
|
$metadata: deserializeMetadata(output)
|
|
2228
2228
|
});
|
|
2229
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2229
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2230
2230
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2231
2231
|
reportId: import_smithy_client.expectString
|
|
2232
2232
|
});
|
|
@@ -2240,7 +2240,7 @@ var de_DeleteCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2240
2240
|
const contents = (0, import_smithy_client.map)({
|
|
2241
2241
|
$metadata: deserializeMetadata(output)
|
|
2242
2242
|
});
|
|
2243
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2243
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2244
2244
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2245
2245
|
scanConfigurationArn: import_smithy_client.expectString
|
|
2246
2246
|
});
|
|
@@ -2254,7 +2254,7 @@ var de_DeleteFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2254
2254
|
const contents = (0, import_smithy_client.map)({
|
|
2255
2255
|
$metadata: deserializeMetadata(output)
|
|
2256
2256
|
});
|
|
2257
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2257
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2258
2258
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2259
2259
|
arn: import_smithy_client.expectString
|
|
2260
2260
|
});
|
|
@@ -2268,7 +2268,7 @@ var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
2268
2268
|
const contents = (0, import_smithy_client.map)({
|
|
2269
2269
|
$metadata: deserializeMetadata(output)
|
|
2270
2270
|
});
|
|
2271
|
-
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");
|
|
2272
2272
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2273
2273
|
autoEnable: import_smithy_client._json,
|
|
2274
2274
|
maxAccountLimitReached: import_smithy_client.expectBoolean
|
|
@@ -2283,7 +2283,7 @@ var de_DisableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2283
2283
|
const contents = (0, import_smithy_client.map)({
|
|
2284
2284
|
$metadata: deserializeMetadata(output)
|
|
2285
2285
|
});
|
|
2286
|
-
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");
|
|
2287
2287
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2288
2288
|
accounts: import_smithy_client._json,
|
|
2289
2289
|
failedAccounts: import_smithy_client._json
|
|
@@ -2298,7 +2298,7 @@ var de_DisableDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2298
2298
|
const contents = (0, import_smithy_client.map)({
|
|
2299
2299
|
$metadata: deserializeMetadata(output)
|
|
2300
2300
|
});
|
|
2301
|
-
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");
|
|
2302
2302
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2303
2303
|
delegatedAdminAccountId: import_smithy_client.expectString
|
|
2304
2304
|
});
|
|
@@ -2312,7 +2312,7 @@ var de_DisassociateMemberCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2312
2312
|
const contents = (0, import_smithy_client.map)({
|
|
2313
2313
|
$metadata: deserializeMetadata(output)
|
|
2314
2314
|
});
|
|
2315
|
-
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");
|
|
2316
2316
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2317
2317
|
accountId: import_smithy_client.expectString
|
|
2318
2318
|
});
|
|
@@ -2326,7 +2326,7 @@ var de_EnableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2326
2326
|
const contents = (0, import_smithy_client.map)({
|
|
2327
2327
|
$metadata: deserializeMetadata(output)
|
|
2328
2328
|
});
|
|
2329
|
-
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");
|
|
2330
2330
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2331
2331
|
accounts: import_smithy_client._json,
|
|
2332
2332
|
failedAccounts: import_smithy_client._json
|
|
@@ -2341,7 +2341,7 @@ var de_EnableDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (output
|
|
|
2341
2341
|
const contents = (0, import_smithy_client.map)({
|
|
2342
2342
|
$metadata: deserializeMetadata(output)
|
|
2343
2343
|
});
|
|
2344
|
-
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");
|
|
2345
2345
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2346
2346
|
delegatedAdminAccountId: import_smithy_client.expectString
|
|
2347
2347
|
});
|
|
@@ -2355,7 +2355,7 @@ var de_GetCisScanReportCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2355
2355
|
const contents = (0, import_smithy_client.map)({
|
|
2356
2356
|
$metadata: deserializeMetadata(output)
|
|
2357
2357
|
});
|
|
2358
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2358
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2359
2359
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2360
2360
|
status: import_smithy_client.expectString,
|
|
2361
2361
|
url: import_smithy_client.expectString
|
|
@@ -2370,7 +2370,7 @@ var de_GetCisScanResultDetailsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2370
2370
|
const contents = (0, import_smithy_client.map)({
|
|
2371
2371
|
$metadata: deserializeMetadata(output)
|
|
2372
2372
|
});
|
|
2373
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2373
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2374
2374
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2375
2375
|
nextToken: import_smithy_client.expectString,
|
|
2376
2376
|
scanResultDetails: import_smithy_client._json
|
|
@@ -2385,7 +2385,7 @@ var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2385
2385
|
const contents = (0, import_smithy_client.map)({
|
|
2386
2386
|
$metadata: deserializeMetadata(output)
|
|
2387
2387
|
});
|
|
2388
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2388
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2389
2389
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2390
2390
|
ecrConfiguration: (_) => de_EcrConfigurationState(_, context)
|
|
2391
2391
|
});
|
|
@@ -2399,7 +2399,7 @@ var de_GetDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2399
2399
|
const contents = (0, import_smithy_client.map)({
|
|
2400
2400
|
$metadata: deserializeMetadata(output)
|
|
2401
2401
|
});
|
|
2402
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2402
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2403
2403
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2404
2404
|
delegatedAdmin: import_smithy_client._json
|
|
2405
2405
|
});
|
|
@@ -2413,7 +2413,7 @@ var de_GetEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
2413
2413
|
const contents = (0, import_smithy_client.map)({
|
|
2414
2414
|
$metadata: deserializeMetadata(output)
|
|
2415
2415
|
});
|
|
2416
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2416
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2417
2417
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2418
2418
|
errorMessage: import_smithy_client.expectString,
|
|
2419
2419
|
orgPackagePaths: import_smithy_client._json,
|
|
@@ -2430,7 +2430,7 @@ var de_GetEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2430
2430
|
const contents = (0, import_smithy_client.map)({
|
|
2431
2431
|
$metadata: deserializeMetadata(output)
|
|
2432
2432
|
});
|
|
2433
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2433
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2434
2434
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2435
2435
|
kmsKeyId: import_smithy_client.expectString
|
|
2436
2436
|
});
|
|
@@ -2444,7 +2444,7 @@ var de_GetFindingsReportStatusCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2444
2444
|
const contents = (0, import_smithy_client.map)({
|
|
2445
2445
|
$metadata: deserializeMetadata(output)
|
|
2446
2446
|
});
|
|
2447
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2447
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2448
2448
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2449
2449
|
destination: import_smithy_client._json,
|
|
2450
2450
|
errorCode: import_smithy_client.expectString,
|
|
@@ -2463,7 +2463,7 @@ var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2463
2463
|
const contents = (0, import_smithy_client.map)({
|
|
2464
2464
|
$metadata: deserializeMetadata(output)
|
|
2465
2465
|
});
|
|
2466
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2466
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2467
2467
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2468
2468
|
member: (_) => de_Member(_, context)
|
|
2469
2469
|
});
|
|
@@ -2477,7 +2477,7 @@ var de_GetSbomExportCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2477
2477
|
const contents = (0, import_smithy_client.map)({
|
|
2478
2478
|
$metadata: deserializeMetadata(output)
|
|
2479
2479
|
});
|
|
2480
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2480
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2481
2481
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2482
2482
|
errorCode: import_smithy_client.expectString,
|
|
2483
2483
|
errorMessage: import_smithy_client.expectString,
|
|
@@ -2497,7 +2497,7 @@ var de_ListAccountPermissionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2497
2497
|
const contents = (0, import_smithy_client.map)({
|
|
2498
2498
|
$metadata: deserializeMetadata(output)
|
|
2499
2499
|
});
|
|
2500
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2500
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2501
2501
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2502
2502
|
nextToken: import_smithy_client.expectString,
|
|
2503
2503
|
permissions: import_smithy_client._json
|
|
@@ -2512,7 +2512,7 @@ var de_ListCisScanConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2512
2512
|
const contents = (0, import_smithy_client.map)({
|
|
2513
2513
|
$metadata: deserializeMetadata(output)
|
|
2514
2514
|
});
|
|
2515
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2515
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2516
2516
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2517
2517
|
nextToken: import_smithy_client.expectString,
|
|
2518
2518
|
scanConfigurations: import_smithy_client._json
|
|
@@ -2527,7 +2527,7 @@ var de_ListCisScanResultsAggregatedByChecksCommand = /* @__PURE__ */ __name(asyn
|
|
|
2527
2527
|
const contents = (0, import_smithy_client.map)({
|
|
2528
2528
|
$metadata: deserializeMetadata(output)
|
|
2529
2529
|
});
|
|
2530
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2530
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2531
2531
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2532
2532
|
checkAggregations: import_smithy_client._json,
|
|
2533
2533
|
nextToken: import_smithy_client.expectString
|
|
@@ -2542,7 +2542,7 @@ var de_ListCisScanResultsAggregatedByTargetResourceCommand = /* @__PURE__ */ __n
|
|
|
2542
2542
|
const contents = (0, import_smithy_client.map)({
|
|
2543
2543
|
$metadata: deserializeMetadata(output)
|
|
2544
2544
|
});
|
|
2545
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2545
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2546
2546
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2547
2547
|
nextToken: import_smithy_client.expectString,
|
|
2548
2548
|
targetResourceAggregations: import_smithy_client._json
|
|
@@ -2557,7 +2557,7 @@ var de_ListCisScansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2557
2557
|
const contents = (0, import_smithy_client.map)({
|
|
2558
2558
|
$metadata: deserializeMetadata(output)
|
|
2559
2559
|
});
|
|
2560
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2560
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2561
2561
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2562
2562
|
nextToken: import_smithy_client.expectString,
|
|
2563
2563
|
scans: (_) => de_CisScanList(_, context)
|
|
@@ -2572,7 +2572,7 @@ var de_ListCoverageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2572
2572
|
const contents = (0, import_smithy_client.map)({
|
|
2573
2573
|
$metadata: deserializeMetadata(output)
|
|
2574
2574
|
});
|
|
2575
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2575
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2576
2576
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2577
2577
|
coveredResources: (_) => de_CoveredResources(_, context),
|
|
2578
2578
|
nextToken: import_smithy_client.expectString
|
|
@@ -2587,7 +2587,7 @@ var de_ListCoverageStatisticsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2587
2587
|
const contents = (0, import_smithy_client.map)({
|
|
2588
2588
|
$metadata: deserializeMetadata(output)
|
|
2589
2589
|
});
|
|
2590
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2590
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2591
2591
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2592
2592
|
countsByGroup: import_smithy_client._json,
|
|
2593
2593
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2603,7 +2603,7 @@ var de_ListDelegatedAdminAccountsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2603
2603
|
const contents = (0, import_smithy_client.map)({
|
|
2604
2604
|
$metadata: deserializeMetadata(output)
|
|
2605
2605
|
});
|
|
2606
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2606
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2607
2607
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2608
2608
|
delegatedAdminAccounts: import_smithy_client._json,
|
|
2609
2609
|
nextToken: import_smithy_client.expectString
|
|
@@ -2618,7 +2618,7 @@ var de_ListFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2618
2618
|
const contents = (0, import_smithy_client.map)({
|
|
2619
2619
|
$metadata: deserializeMetadata(output)
|
|
2620
2620
|
});
|
|
2621
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2621
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2622
2622
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2623
2623
|
filters: (_) => de_FilterList(_, context),
|
|
2624
2624
|
nextToken: import_smithy_client.expectString
|
|
@@ -2633,7 +2633,7 @@ var de_ListFindingAggregationsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2633
2633
|
const contents = (0, import_smithy_client.map)({
|
|
2634
2634
|
$metadata: deserializeMetadata(output)
|
|
2635
2635
|
});
|
|
2636
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2636
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2637
2637
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2638
2638
|
aggregationType: import_smithy_client.expectString,
|
|
2639
2639
|
nextToken: import_smithy_client.expectString,
|
|
@@ -2649,7 +2649,7 @@ var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2649
2649
|
const contents = (0, import_smithy_client.map)({
|
|
2650
2650
|
$metadata: deserializeMetadata(output)
|
|
2651
2651
|
});
|
|
2652
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2652
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2653
2653
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2654
2654
|
findings: (_) => de_FindingList(_, context),
|
|
2655
2655
|
nextToken: import_smithy_client.expectString
|
|
@@ -2664,7 +2664,7 @@ var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2664
2664
|
const contents = (0, import_smithy_client.map)({
|
|
2665
2665
|
$metadata: deserializeMetadata(output)
|
|
2666
2666
|
});
|
|
2667
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2667
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2668
2668
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2669
2669
|
members: (_) => de_MemberList(_, context),
|
|
2670
2670
|
nextToken: import_smithy_client.expectString
|
|
@@ -2679,7 +2679,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2679
2679
|
const contents = (0, import_smithy_client.map)({
|
|
2680
2680
|
$metadata: deserializeMetadata(output)
|
|
2681
2681
|
});
|
|
2682
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2682
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2683
2683
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2684
2684
|
tags: import_smithy_client._json
|
|
2685
2685
|
});
|
|
@@ -2693,7 +2693,7 @@ var de_ListUsageTotalsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2693
2693
|
const contents = (0, import_smithy_client.map)({
|
|
2694
2694
|
$metadata: deserializeMetadata(output)
|
|
2695
2695
|
});
|
|
2696
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2696
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2697
2697
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2698
2698
|
nextToken: import_smithy_client.expectString,
|
|
2699
2699
|
totals: (_) => de_UsageTotalList(_, context)
|
|
@@ -2718,7 +2718,7 @@ var de_SearchVulnerabilitiesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2718
2718
|
const contents = (0, import_smithy_client.map)({
|
|
2719
2719
|
$metadata: deserializeMetadata(output)
|
|
2720
2720
|
});
|
|
2721
|
-
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");
|
|
2722
2722
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2723
2723
|
nextToken: import_smithy_client.expectString,
|
|
2724
2724
|
vulnerabilities: (_) => de_Vulnerabilities(_, context)
|
|
@@ -2793,7 +2793,7 @@ var de_UpdateCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2793
2793
|
const contents = (0, import_smithy_client.map)({
|
|
2794
2794
|
$metadata: deserializeMetadata(output)
|
|
2795
2795
|
});
|
|
2796
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2796
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2797
2797
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2798
2798
|
scanConfigurationArn: import_smithy_client.expectString
|
|
2799
2799
|
});
|
|
@@ -2817,7 +2817,7 @@ var de_UpdateEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(asyn
|
|
|
2817
2817
|
const contents = (0, import_smithy_client.map)({
|
|
2818
2818
|
$metadata: deserializeMetadata(output)
|
|
2819
2819
|
});
|
|
2820
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2820
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2821
2821
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2822
2822
|
errorMessage: import_smithy_client.expectString,
|
|
2823
2823
|
orgPackagePaths: import_smithy_client._json,
|
|
@@ -2844,7 +2844,7 @@ var de_UpdateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2844
2844
|
const contents = (0, import_smithy_client.map)({
|
|
2845
2845
|
$metadata: deserializeMetadata(output)
|
|
2846
2846
|
});
|
|
2847
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2847
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2848
2848
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2849
2849
|
arn: import_smithy_client.expectString
|
|
2850
2850
|
});
|
|
@@ -2858,7 +2858,7 @@ var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2858
2858
|
const contents = (0, import_smithy_client.map)({
|
|
2859
2859
|
$metadata: deserializeMetadata(output)
|
|
2860
2860
|
});
|
|
2861
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2861
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2862
2862
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2863
2863
|
autoEnable: import_smithy_client._json
|
|
2864
2864
|
});
|
|
@@ -2878,9 +2878,9 @@ var de_UpdateOrgEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
2878
2878
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2879
2879
|
const parsedOutput = {
|
|
2880
2880
|
...output,
|
|
2881
|
-
body: await
|
|
2881
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2882
2882
|
};
|
|
2883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2884
2884
|
switch (errorCode) {
|
|
2885
2885
|
case "AccessDeniedException":
|
|
2886
2886
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -3729,52 +3729,11 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
3729
3729
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3730
3730
|
cfId: output.headers["x-amz-cf-id"]
|
|
3731
3731
|
}), "deserializeMetadata");
|
|
3732
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
3733
3732
|
var _rAS = "retryAfterSeconds";
|
|
3734
3733
|
var _rT = "resourceType";
|
|
3735
3734
|
var _ra = "retry-after";
|
|
3736
3735
|
var _sT = "scanType";
|
|
3737
3736
|
var _tK = "tagKeys";
|
|
3738
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3739
|
-
if (encoded.length) {
|
|
3740
|
-
return JSON.parse(encoded);
|
|
3741
|
-
}
|
|
3742
|
-
return {};
|
|
3743
|
-
}), "parseBody");
|
|
3744
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
3745
|
-
const value = await parseBody(errorBody, context);
|
|
3746
|
-
value.message = value.message ?? value.Message;
|
|
3747
|
-
return value;
|
|
3748
|
-
}, "parseErrorBody");
|
|
3749
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
3750
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
3751
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
3752
|
-
let cleanValue = rawValue;
|
|
3753
|
-
if (typeof cleanValue === "number") {
|
|
3754
|
-
cleanValue = cleanValue.toString();
|
|
3755
|
-
}
|
|
3756
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3757
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3758
|
-
}
|
|
3759
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3760
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3761
|
-
}
|
|
3762
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3763
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3764
|
-
}
|
|
3765
|
-
return cleanValue;
|
|
3766
|
-
}, "sanitizeErrorCode");
|
|
3767
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3768
|
-
if (headerKey !== void 0) {
|
|
3769
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3770
|
-
}
|
|
3771
|
-
if (data.code !== void 0) {
|
|
3772
|
-
return sanitizeErrorCode(data.code);
|
|
3773
|
-
}
|
|
3774
|
-
if (data["__type"] !== void 0) {
|
|
3775
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3776
|
-
}
|
|
3777
|
-
}, "loadRestJsonErrorCode");
|
|
3778
3737
|
|
|
3779
3738
|
// src/commands/AssociateMemberCommand.ts
|
|
3780
3739
|
var _AssociateMemberCommand = class _AssociateMemberCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -2587,43 +2587,3 @@ const _rT = "resourceType";
|
|
|
2587
2587
|
const _ra = "retry-after";
|
|
2588
2588
|
const _sT = "scanType";
|
|
2589
2589
|
const _tK = "tagKeys";
|
|
2590
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2591
|
-
if (encoded.length) {
|
|
2592
|
-
return JSON.parse(encoded);
|
|
2593
|
-
}
|
|
2594
|
-
return {};
|
|
2595
|
-
});
|
|
2596
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2597
|
-
const value = await parseBody(errorBody, context);
|
|
2598
|
-
value.message = value.message ?? value.Message;
|
|
2599
|
-
return value;
|
|
2600
|
-
};
|
|
2601
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2602
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2603
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2604
|
-
let cleanValue = rawValue;
|
|
2605
|
-
if (typeof cleanValue === "number") {
|
|
2606
|
-
cleanValue = cleanValue.toString();
|
|
2607
|
-
}
|
|
2608
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2609
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2610
|
-
}
|
|
2611
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2612
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2613
|
-
}
|
|
2614
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2615
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2616
|
-
}
|
|
2617
|
-
return cleanValue;
|
|
2618
|
-
};
|
|
2619
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2620
|
-
if (headerKey !== undefined) {
|
|
2621
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2622
|
-
}
|
|
2623
|
-
if (data.code !== undefined) {
|
|
2624
|
-
return sanitizeErrorCode(data.code);
|
|
2625
|
-
}
|
|
2626
|
-
if (data["__type"] !== undefined) {
|
|
2627
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2628
|
-
}
|
|
2629
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
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-inspector2",
|
|
@@ -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.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
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",
|