@aws-sdk/client-accessanalyzer 3.216.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.
@@ -173,7 +173,7 @@ const serializeAws_restJson1GetAccessPreviewCommand = async (input, context) =>
173
173
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}";
174
174
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
175
175
  const query = map({
176
- analyzerArn: [, input.analyzerArn],
176
+ analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
177
177
  });
178
178
  let body;
179
179
  return new protocol_http_1.HttpRequest({
@@ -193,8 +193,8 @@ const serializeAws_restJson1GetAnalyzedResourceCommand = async (input, context)
193
193
  const headers = {};
194
194
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
195
195
  const query = map({
196
- analyzerArn: [, input.analyzerArn],
197
- resourceArn: [, input.resourceArn],
196
+ analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
197
+ resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
198
198
  });
199
199
  let body;
200
200
  return new protocol_http_1.HttpRequest({
@@ -251,7 +251,7 @@ const serializeAws_restJson1GetFindingCommand = async (input, context) => {
251
251
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding/{id}";
252
252
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
253
253
  const query = map({
254
- analyzerArn: [, input.analyzerArn],
254
+ analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
255
255
  });
256
256
  let body;
257
257
  return new protocol_http_1.HttpRequest({
@@ -324,7 +324,7 @@ const serializeAws_restJson1ListAccessPreviewsCommand = async (input, context) =
324
324
  const headers = {};
325
325
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
326
326
  const query = map({
327
- analyzerArn: [, input.analyzerArn],
327
+ analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
328
328
  nextToken: [, input.nextToken],
329
329
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
330
330
  });
@@ -551,7 +551,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
551
551
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
552
552
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
553
553
  const query = map({
554
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
554
+ tagKeys: [
555
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
556
+ () => (input.tagKeys || []).map((_entry) => _entry),
557
+ ],
555
558
  });
556
559
  let body;
557
560
  return new protocol_http_1.HttpRequest({
@@ -162,7 +162,7 @@ export const serializeAws_restJson1GetAccessPreviewCommand = async (input, conte
162
162
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}";
163
163
  resolvedPath = __resolvedPath(resolvedPath, input, "accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
164
164
  const query = map({
165
- analyzerArn: [, input.analyzerArn],
165
+ analyzerArn: [, __expectNonNull(input.analyzerArn, `analyzerArn`)],
166
166
  });
167
167
  let body;
168
168
  return new __HttpRequest({
@@ -181,8 +181,8 @@ export const serializeAws_restJson1GetAnalyzedResourceCommand = async (input, co
181
181
  const headers = {};
182
182
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
183
183
  const query = map({
184
- analyzerArn: [, input.analyzerArn],
185
- resourceArn: [, input.resourceArn],
184
+ analyzerArn: [, __expectNonNull(input.analyzerArn, `analyzerArn`)],
185
+ resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
186
186
  });
187
187
  let body;
188
188
  return new __HttpRequest({
@@ -236,7 +236,7 @@ export const serializeAws_restJson1GetFindingCommand = async (input, context) =>
236
236
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding/{id}";
237
237
  resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
238
238
  const query = map({
239
- analyzerArn: [, input.analyzerArn],
239
+ analyzerArn: [, __expectNonNull(input.analyzerArn, `analyzerArn`)],
240
240
  });
241
241
  let body;
242
242
  return new __HttpRequest({
@@ -306,7 +306,7 @@ export const serializeAws_restJson1ListAccessPreviewsCommand = async (input, con
306
306
  const headers = {};
307
307
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
308
308
  const query = map({
309
- analyzerArn: [, input.analyzerArn],
309
+ analyzerArn: [, __expectNonNull(input.analyzerArn, `analyzerArn`)],
310
310
  nextToken: [, input.nextToken],
311
311
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
312
312
  });
@@ -523,7 +523,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
523
523
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
524
524
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
525
525
  const query = map({
526
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
526
+ tagKeys: [
527
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
528
+ () => (input.tagKeys || []).map((_entry) => _entry),
529
+ ],
527
530
  });
528
531
  let body;
529
532
  return new __HttpRequest({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-accessanalyzer",
3
3
  "description": "AWS SDK for JavaScript Accessanalyzer Client for Node.js, Browser and React Native",
4
- "version": "3.216.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.216.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.216.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",