@aws-sdk/client-cloudwatch-logs 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.
|
@@ -368,7 +368,7 @@ const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
|
368
368
|
if (output.statusCode >= 300) {
|
|
369
369
|
return de_AssociateKmsKeyCommandError(output, context);
|
|
370
370
|
}
|
|
371
|
-
await collectBody(output.body, context);
|
|
371
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
372
372
|
const response = {
|
|
373
373
|
$metadata: deserializeMetadata(output),
|
|
374
374
|
};
|
|
@@ -407,7 +407,7 @@ const de_CancelExportTaskCommand = async (output, context) => {
|
|
|
407
407
|
if (output.statusCode >= 300) {
|
|
408
408
|
return de_CancelExportTaskCommandError(output, context);
|
|
409
409
|
}
|
|
410
|
-
await collectBody(output.body, context);
|
|
410
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
411
411
|
const response = {
|
|
412
412
|
$metadata: deserializeMetadata(output),
|
|
413
413
|
};
|
|
@@ -494,7 +494,7 @@ const de_CreateLogGroupCommand = async (output, context) => {
|
|
|
494
494
|
if (output.statusCode >= 300) {
|
|
495
495
|
return de_CreateLogGroupCommandError(output, context);
|
|
496
496
|
}
|
|
497
|
-
await collectBody(output.body, context);
|
|
497
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
498
498
|
const response = {
|
|
499
499
|
$metadata: deserializeMetadata(output),
|
|
500
500
|
};
|
|
@@ -536,7 +536,7 @@ const de_CreateLogStreamCommand = async (output, context) => {
|
|
|
536
536
|
if (output.statusCode >= 300) {
|
|
537
537
|
return de_CreateLogStreamCommandError(output, context);
|
|
538
538
|
}
|
|
539
|
-
await collectBody(output.body, context);
|
|
539
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
540
540
|
const response = {
|
|
541
541
|
$metadata: deserializeMetadata(output),
|
|
542
542
|
};
|
|
@@ -575,7 +575,7 @@ const de_DeleteAccountPolicyCommand = async (output, context) => {
|
|
|
575
575
|
if (output.statusCode >= 300) {
|
|
576
576
|
return de_DeleteAccountPolicyCommandError(output, context);
|
|
577
577
|
}
|
|
578
|
-
await collectBody(output.body, context);
|
|
578
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
579
579
|
const response = {
|
|
580
580
|
$metadata: deserializeMetadata(output),
|
|
581
581
|
};
|
|
@@ -614,7 +614,7 @@ const de_DeleteDataProtectionPolicyCommand = async (output, context) => {
|
|
|
614
614
|
if (output.statusCode >= 300) {
|
|
615
615
|
return de_DeleteDataProtectionPolicyCommandError(output, context);
|
|
616
616
|
}
|
|
617
|
-
await collectBody(output.body, context);
|
|
617
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
618
618
|
const response = {
|
|
619
619
|
$metadata: deserializeMetadata(output),
|
|
620
620
|
};
|
|
@@ -653,7 +653,7 @@ const de_DeleteDestinationCommand = async (output, context) => {
|
|
|
653
653
|
if (output.statusCode >= 300) {
|
|
654
654
|
return de_DeleteDestinationCommandError(output, context);
|
|
655
655
|
}
|
|
656
|
-
await collectBody(output.body, context);
|
|
656
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
657
657
|
const response = {
|
|
658
658
|
$metadata: deserializeMetadata(output),
|
|
659
659
|
};
|
|
@@ -692,7 +692,7 @@ const de_DeleteLogGroupCommand = async (output, context) => {
|
|
|
692
692
|
if (output.statusCode >= 300) {
|
|
693
693
|
return de_DeleteLogGroupCommandError(output, context);
|
|
694
694
|
}
|
|
695
|
-
await collectBody(output.body, context);
|
|
695
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
696
696
|
const response = {
|
|
697
697
|
$metadata: deserializeMetadata(output),
|
|
698
698
|
};
|
|
@@ -731,7 +731,7 @@ const de_DeleteLogStreamCommand = async (output, context) => {
|
|
|
731
731
|
if (output.statusCode >= 300) {
|
|
732
732
|
return de_DeleteLogStreamCommandError(output, context);
|
|
733
733
|
}
|
|
734
|
-
await collectBody(output.body, context);
|
|
734
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
735
735
|
const response = {
|
|
736
736
|
$metadata: deserializeMetadata(output),
|
|
737
737
|
};
|
|
@@ -770,7 +770,7 @@ const de_DeleteMetricFilterCommand = async (output, context) => {
|
|
|
770
770
|
if (output.statusCode >= 300) {
|
|
771
771
|
return de_DeleteMetricFilterCommandError(output, context);
|
|
772
772
|
}
|
|
773
|
-
await collectBody(output.body, context);
|
|
773
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
774
774
|
const response = {
|
|
775
775
|
$metadata: deserializeMetadata(output),
|
|
776
776
|
};
|
|
@@ -848,7 +848,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
848
848
|
if (output.statusCode >= 300) {
|
|
849
849
|
return de_DeleteResourcePolicyCommandError(output, context);
|
|
850
850
|
}
|
|
851
|
-
await collectBody(output.body, context);
|
|
851
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
852
852
|
const response = {
|
|
853
853
|
$metadata: deserializeMetadata(output),
|
|
854
854
|
};
|
|
@@ -884,7 +884,7 @@ const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
|
884
884
|
if (output.statusCode >= 300) {
|
|
885
885
|
return de_DeleteRetentionPolicyCommandError(output, context);
|
|
886
886
|
}
|
|
887
|
-
await collectBody(output.body, context);
|
|
887
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
888
888
|
const response = {
|
|
889
889
|
$metadata: deserializeMetadata(output),
|
|
890
890
|
};
|
|
@@ -923,7 +923,7 @@ const de_DeleteSubscriptionFilterCommand = async (output, context) => {
|
|
|
923
923
|
if (output.statusCode >= 300) {
|
|
924
924
|
return de_DeleteSubscriptionFilterCommandError(output, context);
|
|
925
925
|
}
|
|
926
|
-
await collectBody(output.body, context);
|
|
926
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
927
927
|
const response = {
|
|
928
928
|
$metadata: deserializeMetadata(output),
|
|
929
929
|
};
|
|
@@ -1340,7 +1340,7 @@ const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
|
1340
1340
|
if (output.statusCode >= 300) {
|
|
1341
1341
|
return de_DisassociateKmsKeyCommandError(output, context);
|
|
1342
1342
|
}
|
|
1343
|
-
await collectBody(output.body, context);
|
|
1343
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1344
1344
|
const response = {
|
|
1345
1345
|
$metadata: deserializeMetadata(output),
|
|
1346
1346
|
};
|
|
@@ -1823,7 +1823,7 @@ const de_PutDestinationPolicyCommand = async (output, context) => {
|
|
|
1823
1823
|
if (output.statusCode >= 300) {
|
|
1824
1824
|
return de_PutDestinationPolicyCommandError(output, context);
|
|
1825
1825
|
}
|
|
1826
|
-
await collectBody(output.body, context);
|
|
1826
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1827
1827
|
const response = {
|
|
1828
1828
|
$metadata: deserializeMetadata(output),
|
|
1829
1829
|
};
|
|
@@ -1907,7 +1907,7 @@ const de_PutMetricFilterCommand = async (output, context) => {
|
|
|
1907
1907
|
if (output.statusCode >= 300) {
|
|
1908
1908
|
return de_PutMetricFilterCommandError(output, context);
|
|
1909
1909
|
}
|
|
1910
|
-
await collectBody(output.body, context);
|
|
1910
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1911
1911
|
const response = {
|
|
1912
1912
|
$metadata: deserializeMetadata(output),
|
|
1913
1913
|
};
|
|
@@ -2030,7 +2030,7 @@ const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
|
2030
2030
|
if (output.statusCode >= 300) {
|
|
2031
2031
|
return de_PutRetentionPolicyCommandError(output, context);
|
|
2032
2032
|
}
|
|
2033
|
-
await collectBody(output.body, context);
|
|
2033
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2034
2034
|
const response = {
|
|
2035
2035
|
$metadata: deserializeMetadata(output),
|
|
2036
2036
|
};
|
|
@@ -2069,7 +2069,7 @@ const de_PutSubscriptionFilterCommand = async (output, context) => {
|
|
|
2069
2069
|
if (output.statusCode >= 300) {
|
|
2070
2070
|
return de_PutSubscriptionFilterCommandError(output, context);
|
|
2071
2071
|
}
|
|
2072
|
-
await collectBody(output.body, context);
|
|
2072
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2073
2073
|
const response = {
|
|
2074
2074
|
$metadata: deserializeMetadata(output),
|
|
2075
2075
|
};
|
|
@@ -2195,7 +2195,7 @@ const de_TagLogGroupCommand = async (output, context) => {
|
|
|
2195
2195
|
if (output.statusCode >= 300) {
|
|
2196
2196
|
return de_TagLogGroupCommandError(output, context);
|
|
2197
2197
|
}
|
|
2198
|
-
await collectBody(output.body, context);
|
|
2198
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2199
2199
|
const response = {
|
|
2200
2200
|
$metadata: deserializeMetadata(output),
|
|
2201
2201
|
};
|
|
@@ -2228,7 +2228,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2228
2228
|
if (output.statusCode >= 300) {
|
|
2229
2229
|
return de_TagResourceCommandError(output, context);
|
|
2230
2230
|
}
|
|
2231
|
-
await collectBody(output.body, context);
|
|
2231
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2232
2232
|
const response = {
|
|
2233
2233
|
$metadata: deserializeMetadata(output),
|
|
2234
2234
|
};
|
|
@@ -2303,7 +2303,7 @@ const de_UntagLogGroupCommand = async (output, context) => {
|
|
|
2303
2303
|
if (output.statusCode >= 300) {
|
|
2304
2304
|
return de_UntagLogGroupCommandError(output, context);
|
|
2305
2305
|
}
|
|
2306
|
-
await collectBody(output.body, context);
|
|
2306
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2307
2307
|
const response = {
|
|
2308
2308
|
$metadata: deserializeMetadata(output),
|
|
2309
2309
|
};
|
|
@@ -2333,7 +2333,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2333
2333
|
if (output.statusCode >= 300) {
|
|
2334
2334
|
return de_UntagResourceCommandError(output, context);
|
|
2335
2335
|
}
|
|
2336
|
-
await collectBody(output.body, context);
|
|
2336
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2337
2337
|
const response = {
|
|
2338
2338
|
$metadata: deserializeMetadata(output),
|
|
2339
2339
|
};
|
|
@@ -2559,13 +2559,7 @@ const deserializeMetadata = (output) => ({
|
|
|
2559
2559
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2560
2560
|
cfId: output.headers["x-amz-cf-id"],
|
|
2561
2561
|
});
|
|
2562
|
-
const
|
|
2563
|
-
if (streamBody instanceof Uint8Array) {
|
|
2564
|
-
return Promise.resolve(streamBody);
|
|
2565
|
-
}
|
|
2566
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2567
|
-
};
|
|
2568
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2562
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2569
2563
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudWatchLogsServiceException_1.CloudWatchLogsServiceException);
|
|
2570
2564
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2571
2565
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { CloudWatchLogsServiceException as __BaseException } from "../models/CloudWatchLogsServiceException";
|
|
4
4
|
import { DataAlreadyAcceptedException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, TooManyTagsException, UnrecognizedClientException, } from "../models/models_0";
|
|
@@ -2452,12 +2452,6 @@ const deserializeMetadata = (output) => ({
|
|
|
2452
2452
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2453
2453
|
cfId: output.headers["x-amz-cf-id"],
|
|
2454
2454
|
});
|
|
2455
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2456
|
-
if (streamBody instanceof Uint8Array) {
|
|
2457
|
-
return Promise.resolve(streamBody);
|
|
2458
|
-
}
|
|
2459
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2460
|
-
};
|
|
2461
2455
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2462
2456
|
const throwDefaultError = withBaseException(__BaseException);
|
|
2463
2457
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
@@ -124,7 +124,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
124
124
|
*/
|
|
125
125
|
runtime?: string;
|
|
126
126
|
/**
|
|
127
|
-
* Disable
|
|
127
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
128
128
|
* trait of an operation.
|
|
129
129
|
*/
|
|
130
130
|
disableHostPrefix?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch-logs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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,36 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
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.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
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-user-agent-browser": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|