@aws-sdk/client-accessanalyzer 3.454.0 → 3.460.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -37
- package/dist-cjs/AccessAnalyzer.js +8 -0
- package/dist-cjs/commands/CheckAccessNotGrantedCommand.js +52 -0
- package/dist-cjs/commands/CheckNoNewAccessCommand.js +52 -0
- package/dist-cjs/commands/GetFindingV2Command.js +51 -0
- package/dist-cjs/commands/ListFindingsV2Command.js +51 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +83 -1
- package/dist-cjs/pagination/GetFindingV2Paginator.js +29 -0
- package/dist-cjs/pagination/ListFindingsV2Paginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +426 -2
- package/dist-es/AccessAnalyzer.js +8 -0
- package/dist-es/commands/CheckAccessNotGrantedCommand.js +48 -0
- package/dist-es/commands/CheckNoNewAccessCommand.js +48 -0
- package/dist-es/commands/GetFindingV2Command.js +47 -0
- package/dist-es/commands/ListFindingsV2Command.js +47 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +78 -0
- package/dist-es/pagination/GetFindingV2Paginator.js +25 -0
- package/dist-es/pagination/ListFindingsV2Paginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +417 -1
- package/dist-types/AccessAnalyzer.d.ts +52 -9
- package/dist-types/AccessAnalyzerClient.d.ts +30 -11
- package/dist-types/commands/CheckAccessNotGrantedCommand.d.ts +107 -0
- package/dist-types/commands/CheckNoNewAccessCommand.d.ts +106 -0
- package/dist-types/commands/CreateAnalyzerCommand.d.ts +5 -0
- package/dist-types/commands/GetAnalyzerCommand.d.ts +5 -0
- package/dist-types/commands/GetFindingV2Command.d.ts +146 -0
- package/dist-types/commands/ListAnalyzersCommand.d.ts +5 -0
- package/dist-types/commands/ListFindingsV2Command.d.ts +123 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/index.d.ts +24 -9
- package/dist-types/models/models_0.d.ts +705 -11
- package/dist-types/pagination/GetFindingV2Paginator.d.ts +7 -0
- package/dist-types/pagination/ListFindingsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/AccessAnalyzer.d.ts +68 -0
- package/dist-types/ts3.4/AccessAnalyzerClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CheckAccessNotGrantedCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CheckNoNewAccessCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetFindingV2Command.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListFindingsV2Command.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +238 -1
- package/dist-types/ts3.4/pagination/GetFindingV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFindingsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +12 -12
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./ApplyArchiveRuleCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CancelPolicyGenerationCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CheckAccessNotGrantedCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CheckNoNewAccessCommand"), exports);
|
|
6
8
|
tslib_1.__exportStar(require("./CreateAccessPreviewCommand"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./CreateAnalyzerCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./CreateArchiveRuleCommand"), exports);
|
|
@@ -13,6 +15,7 @@ tslib_1.__exportStar(require("./GetAnalyzedResourceCommand"), exports);
|
|
|
13
15
|
tslib_1.__exportStar(require("./GetAnalyzerCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./GetArchiveRuleCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./GetFindingCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./GetFindingV2Command"), exports);
|
|
16
19
|
tslib_1.__exportStar(require("./GetGeneratedPolicyCommand"), exports);
|
|
17
20
|
tslib_1.__exportStar(require("./ListAccessPreviewFindingsCommand"), exports);
|
|
18
21
|
tslib_1.__exportStar(require("./ListAccessPreviewsCommand"), exports);
|
|
@@ -20,6 +23,7 @@ tslib_1.__exportStar(require("./ListAnalyzedResourcesCommand"), exports);
|
|
|
20
23
|
tslib_1.__exportStar(require("./ListAnalyzersCommand"), exports);
|
|
21
24
|
tslib_1.__exportStar(require("./ListArchiveRulesCommand"), exports);
|
|
22
25
|
tslib_1.__exportStar(require("./ListFindingsCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ListFindingsV2Command"), exports);
|
|
23
27
|
tslib_1.__exportStar(require("./ListPolicyGenerationsCommand"), exports);
|
|
24
28
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
25
29
|
tslib_1.__exportStar(require("./StartPolicyGenerationCommand"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PathElement = exports.ValidatePolicyFindingType = exports.ValidatePolicyResourceType = exports.PolicyType = exports.Locale = exports.FindingChangeType = exports.JobStatus = exports.JobErrorCode = exports.AccessPreviewStatusReasonCode = exports.AccessPreviewStatus = exports.Configuration = exports.AclPermission = exports.AclGrantee = exports.NetworkOriginConfiguration = exports.RdsDbSnapshotAttributeValue = exports.RdsDbClusterSnapshotAttributeValue = exports.KmsGrantOperation = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.CheckNoNewAccessRequestFilterSensitiveLog = exports.CheckAccessNotGrantedRequestFilterSensitiveLog = exports.PathElement = exports.ValidatePolicyFindingType = exports.ValidatePolicyResourceType = exports.PolicyType = exports.Locale = exports.FindingChangeType = exports.JobStatus = exports.JobErrorCode = exports.FindingType = exports.FindingDetails = exports.AccessPreviewStatusReasonCode = exports.AccessPreviewStatus = exports.Configuration = exports.AclPermission = exports.AclGrantee = exports.NetworkOriginConfiguration = exports.RdsDbSnapshotAttributeValue = exports.RdsDbClusterSnapshotAttributeValue = exports.KmsGrantOperation = exports.CheckNoNewAccessResult = exports.UnprocessableEntityException = exports.InvalidParameterException = exports.CheckAccessNotGrantedResult = exports.AccessCheckPolicyType = exports.AnalyzerConfiguration = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
4
5
|
const AccessAnalyzerServiceException_1 = require("./AccessAnalyzerServiceException");
|
|
5
6
|
class AccessDeniedException extends AccessAnalyzerServiceException_1.AccessAnalyzerServiceException {
|
|
6
7
|
constructor(opts) {
|
|
@@ -113,6 +114,53 @@ class ValidationException extends AccessAnalyzerServiceException_1.AccessAnalyze
|
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
exports.ValidationException = ValidationException;
|
|
117
|
+
var AnalyzerConfiguration;
|
|
118
|
+
(function (AnalyzerConfiguration) {
|
|
119
|
+
AnalyzerConfiguration.visit = (value, visitor) => {
|
|
120
|
+
if (value.unusedAccess !== undefined)
|
|
121
|
+
return visitor.unusedAccess(value.unusedAccess);
|
|
122
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
123
|
+
};
|
|
124
|
+
})(AnalyzerConfiguration = exports.AnalyzerConfiguration || (exports.AnalyzerConfiguration = {}));
|
|
125
|
+
exports.AccessCheckPolicyType = {
|
|
126
|
+
IDENTITY_POLICY: "IDENTITY_POLICY",
|
|
127
|
+
RESOURCE_POLICY: "RESOURCE_POLICY",
|
|
128
|
+
};
|
|
129
|
+
exports.CheckAccessNotGrantedResult = {
|
|
130
|
+
FAIL: "FAIL",
|
|
131
|
+
PASS: "PASS",
|
|
132
|
+
};
|
|
133
|
+
class InvalidParameterException extends AccessAnalyzerServiceException_1.AccessAnalyzerServiceException {
|
|
134
|
+
constructor(opts) {
|
|
135
|
+
super({
|
|
136
|
+
name: "InvalidParameterException",
|
|
137
|
+
$fault: "client",
|
|
138
|
+
...opts,
|
|
139
|
+
});
|
|
140
|
+
this.name = "InvalidParameterException";
|
|
141
|
+
this.$fault = "client";
|
|
142
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
146
|
+
class UnprocessableEntityException extends AccessAnalyzerServiceException_1.AccessAnalyzerServiceException {
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "UnprocessableEntityException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
this.name = "UnprocessableEntityException";
|
|
154
|
+
this.$fault = "client";
|
|
155
|
+
this.$retryable = {};
|
|
156
|
+
Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
exports.UnprocessableEntityException = UnprocessableEntityException;
|
|
160
|
+
exports.CheckNoNewAccessResult = {
|
|
161
|
+
FAIL: "FAIL",
|
|
162
|
+
PASS: "PASS",
|
|
163
|
+
};
|
|
116
164
|
exports.KmsGrantOperation = {
|
|
117
165
|
CREATE_GRANT: "CreateGrant",
|
|
118
166
|
DECRYPT: "Decrypt",
|
|
@@ -209,6 +257,29 @@ exports.AccessPreviewStatusReasonCode = {
|
|
|
209
257
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
210
258
|
INVALID_CONFIGURATION: "INVALID_CONFIGURATION",
|
|
211
259
|
};
|
|
260
|
+
var FindingDetails;
|
|
261
|
+
(function (FindingDetails) {
|
|
262
|
+
FindingDetails.visit = (value, visitor) => {
|
|
263
|
+
if (value.externalAccessDetails !== undefined)
|
|
264
|
+
return visitor.externalAccessDetails(value.externalAccessDetails);
|
|
265
|
+
if (value.unusedPermissionDetails !== undefined)
|
|
266
|
+
return visitor.unusedPermissionDetails(value.unusedPermissionDetails);
|
|
267
|
+
if (value.unusedIamUserAccessKeyDetails !== undefined)
|
|
268
|
+
return visitor.unusedIamUserAccessKeyDetails(value.unusedIamUserAccessKeyDetails);
|
|
269
|
+
if (value.unusedIamRoleDetails !== undefined)
|
|
270
|
+
return visitor.unusedIamRoleDetails(value.unusedIamRoleDetails);
|
|
271
|
+
if (value.unusedIamUserPasswordDetails !== undefined)
|
|
272
|
+
return visitor.unusedIamUserPasswordDetails(value.unusedIamUserPasswordDetails);
|
|
273
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
274
|
+
};
|
|
275
|
+
})(FindingDetails = exports.FindingDetails || (exports.FindingDetails = {}));
|
|
276
|
+
exports.FindingType = {
|
|
277
|
+
EXTERNAL_ACCESS: "ExternalAccess",
|
|
278
|
+
UNUSED_IAM_ROLE: "UnusedIAMRole",
|
|
279
|
+
UNUSED_IAM_USER_ACCESS_KEY: "UnusedIAMUserAccessKey",
|
|
280
|
+
UNUSED_IAM_USER_PASSWORD: "UnusedIAMUserPassword",
|
|
281
|
+
UNUSED_PERMISSION: "UnusedPermission",
|
|
282
|
+
};
|
|
212
283
|
exports.JobErrorCode = {
|
|
213
284
|
AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR",
|
|
214
285
|
RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -270,3 +341,14 @@ var PathElement;
|
|
|
270
341
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
271
342
|
};
|
|
272
343
|
})(PathElement = exports.PathElement || (exports.PathElement = {}));
|
|
344
|
+
const CheckAccessNotGrantedRequestFilterSensitiveLog = (obj) => ({
|
|
345
|
+
...obj,
|
|
346
|
+
...(obj.policyDocument && { policyDocument: smithy_client_1.SENSITIVE_STRING }),
|
|
347
|
+
});
|
|
348
|
+
exports.CheckAccessNotGrantedRequestFilterSensitiveLog = CheckAccessNotGrantedRequestFilterSensitiveLog;
|
|
349
|
+
const CheckNoNewAccessRequestFilterSensitiveLog = (obj) => ({
|
|
350
|
+
...obj,
|
|
351
|
+
...(obj.newPolicyDocument && { newPolicyDocument: smithy_client_1.SENSITIVE_STRING }),
|
|
352
|
+
...(obj.existingPolicyDocument && { existingPolicyDocument: smithy_client_1.SENSITIVE_STRING }),
|
|
353
|
+
});
|
|
354
|
+
exports.CheckNoNewAccessRequestFilterSensitiveLog = CheckNoNewAccessRequestFilterSensitiveLog;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetFindingV2 = void 0;
|
|
4
|
+
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
|
+
const GetFindingV2Command_1 = require("../commands/GetFindingV2Command");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new GetFindingV2Command_1.GetFindingV2Command(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateGetFindingV2(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateGetFindingV2 = paginateGetFindingV2;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListFindingsV2 = void 0;
|
|
4
|
+
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
|
+
const ListFindingsV2Command_1 = require("../commands/ListFindingsV2Command");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListFindingsV2Command_1.ListFindingsV2Command(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListFindingsV2(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListFindingsV2 = paginateListFindingsV2;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetFindingV2Paginator"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ListAccessPreviewFindingsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListAccessPreviewsPaginator"), exports);
|
|
@@ -8,5 +9,6 @@ tslib_1.__exportStar(require("./ListAnalyzedResourcesPaginator"), exports);
|
|
|
8
9
|
tslib_1.__exportStar(require("./ListAnalyzersPaginator"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListArchiveRulesPaginator"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListFindingsPaginator"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./ListFindingsV2Paginator"), exports);
|
|
11
13
|
tslib_1.__exportStar(require("./ListPolicyGenerationsPaginator"), exports);
|
|
12
14
|
tslib_1.__exportStar(require("./ValidatePolicyPaginator"), exports);
|