@aws-sdk/client-accessanalyzer 3.1023.0 → 3.1025.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.
Files changed (59) hide show
  1. package/README.md +49 -0
  2. package/dist-cjs/index.js +249 -1
  3. package/dist-cjs/schemas/schemas_0.js +173 -5
  4. package/dist-es/AccessAnalyzer.js +23 -1
  5. package/dist-es/commands/CancelPolicyPreviewJobCommand.js +16 -0
  6. package/dist-es/commands/CreatePolicyPreviewConfigurationCommand.js +16 -0
  7. package/dist-es/commands/DeletePolicyPreviewConfigurationCommand.js +16 -0
  8. package/dist-es/commands/GetPolicyPreviewConfigurationCommand.js +16 -0
  9. package/dist-es/commands/GetPolicyPreviewJobCommand.js +16 -0
  10. package/dist-es/commands/ListPolicyPreviewJobsCommand.js +16 -0
  11. package/dist-es/commands/StartPolicyPreviewJobCommand.js +16 -0
  12. package/dist-es/commands/index.js +7 -0
  13. package/dist-es/index.js +1 -0
  14. package/dist-es/models/enums.js +31 -0
  15. package/dist-es/pagination/ListPolicyPreviewJobsPaginator.js +4 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/schemas/schemas_0.js +168 -0
  18. package/dist-es/waiters/index.js +2 -0
  19. package/dist-es/waiters/waitForPolicyPreviewConfigurationActive.js +54 -0
  20. package/dist-es/waiters/waitForPolicyPreviewJobCompleted.js +49 -0
  21. package/dist-types/AccessAnalyzer.d.ts +74 -1
  22. package/dist-types/AccessAnalyzerClient.d.ts +9 -2
  23. package/dist-types/commands/CancelPolicyPreviewJobCommand.d.ts +100 -0
  24. package/dist-types/commands/CreatePolicyPreviewConfigurationCommand.d.ts +109 -0
  25. package/dist-types/commands/DeletePolicyPreviewConfigurationCommand.d.ts +100 -0
  26. package/dist-types/commands/GetPolicyPreviewConfigurationCommand.d.ts +114 -0
  27. package/dist-types/commands/GetPolicyPreviewJobCommand.d.ts +187 -0
  28. package/dist-types/commands/ListPolicyPreviewJobsCommand.d.ts +137 -0
  29. package/dist-types/commands/StartPolicyPreviewJobCommand.d.ts +154 -0
  30. package/dist-types/commands/index.d.ts +7 -0
  31. package/dist-types/index.d.ts +1 -0
  32. package/dist-types/models/enums.d.ts +71 -0
  33. package/dist-types/models/models_0.d.ts +316 -1
  34. package/dist-types/pagination/ListPolicyPreviewJobsPaginator.d.ts +7 -0
  35. package/dist-types/pagination/index.d.ts +1 -0
  36. package/dist-types/schemas/schemas_0.d.ts +26 -0
  37. package/dist-types/ts3.4/AccessAnalyzer.d.ts +150 -0
  38. package/dist-types/ts3.4/AccessAnalyzerClient.d.ts +42 -0
  39. package/dist-types/ts3.4/commands/CancelPolicyPreviewJobCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/CreatePolicyPreviewConfigurationCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/DeletePolicyPreviewConfigurationCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/GetPolicyPreviewConfigurationCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/GetPolicyPreviewJobCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/ListPolicyPreviewJobsCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/StartPolicyPreviewJobCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  47. package/dist-types/ts3.4/index.d.ts +1 -0
  48. package/dist-types/ts3.4/models/enums.d.ts +41 -0
  49. package/dist-types/ts3.4/models/models_0.d.ts +83 -0
  50. package/dist-types/ts3.4/pagination/ListPolicyPreviewJobsPaginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  52. package/dist-types/ts3.4/schemas/schemas_0.d.ts +26 -0
  53. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  54. package/dist-types/ts3.4/waiters/waitForPolicyPreviewConfigurationActive.d.ts +11 -0
  55. package/dist-types/ts3.4/waiters/waitForPolicyPreviewJobCompleted.d.ts +11 -0
  56. package/dist-types/waiters/index.d.ts +2 -0
  57. package/dist-types/waiters/waitForPolicyPreviewConfigurationActive.d.ts +14 -0
  58. package/dist-types/waiters/waitForPolicyPreviewJobCompleted.d.ts +14 -0
  59. package/package.json +2 -1
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ AccessAnalyzerClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../AccessAnalyzerClient";
8
+ import {
9
+ ListPolicyPreviewJobsRequest,
10
+ ListPolicyPreviewJobsResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListPolicyPreviewJobsCommandInput
15
+ extends ListPolicyPreviewJobsRequest {}
16
+ export interface ListPolicyPreviewJobsCommandOutput
17
+ extends ListPolicyPreviewJobsResponse,
18
+ __MetadataBearer {}
19
+ declare const ListPolicyPreviewJobsCommand_base: {
20
+ new (
21
+ input: ListPolicyPreviewJobsCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ ListPolicyPreviewJobsCommandInput,
24
+ ListPolicyPreviewJobsCommandOutput,
25
+ AccessAnalyzerClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ ...[input]: [] | [ListPolicyPreviewJobsCommandInput]
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ ListPolicyPreviewJobsCommandInput,
33
+ ListPolicyPreviewJobsCommandOutput,
34
+ AccessAnalyzerClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class ListPolicyPreviewJobsCommand extends ListPolicyPreviewJobsCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: ListPolicyPreviewJobsRequest;
44
+ output: ListPolicyPreviewJobsResponse;
45
+ };
46
+ sdk: {
47
+ input: ListPolicyPreviewJobsCommandInput;
48
+ output: ListPolicyPreviewJobsCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ AccessAnalyzerClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../AccessAnalyzerClient";
8
+ import {
9
+ StartPolicyPreviewJobRequest,
10
+ StartPolicyPreviewJobResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface StartPolicyPreviewJobCommandInput
15
+ extends StartPolicyPreviewJobRequest {}
16
+ export interface StartPolicyPreviewJobCommandOutput
17
+ extends StartPolicyPreviewJobResponse,
18
+ __MetadataBearer {}
19
+ declare const StartPolicyPreviewJobCommand_base: {
20
+ new (
21
+ input: StartPolicyPreviewJobCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ StartPolicyPreviewJobCommandInput,
24
+ StartPolicyPreviewJobCommandOutput,
25
+ AccessAnalyzerClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: StartPolicyPreviewJobCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ StartPolicyPreviewJobCommandInput,
33
+ StartPolicyPreviewJobCommandOutput,
34
+ AccessAnalyzerClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class StartPolicyPreviewJobCommand extends StartPolicyPreviewJobCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: StartPolicyPreviewJobRequest;
44
+ output: StartPolicyPreviewJobResponse;
45
+ };
46
+ sdk: {
47
+ input: StartPolicyPreviewJobCommandInput;
48
+ output: StartPolicyPreviewJobCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -1,13 +1,16 @@
1
1
  export * from "./ApplyArchiveRuleCommand";
2
2
  export * from "./CancelPolicyGenerationCommand";
3
+ export * from "./CancelPolicyPreviewJobCommand";
3
4
  export * from "./CheckAccessNotGrantedCommand";
4
5
  export * from "./CheckNoNewAccessCommand";
5
6
  export * from "./CheckNoPublicAccessCommand";
6
7
  export * from "./CreateAccessPreviewCommand";
7
8
  export * from "./CreateAnalyzerCommand";
8
9
  export * from "./CreateArchiveRuleCommand";
10
+ export * from "./CreatePolicyPreviewConfigurationCommand";
9
11
  export * from "./DeleteAnalyzerCommand";
10
12
  export * from "./DeleteArchiveRuleCommand";
13
+ export * from "./DeletePolicyPreviewConfigurationCommand";
11
14
  export * from "./GenerateFindingRecommendationCommand";
12
15
  export * from "./GetAccessPreviewCommand";
13
16
  export * from "./GetAnalyzedResourceCommand";
@@ -18,6 +21,8 @@ export * from "./GetFindingRecommendationCommand";
18
21
  export * from "./GetFindingV2Command";
19
22
  export * from "./GetFindingsStatisticsCommand";
20
23
  export * from "./GetGeneratedPolicyCommand";
24
+ export * from "./GetPolicyPreviewConfigurationCommand";
25
+ export * from "./GetPolicyPreviewJobCommand";
21
26
  export * from "./ListAccessPreviewFindingsCommand";
22
27
  export * from "./ListAccessPreviewsCommand";
23
28
  export * from "./ListAnalyzedResourcesCommand";
@@ -26,8 +31,10 @@ export * from "./ListArchiveRulesCommand";
26
31
  export * from "./ListFindingsCommand";
27
32
  export * from "./ListFindingsV2Command";
28
33
  export * from "./ListPolicyGenerationsCommand";
34
+ export * from "./ListPolicyPreviewJobsCommand";
29
35
  export * from "./ListTagsForResourceCommand";
30
36
  export * from "./StartPolicyGenerationCommand";
37
+ export * from "./StartPolicyPreviewJobCommand";
31
38
  export * from "./StartResourceScanCommand";
32
39
  export * from "./TagResourceCommand";
33
40
  export * from "./UntagResourceCommand";
@@ -6,6 +6,7 @@ export { AccessAnalyzerExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./schemas/schemas_0";
8
8
  export * from "./pagination";
9
+ export * from "./waiters";
9
10
  export * from "./models/enums";
10
11
  export * from "./models/errors";
11
12
  export * from "./models/models_0";
@@ -131,6 +131,18 @@ export declare const AclPermission: {
131
131
  readonly WRITE_ACP: "WRITE_ACP";
132
132
  };
133
133
  export type AclPermission = (typeof AclPermission)[keyof typeof AclPermission];
134
+ export declare const PolicyPreviewScope: {
135
+ readonly GLOBAL: "GLOBAL";
136
+ };
137
+ export type PolicyPreviewScope =
138
+ (typeof PolicyPreviewScope)[keyof typeof PolicyPreviewScope];
139
+ export declare const PolicyPreviewStatus: {
140
+ readonly ACTIVE: "ACTIVE";
141
+ readonly FAILED: "FAILED";
142
+ readonly PENDING_CREATION: "PENDING_CREATION";
143
+ };
144
+ export type PolicyPreviewStatus =
145
+ (typeof PolicyPreviewStatus)[keyof typeof PolicyPreviewStatus];
134
146
  export declare const AccessPreviewStatus: {
135
147
  readonly COMPLETED: "COMPLETED";
136
148
  readonly CREATING: "CREATING";
@@ -213,7 +225,16 @@ export declare const FindingType: {
213
225
  export type FindingType = (typeof FindingType)[keyof typeof FindingType];
214
226
  export declare const JobErrorCode: {
215
227
  readonly AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR";
228
+ readonly CANCELED_JOB_ERROR: "CANCELED_JOB_ERROR";
229
+ readonly INSUFFICIENT_PERMISSIONS_ERROR: "INSUFFICIENT_PERMISSIONS_ERROR";
230
+ readonly INVALID_ORGANIZATION_CONFIGURATION: "INVALID_ORGANIZATION_CONFIGURATION";
231
+ readonly INVALID_POLICY_PREVIEW_CONFIGURATION: "INVALID_POLICY_PREVIEW_CONFIGURATION";
232
+ readonly INVALID_SERVICE_LINKED_ROLE: "INVALID_SERVICE_LINKED_ROLE";
233
+ readonly INVALID_TARGET_ERROR: "INVALID_TARGET_ERROR";
234
+ readonly ORGANIZATION_ACCESS_DENIED_ERROR: "ORGANIZATION_ACCESS_DENIED_ERROR";
216
235
  readonly RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR";
236
+ readonly S3_BUCKET_NOT_FOUND_ERROR: "S3_BUCKET_NOT_FOUND_ERROR";
237
+ readonly S3_BUCKET_PERMISSION_ERROR: "S3_BUCKET_PERMISSION_ERROR";
217
238
  readonly SERVICE_ERROR: "SERVICE_ERROR";
218
239
  readonly SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR";
219
240
  };
@@ -225,6 +246,20 @@ export declare const JobStatus: {
225
246
  readonly SUCCEEDED: "SUCCEEDED";
226
247
  };
227
248
  export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
249
+ export declare const ImpactAnalysisJobStatus: {
250
+ readonly CANCELED: "CANCELED";
251
+ readonly COMPLETED: "COMPLETED";
252
+ readonly FAILED: "FAILED";
253
+ readonly IN_PROGRESS: "IN_PROGRESS";
254
+ readonly SUBMITTED: "SUBMITTED";
255
+ };
256
+ export type ImpactAnalysisJobStatus =
257
+ (typeof ImpactAnalysisJobStatus)[keyof typeof ImpactAnalysisJobStatus];
258
+ export declare const ImpactAnalysisJobType: {
259
+ readonly SCP: "SCP";
260
+ };
261
+ export type ImpactAnalysisJobType =
262
+ (typeof ImpactAnalysisJobType)[keyof typeof ImpactAnalysisJobType];
228
263
  export declare const FindingChangeType: {
229
264
  readonly CHANGED: "CHANGED";
230
265
  readonly NEW: "NEW";
@@ -237,6 +272,12 @@ export declare const OrderBy: {
237
272
  readonly DESC: "DESC";
238
273
  };
239
274
  export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];
275
+ export declare const PolicyPreviewJobFilterName: {
276
+ readonly JOB_STATUS: "jobStatus";
277
+ readonly TARGET_ID: "targetId";
278
+ };
279
+ export type PolicyPreviewJobFilterName =
280
+ (typeof PolicyPreviewJobFilterName)[keyof typeof PolicyPreviewJobFilterName];
240
281
  export declare const FindingStatusUpdate: {
241
282
  readonly ACTIVE: "ACTIVE";
242
283
  readonly ARCHIVED: "ARCHIVED";
@@ -13,12 +13,17 @@ import {
13
13
  FindingStatus,
14
14
  FindingStatusUpdate,
15
15
  FindingType,
16
+ ImpactAnalysisJobStatus,
17
+ ImpactAnalysisJobType,
16
18
  InternalAccessType,
17
19
  JobErrorCode,
18
20
  JobStatus,
19
21
  KmsGrantOperation,
20
22
  Locale,
21
23
  OrderBy,
24
+ PolicyPreviewJobFilterName,
25
+ PolicyPreviewScope,
26
+ PolicyPreviewStatus,
22
27
  PolicyType,
23
28
  PrincipalType,
24
29
  ReasonCode,
@@ -198,6 +203,10 @@ export interface CancelPolicyGenerationRequest {
198
203
  jobId: string | undefined;
199
204
  }
200
205
  export interface CancelPolicyGenerationResponse {}
206
+ export interface CancelPolicyPreviewJobRequest {
207
+ jobId: string | undefined;
208
+ }
209
+ export interface CancelPolicyPreviewJobResponse {}
201
210
  export interface CheckAccessNotGrantedRequest {
202
211
  policyDocument: string | undefined;
203
212
  access: Access[] | undefined;
@@ -704,6 +713,17 @@ export interface CreateAccessPreviewRequest {
704
713
  export interface CreateAccessPreviewResponse {
705
714
  id: string | undefined;
706
715
  }
716
+ export interface CreatePolicyPreviewConfigurationRequest {
717
+ clientToken?: string | undefined;
718
+ scope?: PolicyPreviewScope | undefined;
719
+ }
720
+ export interface CreatePolicyPreviewConfigurationResponse {
721
+ status: PolicyPreviewStatus | undefined;
722
+ }
723
+ export interface DeletePolicyPreviewConfigurationRequest {
724
+ clientToken?: string | undefined;
725
+ }
726
+ export interface DeletePolicyPreviewConfigurationResponse {}
707
727
  export interface GenerateFindingRecommendationRequest {
708
728
  analyzerArn: string | undefined;
709
729
  id: string | undefined;
@@ -1103,6 +1123,42 @@ export interface GetGeneratedPolicyResponse {
1103
1123
  jobDetails: JobDetails | undefined;
1104
1124
  generatedPolicyResult: GeneratedPolicyResult | undefined;
1105
1125
  }
1126
+ export interface GetPolicyPreviewConfigurationRequest {}
1127
+ export interface PolicyPreviewConfiguration {
1128
+ scope: PolicyPreviewScope | undefined;
1129
+ status: PolicyPreviewStatus | undefined;
1130
+ createdAt: Date | undefined;
1131
+ updatedAt?: Date | undefined;
1132
+ }
1133
+ export interface GetPolicyPreviewConfigurationResponse {
1134
+ policyPreviewConfigurations?: PolicyPreviewConfiguration[] | undefined;
1135
+ }
1136
+ export interface GetPolicyPreviewJobRequest {
1137
+ jobId: string | undefined;
1138
+ }
1139
+ export interface PolicyPreviewJobDetails {
1140
+ jobStatus: ImpactAnalysisJobStatus | undefined;
1141
+ submittedAt: Date | undefined;
1142
+ startedAt?: Date | undefined;
1143
+ completedAt?: Date | undefined;
1144
+ jobError?: JobError | undefined;
1145
+ }
1146
+ export interface PolicyConfiguration {
1147
+ jobType: ImpactAnalysisJobType | undefined;
1148
+ targetId: string | undefined;
1149
+ policyDocumentsList: string[] | undefined;
1150
+ }
1151
+ export interface PolicyPreviewJobParameters {
1152
+ startTime: Date | undefined;
1153
+ endTime: Date | undefined;
1154
+ policyConfigurations: PolicyConfiguration[] | undefined;
1155
+ }
1156
+ export interface GetPolicyPreviewJobResponse {
1157
+ jobId: string | undefined;
1158
+ jobParameters?: PolicyPreviewJobParameters | undefined;
1159
+ jobDetails?: PolicyPreviewJobDetails | undefined;
1160
+ outputS3Uri: string | undefined;
1161
+ }
1106
1162
  export interface ListAccessPreviewFindingsRequest {
1107
1163
  accessPreviewId: string | undefined;
1108
1164
  analyzerArn: string | undefined;
@@ -1238,6 +1294,23 @@ export interface ListPolicyGenerationsResponse {
1238
1294
  policyGenerations: PolicyGeneration[] | undefined;
1239
1295
  nextToken?: string | undefined;
1240
1296
  }
1297
+ export interface ListPolicyPreviewJobsRequest {
1298
+ filters?: Partial<Record<PolicyPreviewJobFilterName, string>> | undefined;
1299
+ maxResults?: number | undefined;
1300
+ nextToken?: string | undefined;
1301
+ }
1302
+ export interface PolicyPreviewAnalysisReport {
1303
+ jobId: string | undefined;
1304
+ status: ImpactAnalysisJobStatus | undefined;
1305
+ submittedAt: Date | undefined;
1306
+ startedAt?: Date | undefined;
1307
+ completedAt?: Date | undefined;
1308
+ outputS3Uri: string | undefined;
1309
+ }
1310
+ export interface ListPolicyPreviewJobsResponse {
1311
+ analysisReports: PolicyPreviewAnalysisReport[] | undefined;
1312
+ nextToken?: string | undefined;
1313
+ }
1241
1314
  export interface ListTagsForResourceRequest {
1242
1315
  resourceArn: string | undefined;
1243
1316
  }
@@ -1266,6 +1339,16 @@ export interface StartPolicyGenerationRequest {
1266
1339
  export interface StartPolicyGenerationResponse {
1267
1340
  jobId: string | undefined;
1268
1341
  }
1342
+ export interface StartPolicyPreviewJobRequest {
1343
+ policyConfigurations: PolicyConfiguration[] | undefined;
1344
+ startTime: Date | undefined;
1345
+ endTime?: Date | undefined;
1346
+ outputS3Uri: string | undefined;
1347
+ clientToken?: string | undefined;
1348
+ }
1349
+ export interface StartPolicyPreviewJobResponse {
1350
+ jobId: string | undefined;
1351
+ }
1269
1352
  export interface StartResourceScanRequest {
1270
1353
  analyzerArn: string | undefined;
1271
1354
  resourceArn: string | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListPolicyPreviewJobsCommandInput,
4
+ ListPolicyPreviewJobsCommandOutput,
5
+ } from "../commands/ListPolicyPreviewJobsCommand";
6
+ import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListPolicyPreviewJobs: (
8
+ config: AccessAnalyzerPaginationConfiguration,
9
+ input: ListPolicyPreviewJobsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListPolicyPreviewJobsCommandOutput>;
@@ -9,4 +9,5 @@ export * from "./ListArchiveRulesPaginator";
9
9
  export * from "./ListFindingsPaginator";
10
10
  export * from "./ListFindingsV2Paginator";
11
11
  export * from "./ListPolicyGenerationsPaginator";
12
+ export * from "./ListPolicyPreviewJobsPaginator";
12
13
  export * from "./ValidatePolicyPaginator";
@@ -30,6 +30,8 @@ export declare var ApplyArchiveRuleRequest$: StaticStructureSchema;
30
30
  export declare var ArchiveRuleSummary$: StaticStructureSchema;
31
31
  export declare var CancelPolicyGenerationRequest$: StaticStructureSchema;
32
32
  export declare var CancelPolicyGenerationResponse$: StaticStructureSchema;
33
+ export declare var CancelPolicyPreviewJobRequest$: StaticStructureSchema;
34
+ export declare var CancelPolicyPreviewJobResponse$: StaticStructureSchema;
33
35
  export declare var CheckAccessNotGrantedRequest$: StaticStructureSchema;
34
36
  export declare var CheckAccessNotGrantedResponse$: StaticStructureSchema;
35
37
  export declare var CheckNoNewAccessRequest$: StaticStructureSchema;
@@ -43,9 +45,13 @@ export declare var CreateAccessPreviewResponse$: StaticStructureSchema;
43
45
  export declare var CreateAnalyzerRequest$: StaticStructureSchema;
44
46
  export declare var CreateAnalyzerResponse$: StaticStructureSchema;
45
47
  export declare var CreateArchiveRuleRequest$: StaticStructureSchema;
48
+ export declare var CreatePolicyPreviewConfigurationRequest$: StaticStructureSchema;
49
+ export declare var CreatePolicyPreviewConfigurationResponse$: StaticStructureSchema;
46
50
  export declare var Criterion$: StaticStructureSchema;
47
51
  export declare var DeleteAnalyzerRequest$: StaticStructureSchema;
48
52
  export declare var DeleteArchiveRuleRequest$: StaticStructureSchema;
53
+ export declare var DeletePolicyPreviewConfigurationRequest$: StaticStructureSchema;
54
+ export declare var DeletePolicyPreviewConfigurationResponse$: StaticStructureSchema;
49
55
  export declare var DynamodbStreamConfiguration$: StaticStructureSchema;
50
56
  export declare var DynamodbTableConfiguration$: StaticStructureSchema;
51
57
  export declare var EbsSnapshotConfiguration$: StaticStructureSchema;
@@ -81,6 +87,10 @@ export declare var GetFindingV2Request$: StaticStructureSchema;
81
87
  export declare var GetFindingV2Response$: StaticStructureSchema;
82
88
  export declare var GetGeneratedPolicyRequest$: StaticStructureSchema;
83
89
  export declare var GetGeneratedPolicyResponse$: StaticStructureSchema;
90
+ export declare var GetPolicyPreviewConfigurationRequest$: StaticStructureSchema;
91
+ export declare var GetPolicyPreviewConfigurationResponse$: StaticStructureSchema;
92
+ export declare var GetPolicyPreviewJobRequest$: StaticStructureSchema;
93
+ export declare var GetPolicyPreviewJobResponse$: StaticStructureSchema;
84
94
  export declare var IamRoleConfiguration$: StaticStructureSchema;
85
95
  export declare var InlineArchiveRule$: StaticStructureSchema;
86
96
  export declare var InternalAccessAnalysisRule$: StaticStructureSchema;
@@ -111,11 +121,18 @@ export declare var ListFindingsV2Request$: StaticStructureSchema;
111
121
  export declare var ListFindingsV2Response$: StaticStructureSchema;
112
122
  export declare var ListPolicyGenerationsRequest$: StaticStructureSchema;
113
123
  export declare var ListPolicyGenerationsResponse$: StaticStructureSchema;
124
+ export declare var ListPolicyPreviewJobsRequest$: StaticStructureSchema;
125
+ export declare var ListPolicyPreviewJobsResponse$: StaticStructureSchema;
114
126
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
115
127
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
116
128
  export declare var Location$: StaticStructureSchema;
129
+ export declare var PolicyConfiguration$: StaticStructureSchema;
117
130
  export declare var PolicyGeneration$: StaticStructureSchema;
118
131
  export declare var PolicyGenerationDetails$: StaticStructureSchema;
132
+ export declare var PolicyPreviewAnalysisReport$: StaticStructureSchema;
133
+ export declare var PolicyPreviewConfiguration$: StaticStructureSchema;
134
+ export declare var PolicyPreviewJobDetails$: StaticStructureSchema;
135
+ export declare var PolicyPreviewJobParameters$: StaticStructureSchema;
119
136
  export declare var Position$: StaticStructureSchema;
120
137
  export declare var RdsDbClusterSnapshotConfiguration$: StaticStructureSchema;
121
138
  export declare var RdsDbSnapshotConfiguration$: StaticStructureSchema;
@@ -135,6 +152,8 @@ export declare var Span$: StaticStructureSchema;
135
152
  export declare var SqsQueueConfiguration$: StaticStructureSchema;
136
153
  export declare var StartPolicyGenerationRequest$: StaticStructureSchema;
137
154
  export declare var StartPolicyGenerationResponse$: StaticStructureSchema;
155
+ export declare var StartPolicyPreviewJobRequest$: StaticStructureSchema;
156
+ export declare var StartPolicyPreviewJobResponse$: StaticStructureSchema;
138
157
  export declare var StartResourceScanRequest$: StaticStructureSchema;
139
158
  export declare var StatusReason$: StaticStructureSchema;
140
159
  export declare var Substring$: StaticStructureSchema;
@@ -174,14 +193,17 @@ export declare var RdsDbSnapshotAttributeValue$: StaticUnionSchema;
174
193
  export declare var RecommendedStep$: StaticUnionSchema;
175
194
  export declare var ApplyArchiveRule$: StaticOperationSchema;
176
195
  export declare var CancelPolicyGeneration$: StaticOperationSchema;
196
+ export declare var CancelPolicyPreviewJob$: StaticOperationSchema;
177
197
  export declare var CheckAccessNotGranted$: StaticOperationSchema;
178
198
  export declare var CheckNoNewAccess$: StaticOperationSchema;
179
199
  export declare var CheckNoPublicAccess$: StaticOperationSchema;
180
200
  export declare var CreateAccessPreview$: StaticOperationSchema;
181
201
  export declare var CreateAnalyzer$: StaticOperationSchema;
182
202
  export declare var CreateArchiveRule$: StaticOperationSchema;
203
+ export declare var CreatePolicyPreviewConfiguration$: StaticOperationSchema;
183
204
  export declare var DeleteAnalyzer$: StaticOperationSchema;
184
205
  export declare var DeleteArchiveRule$: StaticOperationSchema;
206
+ export declare var DeletePolicyPreviewConfiguration$: StaticOperationSchema;
185
207
  export declare var GenerateFindingRecommendation$: StaticOperationSchema;
186
208
  export declare var GetAccessPreview$: StaticOperationSchema;
187
209
  export declare var GetAnalyzedResource$: StaticOperationSchema;
@@ -192,6 +214,8 @@ export declare var GetFindingRecommendation$: StaticOperationSchema;
192
214
  export declare var GetFindingsStatistics$: StaticOperationSchema;
193
215
  export declare var GetFindingV2$: StaticOperationSchema;
194
216
  export declare var GetGeneratedPolicy$: StaticOperationSchema;
217
+ export declare var GetPolicyPreviewConfiguration$: StaticOperationSchema;
218
+ export declare var GetPolicyPreviewJob$: StaticOperationSchema;
195
219
  export declare var ListAccessPreviewFindings$: StaticOperationSchema;
196
220
  export declare var ListAccessPreviews$: StaticOperationSchema;
197
221
  export declare var ListAnalyzedResources$: StaticOperationSchema;
@@ -200,8 +224,10 @@ export declare var ListArchiveRules$: StaticOperationSchema;
200
224
  export declare var ListFindings$: StaticOperationSchema;
201
225
  export declare var ListFindingsV2$: StaticOperationSchema;
202
226
  export declare var ListPolicyGenerations$: StaticOperationSchema;
227
+ export declare var ListPolicyPreviewJobs$: StaticOperationSchema;
203
228
  export declare var ListTagsForResource$: StaticOperationSchema;
204
229
  export declare var StartPolicyGeneration$: StaticOperationSchema;
230
+ export declare var StartPolicyPreviewJob$: StaticOperationSchema;
205
231
  export declare var StartResourceScan$: StaticOperationSchema;
206
232
  export declare var TagResource$: StaticOperationSchema;
207
233
  export declare var UntagResource$: StaticOperationSchema;
@@ -0,0 +1,2 @@
1
+ export * from "./waitForPolicyPreviewConfigurationActive";
2
+ export * from "./waitForPolicyPreviewJobCompleted";
@@ -0,0 +1,11 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
3
+ import { GetPolicyPreviewConfigurationCommandInput } from "../commands/GetPolicyPreviewConfigurationCommand";
4
+ export declare const waitForPolicyPreviewConfigurationActive: (
5
+ params: WaiterConfiguration<AccessAnalyzerClient>,
6
+ input: GetPolicyPreviewConfigurationCommandInput
7
+ ) => Promise<WaiterResult>;
8
+ export declare const waitUntilPolicyPreviewConfigurationActive: (
9
+ params: WaiterConfiguration<AccessAnalyzerClient>,
10
+ input: GetPolicyPreviewConfigurationCommandInput
11
+ ) => Promise<WaiterResult>;
@@ -0,0 +1,11 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
3
+ import { GetPolicyPreviewJobCommandInput } from "../commands/GetPolicyPreviewJobCommand";
4
+ export declare const waitForPolicyPreviewJobCompleted: (
5
+ params: WaiterConfiguration<AccessAnalyzerClient>,
6
+ input: GetPolicyPreviewJobCommandInput
7
+ ) => Promise<WaiterResult>;
8
+ export declare const waitUntilPolicyPreviewJobCompleted: (
9
+ params: WaiterConfiguration<AccessAnalyzerClient>,
10
+ input: GetPolicyPreviewJobCommandInput
11
+ ) => Promise<WaiterResult>;
@@ -0,0 +1,2 @@
1
+ export * from "./waitForPolicyPreviewConfigurationActive";
2
+ export * from "./waitForPolicyPreviewJobCompleted";
@@ -0,0 +1,14 @@
1
+ import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
+ import type { AccessAnalyzerClient } from "../AccessAnalyzerClient";
3
+ import { type GetPolicyPreviewConfigurationCommandInput } from "../commands/GetPolicyPreviewConfigurationCommand";
4
+ /**
5
+ *
6
+ * @deprecated Use waitUntilPolicyPreviewConfigurationActive instead. waitForPolicyPreviewConfigurationActive does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForPolicyPreviewConfigurationActive: (params: WaiterConfiguration<AccessAnalyzerClient>, input: GetPolicyPreviewConfigurationCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ *
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to GetPolicyPreviewConfigurationCommand for polling.
13
+ */
14
+ export declare const waitUntilPolicyPreviewConfigurationActive: (params: WaiterConfiguration<AccessAnalyzerClient>, input: GetPolicyPreviewConfigurationCommandInput) => Promise<WaiterResult>;
@@ -0,0 +1,14 @@
1
+ import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
+ import type { AccessAnalyzerClient } from "../AccessAnalyzerClient";
3
+ import { type GetPolicyPreviewJobCommandInput } from "../commands/GetPolicyPreviewJobCommand";
4
+ /**
5
+ *
6
+ * @deprecated Use waitUntilPolicyPreviewJobCompleted instead. waitForPolicyPreviewJobCompleted does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForPolicyPreviewJobCompleted: (params: WaiterConfiguration<AccessAnalyzerClient>, input: GetPolicyPreviewJobCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ *
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to GetPolicyPreviewJobCommand for polling.
13
+ */
14
+ export declare const waitUntilPolicyPreviewJobCompleted: (params: WaiterConfiguration<AccessAnalyzerClient>, input: GetPolicyPreviewJobCommandInput) => Promise<WaiterResult>;
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.1023.0",
4
+ "version": "3.1025.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-accessanalyzer",
@@ -57,6 +57,7 @@
57
57
  "@smithy/util-middleware": "^4.2.12",
58
58
  "@smithy/util-retry": "^4.2.13",
59
59
  "@smithy/util-utf8": "^4.2.2",
60
+ "@smithy/util-waiter": "^4.2.14",
60
61
  "tslib": "^2.6.2"
61
62
  },
62
63
  "devDependencies": {