@aws-sdk/client-cloudwatch 3.509.0 → 3.512.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 +8 -4
- package/dist-cjs/runtimeConfig.browser.js +3 -0
- package/dist-cjs/runtimeConfig.js +3 -0
- package/dist-es/CloudWatchClient.js +5 -3
- package/dist-es/commands/PutMetricDataCommand.js +2 -0
- package/dist-es/runtimeConfig.browser.js +3 -0
- package/dist-es/runtimeConfig.js +3 -0
- package/dist-types/CloudWatchClient.d.ts +3 -2
- package/dist-types/runtimeConfig.browser.d.ts +3 -3
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -0
- package/package.json +15 -14
package/dist-cjs/index.js
CHANGED
|
@@ -113,6 +113,7 @@ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursi
|
|
|
113
113
|
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
114
114
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
115
115
|
var import_config_resolver = require("@smithy/config-resolver");
|
|
116
|
+
var import_middleware_compression = require("@smithy/middleware-compression");
|
|
116
117
|
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
117
118
|
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
118
119
|
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
@@ -168,9 +169,10 @@ var _CloudWatchClient = class _CloudWatchClient extends import_smithy_client.Cli
|
|
|
168
169
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
169
170
|
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
170
171
|
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
171
|
-
const _config_8 =
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
const _config_8 = (0, import_middleware_compression.resolveCompressionConfig)(_config_7);
|
|
173
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
174
|
+
super(_config_9);
|
|
175
|
+
this.config = _config_9;
|
|
174
176
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
175
177
|
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
176
178
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
@@ -5193,12 +5195,14 @@ var PutMetricAlarmCommand = _PutMetricAlarmCommand;
|
|
|
5193
5195
|
|
|
5194
5196
|
|
|
5195
5197
|
|
|
5198
|
+
|
|
5196
5199
|
var _PutMetricDataCommand = class _PutMetricDataCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
5197
5200
|
...commonParams
|
|
5198
5201
|
}).m(function(Command, cs, config, o) {
|
|
5199
5202
|
return [
|
|
5200
5203
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5201
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5204
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
5205
|
+
(0, import_middleware_compression.getCompressionPlugin)(config, { encodings: ["gzip"] })
|
|
5202
5206
|
];
|
|
5203
5207
|
}).s("GraniteServiceVersion20100801", "PutMetricData", {}).n("CloudWatchClient", "PutMetricDataCommand").f(void 0, void 0).ser(se_PutMetricDataCommand).de(de_PutMetricDataCommand).build() {
|
|
5204
5208
|
};
|
|
@@ -8,6 +8,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
8
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
9
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
10
|
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const middleware_compression_1 = require("@smithy/middleware-compression");
|
|
11
12
|
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
12
13
|
const util_retry_1 = require("@smithy/util-retry");
|
|
13
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
@@ -26,9 +27,11 @@ const getRuntimeConfig = (config) => {
|
|
|
26
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
29
|
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
|
+
disableRequestCompression: config?.disableRequestCompression ?? middleware_compression_1.DEFAULT_DISABLE_REQUEST_COMPRESSION,
|
|
29
31
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
32
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
33
|
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
34
|
+
requestMinCompressionSizeBytes: config?.requestMinCompressionSizeBytes ?? middleware_compression_1.DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES,
|
|
32
35
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
33
36
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
34
37
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
@@ -8,6 +8,7 @@ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
|
8
8
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
9
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
10
|
const hash_node_1 = require("@smithy/hash-node");
|
|
11
|
+
const middleware_compression_1 = require("@smithy/middleware-compression");
|
|
11
12
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
13
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
13
14
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
@@ -32,9 +33,11 @@ const getRuntimeConfig = (config) => {
|
|
|
32
33
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
33
34
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
35
|
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
36
|
+
disableRequestCompression: config?.disableRequestCompression ?? (0, node_config_provider_1.loadConfig)(middleware_compression_1.NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS),
|
|
35
37
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
38
|
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
39
|
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
requestMinCompressionSizeBytes: config?.requestMinCompressionSizeBytes ?? (0, node_config_provider_1.loadConfig)(middleware_compression_1.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS),
|
|
38
41
|
retryMode: config?.retryMode ??
|
|
39
42
|
(0, node_config_provider_1.loadConfig)({
|
|
40
43
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
7
|
+
import { resolveCompressionConfig, } from "@smithy/middleware-compression";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -22,9 +23,10 @@ export class CloudWatchClient extends __Client {
|
|
|
22
23
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
23
24
|
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
24
25
|
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
25
|
-
const _config_8 =
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const _config_8 = resolveCompressionConfig(_config_7);
|
|
27
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
28
|
+
super(_config_9);
|
|
29
|
+
this.config = _config_9;
|
|
28
30
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
29
31
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
30
32
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getCompressionPlugin } from "@smithy/middleware-compression";
|
|
1
2
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
3
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
4
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
@@ -13,6 +14,7 @@ export class PutMetricDataCommand extends $Command
|
|
|
13
14
|
return [
|
|
14
15
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
16
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
getCompressionPlugin(config, { encodings: ["gzip"] }),
|
|
16
18
|
];
|
|
17
19
|
})
|
|
18
20
|
.s("GraniteServiceVersion20100801", "PutMetricData", {})
|
|
@@ -4,6 +4,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
5
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { DEFAULT_DISABLE_REQUEST_COMPRESSION, DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES, } from "@smithy/middleware-compression";
|
|
7
8
|
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
9
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
@@ -22,9 +23,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
25
|
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
26
|
+
disableRequestCompression: config?.disableRequestCompression ?? DEFAULT_DISABLE_REQUEST_COMPRESSION,
|
|
25
27
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
28
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
29
|
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
30
|
+
requestMinCompressionSizeBytes: config?.requestMinCompressionSizeBytes ?? DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES,
|
|
28
31
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
32
|
sha256: config?.sha256 ?? Sha256,
|
|
30
33
|
streamCollector: config?.streamCollector ?? streamCollector,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -4,6 +4,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
4
4
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS, NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS, } from "@smithy/middleware-compression";
|
|
7
8
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
9
|
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
10
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
@@ -28,9 +29,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
29
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
30
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
31
|
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
|
+
disableRequestCompression: config?.disableRequestCompression ?? loadNodeConfig(NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS),
|
|
31
33
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
34
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
35
|
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
|
+
requestMinCompressionSizeBytes: config?.requestMinCompressionSizeBytes ?? loadNodeConfig(NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS),
|
|
34
37
|
retryMode: config?.retryMode ??
|
|
35
38
|
loadNodeConfig({
|
|
36
39
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
@@ -3,6 +3,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
3
3
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
4
|
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
5
5
|
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { CompressionInputConfig, CompressionResolvedConfig } from "@smithy/middleware-compression";
|
|
6
7
|
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
8
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
9
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
@@ -169,7 +170,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
169
170
|
/**
|
|
170
171
|
* @public
|
|
171
172
|
*/
|
|
172
|
-
export type CloudWatchClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
173
|
+
export type CloudWatchClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & CompressionInputConfig & ClientInputEndpointParameters;
|
|
173
174
|
/**
|
|
174
175
|
* @public
|
|
175
176
|
*
|
|
@@ -180,7 +181,7 @@ export interface CloudWatchClientConfig extends CloudWatchClientConfigType {
|
|
|
180
181
|
/**
|
|
181
182
|
* @public
|
|
182
183
|
*/
|
|
183
|
-
export type CloudWatchClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
184
|
+
export type CloudWatchClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & CompressionResolvedConfig & ClientResolvedEndpointParameters;
|
|
184
185
|
/**
|
|
185
186
|
* @public
|
|
186
187
|
*
|
|
@@ -9,12 +9,14 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
|
+
disableRequestCompression: boolean | import("@smithy/types").Provider<boolean>;
|
|
12
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
14
|
region: string | import("@smithy/types").Provider<any>;
|
|
14
15
|
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
15
16
|
updateHttpClientConfig(key: never, value: never): void;
|
|
16
17
|
httpHandlerConfigs(): {};
|
|
17
18
|
}) | RequestHandler;
|
|
19
|
+
requestMinCompressionSizeBytes: number | import("@smithy/types").Provider<number>;
|
|
18
20
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
19
21
|
sha256: import("@smithy/types").HashConstructor;
|
|
20
22
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -40,9 +42,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
40
42
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
41
43
|
signingEscapePath?: boolean | undefined;
|
|
42
44
|
systemClockOffset?: number | undefined;
|
|
43
|
-
signingRegion?: string | undefined;
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
45
|
+
signingRegion?: string | undefined;
|
|
46
46
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
47
47
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
48
48
|
};
|
|
@@ -9,12 +9,14 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
|
|
11
11
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
|
+
disableRequestCompression: boolean | import("@smithy/types").Provider<boolean>;
|
|
12
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
14
|
region: string | import("@smithy/types").Provider<string>;
|
|
14
15
|
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
15
16
|
updateHttpClientConfig(key: never, value: never): void;
|
|
16
17
|
httpHandlerConfigs(): {};
|
|
17
18
|
}) | RequestHandler;
|
|
19
|
+
requestMinCompressionSizeBytes: number | import("@smithy/types").Provider<number>;
|
|
18
20
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
19
21
|
sha256: import("@smithy/types").HashConstructor;
|
|
20
22
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -42,4 +42,6 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
42
42
|
signingRegion?: string | undefined;
|
|
43
43
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
44
44
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
45
|
+
disableRequestCompression: boolean | import("@smithy/types").Provider<boolean>;
|
|
46
|
+
requestMinCompressionSizeBytes: number | import("@smithy/types").Provider<number>;
|
|
45
47
|
};
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
RegionInputConfig,
|
|
16
16
|
RegionResolvedConfig,
|
|
17
17
|
} from "@smithy/config-resolver";
|
|
18
|
+
import {
|
|
19
|
+
CompressionInputConfig,
|
|
20
|
+
CompressionResolvedConfig,
|
|
21
|
+
} from "@smithy/middleware-compression";
|
|
18
22
|
import {
|
|
19
23
|
EndpointInputConfig,
|
|
20
24
|
EndpointResolvedConfig,
|
|
@@ -317,6 +321,7 @@ export type CloudWatchClientConfigType = Partial<
|
|
|
317
321
|
HostHeaderInputConfig &
|
|
318
322
|
AwsAuthInputConfig &
|
|
319
323
|
UserAgentInputConfig &
|
|
324
|
+
CompressionInputConfig &
|
|
320
325
|
ClientInputEndpointParameters;
|
|
321
326
|
export interface CloudWatchClientConfig extends CloudWatchClientConfigType {}
|
|
322
327
|
export type CloudWatchClientResolvedConfigType =
|
|
@@ -329,6 +334,7 @@ export type CloudWatchClientResolvedConfigType =
|
|
|
329
334
|
HostHeaderResolvedConfig &
|
|
330
335
|
AwsAuthResolvedConfig &
|
|
331
336
|
UserAgentResolvedConfig &
|
|
337
|
+
CompressionResolvedConfig &
|
|
332
338
|
ClientResolvedEndpointParameters;
|
|
333
339
|
export interface CloudWatchClientResolvedConfig
|
|
334
340
|
extends CloudWatchClientResolvedConfigType {}
|
|
@@ -12,6 +12,9 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
12
12
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
13
13
|
import("@smithy/types").UserAgent
|
|
14
14
|
>;
|
|
15
|
+
disableRequestCompression:
|
|
16
|
+
| boolean
|
|
17
|
+
| import("@smithy/types").Provider<boolean>;
|
|
15
18
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
16
19
|
region: string | import("@smithy/types").Provider<any>;
|
|
17
20
|
requestHandler:
|
|
@@ -29,6 +32,9 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
29
32
|
httpHandlerConfigs(): {};
|
|
30
33
|
})
|
|
31
34
|
| RequestHandler;
|
|
35
|
+
requestMinCompressionSizeBytes:
|
|
36
|
+
| number
|
|
37
|
+
| import("@smithy/types").Provider<number>;
|
|
32
38
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
33
39
|
sha256: import("@smithy/types").HashConstructor;
|
|
34
40
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -16,6 +16,9 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
16
16
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
17
17
|
import("@smithy/types").UserAgent
|
|
18
18
|
>;
|
|
19
|
+
disableRequestCompression:
|
|
20
|
+
| boolean
|
|
21
|
+
| import("@smithy/types").Provider<boolean>;
|
|
19
22
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
20
23
|
region: string | import("@smithy/types").Provider<string>;
|
|
21
24
|
requestHandler:
|
|
@@ -33,6 +36,9 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
33
36
|
httpHandlerConfigs(): {};
|
|
34
37
|
})
|
|
35
38
|
| RequestHandler;
|
|
39
|
+
requestMinCompressionSizeBytes:
|
|
40
|
+
| number
|
|
41
|
+
| import("@smithy/types").Provider<number>;
|
|
36
42
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
37
43
|
sha256: import("@smithy/types").HashConstructor;
|
|
38
44
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -85,4 +85,10 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
85
85
|
) => import("@smithy/types").RequestSigner)
|
|
86
86
|
| undefined;
|
|
87
87
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
88
|
+
disableRequestCompression:
|
|
89
|
+
| boolean
|
|
90
|
+
| import("@smithy/types").Provider<boolean>;
|
|
91
|
+
requestMinCompressionSizeBytes:
|
|
92
|
+
| number
|
|
93
|
+
| import("@smithy/types").Provider<number>;
|
|
88
94
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.512.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-cloudwatch",
|
|
@@ -20,24 +20,25 @@
|
|
|
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-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.511.0",
|
|
24
|
+
"@aws-sdk/core": "3.511.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.511.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.511.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.511.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.511.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.511.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.511.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.511.0",
|
|
32
|
+
"@aws-sdk/types": "3.511.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.511.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.511.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.511.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.1.1",
|
|
37
37
|
"@smithy/core": "^1.3.1",
|
|
38
38
|
"@smithy/fetch-http-handler": "^2.4.1",
|
|
39
39
|
"@smithy/hash-node": "^2.1.1",
|
|
40
40
|
"@smithy/invalid-dependency": "^2.1.1",
|
|
41
|
+
"@smithy/middleware-compression": "^2.1.1",
|
|
41
42
|
"@smithy/middleware-content-length": "^2.1.1",
|
|
42
43
|
"@smithy/middleware-endpoint": "^2.4.1",
|
|
43
44
|
"@smithy/middleware-retry": "^2.1.1",
|