@aws-sdk/client-auditmanager 3.76.0 → 3.80.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 (37) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/pagination/GetChangeLogsPaginator.js +2 -1
  3. package/dist-cjs/pagination/GetDelegationsPaginator.js +2 -1
  4. package/dist-cjs/pagination/GetEvidenceByEvidenceFolderPaginator.js +2 -1
  5. package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +2 -1
  6. package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentPaginator.js +2 -1
  7. package/dist-cjs/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +2 -1
  8. package/dist-cjs/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +2 -1
  9. package/dist-cjs/pagination/ListAssessmentFrameworksPaginator.js +2 -1
  10. package/dist-cjs/pagination/ListAssessmentReportsPaginator.js +2 -1
  11. package/dist-cjs/pagination/ListAssessmentsPaginator.js +2 -1
  12. package/dist-cjs/pagination/ListControlDomainInsightsByAssessmentPaginator.js +2 -1
  13. package/dist-cjs/pagination/ListControlDomainInsightsPaginator.js +2 -1
  14. package/dist-cjs/pagination/ListControlInsightsByControlDomainPaginator.js +2 -1
  15. package/dist-cjs/pagination/ListControlsPaginator.js +2 -1
  16. package/dist-cjs/pagination/ListKeywordsForDataSourcePaginator.js +2 -1
  17. package/dist-cjs/pagination/ListNotificationsPaginator.js +2 -1
  18. package/dist-es/pagination/GetChangeLogsPaginator.js +3 -2
  19. package/dist-es/pagination/GetDelegationsPaginator.js +3 -2
  20. package/dist-es/pagination/GetEvidenceByEvidenceFolderPaginator.js +3 -2
  21. package/dist-es/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +3 -2
  22. package/dist-es/pagination/GetEvidenceFoldersByAssessmentPaginator.js +3 -2
  23. package/dist-es/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +3 -2
  24. package/dist-es/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +3 -2
  25. package/dist-es/pagination/ListAssessmentFrameworksPaginator.js +3 -2
  26. package/dist-es/pagination/ListAssessmentReportsPaginator.js +3 -2
  27. package/dist-es/pagination/ListAssessmentsPaginator.js +3 -2
  28. package/dist-es/pagination/ListControlDomainInsightsByAssessmentPaginator.js +3 -2
  29. package/dist-es/pagination/ListControlDomainInsightsPaginator.js +3 -2
  30. package/dist-es/pagination/ListControlInsightsByControlDomainPaginator.js +3 -2
  31. package/dist-es/pagination/ListControlsPaginator.js +3 -2
  32. package/dist-es/pagination/ListKeywordsForDataSourcePaginator.js +3 -2
  33. package/dist-es/pagination/ListNotificationsPaginator.js +3 -2
  34. package/dist-types/AuditManager.d.ts +21 -1
  35. package/dist-types/commands/DeleteAssessmentReportCommand.d.ts +21 -1
  36. package/dist-types/models/models_0.d.ts +65 -3
  37. package/package.json +25 -25
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.80.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.79.0...v3.80.0) (2022-04-28)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-auditmanager
9
+
10
+
11
+
12
+
13
+
14
+ # [3.79.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.78.0...v3.79.0) (2022-04-27)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-auditmanager
17
+
18
+
19
+
20
+
21
+
22
+ # [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
23
+
24
+
25
+ ### Features
26
+
27
+ * **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-auditmanager
@@ -27,8 +27,9 @@ async function* paginateGetChangeLogs(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateGetDelegations(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateGetEvidenceByEvidenceFolder(config, input, ...additional
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateGetEvidenceFoldersByAssessmentControl(config, input, ...
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateGetEvidenceFoldersByAssessment(config, input, ...additio
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListAssessmentControlInsightsByControlDomain(config, inp
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListAssessmentFrameworkShareRequests(config, input, ...a
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListAssessmentFrameworks(config, input, ...additionalArg
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListAssessmentReports(config, input, ...additionalArgume
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListAssessments(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListControlDomainInsightsByAssessment(config, input, ...
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListControlDomainInsights(config, input, ...additionalAr
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListControlInsightsByControlDomain(config, input, ...add
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListControls(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListKeywordsForDataSource(config, input, ...additionalAr
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListNotifications(config, input, ...additionalArguments)
27
27
  throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.nextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -36,7 +36,7 @@ export function paginateGetChangeLogs(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetChangeLogs_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetChangeLogs(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetDelegations(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetDelegations_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetDelegations(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetEvidenceByEvidenceFolder(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetEvidenceByEvidenceFolder_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetEvidenceByEvidenceFolder(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetEvidenceFoldersByAssessmentControl(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetEvidenceFoldersByAssessmentControl_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetEvidenceFoldersByAssessmentControl(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetEvidenceFoldersByAssessment(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetEvidenceFoldersByAssessment_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetEvidenceFoldersByAssessment(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListAssessmentControlInsightsByControlDomain(config, inp
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListAssessmentControlInsightsByControlDomain_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListAssessmentControlInsightsByControlDomain(config, inp
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListAssessmentFrameworkShareRequests(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListAssessmentFrameworkShareRequests_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListAssessmentFrameworkShareRequests(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListAssessmentFrameworks(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListAssessmentFrameworks_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListAssessmentFrameworks(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListAssessmentReports(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListAssessmentReports_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListAssessmentReports(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListAssessments(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListAssessments_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListAssessments(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListControlDomainInsightsByAssessment(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListControlDomainInsightsByAssessment_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListControlDomainInsightsByAssessment(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListControlDomainInsights(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListControlDomainInsights_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListControlDomainInsights(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListControlInsightsByControlDomain(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListControlInsightsByControlDomain_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListControlInsightsByControlDomain(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListControls(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListControls_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListControls(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListKeywordsForDataSource(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListKeywordsForDataSource_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListKeywordsForDataSource(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListNotifications(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListNotifications_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListNotifications(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -185,7 +185,27 @@ export declare class AuditManager extends AuditManagerClient {
185
185
  deleteAssessmentFrameworkShare(args: DeleteAssessmentFrameworkShareCommandInput, cb: (err: any, data?: DeleteAssessmentFrameworkShareCommandOutput) => void): void;
186
186
  deleteAssessmentFrameworkShare(args: DeleteAssessmentFrameworkShareCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAssessmentFrameworkShareCommandOutput) => void): void;
187
187
  /**
188
- * <p> Deletes an assessment report from an assessment in Audit Manager. </p>
188
+ * <p>Deletes an assessment report in Audit Manager. </p>
189
+ * <p>When you run the <code>DeleteAssessmentReport</code> operation, Audit Manager attempts to delete the following data:</p>
190
+ * <ol>
191
+ * <li>
192
+ * <p>The specified assessment report that’s stored in your S3 bucket</p>
193
+ * </li>
194
+ * <li>
195
+ * <p>The associated metadata that’s stored in Audit Manager</p>
196
+ * </li>
197
+ * </ol>
198
+ * <p>If Audit Manager can’t access the assessment report in your S3 bucket, the report
199
+ * isn’t deleted. In this event, the <code>DeleteAssessmentReport</code> operation doesn’t
200
+ * fail. Instead, it proceeds to delete the associated metadata only. You must then delete the
201
+ * assessment report from the S3 bucket yourself. </p>
202
+ * <p>This scenario happens when Audit Manager receives a <code>403 (Forbidden)</code> or
203
+ * <code>404 (Not Found)</code> error from Amazon S3. To avoid this, make sure that
204
+ * your S3 bucket is available, and that you configured the correct permissions for Audit Manager to delete resources in your S3 bucket. For an example permissions policy that
205
+ * you can use, see <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/security_iam_id-based-policy-examples.html#full-administrator-access-assessment-report-destination">Assessment report destination permissions</a> in the <i>Audit Manager User Guide</i>. For information about the issues that could cause a <code>403
206
+ * (Forbidden)</code> or <code>404 (Not Found</code>) error from Amazon S3, see
207
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">List of Error Codes</a> in the <i>Amazon Simple Storage Service API
208
+ * Reference</i>. </p>
189
209
  */
190
210
  deleteAssessmentReport(args: DeleteAssessmentReportCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAssessmentReportCommandOutput>;
191
211
  deleteAssessmentReport(args: DeleteAssessmentReportCommandInput, cb: (err: any, data?: DeleteAssessmentReportCommandOutput) => void): void;
@@ -7,7 +7,27 @@ export interface DeleteAssessmentReportCommandInput extends DeleteAssessmentRepo
7
7
  export interface DeleteAssessmentReportCommandOutput extends DeleteAssessmentReportResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p> Deletes an assessment report from an assessment in Audit Manager. </p>
10
+ * <p>Deletes an assessment report in Audit Manager. </p>
11
+ * <p>When you run the <code>DeleteAssessmentReport</code> operation, Audit Manager attempts to delete the following data:</p>
12
+ * <ol>
13
+ * <li>
14
+ * <p>The specified assessment report that’s stored in your S3 bucket</p>
15
+ * </li>
16
+ * <li>
17
+ * <p>The associated metadata that’s stored in Audit Manager</p>
18
+ * </li>
19
+ * </ol>
20
+ * <p>If Audit Manager can’t access the assessment report in your S3 bucket, the report
21
+ * isn’t deleted. In this event, the <code>DeleteAssessmentReport</code> operation doesn’t
22
+ * fail. Instead, it proceeds to delete the associated metadata only. You must then delete the
23
+ * assessment report from the S3 bucket yourself. </p>
24
+ * <p>This scenario happens when Audit Manager receives a <code>403 (Forbidden)</code> or
25
+ * <code>404 (Not Found)</code> error from Amazon S3. To avoid this, make sure that
26
+ * your S3 bucket is available, and that you configured the correct permissions for Audit Manager to delete resources in your S3 bucket. For an example permissions policy that
27
+ * you can use, see <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/security_iam_id-based-policy-examples.html#full-administrator-access-assessment-report-destination">Assessment report destination permissions</a> in the <i>Audit Manager User Guide</i>. For information about the issues that could cause a <code>403
28
+ * (Forbidden)</code> or <code>404 (Not Found</code>) error from Amazon S3, see
29
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">List of Error Codes</a> in the <i>Amazon Simple Storage Service API
30
+ * Reference</i>. </p>
11
31
  * @example
12
32
  * Use a bare-bones client and the command you need to make an API call.
13
33
  * ```javascript
@@ -1430,12 +1430,74 @@ export declare enum KeywordInputType {
1430
1430
  */
1431
1431
  export interface SourceKeyword {
1432
1432
  /**
1433
- * <p> The method of input for the keyword. </p>
1433
+ * <p> The input method for the keyword. </p>
1434
1434
  */
1435
1435
  keywordInputType?: KeywordInputType | string;
1436
1436
  /**
1437
- * <p> The value of the keyword that's used to search CloudTrail logs, Config rules, Security Hub checks, and Amazon Web Services API names
1438
- * when mapping a control data source. </p>
1437
+ * <p> The value of the keyword that's used when mapping a control data source. For example,
1438
+ * this can be a CloudTrail event name, a rule name for Config, a
1439
+ * Security Hub control, or the name of an Amazon Web Services API call. </p>
1440
+ * <p>If you’re mapping a data source to a rule in Config, the
1441
+ * <code>keywordValue</code> that you specify depends on the type of rule:</p>
1442
+ * <ul>
1443
+ * <li>
1444
+ * <p>For <a href="https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html">managed rules</a>, you can use the rule identifier as the
1445
+ * <code>keywordValue</code>. You can find the rule identifier from the <a href="https://docs.aws.amazon.com/config/latest/developerguide/managed-rules-by-aws-config.html">list of Config managed rules</a>.</p>
1446
+ * <ul>
1447
+ * <li>
1448
+ * <p>Managed rule name: <a href="https://docs.aws.amazon.com/config/latest/developerguide/s3-bucket-acl-prohibited.html">s3-bucket-acl-prohibited</a>
1449
+ * </p>
1450
+ * <p>
1451
+ * <code>keywordValue</code>: <code>S3_BUCKET_ACL_PROHIBITED</code>
1452
+ * </p>
1453
+ * </li>
1454
+ * </ul>
1455
+ * </li>
1456
+ * <li>
1457
+ * <p>For <a href="https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_develop-rules.html">custom rules</a>, you form the <code>keywordValue</code>
1458
+ * by adding the <code>Custom_</code> prefix to the rule name. This prefix distinguishes
1459
+ * the rule from a managed rule.</p>
1460
+ * <ul>
1461
+ * <li>
1462
+ * <p>Custom rule name: my-custom-config-rule</p>
1463
+ * <p>
1464
+ * <code>keywordValue</code>: <code>Custom_my-custom-config-rule</code>
1465
+ * </p>
1466
+ * </li>
1467
+ * </ul>
1468
+ * </li>
1469
+ * <li>
1470
+ * <p>For <a href="https://docs.aws.amazon.com/config/latest/developerguide/service-linked-awsconfig-rules.html">service-linked rules</a>, you form the
1471
+ * <code>keywordValue</code> by adding the <code>Custom_</code> prefix to the rule
1472
+ * name. In addition, you remove the suffix ID that appears at the end of the rule
1473
+ * name.</p>
1474
+ * <ul>
1475
+ * <li>
1476
+ * <p>Service-linked rule name:
1477
+ * CustomRuleForAccount-conformance-pack-szsm1uv0w</p>
1478
+ * <p>
1479
+ * <code>keywordValue</code>:
1480
+ * <code>Custom_CustomRuleForAccount-conformance-pack</code>
1481
+ * </p>
1482
+ * </li>
1483
+ * <li>
1484
+ * <p>Service-linked rule name: securityhub-api-gw-cache-encrypted-101104e1</p>
1485
+ * <p>
1486
+ * <code>keywordValue</code>:
1487
+ * <code>Custom_securityhub-api-gw-cache-encrypted</code>
1488
+ * </p>
1489
+ * </li>
1490
+ * <li>
1491
+ * <p>Service-linked rule name:
1492
+ * OrgConfigRule-s3-bucket-versioning-enabled-dbgzf8ba</p>
1493
+ * <p>
1494
+ * <code>keywordValue</code>:
1495
+ * <code>Custom_OrgConfigRule-s3-bucket-versioning-enabled</code>
1496
+ * </p>
1497
+ * </li>
1498
+ * </ul>
1499
+ * </li>
1500
+ * </ul>
1439
1501
  */
1440
1502
  keywordValue?: string;
1441
1503
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auditmanager",
3
3
  "description": "AWS SDK for JavaScript Auditmanager Client for Node.js, Browser and React Native",
4
- "version": "3.76.0",
4
+ "version": "3.80.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.76.0",
22
- "@aws-sdk/config-resolver": "3.75.0",
23
- "@aws-sdk/credential-provider-node": "3.76.0",
24
- "@aws-sdk/fetch-http-handler": "3.58.0",
25
- "@aws-sdk/hash-node": "3.55.0",
26
- "@aws-sdk/invalid-dependency": "3.55.0",
27
- "@aws-sdk/middleware-content-length": "3.58.0",
28
- "@aws-sdk/middleware-host-header": "3.58.0",
29
- "@aws-sdk/middleware-logger": "3.55.0",
30
- "@aws-sdk/middleware-retry": "3.75.0",
31
- "@aws-sdk/middleware-serde": "3.55.0",
32
- "@aws-sdk/middleware-signing": "3.58.0",
33
- "@aws-sdk/middleware-stack": "3.55.0",
34
- "@aws-sdk/middleware-user-agent": "3.58.0",
35
- "@aws-sdk/node-config-provider": "3.75.0",
36
- "@aws-sdk/node-http-handler": "3.76.0",
37
- "@aws-sdk/protocol-http": "3.58.0",
38
- "@aws-sdk/smithy-client": "3.72.0",
39
- "@aws-sdk/types": "3.55.0",
40
- "@aws-sdk/url-parser": "3.55.0",
21
+ "@aws-sdk/client-sts": "3.80.0",
22
+ "@aws-sdk/config-resolver": "3.80.0",
23
+ "@aws-sdk/credential-provider-node": "3.80.0",
24
+ "@aws-sdk/fetch-http-handler": "3.78.0",
25
+ "@aws-sdk/hash-node": "3.78.0",
26
+ "@aws-sdk/invalid-dependency": "3.78.0",
27
+ "@aws-sdk/middleware-content-length": "3.78.0",
28
+ "@aws-sdk/middleware-host-header": "3.78.0",
29
+ "@aws-sdk/middleware-logger": "3.78.0",
30
+ "@aws-sdk/middleware-retry": "3.80.0",
31
+ "@aws-sdk/middleware-serde": "3.78.0",
32
+ "@aws-sdk/middleware-signing": "3.78.0",
33
+ "@aws-sdk/middleware-stack": "3.78.0",
34
+ "@aws-sdk/middleware-user-agent": "3.78.0",
35
+ "@aws-sdk/node-config-provider": "3.80.0",
36
+ "@aws-sdk/node-http-handler": "3.78.0",
37
+ "@aws-sdk/protocol-http": "3.78.0",
38
+ "@aws-sdk/smithy-client": "3.78.0",
39
+ "@aws-sdk/types": "3.78.0",
40
+ "@aws-sdk/url-parser": "3.78.0",
41
41
  "@aws-sdk/util-base64-browser": "3.58.0",
42
42
  "@aws-sdk/util-base64-node": "3.55.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.72.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.75.0",
47
- "@aws-sdk/util-user-agent-browser": "3.58.0",
48
- "@aws-sdk/util-user-agent-node": "3.75.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.78.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.80.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.78.0",
48
+ "@aws-sdk/util-user-agent-node": "3.80.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",
50
50
  "@aws-sdk/util-utf8-node": "3.55.0",
51
51
  "tslib": "^2.3.1"