@aws-sdk/client-amp 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.
- package/dist-cjs/protocols/Aws_restJson1.js +4 -4
- package/dist-cjs/runtimeConfig.browser.js +3 -3
- package/dist-cjs/runtimeConfig.js +2 -1
- package/dist-es/protocols/Aws_restJson1.js +4 -4
- package/dist-es/runtimeConfig.browser.js +1 -1
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -1
- package/package.json +5 -4
|
@@ -109,7 +109,7 @@ const serializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (input,
|
|
|
109
109
|
"/workspaces/{workspaceId}/alertmanager/definition";
|
|
110
110
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
111
111
|
const query = map({
|
|
112
|
-
clientToken: [, input.clientToken],
|
|
112
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
113
113
|
});
|
|
114
114
|
let body;
|
|
115
115
|
return new protocol_http_1.HttpRequest({
|
|
@@ -130,7 +130,7 @@ const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (input, co
|
|
|
130
130
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging";
|
|
131
131
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
132
132
|
const query = map({
|
|
133
|
-
clientToken: [, input.clientToken],
|
|
133
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
134
134
|
});
|
|
135
135
|
let body;
|
|
136
136
|
return new protocol_http_1.HttpRequest({
|
|
@@ -153,7 +153,7 @@ const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (input, con
|
|
|
153
153
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
154
154
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
155
155
|
const query = map({
|
|
156
|
-
clientToken: [, input.clientToken],
|
|
156
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
157
157
|
});
|
|
158
158
|
let body;
|
|
159
159
|
return new protocol_http_1.HttpRequest({
|
|
@@ -174,7 +174,7 @@ const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
|
|
|
174
174
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
175
175
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
176
176
|
const query = map({
|
|
177
|
-
clientToken: [, input.clientToken],
|
|
177
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
178
178
|
});
|
|
179
179
|
let body;
|
|
180
180
|
return new protocol_http_1.HttpRequest({
|
|
@@ -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 ??
|
|
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 ||
|
|
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 ||
|
|
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,
|
|
@@ -102,7 +102,7 @@ export const serializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (
|
|
|
102
102
|
"/workspaces/{workspaceId}/alertmanager/definition";
|
|
103
103
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
104
104
|
const query = map({
|
|
105
|
-
clientToken: [, input.clientToken],
|
|
105
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
106
106
|
});
|
|
107
107
|
let body;
|
|
108
108
|
return new __HttpRequest({
|
|
@@ -122,7 +122,7 @@ export const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (in
|
|
|
122
122
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging";
|
|
123
123
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
124
124
|
const query = map({
|
|
125
|
-
clientToken: [, input.clientToken],
|
|
125
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
126
126
|
});
|
|
127
127
|
let body;
|
|
128
128
|
return new __HttpRequest({
|
|
@@ -144,7 +144,7 @@ export const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (inp
|
|
|
144
144
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
145
145
|
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
146
146
|
const query = map({
|
|
147
|
-
clientToken: [, input.clientToken],
|
|
147
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
148
148
|
});
|
|
149
149
|
let body;
|
|
150
150
|
return new __HttpRequest({
|
|
@@ -164,7 +164,7 @@ export const serializeAws_restJson1DeleteWorkspaceCommand = async (input, contex
|
|
|
164
164
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
165
165
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
166
166
|
const query = map({
|
|
167
|
-
clientToken: [, input.clientToken],
|
|
167
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
168
168
|
});
|
|
169
169
|
let body;
|
|
170
170
|
return new __HttpRequest({
|
|
@@ -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";
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -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 {
|
|
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: AmpClientConfig) => {
|
|
|
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: AmpClientConfig) => {
|
|
|
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: AmpClientConfig) => {
|
|
|
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;
|
|
@@ -62,7 +62,10 @@ export declare const getRuntimeConfig: (config: AmpClientConfig) => {
|
|
|
62
62
|
}
|
|
63
63
|
) => import("@aws-sdk/types").EndpointV2;
|
|
64
64
|
tls?: boolean | undefined;
|
|
65
|
-
retryStrategy?:
|
|
65
|
+
retryStrategy?:
|
|
66
|
+
| import("@aws-sdk/types").RetryStrategy
|
|
67
|
+
| import("@aws-sdk/types").RetryStrategyV2
|
|
68
|
+
| undefined;
|
|
66
69
|
credentials?:
|
|
67
70
|
| import("@aws-sdk/types").AwsCredentialIdentity
|
|
68
71
|
| import("@aws-sdk/types").Provider<
|
|
@@ -62,7 +62,10 @@ export declare const getRuntimeConfig: (config: AmpClientConfig) => {
|
|
|
62
62
|
}
|
|
63
63
|
) => import("@aws-sdk/types").EndpointV2;
|
|
64
64
|
tls?: boolean | undefined;
|
|
65
|
-
retryStrategy?:
|
|
65
|
+
retryStrategy?:
|
|
66
|
+
| import("@aws-sdk/types").RetryStrategy
|
|
67
|
+
| import("@aws-sdk/types").RetryStrategyV2
|
|
68
|
+
| undefined;
|
|
66
69
|
credentials?:
|
|
67
70
|
| import("@aws-sdk/types").AwsCredentialIdentity
|
|
68
71
|
| import("@aws-sdk/types").Provider<
|
|
@@ -51,7 +51,10 @@ export declare const getRuntimeConfig: (config: AmpClientConfig) => {
|
|
|
51
51
|
}
|
|
52
52
|
) => import("@aws-sdk/types").EndpointV2;
|
|
53
53
|
tls?: boolean | undefined;
|
|
54
|
-
retryStrategy?:
|
|
54
|
+
retryStrategy?:
|
|
55
|
+
| import("@aws-sdk/types").RetryStrategy
|
|
56
|
+
| import("@aws-sdk/types").RetryStrategyV2
|
|
57
|
+
| undefined;
|
|
55
58
|
credentials?:
|
|
56
59
|
| import("@aws-sdk/types").AwsCredentialIdentity
|
|
57
60
|
| import("@aws-sdk/types").Provider<
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amp",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amp Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
22
|
+
"@aws-sdk/client-sts": "3.229.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.226.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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.
|
|
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",
|