@aws-sdk/client-cloudwatch 3.28.0 → 3.32.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/CHANGELOG.md +32 -0
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_query.js +23 -23
- package/dist/cjs/protocols/Aws_query.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/protocols/Aws_query.js +24 -24
- package/dist/es/protocols/Aws_query.js.map +1 -1
- package/package.json +32 -32
- package/protocols/Aws_query.ts +31 -24
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.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,48 +27,48 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
58
|
-
"@aws-sdk/util-waiter": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
|
+
"@aws-sdk/util-waiter": "3.32.0",
|
|
59
59
|
"entities": "2.2.0",
|
|
60
60
|
"fast-xml-parser": "3.19.0",
|
|
61
61
|
"tslib": "^2.3.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
64
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
65
65
|
"@types/node": "^12.7.5",
|
|
66
66
|
"downlevel-dts": "0.7.0",
|
|
67
67
|
"jest": "^26.1.0",
|
|
68
68
|
"rimraf": "^3.0.0",
|
|
69
69
|
"ts-jest": "^26.4.1",
|
|
70
70
|
"typedoc": "^0.19.2",
|
|
71
|
-
"typescript": "~4.3.
|
|
71
|
+
"typescript": "~4.3.5"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=10.0.0"
|
package/protocols/Aws_query.ts
CHANGED
|
@@ -178,14 +178,17 @@ import {
|
|
|
178
178
|
} from "../models/models_0";
|
|
179
179
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
180
180
|
import {
|
|
181
|
+
expectNonNull as __expectNonNull,
|
|
181
182
|
expectString as __expectString,
|
|
182
183
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
183
184
|
getArrayIfSingleItem as __getArrayIfSingleItem,
|
|
184
185
|
getValueFromTextNode as __getValueFromTextNode,
|
|
185
186
|
parseBoolean as __parseBoolean,
|
|
187
|
+
parseRfc3339DateTime as __parseRfc3339DateTime,
|
|
186
188
|
serializeFloat as __serializeFloat,
|
|
187
189
|
strictParseFloat as __strictParseFloat,
|
|
188
|
-
|
|
190
|
+
strictParseInt32 as __strictParseInt32,
|
|
191
|
+
strictParseLong as __strictParseLong,
|
|
189
192
|
} from "@aws-sdk/smithy-client";
|
|
190
193
|
import {
|
|
191
194
|
Endpoint as __Endpoint,
|
|
@@ -4581,7 +4584,7 @@ const deserializeAws_queryAlarmHistoryItem = (output: any, context: __SerdeConte
|
|
|
4581
4584
|
contents.AlarmType = __expectString(output["AlarmType"]);
|
|
4582
4585
|
}
|
|
4583
4586
|
if (output["Timestamp"] !== undefined) {
|
|
4584
|
-
contents.Timestamp =
|
|
4587
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTime(output["Timestamp"]));
|
|
4585
4588
|
}
|
|
4586
4589
|
if (output["HistoryItemType"] !== undefined) {
|
|
4587
4590
|
contents.HistoryItemType = __expectString(output["HistoryItemType"]);
|
|
@@ -4730,7 +4733,9 @@ const deserializeAws_queryCompositeAlarm = (output: any, context: __SerdeContext
|
|
|
4730
4733
|
contents.AlarmArn = __expectString(output["AlarmArn"]);
|
|
4731
4734
|
}
|
|
4732
4735
|
if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) {
|
|
4733
|
-
contents.AlarmConfigurationUpdatedTimestamp =
|
|
4736
|
+
contents.AlarmConfigurationUpdatedTimestamp = __expectNonNull(
|
|
4737
|
+
__parseRfc3339DateTime(output["AlarmConfigurationUpdatedTimestamp"])
|
|
4738
|
+
);
|
|
4734
4739
|
}
|
|
4735
4740
|
if (output["AlarmDescription"] !== undefined) {
|
|
4736
4741
|
contents.AlarmDescription = __expectString(output["AlarmDescription"]);
|
|
@@ -4766,7 +4771,7 @@ const deserializeAws_queryCompositeAlarm = (output: any, context: __SerdeContext
|
|
|
4766
4771
|
contents.StateReasonData = __expectString(output["StateReasonData"]);
|
|
4767
4772
|
}
|
|
4768
4773
|
if (output["StateUpdatedTimestamp"] !== undefined) {
|
|
4769
|
-
contents.StateUpdatedTimestamp =
|
|
4774
|
+
contents.StateUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTime(output["StateUpdatedTimestamp"]));
|
|
4770
4775
|
}
|
|
4771
4776
|
if (output["StateValue"] !== undefined) {
|
|
4772
4777
|
contents.StateValue = __expectString(output["StateValue"]);
|
|
@@ -4823,10 +4828,10 @@ const deserializeAws_queryDashboardEntry = (output: any, context: __SerdeContext
|
|
|
4823
4828
|
contents.DashboardArn = __expectString(output["DashboardArn"]);
|
|
4824
4829
|
}
|
|
4825
4830
|
if (output["LastModified"] !== undefined) {
|
|
4826
|
-
contents.LastModified =
|
|
4831
|
+
contents.LastModified = __expectNonNull(__parseRfc3339DateTime(output["LastModified"]));
|
|
4827
4832
|
}
|
|
4828
4833
|
if (output["Size"] !== undefined) {
|
|
4829
|
-
contents.Size =
|
|
4834
|
+
contents.Size = __strictParseLong(output["Size"]) as number;
|
|
4830
4835
|
}
|
|
4831
4836
|
return contents;
|
|
4832
4837
|
};
|
|
@@ -4910,7 +4915,7 @@ const deserializeAws_queryDatapoint = (output: any, context: __SerdeContext): Da
|
|
|
4910
4915
|
ExtendedStatistics: undefined,
|
|
4911
4916
|
};
|
|
4912
4917
|
if (output["Timestamp"] !== undefined) {
|
|
4913
|
-
contents.Timestamp =
|
|
4918
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTime(output["Timestamp"]));
|
|
4914
4919
|
}
|
|
4915
4920
|
if (output["SampleCount"] !== undefined) {
|
|
4916
4921
|
contents.SampleCount = __strictParseFloat(output["SampleCount"]) as number;
|
|
@@ -5243,7 +5248,7 @@ const deserializeAws_queryGetInsightRuleReportOutput = (
|
|
|
5243
5248
|
contents.AggregateValue = __strictParseFloat(output["AggregateValue"]) as number;
|
|
5244
5249
|
}
|
|
5245
5250
|
if (output["ApproximateUniqueCount"] !== undefined) {
|
|
5246
|
-
contents.ApproximateUniqueCount =
|
|
5251
|
+
contents.ApproximateUniqueCount = __strictParseLong(output["ApproximateUniqueCount"]) as number;
|
|
5247
5252
|
}
|
|
5248
5253
|
if (output.Contributors === "") {
|
|
5249
5254
|
contents.Contributors = [];
|
|
@@ -5366,10 +5371,10 @@ const deserializeAws_queryGetMetricStreamOutput = (output: any, context: __Serde
|
|
|
5366
5371
|
contents.State = __expectString(output["State"]);
|
|
5367
5372
|
}
|
|
5368
5373
|
if (output["CreationDate"] !== undefined) {
|
|
5369
|
-
contents.CreationDate =
|
|
5374
|
+
contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(output["CreationDate"]));
|
|
5370
5375
|
}
|
|
5371
5376
|
if (output["LastUpdateDate"] !== undefined) {
|
|
5372
|
-
contents.LastUpdateDate =
|
|
5377
|
+
contents.LastUpdateDate = __expectNonNull(__parseRfc3339DateTime(output["LastUpdateDate"]));
|
|
5373
5378
|
}
|
|
5374
5379
|
if (output["OutputFormat"] !== undefined) {
|
|
5375
5380
|
contents.OutputFormat = __expectString(output["OutputFormat"]);
|
|
@@ -5451,7 +5456,7 @@ const deserializeAws_queryInsightRuleContributorDatapoint = (
|
|
|
5451
5456
|
ApproximateValue: undefined,
|
|
5452
5457
|
};
|
|
5453
5458
|
if (output["Timestamp"] !== undefined) {
|
|
5454
|
-
contents.Timestamp =
|
|
5459
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTime(output["Timestamp"]));
|
|
5455
5460
|
}
|
|
5456
5461
|
if (output["ApproximateValue"] !== undefined) {
|
|
5457
5462
|
contents.ApproximateValue = __strictParseFloat(output["ApproximateValue"]) as number;
|
|
@@ -5524,7 +5529,7 @@ const deserializeAws_queryInsightRuleMetricDatapoint = (
|
|
|
5524
5529
|
Maximum: undefined,
|
|
5525
5530
|
};
|
|
5526
5531
|
if (output["Timestamp"] !== undefined) {
|
|
5527
|
-
contents.Timestamp =
|
|
5532
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTime(output["Timestamp"]));
|
|
5528
5533
|
}
|
|
5529
5534
|
if (output["UniqueContributors"] !== undefined) {
|
|
5530
5535
|
contents.UniqueContributors = __strictParseFloat(output["UniqueContributors"]) as number;
|
|
@@ -5802,7 +5807,9 @@ const deserializeAws_queryMetricAlarm = (output: any, context: __SerdeContext):
|
|
|
5802
5807
|
contents.AlarmDescription = __expectString(output["AlarmDescription"]);
|
|
5803
5808
|
}
|
|
5804
5809
|
if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) {
|
|
5805
|
-
contents.AlarmConfigurationUpdatedTimestamp =
|
|
5810
|
+
contents.AlarmConfigurationUpdatedTimestamp = __expectNonNull(
|
|
5811
|
+
__parseRfc3339DateTime(output["AlarmConfigurationUpdatedTimestamp"])
|
|
5812
|
+
);
|
|
5806
5813
|
}
|
|
5807
5814
|
if (output["ActionsEnabled"] !== undefined) {
|
|
5808
5815
|
contents.ActionsEnabled = __parseBoolean(output["ActionsEnabled"]);
|
|
@@ -5844,7 +5851,7 @@ const deserializeAws_queryMetricAlarm = (output: any, context: __SerdeContext):
|
|
|
5844
5851
|
contents.StateReasonData = __expectString(output["StateReasonData"]);
|
|
5845
5852
|
}
|
|
5846
5853
|
if (output["StateUpdatedTimestamp"] !== undefined) {
|
|
5847
|
-
contents.StateUpdatedTimestamp =
|
|
5854
|
+
contents.StateUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTime(output["StateUpdatedTimestamp"]));
|
|
5848
5855
|
}
|
|
5849
5856
|
if (output["MetricName"] !== undefined) {
|
|
5850
5857
|
contents.MetricName = __expectString(output["MetricName"]);
|
|
@@ -5868,16 +5875,16 @@ const deserializeAws_queryMetricAlarm = (output: any, context: __SerdeContext):
|
|
|
5868
5875
|
);
|
|
5869
5876
|
}
|
|
5870
5877
|
if (output["Period"] !== undefined) {
|
|
5871
|
-
contents.Period =
|
|
5878
|
+
contents.Period = __strictParseInt32(output["Period"]) as number;
|
|
5872
5879
|
}
|
|
5873
5880
|
if (output["Unit"] !== undefined) {
|
|
5874
5881
|
contents.Unit = __expectString(output["Unit"]);
|
|
5875
5882
|
}
|
|
5876
5883
|
if (output["EvaluationPeriods"] !== undefined) {
|
|
5877
|
-
contents.EvaluationPeriods =
|
|
5884
|
+
contents.EvaluationPeriods = __strictParseInt32(output["EvaluationPeriods"]) as number;
|
|
5878
5885
|
}
|
|
5879
5886
|
if (output["DatapointsToAlarm"] !== undefined) {
|
|
5880
|
-
contents.DatapointsToAlarm =
|
|
5887
|
+
contents.DatapointsToAlarm = __strictParseInt32(output["DatapointsToAlarm"]) as number;
|
|
5881
5888
|
}
|
|
5882
5889
|
if (output["Threshold"] !== undefined) {
|
|
5883
5890
|
contents.Threshold = __strictParseFloat(output["Threshold"]) as number;
|
|
@@ -5954,7 +5961,7 @@ const deserializeAws_queryMetricDataQuery = (output: any, context: __SerdeContex
|
|
|
5954
5961
|
contents.ReturnData = __parseBoolean(output["ReturnData"]);
|
|
5955
5962
|
}
|
|
5956
5963
|
if (output["Period"] !== undefined) {
|
|
5957
|
-
contents.Period =
|
|
5964
|
+
contents.Period = __strictParseInt32(output["Period"]) as number;
|
|
5958
5965
|
}
|
|
5959
5966
|
if (output["AccountId"] !== undefined) {
|
|
5960
5967
|
contents.AccountId = __expectString(output["AccountId"]);
|
|
@@ -6051,7 +6058,7 @@ const deserializeAws_queryMetricStat = (output: any, context: __SerdeContext): M
|
|
|
6051
6058
|
contents.Metric = deserializeAws_queryMetric(output["Metric"], context);
|
|
6052
6059
|
}
|
|
6053
6060
|
if (output["Period"] !== undefined) {
|
|
6054
|
-
contents.Period =
|
|
6061
|
+
contents.Period = __strictParseInt32(output["Period"]) as number;
|
|
6055
6062
|
}
|
|
6056
6063
|
if (output["Stat"] !== undefined) {
|
|
6057
6064
|
contents.Stat = __expectString(output["Stat"]);
|
|
@@ -6087,10 +6094,10 @@ const deserializeAws_queryMetricStreamEntry = (output: any, context: __SerdeCont
|
|
|
6087
6094
|
contents.Arn = __expectString(output["Arn"]);
|
|
6088
6095
|
}
|
|
6089
6096
|
if (output["CreationDate"] !== undefined) {
|
|
6090
|
-
contents.CreationDate =
|
|
6097
|
+
contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(output["CreationDate"]));
|
|
6091
6098
|
}
|
|
6092
6099
|
if (output["LastUpdateDate"] !== undefined) {
|
|
6093
|
-
contents.LastUpdateDate =
|
|
6100
|
+
contents.LastUpdateDate = __expectNonNull(__parseRfc3339DateTime(output["LastUpdateDate"]));
|
|
6094
6101
|
}
|
|
6095
6102
|
if (output["Name"] !== undefined) {
|
|
6096
6103
|
contents.Name = __expectString(output["Name"]);
|
|
@@ -6211,10 +6218,10 @@ const deserializeAws_queryRange = (output: any, context: __SerdeContext): Range
|
|
|
6211
6218
|
EndTime: undefined,
|
|
6212
6219
|
};
|
|
6213
6220
|
if (output["StartTime"] !== undefined) {
|
|
6214
|
-
contents.StartTime =
|
|
6221
|
+
contents.StartTime = __expectNonNull(__parseRfc3339DateTime(output["StartTime"]));
|
|
6215
6222
|
}
|
|
6216
6223
|
if (output["EndTime"] !== undefined) {
|
|
6217
|
-
contents.EndTime =
|
|
6224
|
+
contents.EndTime = __expectNonNull(__parseRfc3339DateTime(output["EndTime"]));
|
|
6218
6225
|
}
|
|
6219
6226
|
return contents;
|
|
6220
6227
|
};
|
|
@@ -6311,7 +6318,7 @@ const deserializeAws_queryTimestamps = (output: any, context: __SerdeContext): D
|
|
|
6311
6318
|
if (entry === null) {
|
|
6312
6319
|
return null as any;
|
|
6313
6320
|
}
|
|
6314
|
-
return
|
|
6321
|
+
return __expectNonNull(__parseRfc3339DateTime(entry));
|
|
6315
6322
|
});
|
|
6316
6323
|
};
|
|
6317
6324
|
|