@aws-sdk/client-auditmanager 3.215.0 → 3.218.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.
@@ -303,7 +303,7 @@ const serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async (input
303
303
  "/assessmentFrameworkShareRequests/{requestId}";
304
304
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
305
305
  const query = map({
306
- requestType: [, input.requestType],
306
+ requestType: [, (0, smithy_client_1.expectNonNull)(input.requestType, `requestType`)],
307
307
  });
308
308
  let body;
309
309
  return new protocol_http_1.HttpRequest({
@@ -762,8 +762,8 @@ const serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand
762
762
  const headers = {};
763
763
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment";
764
764
  const query = map({
765
- controlDomainId: [, input.controlDomainId],
766
- assessmentId: [, input.assessmentId],
765
+ controlDomainId: [, (0, smithy_client_1.expectNonNull)(input.controlDomainId, `controlDomainId`)],
766
+ assessmentId: [, (0, smithy_client_1.expectNonNull)(input.assessmentId, `assessmentId`)],
767
767
  nextToken: [, input.nextToken],
768
768
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
769
769
  });
@@ -785,7 +785,7 @@ const serializeAws_restJson1ListAssessmentFrameworksCommand = async (input, cont
785
785
  const headers = {};
786
786
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
787
787
  const query = map({
788
- frameworkType: [, input.frameworkType],
788
+ frameworkType: [, (0, smithy_client_1.expectNonNull)(input.frameworkType, `frameworkType`)],
789
789
  nextToken: [, input.nextToken],
790
790
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
791
791
  });
@@ -807,7 +807,7 @@ const serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = async
807
807
  const headers = {};
808
808
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworkShareRequests";
809
809
  const query = map({
810
- requestType: [, input.requestType],
810
+ requestType: [, (0, smithy_client_1.expectNonNull)(input.requestType, `requestType`)],
811
811
  nextToken: [, input.nextToken],
812
812
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
813
813
  });
@@ -893,7 +893,7 @@ const serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = async
893
893
  const headers = {};
894
894
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment";
895
895
  const query = map({
896
- assessmentId: [, input.assessmentId],
896
+ assessmentId: [, (0, smithy_client_1.expectNonNull)(input.assessmentId, `assessmentId`)],
897
897
  nextToken: [, input.nextToken],
898
898
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
899
899
  });
@@ -915,7 +915,7 @@ const serializeAws_restJson1ListControlInsightsByControlDomainCommand = async (i
915
915
  const headers = {};
916
916
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls";
917
917
  const query = map({
918
- controlDomainId: [, input.controlDomainId],
918
+ controlDomainId: [, (0, smithy_client_1.expectNonNull)(input.controlDomainId, `controlDomainId`)],
919
919
  nextToken: [, input.nextToken],
920
920
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
921
921
  });
@@ -937,7 +937,7 @@ const serializeAws_restJson1ListControlsCommand = async (input, context) => {
937
937
  const headers = {};
938
938
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
939
939
  const query = map({
940
- controlType: [, input.controlType],
940
+ controlType: [, (0, smithy_client_1.expectNonNull)(input.controlType, `controlType`)],
941
941
  nextToken: [, input.nextToken],
942
942
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
943
943
  });
@@ -959,7 +959,7 @@ const serializeAws_restJson1ListKeywordsForDataSourceCommand = async (input, con
959
959
  const headers = {};
960
960
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataSourceKeywords";
961
961
  const query = map({
962
- source: [, input.source],
962
+ source: [, (0, smithy_client_1.expectNonNull)(input.source, `source`)],
963
963
  nextToken: [, input.nextToken],
964
964
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
965
965
  });
@@ -1110,7 +1110,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1110
1110
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1111
1111
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1112
1112
  const query = map({
1113
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
1113
+ tagKeys: [
1114
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1115
+ () => (input.tagKeys || []).map((_entry) => _entry),
1116
+ ],
1114
1117
  });
1115
1118
  let body;
1116
1119
  return new protocol_http_1.HttpRequest({
@@ -286,7 +286,7 @@ export const serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async
286
286
  "/assessmentFrameworkShareRequests/{requestId}";
287
287
  resolvedPath = __resolvedPath(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
288
288
  const query = map({
289
- requestType: [, input.requestType],
289
+ requestType: [, __expectNonNull(input.requestType, `requestType`)],
290
290
  });
291
291
  let body;
292
292
  return new __HttpRequest({
@@ -722,8 +722,8 @@ export const serializeAws_restJson1ListAssessmentControlInsightsByControlDomainC
722
722
  const headers = {};
723
723
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment";
724
724
  const query = map({
725
- controlDomainId: [, input.controlDomainId],
726
- assessmentId: [, input.assessmentId],
725
+ controlDomainId: [, __expectNonNull(input.controlDomainId, `controlDomainId`)],
726
+ assessmentId: [, __expectNonNull(input.assessmentId, `assessmentId`)],
727
727
  nextToken: [, input.nextToken],
728
728
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
729
729
  });
@@ -744,7 +744,7 @@ export const serializeAws_restJson1ListAssessmentFrameworksCommand = async (inpu
744
744
  const headers = {};
745
745
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
746
746
  const query = map({
747
- frameworkType: [, input.frameworkType],
747
+ frameworkType: [, __expectNonNull(input.frameworkType, `frameworkType`)],
748
748
  nextToken: [, input.nextToken],
749
749
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
750
750
  });
@@ -765,7 +765,7 @@ export const serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand =
765
765
  const headers = {};
766
766
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworkShareRequests";
767
767
  const query = map({
768
- requestType: [, input.requestType],
768
+ requestType: [, __expectNonNull(input.requestType, `requestType`)],
769
769
  nextToken: [, input.nextToken],
770
770
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
771
771
  });
@@ -847,7 +847,7 @@ export const serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand
847
847
  const headers = {};
848
848
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment";
849
849
  const query = map({
850
- assessmentId: [, input.assessmentId],
850
+ assessmentId: [, __expectNonNull(input.assessmentId, `assessmentId`)],
851
851
  nextToken: [, input.nextToken],
852
852
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
853
853
  });
@@ -868,7 +868,7 @@ export const serializeAws_restJson1ListControlInsightsByControlDomainCommand = a
868
868
  const headers = {};
869
869
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls";
870
870
  const query = map({
871
- controlDomainId: [, input.controlDomainId],
871
+ controlDomainId: [, __expectNonNull(input.controlDomainId, `controlDomainId`)],
872
872
  nextToken: [, input.nextToken],
873
873
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
874
874
  });
@@ -889,7 +889,7 @@ export const serializeAws_restJson1ListControlsCommand = async (input, context)
889
889
  const headers = {};
890
890
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
891
891
  const query = map({
892
- controlType: [, input.controlType],
892
+ controlType: [, __expectNonNull(input.controlType, `controlType`)],
893
893
  nextToken: [, input.nextToken],
894
894
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
895
895
  });
@@ -910,7 +910,7 @@ export const serializeAws_restJson1ListKeywordsForDataSourceCommand = async (inp
910
910
  const headers = {};
911
911
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataSourceKeywords";
912
912
  const query = map({
913
- source: [, input.source],
913
+ source: [, __expectNonNull(input.source, `source`)],
914
914
  nextToken: [, input.nextToken],
915
915
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
916
916
  });
@@ -1054,7 +1054,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
1054
1054
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1055
1055
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1056
1056
  const query = map({
1057
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
1057
+ tagKeys: [
1058
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
1059
+ () => (input.tagKeys || []).map((_entry) => _entry),
1060
+ ],
1058
1061
  });
1059
1062
  let body;
1060
1063
  return new __HttpRequest({
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.215.0",
4
+ "version": "3.218.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",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.215.0",
22
+ "@aws-sdk/client-sts": "3.218.0",
23
23
  "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.215.0",
24
+ "@aws-sdk/credential-provider-node": "3.218.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.215.0",
26
26
  "@aws-sdk/hash-node": "3.215.0",
27
27
  "@aws-sdk/invalid-dependency": "3.215.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
48
  "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
- "@aws-sdk/util-endpoints": "3.215.0",
49
+ "@aws-sdk/util-endpoints": "3.216.0",
50
50
  "@aws-sdk/util-user-agent-browser": "3.215.0",
51
51
  "@aws-sdk/util-user-agent-node": "3.215.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",