@aws-sdk/client-codeguruprofiler 3.354.0 → 3.357.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.
@@ -744,7 +744,7 @@ const de_DeleteProfilingGroupCommand = async (output, context) => {
744
744
  const contents = (0, smithy_client_1.map)({
745
745
  $metadata: deserializeMetadata(output),
746
746
  });
747
- await collectBody(output.body, context);
747
+ await (0, smithy_client_1.collectBody)(output.body, context);
748
748
  return contents;
749
749
  };
750
750
  exports.de_DeleteProfilingGroupCommand = de_DeleteProfilingGroupCommand;
@@ -953,7 +953,7 @@ const de_GetProfileCommand = async (output, context) => {
953
953
  contentType: [, output.headers["content-type"]],
954
954
  contentEncoding: [, output.headers["content-encoding"]],
955
955
  });
956
- const data = await collectBody(output.body, context);
956
+ const data = await (0, smithy_client_1.collectBody)(output.body, context);
957
957
  contents.profile = data;
958
958
  return contents;
959
959
  };
@@ -1207,7 +1207,7 @@ const de_PostAgentProfileCommand = async (output, context) => {
1207
1207
  const contents = (0, smithy_client_1.map)({
1208
1208
  $metadata: deserializeMetadata(output),
1209
1209
  });
1210
- await collectBody(output.body, context);
1210
+ await (0, smithy_client_1.collectBody)(output.body, context);
1211
1211
  return contents;
1212
1212
  };
1213
1213
  exports.de_PostAgentProfileCommand = de_PostAgentProfileCommand;
@@ -1383,7 +1383,7 @@ const de_SubmitFeedbackCommand = async (output, context) => {
1383
1383
  const contents = (0, smithy_client_1.map)({
1384
1384
  $metadata: deserializeMetadata(output),
1385
1385
  });
1386
- await collectBody(output.body, context);
1386
+ await (0, smithy_client_1.collectBody)(output.body, context);
1387
1387
  return contents;
1388
1388
  };
1389
1389
  exports.de_SubmitFeedbackCommand = de_SubmitFeedbackCommand;
@@ -1422,7 +1422,7 @@ const de_TagResourceCommand = async (output, context) => {
1422
1422
  const contents = (0, smithy_client_1.map)({
1423
1423
  $metadata: deserializeMetadata(output),
1424
1424
  });
1425
- await collectBody(output.body, context);
1425
+ await (0, smithy_client_1.collectBody)(output.body, context);
1426
1426
  return contents;
1427
1427
  };
1428
1428
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -1458,7 +1458,7 @@ const de_UntagResourceCommand = async (output, context) => {
1458
1458
  const contents = (0, smithy_client_1.map)({
1459
1459
  $metadata: deserializeMetadata(output),
1460
1460
  });
1461
- await collectBody(output.body, context);
1461
+ await (0, smithy_client_1.collectBody)(output.body, context);
1462
1462
  return contents;
1463
1463
  };
1464
1464
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -1797,13 +1797,7 @@ const deserializeMetadata = (output) => ({
1797
1797
  extendedRequestId: output.headers["x-amz-id-2"],
1798
1798
  cfId: output.headers["x-amz-cf-id"],
1799
1799
  });
1800
- const collectBody = (streamBody = new Uint8Array(), context) => {
1801
- if (streamBody instanceof Uint8Array) {
1802
- return Promise.resolve(streamBody);
1803
- }
1804
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1805
- };
1806
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1800
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1807
1801
  const isSerializableHeaderValue = (value) => value !== undefined &&
1808
1802
  value !== null &&
1809
1803
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ 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, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { CodeGuruProfilerServiceException as __BaseException } from "../models/CodeGuruProfilerServiceException";
@@ -1748,12 +1748,6 @@ const deserializeMetadata = (output) => ({
1748
1748
  extendedRequestId: output.headers["x-amz-id-2"],
1749
1749
  cfId: output.headers["x-amz-cf-id"],
1750
1750
  });
1751
- const collectBody = (streamBody = new Uint8Array(), context) => {
1752
- if (streamBody instanceof Uint8Array) {
1753
- return Promise.resolve(streamBody);
1754
- }
1755
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1756
- };
1757
1751
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1758
1752
  const isSerializableHeaderValue = (value) => value !== undefined &&
1759
1753
  value !== null &&
@@ -96,7 +96,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
96
96
  */
97
97
  runtime?: string;
98
98
  /**
99
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
99
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
100
100
  * trait of an operation.
101
101
  */
102
102
  disableHostPrefix?: boolean;
@@ -1,6 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { Uint8ArrayBlobAdapter } from "@aws-sdk/util-stream";
4
5
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
6
  import { GetProfileRequest, GetProfileResponse } from "../models/models_0";
6
7
  /**
@@ -14,12 +15,18 @@ export { __MetadataBearer, $Command };
14
15
  */
15
16
  export interface GetProfileCommandInput extends GetProfileRequest {
16
17
  }
18
+ /**
19
+ * @public
20
+ */
21
+ export type GetProfileCommandOutputType = Omit<GetProfileResponse, "profile"> & {
22
+ profile: Uint8ArrayBlobAdapter;
23
+ };
17
24
  /**
18
25
  * @public
19
26
  *
20
27
  * The output of {@link GetProfileCommand}.
21
28
  */
22
- export interface GetProfileCommandOutput extends GetProfileResponse, __MetadataBearer {
29
+ export interface GetProfileCommandOutput extends GetProfileCommandOutputType, __MetadataBearer {
23
30
  }
24
31
  /**
25
32
  * @public
@@ -1,18 +1,24 @@
1
1
  import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { BlobTypes, Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
5
  import { PostAgentProfileRequest, PostAgentProfileResponse } from "../models/models_0";
6
6
  /**
7
7
  * @public
8
8
  */
9
9
  export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ */
13
+ export type PostAgentProfileCommandInputType = Omit<PostAgentProfileRequest, "agentProfile"> & {
14
+ agentProfile: BlobTypes;
15
+ };
10
16
  /**
11
17
  * @public
12
18
  *
13
19
  * The input for {@link PostAgentProfileCommand}.
14
20
  */
15
- export interface PostAgentProfileCommandInput extends PostAgentProfileRequest {
21
+ export interface PostAgentProfileCommandInput extends PostAgentProfileCommandInputType {
16
22
  }
17
23
  /**
18
24
  * @public
@@ -6,6 +6,7 @@ import {
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
8
  } from "@aws-sdk/types";
9
+ import { Uint8ArrayBlobAdapter } from "@aws-sdk/util-stream";
9
10
  import {
10
11
  CodeGuruProfilerClientResolvedConfig,
11
12
  ServiceInputTypes,
@@ -14,8 +15,14 @@ import {
14
15
  import { GetProfileRequest, GetProfileResponse } from "../models/models_0";
15
16
  export { __MetadataBearer, $Command };
16
17
  export interface GetProfileCommandInput extends GetProfileRequest {}
18
+ export type GetProfileCommandOutputType = Pick<
19
+ GetProfileResponse,
20
+ Exclude<keyof GetProfileResponse, "profile">
21
+ > & {
22
+ profile: Uint8ArrayBlobAdapter;
23
+ };
17
24
  export interface GetProfileCommandOutput
18
- extends GetProfileResponse,
25
+ extends GetProfileCommandOutputType,
19
26
  __MetadataBearer {}
20
27
  export declare class GetProfileCommand extends $Command<
21
28
  GetProfileCommandInput,
@@ -1,6 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import {
4
+ BlobTypes,
4
5
  Handler,
5
6
  HttpHandlerOptions as __HttpHandlerOptions,
6
7
  MetadataBearer as __MetadataBearer,
@@ -16,7 +17,14 @@ import {
16
17
  PostAgentProfileResponse,
17
18
  } from "../models/models_0";
18
19
  export { __MetadataBearer, $Command };
19
- export interface PostAgentProfileCommandInput extends PostAgentProfileRequest {}
20
+ export type PostAgentProfileCommandInputType = Pick<
21
+ PostAgentProfileRequest,
22
+ Exclude<keyof PostAgentProfileRequest, "agentProfile">
23
+ > & {
24
+ agentProfile: BlobTypes;
25
+ };
26
+ export interface PostAgentProfileCommandInput
27
+ extends PostAgentProfileCommandInputType {}
20
28
  export interface PostAgentProfileCommandOutput
21
29
  extends PostAgentProfileResponse,
22
30
  __MetadataBearer {}
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.354.0",
4
+ "version": "3.357.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",
@@ -21,36 +21,37 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.354.0",
25
- "@aws-sdk/config-resolver": "3.354.0",
26
- "@aws-sdk/credential-provider-node": "3.354.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.354.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.354.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.354.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.354.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.354.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-stream": "3.357.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
54
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
55
  "@aws-sdk/util-utf8": "3.310.0",
55
56
  "@smithy/protocol-http": "^1.0.1",
56
57
  "@smithy/types": "^1.0.0",