@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
@@ -1,15 +1,19 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { AccessAnalyzerClient } from "./AccessAnalyzerClient";
3
4
  import { type ApplyArchiveRuleCommandInput, type ApplyArchiveRuleCommandOutput } from "./commands/ApplyArchiveRuleCommand";
4
5
  import { type CancelPolicyGenerationCommandInput, type CancelPolicyGenerationCommandOutput } from "./commands/CancelPolicyGenerationCommand";
6
+ import { type CancelPolicyPreviewJobCommandInput, type CancelPolicyPreviewJobCommandOutput } from "./commands/CancelPolicyPreviewJobCommand";
5
7
  import { type CheckAccessNotGrantedCommandInput, type CheckAccessNotGrantedCommandOutput } from "./commands/CheckAccessNotGrantedCommand";
6
8
  import { type CheckNoNewAccessCommandInput, type CheckNoNewAccessCommandOutput } from "./commands/CheckNoNewAccessCommand";
7
9
  import { type CheckNoPublicAccessCommandInput, type CheckNoPublicAccessCommandOutput } from "./commands/CheckNoPublicAccessCommand";
8
10
  import { type CreateAccessPreviewCommandInput, type CreateAccessPreviewCommandOutput } from "./commands/CreateAccessPreviewCommand";
9
11
  import { type CreateAnalyzerCommandInput, type CreateAnalyzerCommandOutput } from "./commands/CreateAnalyzerCommand";
10
12
  import { type CreateArchiveRuleCommandInput, type CreateArchiveRuleCommandOutput } from "./commands/CreateArchiveRuleCommand";
13
+ import { type CreatePolicyPreviewConfigurationCommandInput, type CreatePolicyPreviewConfigurationCommandOutput } from "./commands/CreatePolicyPreviewConfigurationCommand";
11
14
  import { type DeleteAnalyzerCommandInput, type DeleteAnalyzerCommandOutput } from "./commands/DeleteAnalyzerCommand";
12
15
  import { type DeleteArchiveRuleCommandInput, type DeleteArchiveRuleCommandOutput } from "./commands/DeleteArchiveRuleCommand";
16
+ import { type DeletePolicyPreviewConfigurationCommandInput, type DeletePolicyPreviewConfigurationCommandOutput } from "./commands/DeletePolicyPreviewConfigurationCommand";
13
17
  import { type GenerateFindingRecommendationCommandInput, type GenerateFindingRecommendationCommandOutput } from "./commands/GenerateFindingRecommendationCommand";
14
18
  import { type GetAccessPreviewCommandInput, type GetAccessPreviewCommandOutput } from "./commands/GetAccessPreviewCommand";
15
19
  import { type GetAnalyzedResourceCommandInput, type GetAnalyzedResourceCommandOutput } from "./commands/GetAnalyzedResourceCommand";
@@ -20,6 +24,8 @@ import { type GetFindingRecommendationCommandInput, type GetFindingRecommendatio
20
24
  import { type GetFindingsStatisticsCommandInput, type GetFindingsStatisticsCommandOutput } from "./commands/GetFindingsStatisticsCommand";
21
25
  import { type GetFindingV2CommandInput, type GetFindingV2CommandOutput } from "./commands/GetFindingV2Command";
22
26
  import { type GetGeneratedPolicyCommandInput, type GetGeneratedPolicyCommandOutput } from "./commands/GetGeneratedPolicyCommand";
27
+ import { type GetPolicyPreviewConfigurationCommandInput, type GetPolicyPreviewConfigurationCommandOutput } from "./commands/GetPolicyPreviewConfigurationCommand";
28
+ import { type GetPolicyPreviewJobCommandInput, type GetPolicyPreviewJobCommandOutput } from "./commands/GetPolicyPreviewJobCommand";
23
29
  import { type ListAccessPreviewFindingsCommandInput, type ListAccessPreviewFindingsCommandOutput } from "./commands/ListAccessPreviewFindingsCommand";
24
30
  import { type ListAccessPreviewsCommandInput, type ListAccessPreviewsCommandOutput } from "./commands/ListAccessPreviewsCommand";
25
31
  import { type ListAnalyzedResourcesCommandInput, type ListAnalyzedResourcesCommandOutput } from "./commands/ListAnalyzedResourcesCommand";
@@ -28,8 +34,10 @@ import { type ListArchiveRulesCommandInput, type ListArchiveRulesCommandOutput }
28
34
  import { type ListFindingsCommandInput, type ListFindingsCommandOutput } from "./commands/ListFindingsCommand";
29
35
  import { type ListFindingsV2CommandInput, type ListFindingsV2CommandOutput } from "./commands/ListFindingsV2Command";
30
36
  import { type ListPolicyGenerationsCommandInput, type ListPolicyGenerationsCommandOutput } from "./commands/ListPolicyGenerationsCommand";
37
+ import { type ListPolicyPreviewJobsCommandInput, type ListPolicyPreviewJobsCommandOutput } from "./commands/ListPolicyPreviewJobsCommand";
31
38
  import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
32
39
  import { type StartPolicyGenerationCommandInput, type StartPolicyGenerationCommandOutput } from "./commands/StartPolicyGenerationCommand";
40
+ import { type StartPolicyPreviewJobCommandInput, type StartPolicyPreviewJobCommandOutput } from "./commands/StartPolicyPreviewJobCommand";
33
41
  import { type StartResourceScanCommandInput, type StartResourceScanCommandOutput } from "./commands/StartResourceScanCommand";
34
42
  import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
35
43
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -50,6 +58,12 @@ export interface AccessAnalyzer {
50
58
  cancelPolicyGeneration(args: CancelPolicyGenerationCommandInput, options?: __HttpHandlerOptions): Promise<CancelPolicyGenerationCommandOutput>;
51
59
  cancelPolicyGeneration(args: CancelPolicyGenerationCommandInput, cb: (err: any, data?: CancelPolicyGenerationCommandOutput) => void): void;
52
60
  cancelPolicyGeneration(args: CancelPolicyGenerationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelPolicyGenerationCommandOutput) => void): void;
61
+ /**
62
+ * @see {@link CancelPolicyPreviewJobCommand}
63
+ */
64
+ cancelPolicyPreviewJob(args: CancelPolicyPreviewJobCommandInput, options?: __HttpHandlerOptions): Promise<CancelPolicyPreviewJobCommandOutput>;
65
+ cancelPolicyPreviewJob(args: CancelPolicyPreviewJobCommandInput, cb: (err: any, data?: CancelPolicyPreviewJobCommandOutput) => void): void;
66
+ cancelPolicyPreviewJob(args: CancelPolicyPreviewJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelPolicyPreviewJobCommandOutput) => void): void;
53
67
  /**
54
68
  * @see {@link CheckAccessNotGrantedCommand}
55
69
  */
@@ -86,6 +100,13 @@ export interface AccessAnalyzer {
86
100
  createArchiveRule(args: CreateArchiveRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateArchiveRuleCommandOutput>;
87
101
  createArchiveRule(args: CreateArchiveRuleCommandInput, cb: (err: any, data?: CreateArchiveRuleCommandOutput) => void): void;
88
102
  createArchiveRule(args: CreateArchiveRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateArchiveRuleCommandOutput) => void): void;
103
+ /**
104
+ * @see {@link CreatePolicyPreviewConfigurationCommand}
105
+ */
106
+ createPolicyPreviewConfiguration(): Promise<CreatePolicyPreviewConfigurationCommandOutput>;
107
+ createPolicyPreviewConfiguration(args: CreatePolicyPreviewConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreatePolicyPreviewConfigurationCommandOutput>;
108
+ createPolicyPreviewConfiguration(args: CreatePolicyPreviewConfigurationCommandInput, cb: (err: any, data?: CreatePolicyPreviewConfigurationCommandOutput) => void): void;
109
+ createPolicyPreviewConfiguration(args: CreatePolicyPreviewConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePolicyPreviewConfigurationCommandOutput) => void): void;
89
110
  /**
90
111
  * @see {@link DeleteAnalyzerCommand}
91
112
  */
@@ -98,6 +119,13 @@ export interface AccessAnalyzer {
98
119
  deleteArchiveRule(args: DeleteArchiveRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteArchiveRuleCommandOutput>;
99
120
  deleteArchiveRule(args: DeleteArchiveRuleCommandInput, cb: (err: any, data?: DeleteArchiveRuleCommandOutput) => void): void;
100
121
  deleteArchiveRule(args: DeleteArchiveRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteArchiveRuleCommandOutput) => void): void;
122
+ /**
123
+ * @see {@link DeletePolicyPreviewConfigurationCommand}
124
+ */
125
+ deletePolicyPreviewConfiguration(): Promise<DeletePolicyPreviewConfigurationCommandOutput>;
126
+ deletePolicyPreviewConfiguration(args: DeletePolicyPreviewConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeletePolicyPreviewConfigurationCommandOutput>;
127
+ deletePolicyPreviewConfiguration(args: DeletePolicyPreviewConfigurationCommandInput, cb: (err: any, data?: DeletePolicyPreviewConfigurationCommandOutput) => void): void;
128
+ deletePolicyPreviewConfiguration(args: DeletePolicyPreviewConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePolicyPreviewConfigurationCommandOutput) => void): void;
101
129
  /**
102
130
  * @see {@link GenerateFindingRecommendationCommand}
103
131
  */
@@ -158,6 +186,19 @@ export interface AccessAnalyzer {
158
186
  getGeneratedPolicy(args: GetGeneratedPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetGeneratedPolicyCommandOutput>;
159
187
  getGeneratedPolicy(args: GetGeneratedPolicyCommandInput, cb: (err: any, data?: GetGeneratedPolicyCommandOutput) => void): void;
160
188
  getGeneratedPolicy(args: GetGeneratedPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGeneratedPolicyCommandOutput) => void): void;
189
+ /**
190
+ * @see {@link GetPolicyPreviewConfigurationCommand}
191
+ */
192
+ getPolicyPreviewConfiguration(): Promise<GetPolicyPreviewConfigurationCommandOutput>;
193
+ getPolicyPreviewConfiguration(args: GetPolicyPreviewConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyPreviewConfigurationCommandOutput>;
194
+ getPolicyPreviewConfiguration(args: GetPolicyPreviewConfigurationCommandInput, cb: (err: any, data?: GetPolicyPreviewConfigurationCommandOutput) => void): void;
195
+ getPolicyPreviewConfiguration(args: GetPolicyPreviewConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyPreviewConfigurationCommandOutput) => void): void;
196
+ /**
197
+ * @see {@link GetPolicyPreviewJobCommand}
198
+ */
199
+ getPolicyPreviewJob(args: GetPolicyPreviewJobCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyPreviewJobCommandOutput>;
200
+ getPolicyPreviewJob(args: GetPolicyPreviewJobCommandInput, cb: (err: any, data?: GetPolicyPreviewJobCommandOutput) => void): void;
201
+ getPolicyPreviewJob(args: GetPolicyPreviewJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyPreviewJobCommandOutput) => void): void;
161
202
  /**
162
203
  * @see {@link ListAccessPreviewFindingsCommand}
163
204
  */
@@ -208,6 +249,13 @@ export interface AccessAnalyzer {
208
249
  listPolicyGenerations(args: ListPolicyGenerationsCommandInput, options?: __HttpHandlerOptions): Promise<ListPolicyGenerationsCommandOutput>;
209
250
  listPolicyGenerations(args: ListPolicyGenerationsCommandInput, cb: (err: any, data?: ListPolicyGenerationsCommandOutput) => void): void;
210
251
  listPolicyGenerations(args: ListPolicyGenerationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPolicyGenerationsCommandOutput) => void): void;
252
+ /**
253
+ * @see {@link ListPolicyPreviewJobsCommand}
254
+ */
255
+ listPolicyPreviewJobs(): Promise<ListPolicyPreviewJobsCommandOutput>;
256
+ listPolicyPreviewJobs(args: ListPolicyPreviewJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListPolicyPreviewJobsCommandOutput>;
257
+ listPolicyPreviewJobs(args: ListPolicyPreviewJobsCommandInput, cb: (err: any, data?: ListPolicyPreviewJobsCommandOutput) => void): void;
258
+ listPolicyPreviewJobs(args: ListPolicyPreviewJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPolicyPreviewJobsCommandOutput) => void): void;
211
259
  /**
212
260
  * @see {@link ListTagsForResourceCommand}
213
261
  */
@@ -220,6 +268,12 @@ export interface AccessAnalyzer {
220
268
  startPolicyGeneration(args: StartPolicyGenerationCommandInput, options?: __HttpHandlerOptions): Promise<StartPolicyGenerationCommandOutput>;
221
269
  startPolicyGeneration(args: StartPolicyGenerationCommandInput, cb: (err: any, data?: StartPolicyGenerationCommandOutput) => void): void;
222
270
  startPolicyGeneration(args: StartPolicyGenerationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartPolicyGenerationCommandOutput) => void): void;
271
+ /**
272
+ * @see {@link StartPolicyPreviewJobCommand}
273
+ */
274
+ startPolicyPreviewJob(args: StartPolicyPreviewJobCommandInput, options?: __HttpHandlerOptions): Promise<StartPolicyPreviewJobCommandOutput>;
275
+ startPolicyPreviewJob(args: StartPolicyPreviewJobCommandInput, cb: (err: any, data?: StartPolicyPreviewJobCommandOutput) => void): void;
276
+ startPolicyPreviewJob(args: StartPolicyPreviewJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartPolicyPreviewJobCommandOutput) => void): void;
223
277
  /**
224
278
  * @see {@link StartResourceScanCommand}
225
279
  */
@@ -332,6 +386,13 @@ export interface AccessAnalyzer {
332
386
  * @returns AsyncIterable of {@link ListPolicyGenerationsCommandOutput}.
333
387
  */
334
388
  paginateListPolicyGenerations(args?: ListPolicyGenerationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPolicyGenerationsCommandOutput>;
389
+ /**
390
+ * @see {@link ListPolicyPreviewJobsCommand}
391
+ * @param args - command input.
392
+ * @param paginationConfig - optional pagination config.
393
+ * @returns AsyncIterable of {@link ListPolicyPreviewJobsCommandOutput}.
394
+ */
395
+ paginateListPolicyPreviewJobs(args?: ListPolicyPreviewJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPolicyPreviewJobsCommandOutput>;
335
396
  /**
336
397
  * @see {@link ValidatePolicyCommand}
337
398
  * @param args - command input.
@@ -339,6 +400,18 @@ export interface AccessAnalyzer {
339
400
  * @returns AsyncIterable of {@link ValidatePolicyCommandOutput}.
340
401
  */
341
402
  paginateValidatePolicy(args: ValidatePolicyCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ValidatePolicyCommandOutput>;
403
+ /**
404
+ * @see {@link GetPolicyPreviewConfigurationCommand}
405
+ * @param args - command input.
406
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
407
+ */
408
+ waitUntilPolicyPreviewConfigurationActive(args: GetPolicyPreviewConfigurationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<AccessAnalyzer>, "client">): Promise<WaiterResult>;
409
+ /**
410
+ * @see {@link GetPolicyPreviewJobCommand}
411
+ * @param args - command input.
412
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
413
+ */
414
+ waitUntilPolicyPreviewJobCompleted(args: GetPolicyPreviewJobCommandInput, waiterConfig: number | Omit<WaiterConfiguration<AccessAnalyzer>, "client">): Promise<WaiterResult>;
342
415
  }
343
416
  /**
344
417
  * <p>Identity and Access Management Access Analyzer helps you to set, verify, and refine your IAM policies by providing a suite of capabilities. Its features include findings for external, internal, and unused access, basic and custom policy checks for validating policies, and policy generation to generate fine-grained policies. To start using IAM Access Analyzer to identify external, internal, or unused access, you first need to create an analyzer.</p> <p> <b>External access analyzers</b> help you identify potential risks of accessing resources by enabling you to identify any resource policies that grant access to an external principal. It does this by using logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An external principal can be another Amazon Web Services account, a root user, an IAM user or role, a federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Access Analyzer to preview public and cross-account access to your resources before deploying permissions changes.</p> <p> <b>Internal access analyzers</b> help you identify which principals within your organization or account have access to selected resources. This analysis supports implementing the principle of least privilege by ensuring that your specified resources can only be accessed by the intended principals within your organization.</p> <p> <b>Unused access analyzers</b> help you identify potential identity access risks by enabling you to identify unused IAM roles, unused access keys, unused console passwords, and IAM principals with unused service and action-level permissions.</p> <p>Beyond findings, IAM Access Analyzer provides basic and custom policy checks to validate IAM policies before deploying permissions changes. You can use policy generation to refine permissions by attaching a policy generated using access activity logged in CloudTrail logs. </p> <p>This guide describes the IAM Access Analyzer operations that you can call programmatically. For general information about IAM Access Analyzer, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html">Using Identity and Access Management Access Analyzer</a> in the <b>IAM User Guide</b>.</p>
@@ -9,14 +9,17 @@ import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengt
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import type { ApplyArchiveRuleCommandInput, ApplyArchiveRuleCommandOutput } from "./commands/ApplyArchiveRuleCommand";
11
11
  import type { CancelPolicyGenerationCommandInput, CancelPolicyGenerationCommandOutput } from "./commands/CancelPolicyGenerationCommand";
12
+ import type { CancelPolicyPreviewJobCommandInput, CancelPolicyPreviewJobCommandOutput } from "./commands/CancelPolicyPreviewJobCommand";
12
13
  import type { CheckAccessNotGrantedCommandInput, CheckAccessNotGrantedCommandOutput } from "./commands/CheckAccessNotGrantedCommand";
13
14
  import type { CheckNoNewAccessCommandInput, CheckNoNewAccessCommandOutput } from "./commands/CheckNoNewAccessCommand";
14
15
  import type { CheckNoPublicAccessCommandInput, CheckNoPublicAccessCommandOutput } from "./commands/CheckNoPublicAccessCommand";
15
16
  import type { CreateAccessPreviewCommandInput, CreateAccessPreviewCommandOutput } from "./commands/CreateAccessPreviewCommand";
16
17
  import type { CreateAnalyzerCommandInput, CreateAnalyzerCommandOutput } from "./commands/CreateAnalyzerCommand";
17
18
  import type { CreateArchiveRuleCommandInput, CreateArchiveRuleCommandOutput } from "./commands/CreateArchiveRuleCommand";
19
+ import type { CreatePolicyPreviewConfigurationCommandInput, CreatePolicyPreviewConfigurationCommandOutput } from "./commands/CreatePolicyPreviewConfigurationCommand";
18
20
  import type { DeleteAnalyzerCommandInput, DeleteAnalyzerCommandOutput } from "./commands/DeleteAnalyzerCommand";
19
21
  import type { DeleteArchiveRuleCommandInput, DeleteArchiveRuleCommandOutput } from "./commands/DeleteArchiveRuleCommand";
22
+ import type { DeletePolicyPreviewConfigurationCommandInput, DeletePolicyPreviewConfigurationCommandOutput } from "./commands/DeletePolicyPreviewConfigurationCommand";
20
23
  import type { GenerateFindingRecommendationCommandInput, GenerateFindingRecommendationCommandOutput } from "./commands/GenerateFindingRecommendationCommand";
21
24
  import type { GetAccessPreviewCommandInput, GetAccessPreviewCommandOutput } from "./commands/GetAccessPreviewCommand";
22
25
  import type { GetAnalyzedResourceCommandInput, GetAnalyzedResourceCommandOutput } from "./commands/GetAnalyzedResourceCommand";
@@ -27,6 +30,8 @@ import type { GetFindingRecommendationCommandInput, GetFindingRecommendationComm
27
30
  import type { GetFindingsStatisticsCommandInput, GetFindingsStatisticsCommandOutput } from "./commands/GetFindingsStatisticsCommand";
28
31
  import type { GetFindingV2CommandInput, GetFindingV2CommandOutput } from "./commands/GetFindingV2Command";
29
32
  import type { GetGeneratedPolicyCommandInput, GetGeneratedPolicyCommandOutput } from "./commands/GetGeneratedPolicyCommand";
33
+ import type { GetPolicyPreviewConfigurationCommandInput, GetPolicyPreviewConfigurationCommandOutput } from "./commands/GetPolicyPreviewConfigurationCommand";
34
+ import type { GetPolicyPreviewJobCommandInput, GetPolicyPreviewJobCommandOutput } from "./commands/GetPolicyPreviewJobCommand";
30
35
  import type { ListAccessPreviewFindingsCommandInput, ListAccessPreviewFindingsCommandOutput } from "./commands/ListAccessPreviewFindingsCommand";
31
36
  import type { ListAccessPreviewsCommandInput, ListAccessPreviewsCommandOutput } from "./commands/ListAccessPreviewsCommand";
32
37
  import type { ListAnalyzedResourcesCommandInput, ListAnalyzedResourcesCommandOutput } from "./commands/ListAnalyzedResourcesCommand";
@@ -35,8 +40,10 @@ import type { ListArchiveRulesCommandInput, ListArchiveRulesCommandOutput } from
35
40
  import type { ListFindingsCommandInput, ListFindingsCommandOutput } from "./commands/ListFindingsCommand";
36
41
  import type { ListFindingsV2CommandInput, ListFindingsV2CommandOutput } from "./commands/ListFindingsV2Command";
37
42
  import type { ListPolicyGenerationsCommandInput, ListPolicyGenerationsCommandOutput } from "./commands/ListPolicyGenerationsCommand";
43
+ import type { ListPolicyPreviewJobsCommandInput, ListPolicyPreviewJobsCommandOutput } from "./commands/ListPolicyPreviewJobsCommand";
38
44
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
39
45
  import type { StartPolicyGenerationCommandInput, StartPolicyGenerationCommandOutput } from "./commands/StartPolicyGenerationCommand";
46
+ import type { StartPolicyPreviewJobCommandInput, StartPolicyPreviewJobCommandOutput } from "./commands/StartPolicyPreviewJobCommand";
40
47
  import type { StartResourceScanCommandInput, StartResourceScanCommandOutput } from "./commands/StartResourceScanCommand";
41
48
  import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
42
49
  import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -50,11 +57,11 @@ export { __Client };
50
57
  /**
51
58
  * @public
52
59
  */
53
- export type ServiceInputTypes = ApplyArchiveRuleCommandInput | CancelPolicyGenerationCommandInput | CheckAccessNotGrantedCommandInput | CheckNoNewAccessCommandInput | CheckNoPublicAccessCommandInput | CreateAccessPreviewCommandInput | CreateAnalyzerCommandInput | CreateArchiveRuleCommandInput | DeleteAnalyzerCommandInput | DeleteArchiveRuleCommandInput | GenerateFindingRecommendationCommandInput | GetAccessPreviewCommandInput | GetAnalyzedResourceCommandInput | GetAnalyzerCommandInput | GetArchiveRuleCommandInput | GetFindingCommandInput | GetFindingRecommendationCommandInput | GetFindingV2CommandInput | GetFindingsStatisticsCommandInput | GetGeneratedPolicyCommandInput | ListAccessPreviewFindingsCommandInput | ListAccessPreviewsCommandInput | ListAnalyzedResourcesCommandInput | ListAnalyzersCommandInput | ListArchiveRulesCommandInput | ListFindingsCommandInput | ListFindingsV2CommandInput | ListPolicyGenerationsCommandInput | ListTagsForResourceCommandInput | StartPolicyGenerationCommandInput | StartResourceScanCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnalyzerCommandInput | UpdateArchiveRuleCommandInput | UpdateFindingsCommandInput | ValidatePolicyCommandInput;
60
+ export type ServiceInputTypes = ApplyArchiveRuleCommandInput | CancelPolicyGenerationCommandInput | CancelPolicyPreviewJobCommandInput | CheckAccessNotGrantedCommandInput | CheckNoNewAccessCommandInput | CheckNoPublicAccessCommandInput | CreateAccessPreviewCommandInput | CreateAnalyzerCommandInput | CreateArchiveRuleCommandInput | CreatePolicyPreviewConfigurationCommandInput | DeleteAnalyzerCommandInput | DeleteArchiveRuleCommandInput | DeletePolicyPreviewConfigurationCommandInput | GenerateFindingRecommendationCommandInput | GetAccessPreviewCommandInput | GetAnalyzedResourceCommandInput | GetAnalyzerCommandInput | GetArchiveRuleCommandInput | GetFindingCommandInput | GetFindingRecommendationCommandInput | GetFindingV2CommandInput | GetFindingsStatisticsCommandInput | GetGeneratedPolicyCommandInput | GetPolicyPreviewConfigurationCommandInput | GetPolicyPreviewJobCommandInput | ListAccessPreviewFindingsCommandInput | ListAccessPreviewsCommandInput | ListAnalyzedResourcesCommandInput | ListAnalyzersCommandInput | ListArchiveRulesCommandInput | ListFindingsCommandInput | ListFindingsV2CommandInput | ListPolicyGenerationsCommandInput | ListPolicyPreviewJobsCommandInput | ListTagsForResourceCommandInput | StartPolicyGenerationCommandInput | StartPolicyPreviewJobCommandInput | StartResourceScanCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnalyzerCommandInput | UpdateArchiveRuleCommandInput | UpdateFindingsCommandInput | ValidatePolicyCommandInput;
54
61
  /**
55
62
  * @public
56
63
  */
57
- export type ServiceOutputTypes = ApplyArchiveRuleCommandOutput | CancelPolicyGenerationCommandOutput | CheckAccessNotGrantedCommandOutput | CheckNoNewAccessCommandOutput | CheckNoPublicAccessCommandOutput | CreateAccessPreviewCommandOutput | CreateAnalyzerCommandOutput | CreateArchiveRuleCommandOutput | DeleteAnalyzerCommandOutput | DeleteArchiveRuleCommandOutput | GenerateFindingRecommendationCommandOutput | GetAccessPreviewCommandOutput | GetAnalyzedResourceCommandOutput | GetAnalyzerCommandOutput | GetArchiveRuleCommandOutput | GetFindingCommandOutput | GetFindingRecommendationCommandOutput | GetFindingV2CommandOutput | GetFindingsStatisticsCommandOutput | GetGeneratedPolicyCommandOutput | ListAccessPreviewFindingsCommandOutput | ListAccessPreviewsCommandOutput | ListAnalyzedResourcesCommandOutput | ListAnalyzersCommandOutput | ListArchiveRulesCommandOutput | ListFindingsCommandOutput | ListFindingsV2CommandOutput | ListPolicyGenerationsCommandOutput | ListTagsForResourceCommandOutput | StartPolicyGenerationCommandOutput | StartResourceScanCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnalyzerCommandOutput | UpdateArchiveRuleCommandOutput | UpdateFindingsCommandOutput | ValidatePolicyCommandOutput;
64
+ export type ServiceOutputTypes = ApplyArchiveRuleCommandOutput | CancelPolicyGenerationCommandOutput | CancelPolicyPreviewJobCommandOutput | CheckAccessNotGrantedCommandOutput | CheckNoNewAccessCommandOutput | CheckNoPublicAccessCommandOutput | CreateAccessPreviewCommandOutput | CreateAnalyzerCommandOutput | CreateArchiveRuleCommandOutput | CreatePolicyPreviewConfigurationCommandOutput | DeleteAnalyzerCommandOutput | DeleteArchiveRuleCommandOutput | DeletePolicyPreviewConfigurationCommandOutput | GenerateFindingRecommendationCommandOutput | GetAccessPreviewCommandOutput | GetAnalyzedResourceCommandOutput | GetAnalyzerCommandOutput | GetArchiveRuleCommandOutput | GetFindingCommandOutput | GetFindingRecommendationCommandOutput | GetFindingV2CommandOutput | GetFindingsStatisticsCommandOutput | GetGeneratedPolicyCommandOutput | GetPolicyPreviewConfigurationCommandOutput | GetPolicyPreviewJobCommandOutput | ListAccessPreviewFindingsCommandOutput | ListAccessPreviewsCommandOutput | ListAnalyzedResourcesCommandOutput | ListAnalyzersCommandOutput | ListArchiveRulesCommandOutput | ListFindingsCommandOutput | ListFindingsV2CommandOutput | ListPolicyGenerationsCommandOutput | ListPolicyPreviewJobsCommandOutput | ListTagsForResourceCommandOutput | StartPolicyGenerationCommandOutput | StartPolicyPreviewJobCommandOutput | StartResourceScanCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnalyzerCommandOutput | UpdateArchiveRuleCommandOutput | UpdateFindingsCommandOutput | ValidatePolicyCommandOutput;
58
65
  /**
59
66
  * @public
60
67
  */
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
4
+ import type { CancelPolicyPreviewJobRequest, CancelPolicyPreviewJobResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CancelPolicyPreviewJobCommand}.
14
+ */
15
+ export interface CancelPolicyPreviewJobCommandInput extends CancelPolicyPreviewJobRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CancelPolicyPreviewJobCommand}.
21
+ */
22
+ export interface CancelPolicyPreviewJobCommandOutput extends CancelPolicyPreviewJobResponse, __MetadataBearer {
23
+ }
24
+ declare const CancelPolicyPreviewJobCommand_base: {
25
+ new (input: CancelPolicyPreviewJobCommandInput): import("@smithy/smithy-client").CommandImpl<CancelPolicyPreviewJobCommandInput, CancelPolicyPreviewJobCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CancelPolicyPreviewJobCommandInput): import("@smithy/smithy-client").CommandImpl<CancelPolicyPreviewJobCommandInput, CancelPolicyPreviewJobCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Cancels an in-progress policy preview job. Jobs that are already completed, failed, or canceled cannot be canceled.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AccessAnalyzerClient, CancelPolicyPreviewJobCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import
35
+ * // const { AccessAnalyzerClient, CancelPolicyPreviewJobCommand } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import
36
+ * // import type { AccessAnalyzerClientConfig } from "@aws-sdk/client-accessanalyzer";
37
+ * const config = {}; // type is AccessAnalyzerClientConfig
38
+ * const client = new AccessAnalyzerClient(config);
39
+ * const input = { // CancelPolicyPreviewJobRequest
40
+ * jobId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new CancelPolicyPreviewJobCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param CancelPolicyPreviewJobCommandInput - {@link CancelPolicyPreviewJobCommandInput}
49
+ * @returns {@link CancelPolicyPreviewJobCommandOutput}
50
+ * @see {@link CancelPolicyPreviewJobCommandInput} for command's `input` shape.
51
+ * @see {@link CancelPolicyPreviewJobCommandOutput} for command's `response` shape.
52
+ * @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient access to perform this action.</p>
56
+ *
57
+ * @throws {@link InternalServerException} (server fault)
58
+ * <p>Internal server error.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The specified resource could not be found.</p>
62
+ *
63
+ * @throws {@link ThrottlingException} (client fault)
64
+ * <p>Throttling limit exceeded error.</p>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p>Validation exception error.</p>
68
+ *
69
+ * @throws {@link AccessAnalyzerServiceException}
70
+ * <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
71
+ *
72
+ *
73
+ * @example Successfully canceled policy preview job
74
+ * ```javascript
75
+ * //
76
+ * const input = {
77
+ * jobId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
78
+ * };
79
+ * const command = new CancelPolicyPreviewJobCommand(input);
80
+ * const response = await client.send(command);
81
+ * /* response is
82
+ * { /* empty *\/ }
83
+ * *\/
84
+ * ```
85
+ *
86
+ * @public
87
+ */
88
+ export declare class CancelPolicyPreviewJobCommand extends CancelPolicyPreviewJobCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: CancelPolicyPreviewJobRequest;
93
+ output: {};
94
+ };
95
+ sdk: {
96
+ input: CancelPolicyPreviewJobCommandInput;
97
+ output: CancelPolicyPreviewJobCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -0,0 +1,109 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
4
+ import type { CreatePolicyPreviewConfigurationRequest, CreatePolicyPreviewConfigurationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreatePolicyPreviewConfigurationCommand}.
14
+ */
15
+ export interface CreatePolicyPreviewConfigurationCommandInput extends CreatePolicyPreviewConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreatePolicyPreviewConfigurationCommand}.
21
+ */
22
+ export interface CreatePolicyPreviewConfigurationCommandOutput extends CreatePolicyPreviewConfigurationResponse, __MetadataBearer {
23
+ }
24
+ declare const CreatePolicyPreviewConfigurationCommand_base: {
25
+ new (input: CreatePolicyPreviewConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePolicyPreviewConfigurationCommandInput, CreatePolicyPreviewConfigurationCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [CreatePolicyPreviewConfigurationCommandInput]): import("@smithy/smithy-client").CommandImpl<CreatePolicyPreviewConfigurationCommandInput, CreatePolicyPreviewConfigurationCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a policy preview configuration for your account. The configuration enables IAM Access Analyzer to collect and store CloudTrail authorization events needed for policy preview analysis.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AccessAnalyzerClient, CreatePolicyPreviewConfigurationCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import
35
+ * // const { AccessAnalyzerClient, CreatePolicyPreviewConfigurationCommand } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import
36
+ * // import type { AccessAnalyzerClientConfig } from "@aws-sdk/client-accessanalyzer";
37
+ * const config = {}; // type is AccessAnalyzerClientConfig
38
+ * const client = new AccessAnalyzerClient(config);
39
+ * const input = { // CreatePolicyPreviewConfigurationRequest
40
+ * clientToken: "STRING_VALUE",
41
+ * scope: "STRING_VALUE",
42
+ * };
43
+ * const command = new CreatePolicyPreviewConfigurationCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // CreatePolicyPreviewConfigurationResponse
46
+ * // status: "STRING_VALUE", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param CreatePolicyPreviewConfigurationCommandInput - {@link CreatePolicyPreviewConfigurationCommandInput}
52
+ * @returns {@link CreatePolicyPreviewConfigurationCommandOutput}
53
+ * @see {@link CreatePolicyPreviewConfigurationCommandInput} for command's `input` shape.
54
+ * @see {@link CreatePolicyPreviewConfigurationCommandOutput} for command's `response` shape.
55
+ * @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>You do not have sufficient access to perform this action.</p>
59
+ *
60
+ * @throws {@link ConflictException} (client fault)
61
+ * <p>A conflict exception error.</p>
62
+ *
63
+ * @throws {@link InternalServerException} (server fault)
64
+ * <p>Internal server error.</p>
65
+ *
66
+ * @throws {@link ServiceQuotaExceededException} (client fault)
67
+ * <p>Service quote met error.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>Throttling limit exceeded error.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>Validation exception error.</p>
74
+ *
75
+ * @throws {@link AccessAnalyzerServiceException}
76
+ * <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
77
+ *
78
+ *
79
+ * @example Successfully created policy preview configuration
80
+ * ```javascript
81
+ * //
82
+ * const input = {
83
+ * clientToken: "unique-token-123",
84
+ * scope: "GLOBAL"
85
+ * };
86
+ * const command = new CreatePolicyPreviewConfigurationCommand(input);
87
+ * const response = await client.send(command);
88
+ * /* response is
89
+ * {
90
+ * status: "PENDING_CREATION"
91
+ * }
92
+ * *\/
93
+ * ```
94
+ *
95
+ * @public
96
+ */
97
+ export declare class CreatePolicyPreviewConfigurationCommand extends CreatePolicyPreviewConfigurationCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: CreatePolicyPreviewConfigurationRequest;
102
+ output: CreatePolicyPreviewConfigurationResponse;
103
+ };
104
+ sdk: {
105
+ input: CreatePolicyPreviewConfigurationCommandInput;
106
+ output: CreatePolicyPreviewConfigurationCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
4
+ import type { DeletePolicyPreviewConfigurationRequest, DeletePolicyPreviewConfigurationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeletePolicyPreviewConfigurationCommand}.
14
+ */
15
+ export interface DeletePolicyPreviewConfigurationCommandInput extends DeletePolicyPreviewConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeletePolicyPreviewConfigurationCommand}.
21
+ */
22
+ export interface DeletePolicyPreviewConfigurationCommandOutput extends DeletePolicyPreviewConfigurationResponse, __MetadataBearer {
23
+ }
24
+ declare const DeletePolicyPreviewConfigurationCommand_base: {
25
+ new (input: DeletePolicyPreviewConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePolicyPreviewConfigurationCommandInput, DeletePolicyPreviewConfigurationCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [DeletePolicyPreviewConfigurationCommandInput]): import("@smithy/smithy-client").CommandImpl<DeletePolicyPreviewConfigurationCommandInput, DeletePolicyPreviewConfigurationCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes the policy preview configuration for your account. After deletion, IAM Access Analyzer will stop collecting CloudTrail authorization events for policy preview analysis.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AccessAnalyzerClient, DeletePolicyPreviewConfigurationCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import
35
+ * // const { AccessAnalyzerClient, DeletePolicyPreviewConfigurationCommand } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import
36
+ * // import type { AccessAnalyzerClientConfig } from "@aws-sdk/client-accessanalyzer";
37
+ * const config = {}; // type is AccessAnalyzerClientConfig
38
+ * const client = new AccessAnalyzerClient(config);
39
+ * const input = { // DeletePolicyPreviewConfigurationRequest
40
+ * clientToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new DeletePolicyPreviewConfigurationCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeletePolicyPreviewConfigurationCommandInput - {@link DeletePolicyPreviewConfigurationCommandInput}
49
+ * @returns {@link DeletePolicyPreviewConfigurationCommandOutput}
50
+ * @see {@link DeletePolicyPreviewConfigurationCommandInput} for command's `input` shape.
51
+ * @see {@link DeletePolicyPreviewConfigurationCommandOutput} for command's `response` shape.
52
+ * @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient access to perform this action.</p>
56
+ *
57
+ * @throws {@link InternalServerException} (server fault)
58
+ * <p>Internal server error.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The specified resource could not be found.</p>
62
+ *
63
+ * @throws {@link ThrottlingException} (client fault)
64
+ * <p>Throttling limit exceeded error.</p>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p>Validation exception error.</p>
68
+ *
69
+ * @throws {@link AccessAnalyzerServiceException}
70
+ * <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
71
+ *
72
+ *
73
+ * @example Successfully deleted policy preview configuration
74
+ * ```javascript
75
+ * //
76
+ * const input = {
77
+ * clientToken: "unique-token-456"
78
+ * };
79
+ * const command = new DeletePolicyPreviewConfigurationCommand(input);
80
+ * const response = await client.send(command);
81
+ * /* response is
82
+ * { /* empty *\/ }
83
+ * *\/
84
+ * ```
85
+ *
86
+ * @public
87
+ */
88
+ export declare class DeletePolicyPreviewConfigurationCommand extends DeletePolicyPreviewConfigurationCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: DeletePolicyPreviewConfigurationRequest;
93
+ output: {};
94
+ };
95
+ sdk: {
96
+ input: DeletePolicyPreviewConfigurationCommandInput;
97
+ output: DeletePolicyPreviewConfigurationCommandOutput;
98
+ };
99
+ };
100
+ }