@aws-sdk/client-codeguruprofiler 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.
|
@@ -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
|
-
()
|
|
250
|
+
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
251
251
|
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
252
252
|
],
|
|
253
|
-
endTime: [
|
|
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
|
-
()
|
|
280
|
+
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
278
281
|
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
279
282
|
],
|
|
280
|
-
endTime: [
|
|
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
|
-
()
|
|
312
|
+
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
307
313
|
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
308
314
|
],
|
|
309
|
-
endTime: [
|
|
310
|
-
|
|
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: [
|
|
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
|
-
(
|
|
237
|
+
__expectNonNull(input.startTime, `startTime`) != null,
|
|
238
238
|
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
239
239
|
],
|
|
240
|
-
endTime: [
|
|
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
|
-
(
|
|
266
|
+
__expectNonNull(input.startTime, `startTime`) != null,
|
|
264
267
|
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
265
268
|
],
|
|
266
|
-
endTime: [
|
|
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
|
-
(
|
|
297
|
+
__expectNonNull(input.startTime, `startTime`) != null,
|
|
292
298
|
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
293
299
|
],
|
|
294
|
-
endTime: [
|
|
295
|
-
|
|
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: [
|
|
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.
|
|
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.
|
|
22
|
+
"@aws-sdk/client-sts": "3.218.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.215.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|