@aws-sdk/client-accessanalyzer 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 +24 -65
- package/dist-es/protocols/Aws_restJson1.js +1 -41
- package/dist-types/commands/GetFindingCommand.d.ts +4 -1
- package/dist-types/commands/GetFindingV2Command.d.ts +4 -1
- package/dist-types/commands/ListAnalyzedResourcesCommand.d.ts +2 -1
- package/dist-types/commands/ListFindingsCommand.d.ts +4 -1
- package/dist-types/commands/ListFindingsV2Command.d.ts +4 -1
- package/dist-types/models/models_0.d.ts +5 -3
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -1175,7 +1175,7 @@ var de_CheckAccessNotGrantedCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1175
1175
|
const contents = (0, import_smithy_client.map)({
|
|
1176
1176
|
$metadata: deserializeMetadata(output)
|
|
1177
1177
|
});
|
|
1178
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1178
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1179
1179
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1180
1180
|
message: import_smithy_client.expectString,
|
|
1181
1181
|
reasons: import_smithy_client._json,
|
|
@@ -1191,7 +1191,7 @@ var de_CheckNoNewAccessCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1191
1191
|
const contents = (0, import_smithy_client.map)({
|
|
1192
1192
|
$metadata: deserializeMetadata(output)
|
|
1193
1193
|
});
|
|
1194
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1194
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1195
1195
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1196
1196
|
message: import_smithy_client.expectString,
|
|
1197
1197
|
reasons: import_smithy_client._json,
|
|
@@ -1207,7 +1207,7 @@ var de_CreateAccessPreviewCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1207
1207
|
const contents = (0, import_smithy_client.map)({
|
|
1208
1208
|
$metadata: deserializeMetadata(output)
|
|
1209
1209
|
});
|
|
1210
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1210
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1211
1211
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1212
1212
|
id: import_smithy_client.expectString
|
|
1213
1213
|
});
|
|
@@ -1221,7 +1221,7 @@ var de_CreateAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1221
1221
|
const contents = (0, import_smithy_client.map)({
|
|
1222
1222
|
$metadata: deserializeMetadata(output)
|
|
1223
1223
|
});
|
|
1224
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1224
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1225
1225
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1226
1226
|
arn: import_smithy_client.expectString
|
|
1227
1227
|
});
|
|
@@ -1265,7 +1265,7 @@ var de_GetAccessPreviewCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1265
1265
|
const contents = (0, import_smithy_client.map)({
|
|
1266
1266
|
$metadata: deserializeMetadata(output)
|
|
1267
1267
|
});
|
|
1268
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1268
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1269
1269
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1270
1270
|
accessPreview: (_) => de_AccessPreview(_, context)
|
|
1271
1271
|
});
|
|
@@ -1279,7 +1279,7 @@ var de_GetAnalyzedResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1279
1279
|
const contents = (0, import_smithy_client.map)({
|
|
1280
1280
|
$metadata: deserializeMetadata(output)
|
|
1281
1281
|
});
|
|
1282
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1282
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1283
1283
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1284
1284
|
resource: (_) => de_AnalyzedResource(_, context)
|
|
1285
1285
|
});
|
|
@@ -1293,7 +1293,7 @@ var de_GetAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1293
1293
|
const contents = (0, import_smithy_client.map)({
|
|
1294
1294
|
$metadata: deserializeMetadata(output)
|
|
1295
1295
|
});
|
|
1296
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1296
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1297
1297
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1298
1298
|
analyzer: (_) => de_AnalyzerSummary(_, context)
|
|
1299
1299
|
});
|
|
@@ -1307,7 +1307,7 @@ var de_GetArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1307
1307
|
const contents = (0, import_smithy_client.map)({
|
|
1308
1308
|
$metadata: deserializeMetadata(output)
|
|
1309
1309
|
});
|
|
1310
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1310
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1311
1311
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1312
1312
|
archiveRule: (_) => de_ArchiveRuleSummary(_, context)
|
|
1313
1313
|
});
|
|
@@ -1321,7 +1321,7 @@ var de_GetFindingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1321
1321
|
const contents = (0, import_smithy_client.map)({
|
|
1322
1322
|
$metadata: deserializeMetadata(output)
|
|
1323
1323
|
});
|
|
1324
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1324
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1325
1325
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1326
1326
|
finding: (_) => de_Finding(_, context)
|
|
1327
1327
|
});
|
|
@@ -1335,7 +1335,7 @@ var de_GetFindingV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1335
1335
|
const contents = (0, import_smithy_client.map)({
|
|
1336
1336
|
$metadata: deserializeMetadata(output)
|
|
1337
1337
|
});
|
|
1338
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1338
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1339
1339
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1340
1340
|
analyzedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1341
1341
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -1360,7 +1360,7 @@ var de_GetGeneratedPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1360
1360
|
const contents = (0, import_smithy_client.map)({
|
|
1361
1361
|
$metadata: deserializeMetadata(output)
|
|
1362
1362
|
});
|
|
1363
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1363
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1364
1364
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1365
1365
|
generatedPolicyResult: (_) => de_GeneratedPolicyResult(_, context),
|
|
1366
1366
|
jobDetails: (_) => de_JobDetails(_, context)
|
|
@@ -1375,7 +1375,7 @@ var de_ListAccessPreviewFindingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1375
1375
|
const contents = (0, import_smithy_client.map)({
|
|
1376
1376
|
$metadata: deserializeMetadata(output)
|
|
1377
1377
|
});
|
|
1378
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1378
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1379
1379
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1380
1380
|
findings: (_) => de_AccessPreviewFindingsList(_, context),
|
|
1381
1381
|
nextToken: import_smithy_client.expectString
|
|
@@ -1390,7 +1390,7 @@ var de_ListAccessPreviewsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1390
1390
|
const contents = (0, import_smithy_client.map)({
|
|
1391
1391
|
$metadata: deserializeMetadata(output)
|
|
1392
1392
|
});
|
|
1393
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1393
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1394
1394
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1395
1395
|
accessPreviews: (_) => de_AccessPreviewsList(_, context),
|
|
1396
1396
|
nextToken: import_smithy_client.expectString
|
|
@@ -1405,7 +1405,7 @@ var de_ListAnalyzedResourcesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1405
1405
|
const contents = (0, import_smithy_client.map)({
|
|
1406
1406
|
$metadata: deserializeMetadata(output)
|
|
1407
1407
|
});
|
|
1408
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1408
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1409
1409
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1410
1410
|
analyzedResources: import_smithy_client._json,
|
|
1411
1411
|
nextToken: import_smithy_client.expectString
|
|
@@ -1420,7 +1420,7 @@ var de_ListAnalyzersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1420
1420
|
const contents = (0, import_smithy_client.map)({
|
|
1421
1421
|
$metadata: deserializeMetadata(output)
|
|
1422
1422
|
});
|
|
1423
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1423
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1424
1424
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1425
1425
|
analyzers: (_) => de_AnalyzersList(_, context),
|
|
1426
1426
|
nextToken: import_smithy_client.expectString
|
|
@@ -1435,7 +1435,7 @@ var de_ListArchiveRulesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1435
1435
|
const contents = (0, import_smithy_client.map)({
|
|
1436
1436
|
$metadata: deserializeMetadata(output)
|
|
1437
1437
|
});
|
|
1438
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1438
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1439
1439
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1440
1440
|
archiveRules: (_) => de_ArchiveRulesList(_, context),
|
|
1441
1441
|
nextToken: import_smithy_client.expectString
|
|
@@ -1450,7 +1450,7 @@ var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1450
1450
|
const contents = (0, import_smithy_client.map)({
|
|
1451
1451
|
$metadata: deserializeMetadata(output)
|
|
1452
1452
|
});
|
|
1453
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1453
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1454
1454
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1455
1455
|
findings: (_) => de_FindingsList(_, context),
|
|
1456
1456
|
nextToken: import_smithy_client.expectString
|
|
@@ -1465,7 +1465,7 @@ var de_ListFindingsV2Command = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1465
1465
|
const contents = (0, import_smithy_client.map)({
|
|
1466
1466
|
$metadata: deserializeMetadata(output)
|
|
1467
1467
|
});
|
|
1468
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1468
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1469
1469
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1470
1470
|
findings: (_) => de_FindingsListV2(_, context),
|
|
1471
1471
|
nextToken: import_smithy_client.expectString
|
|
@@ -1480,7 +1480,7 @@ var de_ListPolicyGenerationsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1480
1480
|
const contents = (0, import_smithy_client.map)({
|
|
1481
1481
|
$metadata: deserializeMetadata(output)
|
|
1482
1482
|
});
|
|
1483
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1483
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1484
1484
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1485
1485
|
nextToken: import_smithy_client.expectString,
|
|
1486
1486
|
policyGenerations: (_) => de_PolicyGenerationList(_, context)
|
|
@@ -1495,7 +1495,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1495
1495
|
const contents = (0, import_smithy_client.map)({
|
|
1496
1496
|
$metadata: deserializeMetadata(output)
|
|
1497
1497
|
});
|
|
1498
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1498
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1499
1499
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1500
1500
|
tags: import_smithy_client._json
|
|
1501
1501
|
});
|
|
@@ -1509,7 +1509,7 @@ var de_StartPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1509
1509
|
const contents = (0, import_smithy_client.map)({
|
|
1510
1510
|
$metadata: deserializeMetadata(output)
|
|
1511
1511
|
});
|
|
1512
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1512
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1513
1513
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1514
1514
|
jobId: import_smithy_client.expectString
|
|
1515
1515
|
});
|
|
@@ -1573,7 +1573,7 @@ var de_ValidatePolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1573
1573
|
const contents = (0, import_smithy_client.map)({
|
|
1574
1574
|
$metadata: deserializeMetadata(output)
|
|
1575
1575
|
});
|
|
1576
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1576
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1577
1577
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1578
1578
|
findings: import_smithy_client._json,
|
|
1579
1579
|
nextToken: import_smithy_client.expectString
|
|
@@ -1584,9 +1584,9 @@ var de_ValidatePolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1584
1584
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1585
1585
|
const parsedOutput = {
|
|
1586
1586
|
...output,
|
|
1587
|
-
body: await
|
|
1587
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1588
1588
|
};
|
|
1589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1590
1590
|
switch (errorCode) {
|
|
1591
1591
|
case "AccessDeniedException":
|
|
1592
1592
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
@@ -2042,7 +2042,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2042
2042
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2043
2043
|
cfId: output.headers["x-amz-cf-id"]
|
|
2044
2044
|
}), "deserializeMetadata");
|
|
2045
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2046
2045
|
var _aA = "analyzerArn";
|
|
2047
2046
|
var _cT = "clientToken";
|
|
2048
2047
|
var _iRP = "includeResourcePlaceholders";
|
|
@@ -2055,46 +2054,6 @@ var _rAS = "retryAfterSeconds";
|
|
|
2055
2054
|
var _ra = "retry-after";
|
|
2056
2055
|
var _t = "type";
|
|
2057
2056
|
var _tK = "tagKeys";
|
|
2058
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2059
|
-
if (encoded.length) {
|
|
2060
|
-
return JSON.parse(encoded);
|
|
2061
|
-
}
|
|
2062
|
-
return {};
|
|
2063
|
-
}), "parseBody");
|
|
2064
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2065
|
-
const value = await parseBody(errorBody, context);
|
|
2066
|
-
value.message = value.message ?? value.Message;
|
|
2067
|
-
return value;
|
|
2068
|
-
}, "parseErrorBody");
|
|
2069
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2070
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2071
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2072
|
-
let cleanValue = rawValue;
|
|
2073
|
-
if (typeof cleanValue === "number") {
|
|
2074
|
-
cleanValue = cleanValue.toString();
|
|
2075
|
-
}
|
|
2076
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2077
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2078
|
-
}
|
|
2079
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2080
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2081
|
-
}
|
|
2082
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2083
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2084
|
-
}
|
|
2085
|
-
return cleanValue;
|
|
2086
|
-
}, "sanitizeErrorCode");
|
|
2087
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2088
|
-
if (headerKey !== void 0) {
|
|
2089
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2090
|
-
}
|
|
2091
|
-
if (data.code !== void 0) {
|
|
2092
|
-
return sanitizeErrorCode(data.code);
|
|
2093
|
-
}
|
|
2094
|
-
if (data["__type"] !== void 0) {
|
|
2095
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2096
|
-
}
|
|
2097
|
-
}, "loadRestJsonErrorCode");
|
|
2098
2057
|
|
|
2099
2058
|
// src/commands/ApplyArchiveRuleCommand.ts
|
|
2100
2059
|
var _ApplyArchiveRuleCommand = class _ApplyArchiveRuleCommand 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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1384,43 +1384,3 @@ const _rAS = "retryAfterSeconds";
|
|
|
1384
1384
|
const _ra = "retry-after";
|
|
1385
1385
|
const _t = "type";
|
|
1386
1386
|
const _tK = "tagKeys";
|
|
1387
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1388
|
-
if (encoded.length) {
|
|
1389
|
-
return JSON.parse(encoded);
|
|
1390
|
-
}
|
|
1391
|
-
return {};
|
|
1392
|
-
});
|
|
1393
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1394
|
-
const value = await parseBody(errorBody, context);
|
|
1395
|
-
value.message = value.message ?? value.Message;
|
|
1396
|
-
return value;
|
|
1397
|
-
};
|
|
1398
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1399
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1400
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1401
|
-
let cleanValue = rawValue;
|
|
1402
|
-
if (typeof cleanValue === "number") {
|
|
1403
|
-
cleanValue = cleanValue.toString();
|
|
1404
|
-
}
|
|
1405
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1406
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1407
|
-
}
|
|
1408
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1409
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1410
|
-
}
|
|
1411
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1412
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1413
|
-
}
|
|
1414
|
-
return cleanValue;
|
|
1415
|
-
};
|
|
1416
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1417
|
-
if (headerKey !== undefined) {
|
|
1418
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1419
|
-
}
|
|
1420
|
-
if (data.code !== undefined) {
|
|
1421
|
-
return sanitizeErrorCode(data.code);
|
|
1422
|
-
}
|
|
1423
|
-
if (data["__type"] !== undefined) {
|
|
1424
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1425
|
-
}
|
|
1426
|
-
};
|
|
@@ -26,7 +26,10 @@ declare const GetFindingCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Retrieves information about the specified finding
|
|
29
|
+
* <p>Retrieves information about the specified finding. GetFinding and GetFindingV2 both use
|
|
30
|
+
* <code>access-analyzer:GetFinding</code> in the <code>Action</code> element of an IAM
|
|
31
|
+
* policy statement. You must have permission to perform the
|
|
32
|
+
* <code>access-analyzer:GetFinding</code> action.</p>
|
|
30
33
|
* @example
|
|
31
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
35
|
* ```javascript
|
|
@@ -26,7 +26,10 @@ declare const GetFindingV2Command_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Retrieves information about the specified finding
|
|
29
|
+
* <p>Retrieves information about the specified finding. GetFinding and GetFindingV2 both use
|
|
30
|
+
* <code>access-analyzer:GetFinding</code> in the <code>Action</code> element of an IAM
|
|
31
|
+
* policy statement. You must have permission to perform the
|
|
32
|
+
* <code>access-analyzer:GetFinding</code> action.</p>
|
|
30
33
|
* @example
|
|
31
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
35
|
* ```javascript
|
|
@@ -27,7 +27,8 @@ declare const ListAnalyzedResourcesCommand_base: {
|
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
29
|
* <p>Retrieves a list of resources of the specified type that have been analyzed by the
|
|
30
|
-
* specified analyzer
|
|
30
|
+
* specified external access analyzer. This action is not supported for unused access
|
|
31
|
+
* analyzers.</p>
|
|
31
32
|
* @example
|
|
32
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
34
|
* ```javascript
|
|
@@ -26,7 +26,10 @@ declare const ListFindingsCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Retrieves a list of findings generated by the specified analyzer
|
|
29
|
+
* <p>Retrieves a list of findings generated by the specified analyzer. ListFindings and
|
|
30
|
+
* ListFindingsV2 both use <code>access-analyzer:ListFindings</code> in the
|
|
31
|
+
* <code>Action</code> element of an IAM policy statement. You must have permission to
|
|
32
|
+
* perform the <code>access-analyzer:ListFindings</code> action.</p>
|
|
30
33
|
* <p>To learn about filter keys that you can use to retrieve a list of findings, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM Access Analyzer filter keys</a> in the <b>IAM User Guide</b>.</p>
|
|
31
34
|
* @example
|
|
32
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -26,7 +26,10 @@ declare const ListFindingsV2Command_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Retrieves a list of findings generated by the specified analyzer
|
|
29
|
+
* <p>Retrieves a list of findings generated by the specified analyzer. ListFindings and
|
|
30
|
+
* ListFindingsV2 both use <code>access-analyzer:ListFindings</code> in the
|
|
31
|
+
* <code>Action</code> element of an IAM policy statement. You must have permission to
|
|
32
|
+
* perform the <code>access-analyzer:ListFindings</code> action.</p>
|
|
30
33
|
* <p>To learn about filter keys that you can use to retrieve a list of findings, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM Access Analyzer filter keys</a> in the <b>IAM User Guide</b>.</p>
|
|
31
34
|
* @example
|
|
32
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -8,7 +8,8 @@ import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnaly
|
|
|
8
8
|
export interface Access {
|
|
9
9
|
/**
|
|
10
10
|
* @public
|
|
11
|
-
* <p>A list of actions for the access permissions
|
|
11
|
+
* <p>A list of actions for the access permissions. Any strings that can be used as an action
|
|
12
|
+
* in an IAM policy can be used in the list of actions to check.</p>
|
|
12
13
|
*/
|
|
13
14
|
actions: string[] | undefined;
|
|
14
15
|
}
|
|
@@ -453,7 +454,7 @@ export interface CreateAnalyzerRequest {
|
|
|
453
454
|
/**
|
|
454
455
|
* @public
|
|
455
456
|
* <p>The type of analyzer to create. Only <code>ACCOUNT</code>, <code>ORGANIZATION</code>,
|
|
456
|
-
*
|
|
457
|
+
* <code>ACCOUNT_UNUSED_ACCESS</code>, and <code>ORGANIZATION_UNUSED_ACCESS</code>
|
|
457
458
|
* analyzers are supported. You can create only one analyzer per account per Region. You can
|
|
458
459
|
* create up to 5 analyzers per organization per Region.</p>
|
|
459
460
|
*/
|
|
@@ -1563,7 +1564,8 @@ export interface S3BucketConfiguration {
|
|
|
1563
1564
|
* existing policy attached to the directory bucket. If the access preview is for a new
|
|
1564
1565
|
* resource and you do not specify the Amazon S3 bucket policy, the access preview assumes an
|
|
1565
1566
|
* directory bucket without a policy. To propose deletion of an existing bucket policy, you
|
|
1566
|
-
* can specify an empty string. For more information about
|
|
1567
|
+
* can specify an empty string. For more information about Amazon S3 directory bucket policies, see
|
|
1568
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example directory bucket policies for S3 Express One Zone</a>.</p>
|
|
1567
1569
|
*/
|
|
1568
1570
|
export interface S3ExpressDirectoryBucketConfiguration {
|
|
1569
1571
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-accessanalyzer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Accessanalyzer 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-accessanalyzer",
|
|
@@ -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",
|