@aws-sdk/client-cloudwatch 3.259.0 → 3.262.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.
|
@@ -3623,7 +3623,7 @@ const deserializeAws_queryAlarmHistoryItem = (output, context) => {
|
|
|
3623
3623
|
contents.AlarmType = (0, smithy_client_1.expectString)(output["AlarmType"]);
|
|
3624
3624
|
}
|
|
3625
3625
|
if (output["Timestamp"] !== undefined) {
|
|
3626
|
-
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
3626
|
+
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Timestamp"]));
|
|
3627
3627
|
}
|
|
3628
3628
|
if (output["HistoryItemType"] !== undefined) {
|
|
3629
3629
|
contents.HistoryItemType = (0, smithy_client_1.expectString)(output["HistoryItemType"]);
|
|
@@ -3755,7 +3755,7 @@ const deserializeAws_queryCompositeAlarm = (output, context) => {
|
|
|
3755
3755
|
contents.AlarmArn = (0, smithy_client_1.expectString)(output["AlarmArn"]);
|
|
3756
3756
|
}
|
|
3757
3757
|
if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) {
|
|
3758
|
-
contents.AlarmConfigurationUpdatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
3758
|
+
contents.AlarmConfigurationUpdatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["AlarmConfigurationUpdatedTimestamp"]));
|
|
3759
3759
|
}
|
|
3760
3760
|
if (output["AlarmDescription"] !== undefined) {
|
|
3761
3761
|
contents.AlarmDescription = (0, smithy_client_1.expectString)(output["AlarmDescription"]);
|
|
@@ -3786,13 +3786,13 @@ const deserializeAws_queryCompositeAlarm = (output, context) => {
|
|
|
3786
3786
|
contents.StateReasonData = (0, smithy_client_1.expectString)(output["StateReasonData"]);
|
|
3787
3787
|
}
|
|
3788
3788
|
if (output["StateUpdatedTimestamp"] !== undefined) {
|
|
3789
|
-
contents.StateUpdatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
3789
|
+
contents.StateUpdatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["StateUpdatedTimestamp"]));
|
|
3790
3790
|
}
|
|
3791
3791
|
if (output["StateValue"] !== undefined) {
|
|
3792
3792
|
contents.StateValue = (0, smithy_client_1.expectString)(output["StateValue"]);
|
|
3793
3793
|
}
|
|
3794
3794
|
if (output["StateTransitionedTimestamp"] !== undefined) {
|
|
3795
|
-
contents.StateTransitionedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
3795
|
+
contents.StateTransitionedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["StateTransitionedTimestamp"]));
|
|
3796
3796
|
}
|
|
3797
3797
|
if (output["ActionsSuppressedBy"] !== undefined) {
|
|
3798
3798
|
contents.ActionsSuppressedBy = (0, smithy_client_1.expectString)(output["ActionsSuppressedBy"]);
|
|
@@ -3848,7 +3848,7 @@ const deserializeAws_queryDashboardEntry = (output, context) => {
|
|
|
3848
3848
|
contents.DashboardArn = (0, smithy_client_1.expectString)(output["DashboardArn"]);
|
|
3849
3849
|
}
|
|
3850
3850
|
if (output["LastModified"] !== undefined) {
|
|
3851
|
-
contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
3851
|
+
contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["LastModified"]));
|
|
3852
3852
|
}
|
|
3853
3853
|
if (output["Size"] !== undefined) {
|
|
3854
3854
|
contents.Size = (0, smithy_client_1.strictParseLong)(output["Size"]);
|
|
@@ -3913,7 +3913,7 @@ const deserializeAws_queryDatapoint = (output, context) => {
|
|
|
3913
3913
|
ExtendedStatistics: undefined,
|
|
3914
3914
|
};
|
|
3915
3915
|
if (output["Timestamp"] !== undefined) {
|
|
3916
|
-
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
3916
|
+
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Timestamp"]));
|
|
3917
3917
|
}
|
|
3918
3918
|
if (output["SampleCount"] !== undefined) {
|
|
3919
3919
|
contents.SampleCount = (0, smithy_client_1.strictParseFloat)(output["SampleCount"]);
|
|
@@ -4252,10 +4252,10 @@ const deserializeAws_queryGetMetricStreamOutput = (output, context) => {
|
|
|
4252
4252
|
contents.State = (0, smithy_client_1.expectString)(output["State"]);
|
|
4253
4253
|
}
|
|
4254
4254
|
if (output["CreationDate"] !== undefined) {
|
|
4255
|
-
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4255
|
+
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreationDate"]));
|
|
4256
4256
|
}
|
|
4257
4257
|
if (output["LastUpdateDate"] !== undefined) {
|
|
4258
|
-
contents.LastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4258
|
+
contents.LastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["LastUpdateDate"]));
|
|
4259
4259
|
}
|
|
4260
4260
|
if (output["OutputFormat"] !== undefined) {
|
|
4261
4261
|
contents.OutputFormat = (0, smithy_client_1.expectString)(output["OutputFormat"]);
|
|
@@ -4335,7 +4335,7 @@ const deserializeAws_queryInsightRuleContributorDatapoint = (output, context) =>
|
|
|
4335
4335
|
ApproximateValue: undefined,
|
|
4336
4336
|
};
|
|
4337
4337
|
if (output["Timestamp"] !== undefined) {
|
|
4338
|
-
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4338
|
+
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Timestamp"]));
|
|
4339
4339
|
}
|
|
4340
4340
|
if (output["ApproximateValue"] !== undefined) {
|
|
4341
4341
|
contents.ApproximateValue = (0, smithy_client_1.strictParseFloat)(output["ApproximateValue"]);
|
|
@@ -4382,7 +4382,7 @@ const deserializeAws_queryInsightRuleMetricDatapoint = (output, context) => {
|
|
|
4382
4382
|
Maximum: undefined,
|
|
4383
4383
|
};
|
|
4384
4384
|
if (output["Timestamp"] !== undefined) {
|
|
4385
|
-
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4385
|
+
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Timestamp"]));
|
|
4386
4386
|
}
|
|
4387
4387
|
if (output["UniqueContributors"] !== undefined) {
|
|
4388
4388
|
contents.UniqueContributors = (0, smithy_client_1.strictParseFloat)(output["UniqueContributors"]);
|
|
@@ -4679,7 +4679,7 @@ const deserializeAws_queryMetricAlarm = (output, context) => {
|
|
|
4679
4679
|
contents.AlarmDescription = (0, smithy_client_1.expectString)(output["AlarmDescription"]);
|
|
4680
4680
|
}
|
|
4681
4681
|
if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) {
|
|
4682
|
-
contents.AlarmConfigurationUpdatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4682
|
+
contents.AlarmConfigurationUpdatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["AlarmConfigurationUpdatedTimestamp"]));
|
|
4683
4683
|
}
|
|
4684
4684
|
if (output["ActionsEnabled"] !== undefined) {
|
|
4685
4685
|
contents.ActionsEnabled = (0, smithy_client_1.parseBoolean)(output["ActionsEnabled"]);
|
|
@@ -4713,7 +4713,7 @@ const deserializeAws_queryMetricAlarm = (output, context) => {
|
|
|
4713
4713
|
contents.StateReasonData = (0, smithy_client_1.expectString)(output["StateReasonData"]);
|
|
4714
4714
|
}
|
|
4715
4715
|
if (output["StateUpdatedTimestamp"] !== undefined) {
|
|
4716
|
-
contents.StateUpdatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4716
|
+
contents.StateUpdatedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["StateUpdatedTimestamp"]));
|
|
4717
4717
|
}
|
|
4718
4718
|
if (output["MetricName"] !== undefined) {
|
|
4719
4719
|
contents.MetricName = (0, smithy_client_1.expectString)(output["MetricName"]);
|
|
@@ -4770,7 +4770,7 @@ const deserializeAws_queryMetricAlarm = (output, context) => {
|
|
|
4770
4770
|
contents.EvaluationState = (0, smithy_client_1.expectString)(output["EvaluationState"]);
|
|
4771
4771
|
}
|
|
4772
4772
|
if (output["StateTransitionedTimestamp"] !== undefined) {
|
|
4773
|
-
contents.StateTransitionedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4773
|
+
contents.StateTransitionedTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["StateTransitionedTimestamp"]));
|
|
4774
4774
|
}
|
|
4775
4775
|
return contents;
|
|
4776
4776
|
};
|
|
@@ -4934,10 +4934,10 @@ const deserializeAws_queryMetricStreamEntry = (output, context) => {
|
|
|
4934
4934
|
contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
|
|
4935
4935
|
}
|
|
4936
4936
|
if (output["CreationDate"] !== undefined) {
|
|
4937
|
-
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4937
|
+
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreationDate"]));
|
|
4938
4938
|
}
|
|
4939
4939
|
if (output["LastUpdateDate"] !== undefined) {
|
|
4940
|
-
contents.LastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
4940
|
+
contents.LastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["LastUpdateDate"]));
|
|
4941
4941
|
}
|
|
4942
4942
|
if (output["Name"] !== undefined) {
|
|
4943
4943
|
contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
|
|
@@ -5107,10 +5107,10 @@ const deserializeAws_queryRange = (output, context) => {
|
|
|
5107
5107
|
EndTime: undefined,
|
|
5108
5108
|
};
|
|
5109
5109
|
if (output["StartTime"] !== undefined) {
|
|
5110
|
-
contents.StartTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
5110
|
+
contents.StartTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["StartTime"]));
|
|
5111
5111
|
}
|
|
5112
5112
|
if (output["EndTime"] !== undefined) {
|
|
5113
|
-
contents.EndTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
5113
|
+
contents.EndTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["EndTime"]));
|
|
5114
5114
|
}
|
|
5115
5115
|
return contents;
|
|
5116
5116
|
};
|
|
@@ -5207,7 +5207,7 @@ const deserializeAws_queryTimestamps = (output, context) => {
|
|
|
5207
5207
|
return (output || [])
|
|
5208
5208
|
.filter((e) => e != null)
|
|
5209
5209
|
.map((entry) => {
|
|
5210
|
-
return (0, smithy_client_1.expectNonNull)((0, smithy_client_1.
|
|
5210
|
+
return (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(entry));
|
|
5211
5211
|
});
|
|
5212
5212
|
};
|
|
5213
5213
|
const deserializeAws_queryUntagResourceOutput = (output, context) => {
|
|
@@ -5281,7 +5281,7 @@ const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
|
5281
5281
|
.map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
|
|
5282
5282
|
.join("&");
|
|
5283
5283
|
const loadQueryErrorCode = (output, data) => {
|
|
5284
|
-
if (data.Error
|
|
5284
|
+
if (data.Error?.Code !== undefined) {
|
|
5285
5285
|
return data.Error.Code;
|
|
5286
5286
|
}
|
|
5287
5287
|
if (output.statusCode == 404) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { CloudWatchServiceException as __BaseException } from "../models/CloudWatchServiceException";
|
|
5
5
|
import { ConcurrentModificationException, DashboardInvalidInputError, DashboardNotFoundError, InternalServiceFault, InvalidFormatFault, InvalidNextToken, InvalidParameterCombinationException, InvalidParameterValueException, LimitExceededException, LimitExceededFault, MissingRequiredParameterException, ResourceNotFound, ResourceNotFoundException, } from "../models/models_0";
|
|
@@ -3543,7 +3543,7 @@ const deserializeAws_queryAlarmHistoryItem = (output, context) => {
|
|
|
3543
3543
|
contents.AlarmType = __expectString(output["AlarmType"]);
|
|
3544
3544
|
}
|
|
3545
3545
|
if (output["Timestamp"] !== undefined) {
|
|
3546
|
-
contents.Timestamp = __expectNonNull(
|
|
3546
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"]));
|
|
3547
3547
|
}
|
|
3548
3548
|
if (output["HistoryItemType"] !== undefined) {
|
|
3549
3549
|
contents.HistoryItemType = __expectString(output["HistoryItemType"]);
|
|
@@ -3675,7 +3675,7 @@ const deserializeAws_queryCompositeAlarm = (output, context) => {
|
|
|
3675
3675
|
contents.AlarmArn = __expectString(output["AlarmArn"]);
|
|
3676
3676
|
}
|
|
3677
3677
|
if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) {
|
|
3678
|
-
contents.AlarmConfigurationUpdatedTimestamp = __expectNonNull(
|
|
3678
|
+
contents.AlarmConfigurationUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AlarmConfigurationUpdatedTimestamp"]));
|
|
3679
3679
|
}
|
|
3680
3680
|
if (output["AlarmDescription"] !== undefined) {
|
|
3681
3681
|
contents.AlarmDescription = __expectString(output["AlarmDescription"]);
|
|
@@ -3706,13 +3706,13 @@ const deserializeAws_queryCompositeAlarm = (output, context) => {
|
|
|
3706
3706
|
contents.StateReasonData = __expectString(output["StateReasonData"]);
|
|
3707
3707
|
}
|
|
3708
3708
|
if (output["StateUpdatedTimestamp"] !== undefined) {
|
|
3709
|
-
contents.StateUpdatedTimestamp = __expectNonNull(
|
|
3709
|
+
contents.StateUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StateUpdatedTimestamp"]));
|
|
3710
3710
|
}
|
|
3711
3711
|
if (output["StateValue"] !== undefined) {
|
|
3712
3712
|
contents.StateValue = __expectString(output["StateValue"]);
|
|
3713
3713
|
}
|
|
3714
3714
|
if (output["StateTransitionedTimestamp"] !== undefined) {
|
|
3715
|
-
contents.StateTransitionedTimestamp = __expectNonNull(
|
|
3715
|
+
contents.StateTransitionedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StateTransitionedTimestamp"]));
|
|
3716
3716
|
}
|
|
3717
3717
|
if (output["ActionsSuppressedBy"] !== undefined) {
|
|
3718
3718
|
contents.ActionsSuppressedBy = __expectString(output["ActionsSuppressedBy"]);
|
|
@@ -3768,7 +3768,7 @@ const deserializeAws_queryDashboardEntry = (output, context) => {
|
|
|
3768
3768
|
contents.DashboardArn = __expectString(output["DashboardArn"]);
|
|
3769
3769
|
}
|
|
3770
3770
|
if (output["LastModified"] !== undefined) {
|
|
3771
|
-
contents.LastModified = __expectNonNull(
|
|
3771
|
+
contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModified"]));
|
|
3772
3772
|
}
|
|
3773
3773
|
if (output["Size"] !== undefined) {
|
|
3774
3774
|
contents.Size = __strictParseLong(output["Size"]);
|
|
@@ -3833,7 +3833,7 @@ const deserializeAws_queryDatapoint = (output, context) => {
|
|
|
3833
3833
|
ExtendedStatistics: undefined,
|
|
3834
3834
|
};
|
|
3835
3835
|
if (output["Timestamp"] !== undefined) {
|
|
3836
|
-
contents.Timestamp = __expectNonNull(
|
|
3836
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"]));
|
|
3837
3837
|
}
|
|
3838
3838
|
if (output["SampleCount"] !== undefined) {
|
|
3839
3839
|
contents.SampleCount = __strictParseFloat(output["SampleCount"]);
|
|
@@ -4172,10 +4172,10 @@ const deserializeAws_queryGetMetricStreamOutput = (output, context) => {
|
|
|
4172
4172
|
contents.State = __expectString(output["State"]);
|
|
4173
4173
|
}
|
|
4174
4174
|
if (output["CreationDate"] !== undefined) {
|
|
4175
|
-
contents.CreationDate = __expectNonNull(
|
|
4175
|
+
contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationDate"]));
|
|
4176
4176
|
}
|
|
4177
4177
|
if (output["LastUpdateDate"] !== undefined) {
|
|
4178
|
-
contents.LastUpdateDate = __expectNonNull(
|
|
4178
|
+
contents.LastUpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdateDate"]));
|
|
4179
4179
|
}
|
|
4180
4180
|
if (output["OutputFormat"] !== undefined) {
|
|
4181
4181
|
contents.OutputFormat = __expectString(output["OutputFormat"]);
|
|
@@ -4255,7 +4255,7 @@ const deserializeAws_queryInsightRuleContributorDatapoint = (output, context) =>
|
|
|
4255
4255
|
ApproximateValue: undefined,
|
|
4256
4256
|
};
|
|
4257
4257
|
if (output["Timestamp"] !== undefined) {
|
|
4258
|
-
contents.Timestamp = __expectNonNull(
|
|
4258
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"]));
|
|
4259
4259
|
}
|
|
4260
4260
|
if (output["ApproximateValue"] !== undefined) {
|
|
4261
4261
|
contents.ApproximateValue = __strictParseFloat(output["ApproximateValue"]);
|
|
@@ -4302,7 +4302,7 @@ const deserializeAws_queryInsightRuleMetricDatapoint = (output, context) => {
|
|
|
4302
4302
|
Maximum: undefined,
|
|
4303
4303
|
};
|
|
4304
4304
|
if (output["Timestamp"] !== undefined) {
|
|
4305
|
-
contents.Timestamp = __expectNonNull(
|
|
4305
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"]));
|
|
4306
4306
|
}
|
|
4307
4307
|
if (output["UniqueContributors"] !== undefined) {
|
|
4308
4308
|
contents.UniqueContributors = __strictParseFloat(output["UniqueContributors"]);
|
|
@@ -4599,7 +4599,7 @@ const deserializeAws_queryMetricAlarm = (output, context) => {
|
|
|
4599
4599
|
contents.AlarmDescription = __expectString(output["AlarmDescription"]);
|
|
4600
4600
|
}
|
|
4601
4601
|
if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) {
|
|
4602
|
-
contents.AlarmConfigurationUpdatedTimestamp = __expectNonNull(
|
|
4602
|
+
contents.AlarmConfigurationUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AlarmConfigurationUpdatedTimestamp"]));
|
|
4603
4603
|
}
|
|
4604
4604
|
if (output["ActionsEnabled"] !== undefined) {
|
|
4605
4605
|
contents.ActionsEnabled = __parseBoolean(output["ActionsEnabled"]);
|
|
@@ -4633,7 +4633,7 @@ const deserializeAws_queryMetricAlarm = (output, context) => {
|
|
|
4633
4633
|
contents.StateReasonData = __expectString(output["StateReasonData"]);
|
|
4634
4634
|
}
|
|
4635
4635
|
if (output["StateUpdatedTimestamp"] !== undefined) {
|
|
4636
|
-
contents.StateUpdatedTimestamp = __expectNonNull(
|
|
4636
|
+
contents.StateUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StateUpdatedTimestamp"]));
|
|
4637
4637
|
}
|
|
4638
4638
|
if (output["MetricName"] !== undefined) {
|
|
4639
4639
|
contents.MetricName = __expectString(output["MetricName"]);
|
|
@@ -4690,7 +4690,7 @@ const deserializeAws_queryMetricAlarm = (output, context) => {
|
|
|
4690
4690
|
contents.EvaluationState = __expectString(output["EvaluationState"]);
|
|
4691
4691
|
}
|
|
4692
4692
|
if (output["StateTransitionedTimestamp"] !== undefined) {
|
|
4693
|
-
contents.StateTransitionedTimestamp = __expectNonNull(
|
|
4693
|
+
contents.StateTransitionedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StateTransitionedTimestamp"]));
|
|
4694
4694
|
}
|
|
4695
4695
|
return contents;
|
|
4696
4696
|
};
|
|
@@ -4854,10 +4854,10 @@ const deserializeAws_queryMetricStreamEntry = (output, context) => {
|
|
|
4854
4854
|
contents.Arn = __expectString(output["Arn"]);
|
|
4855
4855
|
}
|
|
4856
4856
|
if (output["CreationDate"] !== undefined) {
|
|
4857
|
-
contents.CreationDate = __expectNonNull(
|
|
4857
|
+
contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationDate"]));
|
|
4858
4858
|
}
|
|
4859
4859
|
if (output["LastUpdateDate"] !== undefined) {
|
|
4860
|
-
contents.LastUpdateDate = __expectNonNull(
|
|
4860
|
+
contents.LastUpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdateDate"]));
|
|
4861
4861
|
}
|
|
4862
4862
|
if (output["Name"] !== undefined) {
|
|
4863
4863
|
contents.Name = __expectString(output["Name"]);
|
|
@@ -5027,10 +5027,10 @@ const deserializeAws_queryRange = (output, context) => {
|
|
|
5027
5027
|
EndTime: undefined,
|
|
5028
5028
|
};
|
|
5029
5029
|
if (output["StartTime"] !== undefined) {
|
|
5030
|
-
contents.StartTime = __expectNonNull(
|
|
5030
|
+
contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"]));
|
|
5031
5031
|
}
|
|
5032
5032
|
if (output["EndTime"] !== undefined) {
|
|
5033
|
-
contents.EndTime = __expectNonNull(
|
|
5033
|
+
contents.EndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndTime"]));
|
|
5034
5034
|
}
|
|
5035
5035
|
return contents;
|
|
5036
5036
|
};
|
|
@@ -5127,7 +5127,7 @@ const deserializeAws_queryTimestamps = (output, context) => {
|
|
|
5127
5127
|
return (output || [])
|
|
5128
5128
|
.filter((e) => e != null)
|
|
5129
5129
|
.map((entry) => {
|
|
5130
|
-
return __expectNonNull(
|
|
5130
|
+
return __expectNonNull(__parseRfc3339DateTimeWithOffset(entry));
|
|
5131
5131
|
});
|
|
5132
5132
|
};
|
|
5133
5133
|
const deserializeAws_queryUntagResourceOutput = (output, context) => {
|
|
@@ -5201,7 +5201,7 @@ const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
|
5201
5201
|
.map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
|
|
5202
5202
|
.join("&");
|
|
5203
5203
|
const loadQueryErrorCode = (output, data) => {
|
|
5204
|
-
if (data.Error
|
|
5204
|
+
if (data.Error?.Code !== undefined) {
|
|
5205
5205
|
return data.Error.Code;
|
|
5206
5206
|
}
|
|
5207
5207
|
if (output.statusCode == 404) {
|
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.262.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.262.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.259.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.261.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.257.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.257.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.257.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@aws-sdk/node-config-provider": "3.259.0",
|
|
40
40
|
"@aws-sdk/node-http-handler": "3.257.0",
|
|
41
41
|
"@aws-sdk/protocol-http": "3.257.0",
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
+
"@aws-sdk/smithy-client": "3.261.0",
|
|
43
43
|
"@aws-sdk/types": "3.257.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.257.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.261.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.261.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.257.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.257.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.257.0",
|