@aws-sdk/client-codeguruprofiler 3.216.0 → 3.222.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.
@@ -94,7 +94,7 @@ const serializeAws_restJson1CreateProfilingGroupCommand = async (input, context)
94
94
  };
95
95
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups";
96
96
  const query = map({
97
- clientToken: [, input.clientToken],
97
+ clientToken: [, (0, smithy_client_1.expectNonNull)(input.clientToken, `clientToken`)],
98
98
  });
99
99
  let body;
100
100
  body = JSON.stringify({
@@ -247,10 +247,13 @@ const serializeAws_restJson1GetRecommendationsCommand = async (input, context) =
247
247
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
248
248
  const query = map({
249
249
  startTime: [
250
- () => input.startTime !== void 0,
250
+ (0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
251
251
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
252
252
  ],
253
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
253
+ endTime: [
254
+ (0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
255
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
256
+ ],
254
257
  locale: [, input.locale],
255
258
  });
256
259
  let body;
@@ -274,10 +277,13 @@ const serializeAws_restJson1ListFindingsReportsCommand = async (input, context)
274
277
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
275
278
  const query = map({
276
279
  startTime: [
277
- () => input.startTime !== void 0,
280
+ (0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
278
281
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
279
282
  ],
280
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
283
+ endTime: [
284
+ (0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
285
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
286
+ ],
281
287
  nextToken: [, input.nextToken],
282
288
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
283
289
  dailyReportsOnly: [() => input.dailyReportsOnly !== void 0, () => input.dailyReportsOnly.toString()],
@@ -303,11 +309,14 @@ const serializeAws_restJson1ListProfileTimesCommand = async (input, context) =>
303
309
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
304
310
  const query = map({
305
311
  startTime: [
306
- () => input.startTime !== void 0,
312
+ (0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
307
313
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
308
314
  ],
309
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
310
- period: [, input.period],
315
+ endTime: [
316
+ (0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
317
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
318
+ ],
319
+ period: [, (0, smithy_client_1.expectNonNull)(input.period, `period`)],
311
320
  orderBy: [, input.orderBy],
312
321
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
313
322
  nextToken: [, input.nextToken],
@@ -443,7 +452,7 @@ const serializeAws_restJson1RemovePermissionCommand = async (input, context) =>
443
452
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
444
453
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "actionGroup", () => input.actionGroup, "{actionGroup}", false);
445
454
  const query = map({
446
- revisionId: [, input.revisionId],
455
+ revisionId: [, (0, smithy_client_1.expectNonNull)(input.revisionId, `revisionId`)],
447
456
  });
448
457
  let body;
449
458
  return new protocol_http_1.HttpRequest({
@@ -511,7 +520,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
511
520
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
512
521
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
513
522
  const query = map({
514
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
523
+ tagKeys: [
524
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
525
+ () => (input.tagKeys || []).map((_entry) => _entry),
526
+ ],
515
527
  });
516
528
  let body;
517
529
  return new protocol_http_1.HttpRequest({
@@ -88,7 +88,7 @@ export const serializeAws_restJson1CreateProfilingGroupCommand = async (input, c
88
88
  };
89
89
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups";
90
90
  const query = map({
91
- clientToken: [, input.clientToken],
91
+ clientToken: [, __expectNonNull(input.clientToken, `clientToken`)],
92
92
  });
93
93
  let body;
94
94
  body = JSON.stringify({
@@ -234,10 +234,13 @@ export const serializeAws_restJson1GetRecommendationsCommand = async (input, con
234
234
  resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
235
235
  const query = map({
236
236
  startTime: [
237
- () => input.startTime !== void 0,
237
+ __expectNonNull(input.startTime, `startTime`) != null,
238
238
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
239
239
  ],
240
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
240
+ endTime: [
241
+ __expectNonNull(input.endTime, `endTime`) != null,
242
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
243
+ ],
241
244
  locale: [, input.locale],
242
245
  });
243
246
  let body;
@@ -260,10 +263,13 @@ export const serializeAws_restJson1ListFindingsReportsCommand = async (input, co
260
263
  resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
261
264
  const query = map({
262
265
  startTime: [
263
- () => input.startTime !== void 0,
266
+ __expectNonNull(input.startTime, `startTime`) != null,
264
267
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
265
268
  ],
266
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
269
+ endTime: [
270
+ __expectNonNull(input.endTime, `endTime`) != null,
271
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
272
+ ],
267
273
  nextToken: [, input.nextToken],
268
274
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
269
275
  dailyReportsOnly: [() => input.dailyReportsOnly !== void 0, () => input.dailyReportsOnly.toString()],
@@ -288,11 +294,14 @@ export const serializeAws_restJson1ListProfileTimesCommand = async (input, conte
288
294
  resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
289
295
  const query = map({
290
296
  startTime: [
291
- () => input.startTime !== void 0,
297
+ __expectNonNull(input.startTime, `startTime`) != null,
292
298
  () => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
293
299
  ],
294
- endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
295
- period: [, input.period],
300
+ endTime: [
301
+ __expectNonNull(input.endTime, `endTime`) != null,
302
+ () => (input.endTime.toISOString().split(".")[0] + "Z").toString(),
303
+ ],
304
+ period: [, __expectNonNull(input.period, `period`)],
296
305
  orderBy: [, input.orderBy],
297
306
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
298
307
  nextToken: [, input.nextToken],
@@ -422,7 +431,7 @@ export const serializeAws_restJson1RemovePermissionCommand = async (input, conte
422
431
  resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
423
432
  resolvedPath = __resolvedPath(resolvedPath, input, "actionGroup", () => input.actionGroup, "{actionGroup}", false);
424
433
  const query = map({
425
- revisionId: [, input.revisionId],
434
+ revisionId: [, __expectNonNull(input.revisionId, `revisionId`)],
426
435
  });
427
436
  let body;
428
437
  return new __HttpRequest({
@@ -487,7 +496,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
487
496
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
488
497
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
489
498
  const query = map({
490
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
499
+ tagKeys: [
500
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
501
+ () => (input.tagKeys || []).map((_entry) => _entry),
502
+ ],
491
503
  });
492
504
  let body;
493
505
  return new __HttpRequest({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguruprofiler",
3
3
  "description": "AWS SDK for JavaScript Codeguruprofiler Client for Node.js, Browser and React Native",
4
- "version": "3.216.0",
4
+ "version": "3.222.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,36 +19,37 @@
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",
23
- "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.216.0",
25
- "@aws-sdk/fetch-http-handler": "3.215.0",
26
- "@aws-sdk/hash-node": "3.215.0",
27
- "@aws-sdk/invalid-dependency": "3.215.0",
28
- "@aws-sdk/middleware-content-length": "3.215.0",
29
- "@aws-sdk/middleware-endpoint": "3.215.0",
30
- "@aws-sdk/middleware-host-header": "3.215.0",
31
- "@aws-sdk/middleware-logger": "3.215.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.215.0",
33
- "@aws-sdk/middleware-retry": "3.215.0",
34
- "@aws-sdk/middleware-serde": "3.215.0",
35
- "@aws-sdk/middleware-signing": "3.215.0",
36
- "@aws-sdk/middleware-stack": "3.215.0",
37
- "@aws-sdk/middleware-user-agent": "3.215.0",
38
- "@aws-sdk/node-config-provider": "3.215.0",
39
- "@aws-sdk/node-http-handler": "3.215.0",
40
- "@aws-sdk/protocol-http": "3.215.0",
41
- "@aws-sdk/smithy-client": "3.215.0",
42
- "@aws-sdk/types": "3.215.0",
43
- "@aws-sdk/url-parser": "3.215.0",
22
+ "@aws-sdk/client-sts": "3.222.0",
23
+ "@aws-sdk/config-resolver": "3.222.0",
24
+ "@aws-sdk/credential-provider-node": "3.222.0",
25
+ "@aws-sdk/fetch-http-handler": "3.222.0",
26
+ "@aws-sdk/hash-node": "3.222.0",
27
+ "@aws-sdk/invalid-dependency": "3.222.0",
28
+ "@aws-sdk/middleware-content-length": "3.222.0",
29
+ "@aws-sdk/middleware-endpoint": "3.222.0",
30
+ "@aws-sdk/middleware-host-header": "3.222.0",
31
+ "@aws-sdk/middleware-logger": "3.222.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.222.0",
33
+ "@aws-sdk/middleware-retry": "3.222.0",
34
+ "@aws-sdk/middleware-serde": "3.222.0",
35
+ "@aws-sdk/middleware-signing": "3.222.0",
36
+ "@aws-sdk/middleware-stack": "3.222.0",
37
+ "@aws-sdk/middleware-user-agent": "3.222.0",
38
+ "@aws-sdk/node-config-provider": "3.222.0",
39
+ "@aws-sdk/node-http-handler": "3.222.0",
40
+ "@aws-sdk/protocol-http": "3.222.0",
41
+ "@aws-sdk/smithy-client": "3.222.0",
42
+ "@aws-sdk/types": "3.222.0",
43
+ "@aws-sdk/url-parser": "3.222.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
- "@aws-sdk/util-endpoints": "3.216.0",
50
- "@aws-sdk/util-user-agent-browser": "3.215.0",
51
- "@aws-sdk/util-user-agent-node": "3.215.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.222.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.222.0",
49
+ "@aws-sdk/util-endpoints": "3.222.0",
50
+ "@aws-sdk/util-retry": "3.222.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.222.0",
52
+ "@aws-sdk/util-user-agent-node": "3.222.0",
52
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
54
  "@aws-sdk/util-utf8-node": "3.208.0",
54
55
  "tslib": "^2.3.1",