@aws-sdk/client-codeguruprofiler 3.226.0 → 3.230.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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1UpdateProfilingGroupCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SubmitFeedbackCommand = exports.deserializeAws_restJson1RemovePermissionCommand = exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutPermissionCommand = exports.deserializeAws_restJson1PostAgentProfileCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProfilingGroupsCommand = exports.deserializeAws_restJson1ListProfileTimesCommand = exports.deserializeAws_restJson1ListFindingsReportsCommand = exports.deserializeAws_restJson1GetRecommendationsCommand = exports.deserializeAws_restJson1GetProfileCommand = exports.deserializeAws_restJson1GetPolicyCommand = exports.deserializeAws_restJson1GetNotificationConfigurationCommand = exports.deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = exports.deserializeAws_restJson1DescribeProfilingGroupCommand = exports.deserializeAws_restJson1DeleteProfilingGroupCommand = exports.deserializeAws_restJson1CreateProfilingGroupCommand = exports.deserializeAws_restJson1ConfigureAgentCommand = exports.deserializeAws_restJson1BatchGetFrameMetricDataCommand = exports.deserializeAws_restJson1AddNotificationChannelsCommand = exports.serializeAws_restJson1UpdateProfilingGroupCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SubmitFeedbackCommand = exports.serializeAws_restJson1RemovePermissionCommand = exports.serializeAws_restJson1RemoveNotificationChannelCommand = exports.serializeAws_restJson1PutPermissionCommand = exports.serializeAws_restJson1PostAgentProfileCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProfilingGroupsCommand = exports.serializeAws_restJson1ListProfileTimesCommand = exports.serializeAws_restJson1ListFindingsReportsCommand = exports.serializeAws_restJson1GetRecommendationsCommand = exports.serializeAws_restJson1GetProfileCommand = exports.serializeAws_restJson1GetPolicyCommand = exports.serializeAws_restJson1GetNotificationConfigurationCommand = exports.serializeAws_restJson1GetFindingsReportAccountSummaryCommand = exports.serializeAws_restJson1DescribeProfilingGroupCommand = exports.serializeAws_restJson1DeleteProfilingGroupCommand = exports.serializeAws_restJson1CreateProfilingGroupCommand = exports.serializeAws_restJson1ConfigureAgentCommand = exports.serializeAws_restJson1BatchGetFrameMetricDataCommand = exports.serializeAws_restJson1AddNotificationChannelsCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const uuid_1 = require("uuid");
6
7
  const CodeGuruProfilerServiceException_1 = require("../models/CodeGuruProfilerServiceException");
7
8
  const models_0_1 = require("../models/models_0");
8
9
  const serializeAws_restJson1AddNotificationChannelsCommand = async (input, context) => {
@@ -382,7 +383,7 @@ const serializeAws_restJson1PostAgentProfileCommand = async (input, context) =>
382
383
  "/profilingGroups/{profilingGroupName}/agentProfile";
383
384
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
384
385
  const query = map({
385
- profileToken: [, input.profileToken],
386
+ profileToken: [, input.profileToken ?? (0, uuid_1.v4)()],
386
387
  });
387
388
  let body;
388
389
  if (input.agentProfile !== undefined) {
@@ -7,8 +7,8 @@ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
- const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
10
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
+ const util_retry_1 = require("@aws-sdk/util-retry");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
@@ -27,10 +27,10 @@ const getRuntimeConfig = (config) => {
27
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
28
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
29
29
  (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
- maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
31
31
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
32
32
  requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
33
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
33
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
34
34
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
35
35
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
36
36
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -11,6 +11,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const node_config_provider_1 = require("@aws-sdk/node-config-provider");
12
12
  const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
14
+ const util_retry_1 = require("@aws-sdk/util-retry");
14
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
15
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
16
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
@@ -37,7 +38,7 @@ const getRuntimeConfig = (config) => {
37
38
  retryMode: config?.retryMode ??
38
39
  (0, node_config_provider_1.loadConfig)({
39
40
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
41
42
  }),
42
43
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
43
44
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
@@ -1,5 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
+ import { v4 as generateIdempotencyToken } from "uuid";
3
4
  import { CodeGuruProfilerServiceException as __BaseException } from "../models/CodeGuruProfilerServiceException";
4
5
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
6
  export const serializeAws_restJson1AddNotificationChannelsCommand = async (input, context) => {
@@ -364,7 +365,7 @@ export const serializeAws_restJson1PostAgentProfileCommand = async (input, conte
364
365
  "/profilingGroups/{profilingGroupName}/agentProfile";
365
366
  resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
366
367
  const query = map({
367
- profileToken: [, input.profileToken],
368
+ profileToken: [, input.profileToken ?? generateIdempotencyToken()],
368
369
  });
369
370
  let body;
370
371
  if (input.agentProfile !== undefined) {
@@ -3,8 +3,8 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
3
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
4
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
7
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
8
8
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
9
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -3,10 +3,11 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { Hash } from "@aws-sdk/hash-node";
6
- import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
6
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
7
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
8
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
9
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
+ import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
10
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
11
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
12
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: CodeGuruProfilerClientConfig) =>
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
35
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
36
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
37
  signingEscapePath?: boolean | undefined;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: CodeGuruProfilerClientConfig) =>
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
35
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
36
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
37
  signingEscapePath?: boolean | undefined;
@@ -30,7 +30,7 @@ export declare const getRuntimeConfig: (config: CodeGuruProfilerClientConfig) =>
30
30
  logger?: import("@aws-sdk/types").Logger | undefined;
31
31
  }) => import("@aws-sdk/types").EndpointV2;
32
32
  tls?: boolean | undefined;
33
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
33
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
34
34
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
35
35
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
36
36
  signingEscapePath?: boolean | undefined;
@@ -64,7 +64,10 @@ export declare const getRuntimeConfig: (
64
64
  }
65
65
  ) => import("@aws-sdk/types").EndpointV2;
66
66
  tls?: boolean | undefined;
67
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
67
+ retryStrategy?:
68
+ | import("@aws-sdk/types").RetryStrategy
69
+ | import("@aws-sdk/types").RetryStrategyV2
70
+ | undefined;
68
71
  credentials?:
69
72
  | import("@aws-sdk/types").AwsCredentialIdentity
70
73
  | import("@aws-sdk/types").Provider<
@@ -64,7 +64,10 @@ export declare const getRuntimeConfig: (
64
64
  }
65
65
  ) => import("@aws-sdk/types").EndpointV2;
66
66
  tls?: boolean | undefined;
67
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
67
+ retryStrategy?:
68
+ | import("@aws-sdk/types").RetryStrategy
69
+ | import("@aws-sdk/types").RetryStrategyV2
70
+ | undefined;
68
71
  credentials?:
69
72
  | import("@aws-sdk/types").AwsCredentialIdentity
70
73
  | import("@aws-sdk/types").Provider<
@@ -53,7 +53,10 @@ export declare const getRuntimeConfig: (
53
53
  }
54
54
  ) => import("@aws-sdk/types").EndpointV2;
55
55
  tls?: boolean | undefined;
56
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
56
+ retryStrategy?:
57
+ | import("@aws-sdk/types").RetryStrategy
58
+ | import("@aws-sdk/types").RetryStrategyV2
59
+ | undefined;
57
60
  credentials?:
58
61
  | import("@aws-sdk/types").AwsCredentialIdentity
59
62
  | import("@aws-sdk/types").Provider<
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.226.0",
4
+ "version": "3.230.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.226.0",
22
+ "@aws-sdk/client-sts": "3.229.0",
23
23
  "@aws-sdk/config-resolver": "3.226.0",
24
- "@aws-sdk/credential-provider-node": "3.226.0",
24
+ "@aws-sdk/credential-provider-node": "3.229.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.226.0",
26
26
  "@aws-sdk/hash-node": "3.226.0",
27
27
  "@aws-sdk/invalid-dependency": "3.226.0",
@@ -30,7 +30,7 @@
30
30
  "@aws-sdk/middleware-host-header": "3.226.0",
31
31
  "@aws-sdk/middleware-logger": "3.226.0",
32
32
  "@aws-sdk/middleware-recursion-detection": "3.226.0",
33
- "@aws-sdk/middleware-retry": "3.226.0",
33
+ "@aws-sdk/middleware-retry": "3.229.0",
34
34
  "@aws-sdk/middleware-serde": "3.226.0",
35
35
  "@aws-sdk/middleware-signing": "3.226.0",
36
36
  "@aws-sdk/middleware-stack": "3.226.0",
@@ -47,6 +47,7 @@
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.226.0",
48
48
  "@aws-sdk/util-defaults-mode-node": "3.226.0",
49
49
  "@aws-sdk/util-endpoints": "3.226.0",
50
+ "@aws-sdk/util-retry": "3.229.0",
50
51
  "@aws-sdk/util-user-agent-browser": "3.226.0",
51
52
  "@aws-sdk/util-user-agent-node": "3.226.0",
52
53
  "@aws-sdk/util-utf8-browser": "3.188.0",