@aws-sdk/client-codeguruprofiler 3.582.0 → 3.587.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.
package/dist-cjs/index.js CHANGED
@@ -496,8 +496,8 @@ var se_BatchGetFrameMetricDataCommand = /* @__PURE__ */ __name(async (input, con
496
496
  b.bp("/profilingGroups/{profilingGroupName}/frames/-/metrics");
497
497
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
498
498
  const query = (0, import_smithy_client.map)({
499
- [_sT]: [() => input.startTime !== void 0, () => (input[_sT].toISOString().split(".")[0] + "Z").toString()],
500
- [_eT]: [() => input.endTime !== void 0, () => (input[_eT].toISOString().split(".")[0] + "Z").toString()],
499
+ [_sT]: [() => input.startTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_sT]).toString()],
500
+ [_eT]: [() => input.endTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_eT]).toString()],
501
501
  [_p]: [, input[_p]],
502
502
  [_tR]: [, input[_tR]]
503
503
  });
@@ -605,9 +605,9 @@ var se_GetProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
605
605
  b.bp("/profilingGroups/{profilingGroupName}/profile");
606
606
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
607
607
  const query = (0, import_smithy_client.map)({
608
- [_sT]: [() => input.startTime !== void 0, () => (input[_sT].toISOString().split(".")[0] + "Z").toString()],
608
+ [_sT]: [() => input.startTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_sT]).toString()],
609
609
  [_p]: [, input[_p]],
610
- [_eT]: [() => input.endTime !== void 0, () => (input[_eT].toISOString().split(".")[0] + "Z").toString()],
610
+ [_eT]: [() => input.endTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_eT]).toString()],
611
611
  [_mD]: [() => input.maxDepth !== void 0, () => input[_mD].toString()]
612
612
  });
613
613
  let body;
@@ -620,14 +620,8 @@ var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context)
620
620
  b.bp("/internal/profilingGroups/{profilingGroupName}/recommendations");
621
621
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
622
622
  const query = (0, import_smithy_client.map)({
623
- [_sT]: [
624
- (0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null,
625
- () => (input[_sT].toISOString().split(".")[0] + "Z").toString()
626
- ],
627
- [_eT]: [
628
- (0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null,
629
- () => (input[_eT].toISOString().split(".")[0] + "Z").toString()
630
- ],
623
+ [_sT]: [(0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_sT]).toString()],
624
+ [_eT]: [(0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_eT]).toString()],
631
625
  [_l]: [, input[_l]]
632
626
  });
633
627
  let body;
@@ -640,14 +634,8 @@ var se_ListFindingsReportsCommand = /* @__PURE__ */ __name(async (input, context
640
634
  b.bp("/internal/profilingGroups/{profilingGroupName}/findingsReports");
641
635
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
642
636
  const query = (0, import_smithy_client.map)({
643
- [_sT]: [
644
- (0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null,
645
- () => (input[_sT].toISOString().split(".")[0] + "Z").toString()
646
- ],
647
- [_eT]: [
648
- (0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null,
649
- () => (input[_eT].toISOString().split(".")[0] + "Z").toString()
650
- ],
637
+ [_sT]: [(0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_sT]).toString()],
638
+ [_eT]: [(0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_eT]).toString()],
651
639
  [_nT]: [, input[_nT]],
652
640
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
653
641
  [_dRO]: [() => input.dailyReportsOnly !== void 0, () => input[_dRO].toString()]
@@ -662,14 +650,8 @@ var se_ListProfileTimesCommand = /* @__PURE__ */ __name(async (input, context) =
662
650
  b.bp("/profilingGroups/{profilingGroupName}/profileTimes");
663
651
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
664
652
  const query = (0, import_smithy_client.map)({
665
- [_sT]: [
666
- (0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null,
667
- () => (input[_sT].toISOString().split(".")[0] + "Z").toString()
668
- ],
669
- [_eT]: [
670
- (0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null,
671
- () => (input[_eT].toISOString().split(".")[0] + "Z").toString()
672
- ],
653
+ [_sT]: [(0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_sT]).toString()],
654
+ [_eT]: [(0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_eT]).toString()],
673
655
  [_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `period`)],
674
656
  [_oB]: [, input[_oB]],
675
657
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
@@ -1,6 +1,6 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { CodeGuruProfilerServiceException as __BaseException } from "../models/CodeGuruProfilerServiceException";
6
6
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
@@ -26,8 +26,8 @@ export const se_BatchGetFrameMetricDataCommand = async (input, context) => {
26
26
  b.bp("/profilingGroups/{profilingGroupName}/frames/-/metrics");
27
27
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
28
28
  const query = map({
29
- [_sT]: [() => input.startTime !== void 0, () => (input[_sT].toISOString().split(".")[0] + "Z").toString()],
30
- [_eT]: [() => input.endTime !== void 0, () => (input[_eT].toISOString().split(".")[0] + "Z").toString()],
29
+ [_sT]: [() => input.startTime !== void 0, () => __serializeDateTime(input[_sT]).toString()],
30
+ [_eT]: [() => input.endTime !== void 0, () => __serializeDateTime(input[_eT]).toString()],
31
31
  [_p]: [, input[_p]],
32
32
  [_tR]: [, input[_tR]],
33
33
  });
@@ -129,9 +129,9 @@ export const se_GetProfileCommand = async (input, context) => {
129
129
  b.bp("/profilingGroups/{profilingGroupName}/profile");
130
130
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
131
131
  const query = map({
132
- [_sT]: [() => input.startTime !== void 0, () => (input[_sT].toISOString().split(".")[0] + "Z").toString()],
132
+ [_sT]: [() => input.startTime !== void 0, () => __serializeDateTime(input[_sT]).toString()],
133
133
  [_p]: [, input[_p]],
134
- [_eT]: [() => input.endTime !== void 0, () => (input[_eT].toISOString().split(".")[0] + "Z").toString()],
134
+ [_eT]: [() => input.endTime !== void 0, () => __serializeDateTime(input[_eT]).toString()],
135
135
  [_mD]: [() => input.maxDepth !== void 0, () => input[_mD].toString()],
136
136
  });
137
137
  let body;
@@ -144,14 +144,8 @@ export const se_GetRecommendationsCommand = async (input, context) => {
144
144
  b.bp("/internal/profilingGroups/{profilingGroupName}/recommendations");
145
145
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
146
146
  const query = map({
147
- [_sT]: [
148
- __expectNonNull(input.startTime, `startTime`) != null,
149
- () => (input[_sT].toISOString().split(".")[0] + "Z").toString(),
150
- ],
151
- [_eT]: [
152
- __expectNonNull(input.endTime, `endTime`) != null,
153
- () => (input[_eT].toISOString().split(".")[0] + "Z").toString(),
154
- ],
147
+ [_sT]: [__expectNonNull(input.startTime, `startTime`) != null, () => __serializeDateTime(input[_sT]).toString()],
148
+ [_eT]: [__expectNonNull(input.endTime, `endTime`) != null, () => __serializeDateTime(input[_eT]).toString()],
155
149
  [_l]: [, input[_l]],
156
150
  });
157
151
  let body;
@@ -164,14 +158,8 @@ export const se_ListFindingsReportsCommand = async (input, context) => {
164
158
  b.bp("/internal/profilingGroups/{profilingGroupName}/findingsReports");
165
159
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
166
160
  const query = map({
167
- [_sT]: [
168
- __expectNonNull(input.startTime, `startTime`) != null,
169
- () => (input[_sT].toISOString().split(".")[0] + "Z").toString(),
170
- ],
171
- [_eT]: [
172
- __expectNonNull(input.endTime, `endTime`) != null,
173
- () => (input[_eT].toISOString().split(".")[0] + "Z").toString(),
174
- ],
161
+ [_sT]: [__expectNonNull(input.startTime, `startTime`) != null, () => __serializeDateTime(input[_sT]).toString()],
162
+ [_eT]: [__expectNonNull(input.endTime, `endTime`) != null, () => __serializeDateTime(input[_eT]).toString()],
175
163
  [_nT]: [, input[_nT]],
176
164
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
177
165
  [_dRO]: [() => input.dailyReportsOnly !== void 0, () => input[_dRO].toString()],
@@ -186,14 +174,8 @@ export const se_ListProfileTimesCommand = async (input, context) => {
186
174
  b.bp("/profilingGroups/{profilingGroupName}/profileTimes");
187
175
  b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
188
176
  const query = map({
189
- [_sT]: [
190
- __expectNonNull(input.startTime, `startTime`) != null,
191
- () => (input[_sT].toISOString().split(".")[0] + "Z").toString(),
192
- ],
193
- [_eT]: [
194
- __expectNonNull(input.endTime, `endTime`) != null,
195
- () => (input[_eT].toISOString().split(".")[0] + "Z").toString(),
196
- ],
177
+ [_sT]: [__expectNonNull(input.startTime, `startTime`) != null, () => __serializeDateTime(input[_sT]).toString()],
178
+ [_eT]: [__expectNonNull(input.endTime, `endTime`) != null, () => __serializeDateTime(input[_eT]).toString()],
197
179
  [_p]: [, __expectNonNull(input[_p], `period`)],
198
180
  [_oB]: [, input[_oB]],
199
181
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
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.582.0",
4
+ "version": "3.587.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codeguruprofiler",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sso-oidc": "3.582.0",
24
- "@aws-sdk/client-sts": "3.582.0",
25
- "@aws-sdk/core": "3.582.0",
26
- "@aws-sdk/credential-provider-node": "3.582.0",
23
+ "@aws-sdk/client-sso-oidc": "3.587.0",
24
+ "@aws-sdk/client-sts": "3.587.0",
25
+ "@aws-sdk/core": "3.587.0",
26
+ "@aws-sdk/credential-provider-node": "3.587.0",
27
27
  "@aws-sdk/middleware-host-header": "3.577.0",
28
28
  "@aws-sdk/middleware-logger": "3.577.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.577.0",
30
- "@aws-sdk/middleware-user-agent": "3.577.0",
31
- "@aws-sdk/region-config-resolver": "3.577.0",
30
+ "@aws-sdk/middleware-user-agent": "3.587.0",
31
+ "@aws-sdk/region-config-resolver": "3.587.0",
32
32
  "@aws-sdk/types": "3.577.0",
33
- "@aws-sdk/util-endpoints": "3.577.0",
33
+ "@aws-sdk/util-endpoints": "3.587.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.577.0",
35
- "@aws-sdk/util-user-agent-node": "3.577.0",
36
- "@smithy/config-resolver": "^3.0.0",
37
- "@smithy/core": "^2.0.1",
35
+ "@aws-sdk/util-user-agent-node": "3.587.0",
36
+ "@smithy/config-resolver": "^3.0.1",
37
+ "@smithy/core": "^2.1.1",
38
38
  "@smithy/fetch-http-handler": "^3.0.1",
39
39
  "@smithy/hash-node": "^3.0.0",
40
40
  "@smithy/invalid-dependency": "^3.0.0",
41
41
  "@smithy/middleware-content-length": "^3.0.0",
42
- "@smithy/middleware-endpoint": "^3.0.0",
43
- "@smithy/middleware-retry": "^3.0.1",
42
+ "@smithy/middleware-endpoint": "^3.0.1",
43
+ "@smithy/middleware-retry": "^3.0.3",
44
44
  "@smithy/middleware-serde": "^3.0.0",
45
45
  "@smithy/middleware-stack": "^3.0.0",
46
- "@smithy/node-config-provider": "^3.0.0",
46
+ "@smithy/node-config-provider": "^3.1.0",
47
47
  "@smithy/node-http-handler": "^3.0.0",
48
48
  "@smithy/protocol-http": "^4.0.0",
49
- "@smithy/smithy-client": "^3.0.1",
49
+ "@smithy/smithy-client": "^3.1.1",
50
50
  "@smithy/types": "^3.0.0",
51
51
  "@smithy/url-parser": "^3.0.0",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.1",
56
- "@smithy/util-defaults-mode-node": "^3.0.1",
57
- "@smithy/util-endpoints": "^2.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.3",
56
+ "@smithy/util-defaults-mode-node": "^3.0.3",
57
+ "@smithy/util-endpoints": "^2.0.1",
58
58
  "@smithy/util-middleware": "^3.0.0",
59
59
  "@smithy/util-retry": "^3.0.0",
60
60
  "@smithy/util-stream": "^3.0.1",