@aws-sdk/client-cloudwatch 3.31.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 +8 -0
- package/dist/cjs/CloudWatchClient.js +13 -13
- package/dist/cjs/CloudWatchClient.js.map +1 -1
- package/dist/cjs/commands/DeleteAlarmsCommand.js +3 -3
- package/dist/cjs/commands/DeleteAlarmsCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAnomalyDetectorCommand.js +3 -3
- package/dist/cjs/commands/DeleteAnomalyDetectorCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteDashboardsCommand.js +3 -3
- package/dist/cjs/commands/DeleteDashboardsCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteInsightRulesCommand.js +3 -3
- package/dist/cjs/commands/DeleteInsightRulesCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMetricStreamCommand.js +3 -3
- package/dist/cjs/commands/DeleteMetricStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAlarmHistoryCommand.js +3 -3
- package/dist/cjs/commands/DescribeAlarmHistoryCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAlarmsCommand.js +3 -3
- package/dist/cjs/commands/DescribeAlarmsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAlarmsForMetricCommand.js +3 -3
- package/dist/cjs/commands/DescribeAlarmsForMetricCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAnomalyDetectorsCommand.js +3 -3
- package/dist/cjs/commands/DescribeAnomalyDetectorsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeInsightRulesCommand.js +3 -3
- package/dist/cjs/commands/DescribeInsightRulesCommand.js.map +1 -1
- package/dist/cjs/commands/DisableAlarmActionsCommand.js +3 -3
- package/dist/cjs/commands/DisableAlarmActionsCommand.js.map +1 -1
- package/dist/cjs/commands/DisableInsightRulesCommand.js +3 -3
- package/dist/cjs/commands/DisableInsightRulesCommand.js.map +1 -1
- package/dist/cjs/commands/EnableAlarmActionsCommand.js +3 -3
- package/dist/cjs/commands/EnableAlarmActionsCommand.js.map +1 -1
- package/dist/cjs/commands/EnableInsightRulesCommand.js +3 -3
- package/dist/cjs/commands/EnableInsightRulesCommand.js.map +1 -1
- package/dist/cjs/commands/GetDashboardCommand.js +3 -3
- package/dist/cjs/commands/GetDashboardCommand.js.map +1 -1
- package/dist/cjs/commands/GetInsightRuleReportCommand.js +3 -3
- package/dist/cjs/commands/GetInsightRuleReportCommand.js.map +1 -1
- package/dist/cjs/commands/GetMetricDataCommand.js +3 -3
- package/dist/cjs/commands/GetMetricDataCommand.js.map +1 -1
- package/dist/cjs/commands/GetMetricStatisticsCommand.js +3 -3
- package/dist/cjs/commands/GetMetricStatisticsCommand.js.map +1 -1
- package/dist/cjs/commands/GetMetricStreamCommand.js +3 -3
- package/dist/cjs/commands/GetMetricStreamCommand.js.map +1 -1
- package/dist/cjs/commands/GetMetricWidgetImageCommand.js +3 -3
- package/dist/cjs/commands/GetMetricWidgetImageCommand.js.map +1 -1
- package/dist/cjs/commands/ListDashboardsCommand.js +3 -3
- package/dist/cjs/commands/ListDashboardsCommand.js.map +1 -1
- package/dist/cjs/commands/ListMetricStreamsCommand.js +3 -3
- package/dist/cjs/commands/ListMetricStreamsCommand.js.map +1 -1
- package/dist/cjs/commands/ListMetricsCommand.js +3 -3
- package/dist/cjs/commands/ListMetricsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/PutAnomalyDetectorCommand.js +3 -3
- package/dist/cjs/commands/PutAnomalyDetectorCommand.js.map +1 -1
- package/dist/cjs/commands/PutCompositeAlarmCommand.js +3 -3
- package/dist/cjs/commands/PutCompositeAlarmCommand.js.map +1 -1
- package/dist/cjs/commands/PutDashboardCommand.js +3 -3
- package/dist/cjs/commands/PutDashboardCommand.js.map +1 -1
- package/dist/cjs/commands/PutInsightRuleCommand.js +3 -3
- package/dist/cjs/commands/PutInsightRuleCommand.js.map +1 -1
- package/dist/cjs/commands/PutMetricAlarmCommand.js +3 -3
- package/dist/cjs/commands/PutMetricAlarmCommand.js.map +1 -1
- package/dist/cjs/commands/PutMetricDataCommand.js +3 -3
- package/dist/cjs/commands/PutMetricDataCommand.js.map +1 -1
- package/dist/cjs/commands/PutMetricStreamCommand.js +3 -3
- package/dist/cjs/commands/PutMetricStreamCommand.js.map +1 -1
- package/dist/cjs/commands/SetAlarmStateCommand.js +3 -3
- package/dist/cjs/commands/SetAlarmStateCommand.js.map +1 -1
- package/dist/cjs/commands/StartMetricStreamsCommand.js +3 -3
- package/dist/cjs/commands/StartMetricStreamsCommand.js.map +1 -1
- package/dist/cjs/commands/StopMetricStreamsCommand.js +3 -3
- package/dist/cjs/commands/StopMetricStreamsCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +49 -49
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_query.js +202 -202
- package/dist/cjs/protocols/Aws_query.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForAlarmExists.js +3 -3
- package/dist/cjs/waiters/waitForAlarmExists.js.map +1 -1
- package/dist/cjs/waiters/waitForCompositeAlarmExists.js +3 -3
- package/dist/cjs/waiters/waitForCompositeAlarmExists.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/pagination/DescribeAlarmHistoryPaginator.js +4 -4
- package/dist/es/pagination/DescribeAlarmHistoryPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeAlarmsPaginator.js +4 -4
- package/dist/es/pagination/DescribeAlarmsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeInsightRulesPaginator.js +4 -4
- package/dist/es/pagination/DescribeInsightRulesPaginator.js.map +1 -1
- package/dist/es/pagination/GetMetricDataPaginator.js +4 -4
- package/dist/es/pagination/GetMetricDataPaginator.js.map +1 -1
- package/dist/es/pagination/ListDashboardsPaginator.js +4 -4
- package/dist/es/pagination/ListDashboardsPaginator.js.map +1 -1
- package/dist/es/pagination/ListMetricStreamsPaginator.js +4 -4
- package/dist/es/pagination/ListMetricStreamsPaginator.js.map +1 -1
- package/dist/es/pagination/ListMetricsPaginator.js +4 -4
- package/dist/es/pagination/ListMetricsPaginator.js.map +1 -1
- package/dist/es/waiters/waitForAlarmExists.js +1 -1
- package/dist/es/waiters/waitForAlarmExists.js.map +1 -1
- package/dist/es/waiters/waitForCompositeAlarmExists.js +1 -1
- package/dist/es/waiters/waitForCompositeAlarmExists.js.map +1 -1
- package/package.json +32 -32
- package/tsconfig.json +1 -2
|
@@ -2756,7 +2756,7 @@ const serializeAws_queryCounts = (input, context) => {
|
|
|
2756
2756
|
if (entry === null) {
|
|
2757
2757
|
continue;
|
|
2758
2758
|
}
|
|
2759
|
-
entries[`member.${counter}`] =
|
|
2759
|
+
entries[`member.${counter}`] = smithy_client_1.serializeFloat(entry);
|
|
2760
2760
|
counter++;
|
|
2761
2761
|
}
|
|
2762
2762
|
return entries;
|
|
@@ -3374,7 +3374,7 @@ const serializeAws_queryMetricDatum = (input, context) => {
|
|
|
3374
3374
|
entries["Timestamp"] = input.Timestamp.toISOString().split(".")[0] + "Z";
|
|
3375
3375
|
}
|
|
3376
3376
|
if (input.Value !== undefined && input.Value !== null) {
|
|
3377
|
-
entries["Value"] =
|
|
3377
|
+
entries["Value"] = smithy_client_1.serializeFloat(input.Value);
|
|
3378
3378
|
}
|
|
3379
3379
|
if (input.StatisticValues !== undefined && input.StatisticValues !== null) {
|
|
3380
3380
|
const memberEntries = serializeAws_queryStatisticSet(input.StatisticValues, context);
|
|
@@ -3624,7 +3624,7 @@ const serializeAws_queryPutMetricAlarmInput = (input, context) => {
|
|
|
3624
3624
|
entries["DatapointsToAlarm"] = input.DatapointsToAlarm;
|
|
3625
3625
|
}
|
|
3626
3626
|
if (input.Threshold !== undefined && input.Threshold !== null) {
|
|
3627
|
-
entries["Threshold"] =
|
|
3627
|
+
entries["Threshold"] = smithy_client_1.serializeFloat(input.Threshold);
|
|
3628
3628
|
}
|
|
3629
3629
|
if (input.ComparisonOperator !== undefined && input.ComparisonOperator !== null) {
|
|
3630
3630
|
entries["ComparisonOperator"] = input.ComparisonOperator;
|
|
@@ -3769,16 +3769,16 @@ const serializeAws_queryStatistics = (input, context) => {
|
|
|
3769
3769
|
const serializeAws_queryStatisticSet = (input, context) => {
|
|
3770
3770
|
const entries = {};
|
|
3771
3771
|
if (input.SampleCount !== undefined && input.SampleCount !== null) {
|
|
3772
|
-
entries["SampleCount"] =
|
|
3772
|
+
entries["SampleCount"] = smithy_client_1.serializeFloat(input.SampleCount);
|
|
3773
3773
|
}
|
|
3774
3774
|
if (input.Sum !== undefined && input.Sum !== null) {
|
|
3775
|
-
entries["Sum"] =
|
|
3775
|
+
entries["Sum"] = smithy_client_1.serializeFloat(input.Sum);
|
|
3776
3776
|
}
|
|
3777
3777
|
if (input.Minimum !== undefined && input.Minimum !== null) {
|
|
3778
|
-
entries["Minimum"] =
|
|
3778
|
+
entries["Minimum"] = smithy_client_1.serializeFloat(input.Minimum);
|
|
3779
3779
|
}
|
|
3780
3780
|
if (input.Maximum !== undefined && input.Maximum !== null) {
|
|
3781
|
-
entries["Maximum"] =
|
|
3781
|
+
entries["Maximum"] = smithy_client_1.serializeFloat(input.Maximum);
|
|
3782
3782
|
}
|
|
3783
3783
|
return entries;
|
|
3784
3784
|
};
|
|
@@ -3865,7 +3865,7 @@ const serializeAws_queryValues = (input, context) => {
|
|
|
3865
3865
|
if (entry === null) {
|
|
3866
3866
|
continue;
|
|
3867
3867
|
}
|
|
3868
|
-
entries[`member.${counter}`] =
|
|
3868
|
+
entries[`member.${counter}`] = smithy_client_1.serializeFloat(entry);
|
|
3869
3869
|
counter++;
|
|
3870
3870
|
}
|
|
3871
3871
|
return entries;
|
|
@@ -3880,22 +3880,22 @@ const deserializeAws_queryAlarmHistoryItem = (output, context) => {
|
|
|
3880
3880
|
HistoryData: undefined,
|
|
3881
3881
|
};
|
|
3882
3882
|
if (output["AlarmName"] !== undefined) {
|
|
3883
|
-
contents.AlarmName =
|
|
3883
|
+
contents.AlarmName = smithy_client_1.expectString(output["AlarmName"]);
|
|
3884
3884
|
}
|
|
3885
3885
|
if (output["AlarmType"] !== undefined) {
|
|
3886
|
-
contents.AlarmType =
|
|
3886
|
+
contents.AlarmType = smithy_client_1.expectString(output["AlarmType"]);
|
|
3887
3887
|
}
|
|
3888
3888
|
if (output["Timestamp"] !== undefined) {
|
|
3889
|
-
contents.Timestamp =
|
|
3889
|
+
contents.Timestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Timestamp"]));
|
|
3890
3890
|
}
|
|
3891
3891
|
if (output["HistoryItemType"] !== undefined) {
|
|
3892
|
-
contents.HistoryItemType =
|
|
3892
|
+
contents.HistoryItemType = smithy_client_1.expectString(output["HistoryItemType"]);
|
|
3893
3893
|
}
|
|
3894
3894
|
if (output["HistorySummary"] !== undefined) {
|
|
3895
|
-
contents.HistorySummary =
|
|
3895
|
+
contents.HistorySummary = smithy_client_1.expectString(output["HistorySummary"]);
|
|
3896
3896
|
}
|
|
3897
3897
|
if (output["HistoryData"] !== undefined) {
|
|
3898
|
-
contents.HistoryData =
|
|
3898
|
+
contents.HistoryData = smithy_client_1.expectString(output["HistoryData"]);
|
|
3899
3899
|
}
|
|
3900
3900
|
return contents;
|
|
3901
3901
|
};
|
|
@@ -3919,25 +3919,25 @@ const deserializeAws_queryAnomalyDetector = (output, context) => {
|
|
|
3919
3919
|
StateValue: undefined,
|
|
3920
3920
|
};
|
|
3921
3921
|
if (output["Namespace"] !== undefined) {
|
|
3922
|
-
contents.Namespace =
|
|
3922
|
+
contents.Namespace = smithy_client_1.expectString(output["Namespace"]);
|
|
3923
3923
|
}
|
|
3924
3924
|
if (output["MetricName"] !== undefined) {
|
|
3925
|
-
contents.MetricName =
|
|
3925
|
+
contents.MetricName = smithy_client_1.expectString(output["MetricName"]);
|
|
3926
3926
|
}
|
|
3927
3927
|
if (output.Dimensions === "") {
|
|
3928
3928
|
contents.Dimensions = [];
|
|
3929
3929
|
}
|
|
3930
3930
|
if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) {
|
|
3931
|
-
contents.Dimensions = deserializeAws_queryDimensions(
|
|
3931
|
+
contents.Dimensions = deserializeAws_queryDimensions(smithy_client_1.getArrayIfSingleItem(output["Dimensions"]["member"]), context);
|
|
3932
3932
|
}
|
|
3933
3933
|
if (output["Stat"] !== undefined) {
|
|
3934
|
-
contents.Stat =
|
|
3934
|
+
contents.Stat = smithy_client_1.expectString(output["Stat"]);
|
|
3935
3935
|
}
|
|
3936
3936
|
if (output["Configuration"] !== undefined) {
|
|
3937
3937
|
contents.Configuration = deserializeAws_queryAnomalyDetectorConfiguration(output["Configuration"], context);
|
|
3938
3938
|
}
|
|
3939
3939
|
if (output["StateValue"] !== undefined) {
|
|
3940
|
-
contents.StateValue =
|
|
3940
|
+
contents.StateValue = smithy_client_1.expectString(output["StateValue"]);
|
|
3941
3941
|
}
|
|
3942
3942
|
return contents;
|
|
3943
3943
|
};
|
|
@@ -3950,10 +3950,10 @@ const deserializeAws_queryAnomalyDetectorConfiguration = (output, context) => {
|
|
|
3950
3950
|
contents.ExcludedTimeRanges = [];
|
|
3951
3951
|
}
|
|
3952
3952
|
if (output["ExcludedTimeRanges"] !== undefined && output["ExcludedTimeRanges"]["member"] !== undefined) {
|
|
3953
|
-
contents.ExcludedTimeRanges = deserializeAws_queryAnomalyDetectorExcludedTimeRanges(
|
|
3953
|
+
contents.ExcludedTimeRanges = deserializeAws_queryAnomalyDetectorExcludedTimeRanges(smithy_client_1.getArrayIfSingleItem(output["ExcludedTimeRanges"]["member"]), context);
|
|
3954
3954
|
}
|
|
3955
3955
|
if (output["MetricTimezone"] !== undefined) {
|
|
3956
|
-
contents.MetricTimezone =
|
|
3956
|
+
contents.MetricTimezone = smithy_client_1.expectString(output["MetricTimezone"]);
|
|
3957
3957
|
}
|
|
3958
3958
|
return contents;
|
|
3959
3959
|
};
|
|
@@ -4004,52 +4004,52 @@ const deserializeAws_queryCompositeAlarm = (output, context) => {
|
|
|
4004
4004
|
StateValue: undefined,
|
|
4005
4005
|
};
|
|
4006
4006
|
if (output["ActionsEnabled"] !== undefined) {
|
|
4007
|
-
contents.ActionsEnabled =
|
|
4007
|
+
contents.ActionsEnabled = smithy_client_1.parseBoolean(output["ActionsEnabled"]);
|
|
4008
4008
|
}
|
|
4009
4009
|
if (output.AlarmActions === "") {
|
|
4010
4010
|
contents.AlarmActions = [];
|
|
4011
4011
|
}
|
|
4012
4012
|
if (output["AlarmActions"] !== undefined && output["AlarmActions"]["member"] !== undefined) {
|
|
4013
|
-
contents.AlarmActions = deserializeAws_queryResourceList(
|
|
4013
|
+
contents.AlarmActions = deserializeAws_queryResourceList(smithy_client_1.getArrayIfSingleItem(output["AlarmActions"]["member"]), context);
|
|
4014
4014
|
}
|
|
4015
4015
|
if (output["AlarmArn"] !== undefined) {
|
|
4016
|
-
contents.AlarmArn =
|
|
4016
|
+
contents.AlarmArn = smithy_client_1.expectString(output["AlarmArn"]);
|
|
4017
4017
|
}
|
|
4018
4018
|
if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) {
|
|
4019
|
-
contents.AlarmConfigurationUpdatedTimestamp =
|
|
4019
|
+
contents.AlarmConfigurationUpdatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["AlarmConfigurationUpdatedTimestamp"]));
|
|
4020
4020
|
}
|
|
4021
4021
|
if (output["AlarmDescription"] !== undefined) {
|
|
4022
|
-
contents.AlarmDescription =
|
|
4022
|
+
contents.AlarmDescription = smithy_client_1.expectString(output["AlarmDescription"]);
|
|
4023
4023
|
}
|
|
4024
4024
|
if (output["AlarmName"] !== undefined) {
|
|
4025
|
-
contents.AlarmName =
|
|
4025
|
+
contents.AlarmName = smithy_client_1.expectString(output["AlarmName"]);
|
|
4026
4026
|
}
|
|
4027
4027
|
if (output["AlarmRule"] !== undefined) {
|
|
4028
|
-
contents.AlarmRule =
|
|
4028
|
+
contents.AlarmRule = smithy_client_1.expectString(output["AlarmRule"]);
|
|
4029
4029
|
}
|
|
4030
4030
|
if (output.InsufficientDataActions === "") {
|
|
4031
4031
|
contents.InsufficientDataActions = [];
|
|
4032
4032
|
}
|
|
4033
4033
|
if (output["InsufficientDataActions"] !== undefined && output["InsufficientDataActions"]["member"] !== undefined) {
|
|
4034
|
-
contents.InsufficientDataActions = deserializeAws_queryResourceList(
|
|
4034
|
+
contents.InsufficientDataActions = deserializeAws_queryResourceList(smithy_client_1.getArrayIfSingleItem(output["InsufficientDataActions"]["member"]), context);
|
|
4035
4035
|
}
|
|
4036
4036
|
if (output.OKActions === "") {
|
|
4037
4037
|
contents.OKActions = [];
|
|
4038
4038
|
}
|
|
4039
4039
|
if (output["OKActions"] !== undefined && output["OKActions"]["member"] !== undefined) {
|
|
4040
|
-
contents.OKActions = deserializeAws_queryResourceList(
|
|
4040
|
+
contents.OKActions = deserializeAws_queryResourceList(smithy_client_1.getArrayIfSingleItem(output["OKActions"]["member"]), context);
|
|
4041
4041
|
}
|
|
4042
4042
|
if (output["StateReason"] !== undefined) {
|
|
4043
|
-
contents.StateReason =
|
|
4043
|
+
contents.StateReason = smithy_client_1.expectString(output["StateReason"]);
|
|
4044
4044
|
}
|
|
4045
4045
|
if (output["StateReasonData"] !== undefined) {
|
|
4046
|
-
contents.StateReasonData =
|
|
4046
|
+
contents.StateReasonData = smithy_client_1.expectString(output["StateReasonData"]);
|
|
4047
4047
|
}
|
|
4048
4048
|
if (output["StateUpdatedTimestamp"] !== undefined) {
|
|
4049
|
-
contents.StateUpdatedTimestamp =
|
|
4049
|
+
contents.StateUpdatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["StateUpdatedTimestamp"]));
|
|
4050
4050
|
}
|
|
4051
4051
|
if (output["StateValue"] !== undefined) {
|
|
4052
|
-
contents.StateValue =
|
|
4052
|
+
contents.StateValue = smithy_client_1.expectString(output["StateValue"]);
|
|
4053
4053
|
}
|
|
4054
4054
|
return contents;
|
|
4055
4055
|
};
|
|
@@ -4068,7 +4068,7 @@ const deserializeAws_queryConcurrentModificationException = (output, context) =>
|
|
|
4068
4068
|
Message: undefined,
|
|
4069
4069
|
};
|
|
4070
4070
|
if (output["Message"] !== undefined) {
|
|
4071
|
-
contents.Message =
|
|
4071
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
4072
4072
|
}
|
|
4073
4073
|
return contents;
|
|
4074
4074
|
};
|
|
@@ -4090,16 +4090,16 @@ const deserializeAws_queryDashboardEntry = (output, context) => {
|
|
|
4090
4090
|
Size: undefined,
|
|
4091
4091
|
};
|
|
4092
4092
|
if (output["DashboardName"] !== undefined) {
|
|
4093
|
-
contents.DashboardName =
|
|
4093
|
+
contents.DashboardName = smithy_client_1.expectString(output["DashboardName"]);
|
|
4094
4094
|
}
|
|
4095
4095
|
if (output["DashboardArn"] !== undefined) {
|
|
4096
|
-
contents.DashboardArn =
|
|
4096
|
+
contents.DashboardArn = smithy_client_1.expectString(output["DashboardArn"]);
|
|
4097
4097
|
}
|
|
4098
4098
|
if (output["LastModified"] !== undefined) {
|
|
4099
|
-
contents.LastModified =
|
|
4099
|
+
contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastModified"]));
|
|
4100
4100
|
}
|
|
4101
4101
|
if (output["Size"] !== undefined) {
|
|
4102
|
-
contents.Size =
|
|
4102
|
+
contents.Size = smithy_client_1.strictParseLong(output["Size"]);
|
|
4103
4103
|
}
|
|
4104
4104
|
return contents;
|
|
4105
4105
|
};
|
|
@@ -4109,14 +4109,14 @@ const deserializeAws_queryDashboardInvalidInputError = (output, context) => {
|
|
|
4109
4109
|
dashboardValidationMessages: undefined,
|
|
4110
4110
|
};
|
|
4111
4111
|
if (output["message"] !== undefined) {
|
|
4112
|
-
contents.message =
|
|
4112
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
4113
4113
|
}
|
|
4114
4114
|
if (output.dashboardValidationMessages === "") {
|
|
4115
4115
|
contents.dashboardValidationMessages = [];
|
|
4116
4116
|
}
|
|
4117
4117
|
if (output["dashboardValidationMessages"] !== undefined &&
|
|
4118
4118
|
output["dashboardValidationMessages"]["member"] !== undefined) {
|
|
4119
|
-
contents.dashboardValidationMessages = deserializeAws_queryDashboardValidationMessages(
|
|
4119
|
+
contents.dashboardValidationMessages = deserializeAws_queryDashboardValidationMessages(smithy_client_1.getArrayIfSingleItem(output["dashboardValidationMessages"]["member"]), context);
|
|
4120
4120
|
}
|
|
4121
4121
|
return contents;
|
|
4122
4122
|
};
|
|
@@ -4125,7 +4125,7 @@ const deserializeAws_queryDashboardNotFoundError = (output, context) => {
|
|
|
4125
4125
|
message: undefined,
|
|
4126
4126
|
};
|
|
4127
4127
|
if (output["message"] !== undefined) {
|
|
4128
|
-
contents.message =
|
|
4128
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
4129
4129
|
}
|
|
4130
4130
|
return contents;
|
|
4131
4131
|
};
|
|
@@ -4135,10 +4135,10 @@ const deserializeAws_queryDashboardValidationMessage = (output, context) => {
|
|
|
4135
4135
|
Message: undefined,
|
|
4136
4136
|
};
|
|
4137
4137
|
if (output["DataPath"] !== undefined) {
|
|
4138
|
-
contents.DataPath =
|
|
4138
|
+
contents.DataPath = smithy_client_1.expectString(output["DataPath"]);
|
|
4139
4139
|
}
|
|
4140
4140
|
if (output["Message"] !== undefined) {
|
|
4141
|
-
contents.Message =
|
|
4141
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
4142
4142
|
}
|
|
4143
4143
|
return contents;
|
|
4144
4144
|
};
|
|
@@ -4164,31 +4164,31 @@ const deserializeAws_queryDatapoint = (output, context) => {
|
|
|
4164
4164
|
ExtendedStatistics: undefined,
|
|
4165
4165
|
};
|
|
4166
4166
|
if (output["Timestamp"] !== undefined) {
|
|
4167
|
-
contents.Timestamp =
|
|
4167
|
+
contents.Timestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Timestamp"]));
|
|
4168
4168
|
}
|
|
4169
4169
|
if (output["SampleCount"] !== undefined) {
|
|
4170
|
-
contents.SampleCount =
|
|
4170
|
+
contents.SampleCount = smithy_client_1.strictParseFloat(output["SampleCount"]);
|
|
4171
4171
|
}
|
|
4172
4172
|
if (output["Average"] !== undefined) {
|
|
4173
|
-
contents.Average =
|
|
4173
|
+
contents.Average = smithy_client_1.strictParseFloat(output["Average"]);
|
|
4174
4174
|
}
|
|
4175
4175
|
if (output["Sum"] !== undefined) {
|
|
4176
|
-
contents.Sum =
|
|
4176
|
+
contents.Sum = smithy_client_1.strictParseFloat(output["Sum"]);
|
|
4177
4177
|
}
|
|
4178
4178
|
if (output["Minimum"] !== undefined) {
|
|
4179
|
-
contents.Minimum =
|
|
4179
|
+
contents.Minimum = smithy_client_1.strictParseFloat(output["Minimum"]);
|
|
4180
4180
|
}
|
|
4181
4181
|
if (output["Maximum"] !== undefined) {
|
|
4182
|
-
contents.Maximum =
|
|
4182
|
+
contents.Maximum = smithy_client_1.strictParseFloat(output["Maximum"]);
|
|
4183
4183
|
}
|
|
4184
4184
|
if (output["Unit"] !== undefined) {
|
|
4185
|
-
contents.Unit =
|
|
4185
|
+
contents.Unit = smithy_client_1.expectString(output["Unit"]);
|
|
4186
4186
|
}
|
|
4187
4187
|
if (output.ExtendedStatistics === "") {
|
|
4188
4188
|
contents.ExtendedStatistics = {};
|
|
4189
4189
|
}
|
|
4190
4190
|
if (output["ExtendedStatistics"] !== undefined && output["ExtendedStatistics"]["entry"] !== undefined) {
|
|
4191
|
-
contents.ExtendedStatistics = deserializeAws_queryDatapointValueMap(
|
|
4191
|
+
contents.ExtendedStatistics = deserializeAws_queryDatapointValueMap(smithy_client_1.getArrayIfSingleItem(output["ExtendedStatistics"]["entry"]), context);
|
|
4192
4192
|
}
|
|
4193
4193
|
return contents;
|
|
4194
4194
|
};
|
|
@@ -4209,7 +4209,7 @@ const deserializeAws_queryDatapointValueMap = (output, context) => {
|
|
|
4209
4209
|
}
|
|
4210
4210
|
return {
|
|
4211
4211
|
...acc,
|
|
4212
|
-
[pair["key"]]:
|
|
4212
|
+
[pair["key"]]: smithy_client_1.strictParseFloat(pair["value"]),
|
|
4213
4213
|
};
|
|
4214
4214
|
}, {});
|
|
4215
4215
|
};
|
|
@@ -4220,7 +4220,7 @@ const deserializeAws_queryDatapointValues = (output, context) => {
|
|
|
4220
4220
|
if (entry === null) {
|
|
4221
4221
|
return null;
|
|
4222
4222
|
}
|
|
4223
|
-
return
|
|
4223
|
+
return smithy_client_1.strictParseFloat(entry);
|
|
4224
4224
|
});
|
|
4225
4225
|
};
|
|
4226
4226
|
const deserializeAws_queryDeleteAnomalyDetectorOutput = (output, context) => {
|
|
@@ -4239,7 +4239,7 @@ const deserializeAws_queryDeleteInsightRulesOutput = (output, context) => {
|
|
|
4239
4239
|
contents.Failures = [];
|
|
4240
4240
|
}
|
|
4241
4241
|
if (output["Failures"] !== undefined && output["Failures"]["member"] !== undefined) {
|
|
4242
|
-
contents.Failures = deserializeAws_queryBatchFailures(
|
|
4242
|
+
contents.Failures = deserializeAws_queryBatchFailures(smithy_client_1.getArrayIfSingleItem(output["Failures"]["member"]), context);
|
|
4243
4243
|
}
|
|
4244
4244
|
return contents;
|
|
4245
4245
|
};
|
|
@@ -4256,10 +4256,10 @@ const deserializeAws_queryDescribeAlarmHistoryOutput = (output, context) => {
|
|
|
4256
4256
|
contents.AlarmHistoryItems = [];
|
|
4257
4257
|
}
|
|
4258
4258
|
if (output["AlarmHistoryItems"] !== undefined && output["AlarmHistoryItems"]["member"] !== undefined) {
|
|
4259
|
-
contents.AlarmHistoryItems = deserializeAws_queryAlarmHistoryItems(
|
|
4259
|
+
contents.AlarmHistoryItems = deserializeAws_queryAlarmHistoryItems(smithy_client_1.getArrayIfSingleItem(output["AlarmHistoryItems"]["member"]), context);
|
|
4260
4260
|
}
|
|
4261
4261
|
if (output["NextToken"] !== undefined) {
|
|
4262
|
-
contents.NextToken =
|
|
4262
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
4263
4263
|
}
|
|
4264
4264
|
return contents;
|
|
4265
4265
|
};
|
|
@@ -4271,7 +4271,7 @@ const deserializeAws_queryDescribeAlarmsForMetricOutput = (output, context) => {
|
|
|
4271
4271
|
contents.MetricAlarms = [];
|
|
4272
4272
|
}
|
|
4273
4273
|
if (output["MetricAlarms"] !== undefined && output["MetricAlarms"]["member"] !== undefined) {
|
|
4274
|
-
contents.MetricAlarms = deserializeAws_queryMetricAlarms(
|
|
4274
|
+
contents.MetricAlarms = deserializeAws_queryMetricAlarms(smithy_client_1.getArrayIfSingleItem(output["MetricAlarms"]["member"]), context);
|
|
4275
4275
|
}
|
|
4276
4276
|
return contents;
|
|
4277
4277
|
};
|
|
@@ -4285,16 +4285,16 @@ const deserializeAws_queryDescribeAlarmsOutput = (output, context) => {
|
|
|
4285
4285
|
contents.CompositeAlarms = [];
|
|
4286
4286
|
}
|
|
4287
4287
|
if (output["CompositeAlarms"] !== undefined && output["CompositeAlarms"]["member"] !== undefined) {
|
|
4288
|
-
contents.CompositeAlarms = deserializeAws_queryCompositeAlarms(
|
|
4288
|
+
contents.CompositeAlarms = deserializeAws_queryCompositeAlarms(smithy_client_1.getArrayIfSingleItem(output["CompositeAlarms"]["member"]), context);
|
|
4289
4289
|
}
|
|
4290
4290
|
if (output.MetricAlarms === "") {
|
|
4291
4291
|
contents.MetricAlarms = [];
|
|
4292
4292
|
}
|
|
4293
4293
|
if (output["MetricAlarms"] !== undefined && output["MetricAlarms"]["member"] !== undefined) {
|
|
4294
|
-
contents.MetricAlarms = deserializeAws_queryMetricAlarms(
|
|
4294
|
+
contents.MetricAlarms = deserializeAws_queryMetricAlarms(smithy_client_1.getArrayIfSingleItem(output["MetricAlarms"]["member"]), context);
|
|
4295
4295
|
}
|
|
4296
4296
|
if (output["NextToken"] !== undefined) {
|
|
4297
|
-
contents.NextToken =
|
|
4297
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
4298
4298
|
}
|
|
4299
4299
|
return contents;
|
|
4300
4300
|
};
|
|
@@ -4307,10 +4307,10 @@ const deserializeAws_queryDescribeAnomalyDetectorsOutput = (output, context) =>
|
|
|
4307
4307
|
contents.AnomalyDetectors = [];
|
|
4308
4308
|
}
|
|
4309
4309
|
if (output["AnomalyDetectors"] !== undefined && output["AnomalyDetectors"]["member"] !== undefined) {
|
|
4310
|
-
contents.AnomalyDetectors = deserializeAws_queryAnomalyDetectors(
|
|
4310
|
+
contents.AnomalyDetectors = deserializeAws_queryAnomalyDetectors(smithy_client_1.getArrayIfSingleItem(output["AnomalyDetectors"]["member"]), context);
|
|
4311
4311
|
}
|
|
4312
4312
|
if (output["NextToken"] !== undefined) {
|
|
4313
|
-
contents.NextToken =
|
|
4313
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
4314
4314
|
}
|
|
4315
4315
|
return contents;
|
|
4316
4316
|
};
|
|
@@ -4320,13 +4320,13 @@ const deserializeAws_queryDescribeInsightRulesOutput = (output, context) => {
|
|
|
4320
4320
|
InsightRules: undefined,
|
|
4321
4321
|
};
|
|
4322
4322
|
if (output["NextToken"] !== undefined) {
|
|
4323
|
-
contents.NextToken =
|
|
4323
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
4324
4324
|
}
|
|
4325
4325
|
if (output.InsightRules === "") {
|
|
4326
4326
|
contents.InsightRules = [];
|
|
4327
4327
|
}
|
|
4328
4328
|
if (output["InsightRules"] !== undefined && output["InsightRules"]["member"] !== undefined) {
|
|
4329
|
-
contents.InsightRules = deserializeAws_queryInsightRules(
|
|
4329
|
+
contents.InsightRules = deserializeAws_queryInsightRules(smithy_client_1.getArrayIfSingleItem(output["InsightRules"]["member"]), context);
|
|
4330
4330
|
}
|
|
4331
4331
|
return contents;
|
|
4332
4332
|
};
|
|
@@ -4336,10 +4336,10 @@ const deserializeAws_queryDimension = (output, context) => {
|
|
|
4336
4336
|
Value: undefined,
|
|
4337
4337
|
};
|
|
4338
4338
|
if (output["Name"] !== undefined) {
|
|
4339
|
-
contents.Name =
|
|
4339
|
+
contents.Name = smithy_client_1.expectString(output["Name"]);
|
|
4340
4340
|
}
|
|
4341
4341
|
if (output["Value"] !== undefined) {
|
|
4342
|
-
contents.Value =
|
|
4342
|
+
contents.Value = smithy_client_1.expectString(output["Value"]);
|
|
4343
4343
|
}
|
|
4344
4344
|
return contents;
|
|
4345
4345
|
};
|
|
@@ -4361,7 +4361,7 @@ const deserializeAws_queryDisableInsightRulesOutput = (output, context) => {
|
|
|
4361
4361
|
contents.Failures = [];
|
|
4362
4362
|
}
|
|
4363
4363
|
if (output["Failures"] !== undefined && output["Failures"]["member"] !== undefined) {
|
|
4364
|
-
contents.Failures = deserializeAws_queryBatchFailures(
|
|
4364
|
+
contents.Failures = deserializeAws_queryBatchFailures(smithy_client_1.getArrayIfSingleItem(output["Failures"]["member"]), context);
|
|
4365
4365
|
}
|
|
4366
4366
|
return contents;
|
|
4367
4367
|
};
|
|
@@ -4373,7 +4373,7 @@ const deserializeAws_queryEnableInsightRulesOutput = (output, context) => {
|
|
|
4373
4373
|
contents.Failures = [];
|
|
4374
4374
|
}
|
|
4375
4375
|
if (output["Failures"] !== undefined && output["Failures"]["member"] !== undefined) {
|
|
4376
|
-
contents.Failures = deserializeAws_queryBatchFailures(
|
|
4376
|
+
contents.Failures = deserializeAws_queryBatchFailures(smithy_client_1.getArrayIfSingleItem(output["Failures"]["member"]), context);
|
|
4377
4377
|
}
|
|
4378
4378
|
return contents;
|
|
4379
4379
|
};
|
|
@@ -4384,13 +4384,13 @@ const deserializeAws_queryGetDashboardOutput = (output, context) => {
|
|
|
4384
4384
|
DashboardName: undefined,
|
|
4385
4385
|
};
|
|
4386
4386
|
if (output["DashboardArn"] !== undefined) {
|
|
4387
|
-
contents.DashboardArn =
|
|
4387
|
+
contents.DashboardArn = smithy_client_1.expectString(output["DashboardArn"]);
|
|
4388
4388
|
}
|
|
4389
4389
|
if (output["DashboardBody"] !== undefined) {
|
|
4390
|
-
contents.DashboardBody =
|
|
4390
|
+
contents.DashboardBody = smithy_client_1.expectString(output["DashboardBody"]);
|
|
4391
4391
|
}
|
|
4392
4392
|
if (output["DashboardName"] !== undefined) {
|
|
4393
|
-
contents.DashboardName =
|
|
4393
|
+
contents.DashboardName = smithy_client_1.expectString(output["DashboardName"]);
|
|
4394
4394
|
}
|
|
4395
4395
|
return contents;
|
|
4396
4396
|
};
|
|
@@ -4407,28 +4407,28 @@ const deserializeAws_queryGetInsightRuleReportOutput = (output, context) => {
|
|
|
4407
4407
|
contents.KeyLabels = [];
|
|
4408
4408
|
}
|
|
4409
4409
|
if (output["KeyLabels"] !== undefined && output["KeyLabels"]["member"] !== undefined) {
|
|
4410
|
-
contents.KeyLabels = deserializeAws_queryInsightRuleContributorKeyLabels(
|
|
4410
|
+
contents.KeyLabels = deserializeAws_queryInsightRuleContributorKeyLabels(smithy_client_1.getArrayIfSingleItem(output["KeyLabels"]["member"]), context);
|
|
4411
4411
|
}
|
|
4412
4412
|
if (output["AggregationStatistic"] !== undefined) {
|
|
4413
|
-
contents.AggregationStatistic =
|
|
4413
|
+
contents.AggregationStatistic = smithy_client_1.expectString(output["AggregationStatistic"]);
|
|
4414
4414
|
}
|
|
4415
4415
|
if (output["AggregateValue"] !== undefined) {
|
|
4416
|
-
contents.AggregateValue =
|
|
4416
|
+
contents.AggregateValue = smithy_client_1.strictParseFloat(output["AggregateValue"]);
|
|
4417
4417
|
}
|
|
4418
4418
|
if (output["ApproximateUniqueCount"] !== undefined) {
|
|
4419
|
-
contents.ApproximateUniqueCount =
|
|
4419
|
+
contents.ApproximateUniqueCount = smithy_client_1.strictParseLong(output["ApproximateUniqueCount"]);
|
|
4420
4420
|
}
|
|
4421
4421
|
if (output.Contributors === "") {
|
|
4422
4422
|
contents.Contributors = [];
|
|
4423
4423
|
}
|
|
4424
4424
|
if (output["Contributors"] !== undefined && output["Contributors"]["member"] !== undefined) {
|
|
4425
|
-
contents.Contributors = deserializeAws_queryInsightRuleContributors(
|
|
4425
|
+
contents.Contributors = deserializeAws_queryInsightRuleContributors(smithy_client_1.getArrayIfSingleItem(output["Contributors"]["member"]), context);
|
|
4426
4426
|
}
|
|
4427
4427
|
if (output.MetricDatapoints === "") {
|
|
4428
4428
|
contents.MetricDatapoints = [];
|
|
4429
4429
|
}
|
|
4430
4430
|
if (output["MetricDatapoints"] !== undefined && output["MetricDatapoints"]["member"] !== undefined) {
|
|
4431
|
-
contents.MetricDatapoints = deserializeAws_queryInsightRuleMetricDatapoints(
|
|
4431
|
+
contents.MetricDatapoints = deserializeAws_queryInsightRuleMetricDatapoints(smithy_client_1.getArrayIfSingleItem(output["MetricDatapoints"]["member"]), context);
|
|
4432
4432
|
}
|
|
4433
4433
|
return contents;
|
|
4434
4434
|
};
|
|
@@ -4442,16 +4442,16 @@ const deserializeAws_queryGetMetricDataOutput = (output, context) => {
|
|
|
4442
4442
|
contents.MetricDataResults = [];
|
|
4443
4443
|
}
|
|
4444
4444
|
if (output["MetricDataResults"] !== undefined && output["MetricDataResults"]["member"] !== undefined) {
|
|
4445
|
-
contents.MetricDataResults = deserializeAws_queryMetricDataResults(
|
|
4445
|
+
contents.MetricDataResults = deserializeAws_queryMetricDataResults(smithy_client_1.getArrayIfSingleItem(output["MetricDataResults"]["member"]), context);
|
|
4446
4446
|
}
|
|
4447
4447
|
if (output["NextToken"] !== undefined) {
|
|
4448
|
-
contents.NextToken =
|
|
4448
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
4449
4449
|
}
|
|
4450
4450
|
if (output.Messages === "") {
|
|
4451
4451
|
contents.Messages = [];
|
|
4452
4452
|
}
|
|
4453
4453
|
if (output["Messages"] !== undefined && output["Messages"]["member"] !== undefined) {
|
|
4454
|
-
contents.Messages = deserializeAws_queryMetricDataResultMessages(
|
|
4454
|
+
contents.Messages = deserializeAws_queryMetricDataResultMessages(smithy_client_1.getArrayIfSingleItem(output["Messages"]["member"]), context);
|
|
4455
4455
|
}
|
|
4456
4456
|
return contents;
|
|
4457
4457
|
};
|
|
@@ -4461,13 +4461,13 @@ const deserializeAws_queryGetMetricStatisticsOutput = (output, context) => {
|
|
|
4461
4461
|
Datapoints: undefined,
|
|
4462
4462
|
};
|
|
4463
4463
|
if (output["Label"] !== undefined) {
|
|
4464
|
-
contents.Label =
|
|
4464
|
+
contents.Label = smithy_client_1.expectString(output["Label"]);
|
|
4465
4465
|
}
|
|
4466
4466
|
if (output.Datapoints === "") {
|
|
4467
4467
|
contents.Datapoints = [];
|
|
4468
4468
|
}
|
|
4469
4469
|
if (output["Datapoints"] !== undefined && output["Datapoints"]["member"] !== undefined) {
|
|
4470
|
-
contents.Datapoints = deserializeAws_queryDatapoints(
|
|
4470
|
+
contents.Datapoints = deserializeAws_queryDatapoints(smithy_client_1.getArrayIfSingleItem(output["Datapoints"]["member"]), context);
|
|
4471
4471
|
}
|
|
4472
4472
|
return contents;
|
|
4473
4473
|
};
|
|
@@ -4485,40 +4485,40 @@ const deserializeAws_queryGetMetricStreamOutput = (output, context) => {
|
|
|
4485
4485
|
OutputFormat: undefined,
|
|
4486
4486
|
};
|
|
4487
4487
|
if (output["Arn"] !== undefined) {
|
|
4488
|
-
contents.Arn =
|
|
4488
|
+
contents.Arn = smithy_client_1.expectString(output["Arn"]);
|
|
4489
4489
|
}
|
|
4490
4490
|
if (output["Name"] !== undefined) {
|
|
4491
|
-
contents.Name =
|
|
4491
|
+
contents.Name = smithy_client_1.expectString(output["Name"]);
|
|
4492
4492
|
}
|
|
4493
4493
|
if (output.IncludeFilters === "") {
|
|
4494
4494
|
contents.IncludeFilters = [];
|
|
4495
4495
|
}
|
|
4496
4496
|
if (output["IncludeFilters"] !== undefined && output["IncludeFilters"]["member"] !== undefined) {
|
|
4497
|
-
contents.IncludeFilters = deserializeAws_queryMetricStreamFilters(
|
|
4497
|
+
contents.IncludeFilters = deserializeAws_queryMetricStreamFilters(smithy_client_1.getArrayIfSingleItem(output["IncludeFilters"]["member"]), context);
|
|
4498
4498
|
}
|
|
4499
4499
|
if (output.ExcludeFilters === "") {
|
|
4500
4500
|
contents.ExcludeFilters = [];
|
|
4501
4501
|
}
|
|
4502
4502
|
if (output["ExcludeFilters"] !== undefined && output["ExcludeFilters"]["member"] !== undefined) {
|
|
4503
|
-
contents.ExcludeFilters = deserializeAws_queryMetricStreamFilters(
|
|
4503
|
+
contents.ExcludeFilters = deserializeAws_queryMetricStreamFilters(smithy_client_1.getArrayIfSingleItem(output["ExcludeFilters"]["member"]), context);
|
|
4504
4504
|
}
|
|
4505
4505
|
if (output["FirehoseArn"] !== undefined) {
|
|
4506
|
-
contents.FirehoseArn =
|
|
4506
|
+
contents.FirehoseArn = smithy_client_1.expectString(output["FirehoseArn"]);
|
|
4507
4507
|
}
|
|
4508
4508
|
if (output["RoleArn"] !== undefined) {
|
|
4509
|
-
contents.RoleArn =
|
|
4509
|
+
contents.RoleArn = smithy_client_1.expectString(output["RoleArn"]);
|
|
4510
4510
|
}
|
|
4511
4511
|
if (output["State"] !== undefined) {
|
|
4512
|
-
contents.State =
|
|
4512
|
+
contents.State = smithy_client_1.expectString(output["State"]);
|
|
4513
4513
|
}
|
|
4514
4514
|
if (output["CreationDate"] !== undefined) {
|
|
4515
|
-
contents.CreationDate =
|
|
4515
|
+
contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["CreationDate"]));
|
|
4516
4516
|
}
|
|
4517
4517
|
if (output["LastUpdateDate"] !== undefined) {
|
|
4518
|
-
contents.LastUpdateDate =
|
|
4518
|
+
contents.LastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastUpdateDate"]));
|
|
4519
4519
|
}
|
|
4520
4520
|
if (output["OutputFormat"] !== undefined) {
|
|
4521
|
-
contents.OutputFormat =
|
|
4521
|
+
contents.OutputFormat = smithy_client_1.expectString(output["OutputFormat"]);
|
|
4522
4522
|
}
|
|
4523
4523
|
return contents;
|
|
4524
4524
|
};
|
|
@@ -4539,16 +4539,16 @@ const deserializeAws_queryInsightRule = (output, context) => {
|
|
|
4539
4539
|
Definition: undefined,
|
|
4540
4540
|
};
|
|
4541
4541
|
if (output["Name"] !== undefined) {
|
|
4542
|
-
contents.Name =
|
|
4542
|
+
contents.Name = smithy_client_1.expectString(output["Name"]);
|
|
4543
4543
|
}
|
|
4544
4544
|
if (output["State"] !== undefined) {
|
|
4545
|
-
contents.State =
|
|
4545
|
+
contents.State = smithy_client_1.expectString(output["State"]);
|
|
4546
4546
|
}
|
|
4547
4547
|
if (output["Schema"] !== undefined) {
|
|
4548
|
-
contents.Schema =
|
|
4548
|
+
contents.Schema = smithy_client_1.expectString(output["Schema"]);
|
|
4549
4549
|
}
|
|
4550
4550
|
if (output["Definition"] !== undefined) {
|
|
4551
|
-
contents.Definition =
|
|
4551
|
+
contents.Definition = smithy_client_1.expectString(output["Definition"]);
|
|
4552
4552
|
}
|
|
4553
4553
|
return contents;
|
|
4554
4554
|
};
|
|
@@ -4562,16 +4562,16 @@ const deserializeAws_queryInsightRuleContributor = (output, context) => {
|
|
|
4562
4562
|
contents.Keys = [];
|
|
4563
4563
|
}
|
|
4564
4564
|
if (output["Keys"] !== undefined && output["Keys"]["member"] !== undefined) {
|
|
4565
|
-
contents.Keys = deserializeAws_queryInsightRuleContributorKeys(
|
|
4565
|
+
contents.Keys = deserializeAws_queryInsightRuleContributorKeys(smithy_client_1.getArrayIfSingleItem(output["Keys"]["member"]), context);
|
|
4566
4566
|
}
|
|
4567
4567
|
if (output["ApproximateAggregateValue"] !== undefined) {
|
|
4568
|
-
contents.ApproximateAggregateValue =
|
|
4568
|
+
contents.ApproximateAggregateValue = smithy_client_1.strictParseFloat(output["ApproximateAggregateValue"]);
|
|
4569
4569
|
}
|
|
4570
4570
|
if (output.Datapoints === "") {
|
|
4571
4571
|
contents.Datapoints = [];
|
|
4572
4572
|
}
|
|
4573
4573
|
if (output["Datapoints"] !== undefined && output["Datapoints"]["member"] !== undefined) {
|
|
4574
|
-
contents.Datapoints = deserializeAws_queryInsightRuleContributorDatapoints(
|
|
4574
|
+
contents.Datapoints = deserializeAws_queryInsightRuleContributorDatapoints(smithy_client_1.getArrayIfSingleItem(output["Datapoints"]["member"]), context);
|
|
4575
4575
|
}
|
|
4576
4576
|
return contents;
|
|
4577
4577
|
};
|
|
@@ -4581,10 +4581,10 @@ const deserializeAws_queryInsightRuleContributorDatapoint = (output, context) =>
|
|
|
4581
4581
|
ApproximateValue: undefined,
|
|
4582
4582
|
};
|
|
4583
4583
|
if (output["Timestamp"] !== undefined) {
|
|
4584
|
-
contents.Timestamp =
|
|
4584
|
+
contents.Timestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Timestamp"]));
|
|
4585
4585
|
}
|
|
4586
4586
|
if (output["ApproximateValue"] !== undefined) {
|
|
4587
|
-
contents.ApproximateValue =
|
|
4587
|
+
contents.ApproximateValue = smithy_client_1.strictParseFloat(output["ApproximateValue"]);
|
|
4588
4588
|
}
|
|
4589
4589
|
return contents;
|
|
4590
4590
|
};
|
|
@@ -4605,7 +4605,7 @@ const deserializeAws_queryInsightRuleContributorKeyLabels = (output, context) =>
|
|
|
4605
4605
|
if (entry === null) {
|
|
4606
4606
|
return null;
|
|
4607
4607
|
}
|
|
4608
|
-
return
|
|
4608
|
+
return smithy_client_1.expectString(entry);
|
|
4609
4609
|
});
|
|
4610
4610
|
};
|
|
4611
4611
|
const deserializeAws_queryInsightRuleContributorKeys = (output, context) => {
|
|
@@ -4615,7 +4615,7 @@ const deserializeAws_queryInsightRuleContributorKeys = (output, context) => {
|
|
|
4615
4615
|
if (entry === null) {
|
|
4616
4616
|
return null;
|
|
4617
4617
|
}
|
|
4618
|
-
return
|
|
4618
|
+
return smithy_client_1.expectString(entry);
|
|
4619
4619
|
});
|
|
4620
4620
|
};
|
|
4621
4621
|
const deserializeAws_queryInsightRuleContributors = (output, context) => {
|
|
@@ -4640,28 +4640,28 @@ const deserializeAws_queryInsightRuleMetricDatapoint = (output, context) => {
|
|
|
4640
4640
|
Maximum: undefined,
|
|
4641
4641
|
};
|
|
4642
4642
|
if (output["Timestamp"] !== undefined) {
|
|
4643
|
-
contents.Timestamp =
|
|
4643
|
+
contents.Timestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Timestamp"]));
|
|
4644
4644
|
}
|
|
4645
4645
|
if (output["UniqueContributors"] !== undefined) {
|
|
4646
|
-
contents.UniqueContributors =
|
|
4646
|
+
contents.UniqueContributors = smithy_client_1.strictParseFloat(output["UniqueContributors"]);
|
|
4647
4647
|
}
|
|
4648
4648
|
if (output["MaxContributorValue"] !== undefined) {
|
|
4649
|
-
contents.MaxContributorValue =
|
|
4649
|
+
contents.MaxContributorValue = smithy_client_1.strictParseFloat(output["MaxContributorValue"]);
|
|
4650
4650
|
}
|
|
4651
4651
|
if (output["SampleCount"] !== undefined) {
|
|
4652
|
-
contents.SampleCount =
|
|
4652
|
+
contents.SampleCount = smithy_client_1.strictParseFloat(output["SampleCount"]);
|
|
4653
4653
|
}
|
|
4654
4654
|
if (output["Average"] !== undefined) {
|
|
4655
|
-
contents.Average =
|
|
4655
|
+
contents.Average = smithy_client_1.strictParseFloat(output["Average"]);
|
|
4656
4656
|
}
|
|
4657
4657
|
if (output["Sum"] !== undefined) {
|
|
4658
|
-
contents.Sum =
|
|
4658
|
+
contents.Sum = smithy_client_1.strictParseFloat(output["Sum"]);
|
|
4659
4659
|
}
|
|
4660
4660
|
if (output["Minimum"] !== undefined) {
|
|
4661
|
-
contents.Minimum =
|
|
4661
|
+
contents.Minimum = smithy_client_1.strictParseFloat(output["Minimum"]);
|
|
4662
4662
|
}
|
|
4663
4663
|
if (output["Maximum"] !== undefined) {
|
|
4664
|
-
contents.Maximum =
|
|
4664
|
+
contents.Maximum = smithy_client_1.strictParseFloat(output["Maximum"]);
|
|
4665
4665
|
}
|
|
4666
4666
|
return contents;
|
|
4667
4667
|
};
|
|
@@ -4690,7 +4690,7 @@ const deserializeAws_queryInternalServiceFault = (output, context) => {
|
|
|
4690
4690
|
Message: undefined,
|
|
4691
4691
|
};
|
|
4692
4692
|
if (output["Message"] !== undefined) {
|
|
4693
|
-
contents.Message =
|
|
4693
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
4694
4694
|
}
|
|
4695
4695
|
return contents;
|
|
4696
4696
|
};
|
|
@@ -4699,7 +4699,7 @@ const deserializeAws_queryInvalidFormatFault = (output, context) => {
|
|
|
4699
4699
|
message: undefined,
|
|
4700
4700
|
};
|
|
4701
4701
|
if (output["message"] !== undefined) {
|
|
4702
|
-
contents.message =
|
|
4702
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
4703
4703
|
}
|
|
4704
4704
|
return contents;
|
|
4705
4705
|
};
|
|
@@ -4708,7 +4708,7 @@ const deserializeAws_queryInvalidNextToken = (output, context) => {
|
|
|
4708
4708
|
message: undefined,
|
|
4709
4709
|
};
|
|
4710
4710
|
if (output["message"] !== undefined) {
|
|
4711
|
-
contents.message =
|
|
4711
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
4712
4712
|
}
|
|
4713
4713
|
return contents;
|
|
4714
4714
|
};
|
|
@@ -4717,7 +4717,7 @@ const deserializeAws_queryInvalidParameterCombinationException = (output, contex
|
|
|
4717
4717
|
message: undefined,
|
|
4718
4718
|
};
|
|
4719
4719
|
if (output["message"] !== undefined) {
|
|
4720
|
-
contents.message =
|
|
4720
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
4721
4721
|
}
|
|
4722
4722
|
return contents;
|
|
4723
4723
|
};
|
|
@@ -4726,7 +4726,7 @@ const deserializeAws_queryInvalidParameterValueException = (output, context) =>
|
|
|
4726
4726
|
message: undefined,
|
|
4727
4727
|
};
|
|
4728
4728
|
if (output["message"] !== undefined) {
|
|
4729
|
-
contents.message =
|
|
4729
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
4730
4730
|
}
|
|
4731
4731
|
return contents;
|
|
4732
4732
|
};
|
|
@@ -4735,7 +4735,7 @@ const deserializeAws_queryLimitExceededException = (output, context) => {
|
|
|
4735
4735
|
Message: undefined,
|
|
4736
4736
|
};
|
|
4737
4737
|
if (output["Message"] !== undefined) {
|
|
4738
|
-
contents.Message =
|
|
4738
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
4739
4739
|
}
|
|
4740
4740
|
return contents;
|
|
4741
4741
|
};
|
|
@@ -4744,7 +4744,7 @@ const deserializeAws_queryLimitExceededFault = (output, context) => {
|
|
|
4744
4744
|
message: undefined,
|
|
4745
4745
|
};
|
|
4746
4746
|
if (output["message"] !== undefined) {
|
|
4747
|
-
contents.message =
|
|
4747
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
4748
4748
|
}
|
|
4749
4749
|
return contents;
|
|
4750
4750
|
};
|
|
@@ -4757,10 +4757,10 @@ const deserializeAws_queryListDashboardsOutput = (output, context) => {
|
|
|
4757
4757
|
contents.DashboardEntries = [];
|
|
4758
4758
|
}
|
|
4759
4759
|
if (output["DashboardEntries"] !== undefined && output["DashboardEntries"]["member"] !== undefined) {
|
|
4760
|
-
contents.DashboardEntries = deserializeAws_queryDashboardEntries(
|
|
4760
|
+
contents.DashboardEntries = deserializeAws_queryDashboardEntries(smithy_client_1.getArrayIfSingleItem(output["DashboardEntries"]["member"]), context);
|
|
4761
4761
|
}
|
|
4762
4762
|
if (output["NextToken"] !== undefined) {
|
|
4763
|
-
contents.NextToken =
|
|
4763
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
4764
4764
|
}
|
|
4765
4765
|
return contents;
|
|
4766
4766
|
};
|
|
@@ -4773,10 +4773,10 @@ const deserializeAws_queryListMetricsOutput = (output, context) => {
|
|
|
4773
4773
|
contents.Metrics = [];
|
|
4774
4774
|
}
|
|
4775
4775
|
if (output["Metrics"] !== undefined && output["Metrics"]["member"] !== undefined) {
|
|
4776
|
-
contents.Metrics = deserializeAws_queryMetrics(
|
|
4776
|
+
contents.Metrics = deserializeAws_queryMetrics(smithy_client_1.getArrayIfSingleItem(output["Metrics"]["member"]), context);
|
|
4777
4777
|
}
|
|
4778
4778
|
if (output["NextToken"] !== undefined) {
|
|
4779
|
-
contents.NextToken =
|
|
4779
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
4780
4780
|
}
|
|
4781
4781
|
return contents;
|
|
4782
4782
|
};
|
|
@@ -4786,13 +4786,13 @@ const deserializeAws_queryListMetricStreamsOutput = (output, context) => {
|
|
|
4786
4786
|
Entries: undefined,
|
|
4787
4787
|
};
|
|
4788
4788
|
if (output["NextToken"] !== undefined) {
|
|
4789
|
-
contents.NextToken =
|
|
4789
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
4790
4790
|
}
|
|
4791
4791
|
if (output.Entries === "") {
|
|
4792
4792
|
contents.Entries = [];
|
|
4793
4793
|
}
|
|
4794
4794
|
if (output["Entries"] !== undefined && output["Entries"]["member"] !== undefined) {
|
|
4795
|
-
contents.Entries = deserializeAws_queryMetricStreamEntries(
|
|
4795
|
+
contents.Entries = deserializeAws_queryMetricStreamEntries(smithy_client_1.getArrayIfSingleItem(output["Entries"]["member"]), context);
|
|
4796
4796
|
}
|
|
4797
4797
|
return contents;
|
|
4798
4798
|
};
|
|
@@ -4804,7 +4804,7 @@ const deserializeAws_queryListTagsForResourceOutput = (output, context) => {
|
|
|
4804
4804
|
contents.Tags = [];
|
|
4805
4805
|
}
|
|
4806
4806
|
if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) {
|
|
4807
|
-
contents.Tags = deserializeAws_queryTagList(
|
|
4807
|
+
contents.Tags = deserializeAws_queryTagList(smithy_client_1.getArrayIfSingleItem(output["Tags"]["member"]), context);
|
|
4808
4808
|
}
|
|
4809
4809
|
return contents;
|
|
4810
4810
|
};
|
|
@@ -4814,10 +4814,10 @@ const deserializeAws_queryMessageData = (output, context) => {
|
|
|
4814
4814
|
Value: undefined,
|
|
4815
4815
|
};
|
|
4816
4816
|
if (output["Code"] !== undefined) {
|
|
4817
|
-
contents.Code =
|
|
4817
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
4818
4818
|
}
|
|
4819
4819
|
if (output["Value"] !== undefined) {
|
|
4820
|
-
contents.Value =
|
|
4820
|
+
contents.Value = smithy_client_1.expectString(output["Value"]);
|
|
4821
4821
|
}
|
|
4822
4822
|
return contents;
|
|
4823
4823
|
};
|
|
@@ -4828,16 +4828,16 @@ const deserializeAws_queryMetric = (output, context) => {
|
|
|
4828
4828
|
Dimensions: undefined,
|
|
4829
4829
|
};
|
|
4830
4830
|
if (output["Namespace"] !== undefined) {
|
|
4831
|
-
contents.Namespace =
|
|
4831
|
+
contents.Namespace = smithy_client_1.expectString(output["Namespace"]);
|
|
4832
4832
|
}
|
|
4833
4833
|
if (output["MetricName"] !== undefined) {
|
|
4834
|
-
contents.MetricName =
|
|
4834
|
+
contents.MetricName = smithy_client_1.expectString(output["MetricName"]);
|
|
4835
4835
|
}
|
|
4836
4836
|
if (output.Dimensions === "") {
|
|
4837
4837
|
contents.Dimensions = [];
|
|
4838
4838
|
}
|
|
4839
4839
|
if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) {
|
|
4840
|
-
contents.Dimensions = deserializeAws_queryDimensions(
|
|
4840
|
+
contents.Dimensions = deserializeAws_queryDimensions(smithy_client_1.getArrayIfSingleItem(output["Dimensions"]["member"]), context);
|
|
4841
4841
|
}
|
|
4842
4842
|
return contents;
|
|
4843
4843
|
};
|
|
@@ -4872,100 +4872,100 @@ const deserializeAws_queryMetricAlarm = (output, context) => {
|
|
|
4872
4872
|
ThresholdMetricId: undefined,
|
|
4873
4873
|
};
|
|
4874
4874
|
if (output["AlarmName"] !== undefined) {
|
|
4875
|
-
contents.AlarmName =
|
|
4875
|
+
contents.AlarmName = smithy_client_1.expectString(output["AlarmName"]);
|
|
4876
4876
|
}
|
|
4877
4877
|
if (output["AlarmArn"] !== undefined) {
|
|
4878
|
-
contents.AlarmArn =
|
|
4878
|
+
contents.AlarmArn = smithy_client_1.expectString(output["AlarmArn"]);
|
|
4879
4879
|
}
|
|
4880
4880
|
if (output["AlarmDescription"] !== undefined) {
|
|
4881
|
-
contents.AlarmDescription =
|
|
4881
|
+
contents.AlarmDescription = smithy_client_1.expectString(output["AlarmDescription"]);
|
|
4882
4882
|
}
|
|
4883
4883
|
if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) {
|
|
4884
|
-
contents.AlarmConfigurationUpdatedTimestamp =
|
|
4884
|
+
contents.AlarmConfigurationUpdatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["AlarmConfigurationUpdatedTimestamp"]));
|
|
4885
4885
|
}
|
|
4886
4886
|
if (output["ActionsEnabled"] !== undefined) {
|
|
4887
|
-
contents.ActionsEnabled =
|
|
4887
|
+
contents.ActionsEnabled = smithy_client_1.parseBoolean(output["ActionsEnabled"]);
|
|
4888
4888
|
}
|
|
4889
4889
|
if (output.OKActions === "") {
|
|
4890
4890
|
contents.OKActions = [];
|
|
4891
4891
|
}
|
|
4892
4892
|
if (output["OKActions"] !== undefined && output["OKActions"]["member"] !== undefined) {
|
|
4893
|
-
contents.OKActions = deserializeAws_queryResourceList(
|
|
4893
|
+
contents.OKActions = deserializeAws_queryResourceList(smithy_client_1.getArrayIfSingleItem(output["OKActions"]["member"]), context);
|
|
4894
4894
|
}
|
|
4895
4895
|
if (output.AlarmActions === "") {
|
|
4896
4896
|
contents.AlarmActions = [];
|
|
4897
4897
|
}
|
|
4898
4898
|
if (output["AlarmActions"] !== undefined && output["AlarmActions"]["member"] !== undefined) {
|
|
4899
|
-
contents.AlarmActions = deserializeAws_queryResourceList(
|
|
4899
|
+
contents.AlarmActions = deserializeAws_queryResourceList(smithy_client_1.getArrayIfSingleItem(output["AlarmActions"]["member"]), context);
|
|
4900
4900
|
}
|
|
4901
4901
|
if (output.InsufficientDataActions === "") {
|
|
4902
4902
|
contents.InsufficientDataActions = [];
|
|
4903
4903
|
}
|
|
4904
4904
|
if (output["InsufficientDataActions"] !== undefined && output["InsufficientDataActions"]["member"] !== undefined) {
|
|
4905
|
-
contents.InsufficientDataActions = deserializeAws_queryResourceList(
|
|
4905
|
+
contents.InsufficientDataActions = deserializeAws_queryResourceList(smithy_client_1.getArrayIfSingleItem(output["InsufficientDataActions"]["member"]), context);
|
|
4906
4906
|
}
|
|
4907
4907
|
if (output["StateValue"] !== undefined) {
|
|
4908
|
-
contents.StateValue =
|
|
4908
|
+
contents.StateValue = smithy_client_1.expectString(output["StateValue"]);
|
|
4909
4909
|
}
|
|
4910
4910
|
if (output["StateReason"] !== undefined) {
|
|
4911
|
-
contents.StateReason =
|
|
4911
|
+
contents.StateReason = smithy_client_1.expectString(output["StateReason"]);
|
|
4912
4912
|
}
|
|
4913
4913
|
if (output["StateReasonData"] !== undefined) {
|
|
4914
|
-
contents.StateReasonData =
|
|
4914
|
+
contents.StateReasonData = smithy_client_1.expectString(output["StateReasonData"]);
|
|
4915
4915
|
}
|
|
4916
4916
|
if (output["StateUpdatedTimestamp"] !== undefined) {
|
|
4917
|
-
contents.StateUpdatedTimestamp =
|
|
4917
|
+
contents.StateUpdatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["StateUpdatedTimestamp"]));
|
|
4918
4918
|
}
|
|
4919
4919
|
if (output["MetricName"] !== undefined) {
|
|
4920
|
-
contents.MetricName =
|
|
4920
|
+
contents.MetricName = smithy_client_1.expectString(output["MetricName"]);
|
|
4921
4921
|
}
|
|
4922
4922
|
if (output["Namespace"] !== undefined) {
|
|
4923
|
-
contents.Namespace =
|
|
4923
|
+
contents.Namespace = smithy_client_1.expectString(output["Namespace"]);
|
|
4924
4924
|
}
|
|
4925
4925
|
if (output["Statistic"] !== undefined) {
|
|
4926
|
-
contents.Statistic =
|
|
4926
|
+
contents.Statistic = smithy_client_1.expectString(output["Statistic"]);
|
|
4927
4927
|
}
|
|
4928
4928
|
if (output["ExtendedStatistic"] !== undefined) {
|
|
4929
|
-
contents.ExtendedStatistic =
|
|
4929
|
+
contents.ExtendedStatistic = smithy_client_1.expectString(output["ExtendedStatistic"]);
|
|
4930
4930
|
}
|
|
4931
4931
|
if (output.Dimensions === "") {
|
|
4932
4932
|
contents.Dimensions = [];
|
|
4933
4933
|
}
|
|
4934
4934
|
if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) {
|
|
4935
|
-
contents.Dimensions = deserializeAws_queryDimensions(
|
|
4935
|
+
contents.Dimensions = deserializeAws_queryDimensions(smithy_client_1.getArrayIfSingleItem(output["Dimensions"]["member"]), context);
|
|
4936
4936
|
}
|
|
4937
4937
|
if (output["Period"] !== undefined) {
|
|
4938
|
-
contents.Period =
|
|
4938
|
+
contents.Period = smithy_client_1.strictParseInt32(output["Period"]);
|
|
4939
4939
|
}
|
|
4940
4940
|
if (output["Unit"] !== undefined) {
|
|
4941
|
-
contents.Unit =
|
|
4941
|
+
contents.Unit = smithy_client_1.expectString(output["Unit"]);
|
|
4942
4942
|
}
|
|
4943
4943
|
if (output["EvaluationPeriods"] !== undefined) {
|
|
4944
|
-
contents.EvaluationPeriods =
|
|
4944
|
+
contents.EvaluationPeriods = smithy_client_1.strictParseInt32(output["EvaluationPeriods"]);
|
|
4945
4945
|
}
|
|
4946
4946
|
if (output["DatapointsToAlarm"] !== undefined) {
|
|
4947
|
-
contents.DatapointsToAlarm =
|
|
4947
|
+
contents.DatapointsToAlarm = smithy_client_1.strictParseInt32(output["DatapointsToAlarm"]);
|
|
4948
4948
|
}
|
|
4949
4949
|
if (output["Threshold"] !== undefined) {
|
|
4950
|
-
contents.Threshold =
|
|
4950
|
+
contents.Threshold = smithy_client_1.strictParseFloat(output["Threshold"]);
|
|
4951
4951
|
}
|
|
4952
4952
|
if (output["ComparisonOperator"] !== undefined) {
|
|
4953
|
-
contents.ComparisonOperator =
|
|
4953
|
+
contents.ComparisonOperator = smithy_client_1.expectString(output["ComparisonOperator"]);
|
|
4954
4954
|
}
|
|
4955
4955
|
if (output["TreatMissingData"] !== undefined) {
|
|
4956
|
-
contents.TreatMissingData =
|
|
4956
|
+
contents.TreatMissingData = smithy_client_1.expectString(output["TreatMissingData"]);
|
|
4957
4957
|
}
|
|
4958
4958
|
if (output["EvaluateLowSampleCountPercentile"] !== undefined) {
|
|
4959
|
-
contents.EvaluateLowSampleCountPercentile =
|
|
4959
|
+
contents.EvaluateLowSampleCountPercentile = smithy_client_1.expectString(output["EvaluateLowSampleCountPercentile"]);
|
|
4960
4960
|
}
|
|
4961
4961
|
if (output.Metrics === "") {
|
|
4962
4962
|
contents.Metrics = [];
|
|
4963
4963
|
}
|
|
4964
4964
|
if (output["Metrics"] !== undefined && output["Metrics"]["member"] !== undefined) {
|
|
4965
|
-
contents.Metrics = deserializeAws_queryMetricDataQueries(
|
|
4965
|
+
contents.Metrics = deserializeAws_queryMetricDataQueries(smithy_client_1.getArrayIfSingleItem(output["Metrics"]["member"]), context);
|
|
4966
4966
|
}
|
|
4967
4967
|
if (output["ThresholdMetricId"] !== undefined) {
|
|
4968
|
-
contents.ThresholdMetricId =
|
|
4968
|
+
contents.ThresholdMetricId = smithy_client_1.expectString(output["ThresholdMetricId"]);
|
|
4969
4969
|
}
|
|
4970
4970
|
return contents;
|
|
4971
4971
|
};
|
|
@@ -5000,25 +5000,25 @@ const deserializeAws_queryMetricDataQuery = (output, context) => {
|
|
|
5000
5000
|
AccountId: undefined,
|
|
5001
5001
|
};
|
|
5002
5002
|
if (output["Id"] !== undefined) {
|
|
5003
|
-
contents.Id =
|
|
5003
|
+
contents.Id = smithy_client_1.expectString(output["Id"]);
|
|
5004
5004
|
}
|
|
5005
5005
|
if (output["MetricStat"] !== undefined) {
|
|
5006
5006
|
contents.MetricStat = deserializeAws_queryMetricStat(output["MetricStat"], context);
|
|
5007
5007
|
}
|
|
5008
5008
|
if (output["Expression"] !== undefined) {
|
|
5009
|
-
contents.Expression =
|
|
5009
|
+
contents.Expression = smithy_client_1.expectString(output["Expression"]);
|
|
5010
5010
|
}
|
|
5011
5011
|
if (output["Label"] !== undefined) {
|
|
5012
|
-
contents.Label =
|
|
5012
|
+
contents.Label = smithy_client_1.expectString(output["Label"]);
|
|
5013
5013
|
}
|
|
5014
5014
|
if (output["ReturnData"] !== undefined) {
|
|
5015
|
-
contents.ReturnData =
|
|
5015
|
+
contents.ReturnData = smithy_client_1.parseBoolean(output["ReturnData"]);
|
|
5016
5016
|
}
|
|
5017
5017
|
if (output["Period"] !== undefined) {
|
|
5018
|
-
contents.Period =
|
|
5018
|
+
contents.Period = smithy_client_1.strictParseInt32(output["Period"]);
|
|
5019
5019
|
}
|
|
5020
5020
|
if (output["AccountId"] !== undefined) {
|
|
5021
|
-
contents.AccountId =
|
|
5021
|
+
contents.AccountId = smithy_client_1.expectString(output["AccountId"]);
|
|
5022
5022
|
}
|
|
5023
5023
|
return contents;
|
|
5024
5024
|
};
|
|
@@ -5032,31 +5032,31 @@ const deserializeAws_queryMetricDataResult = (output, context) => {
|
|
|
5032
5032
|
Messages: undefined,
|
|
5033
5033
|
};
|
|
5034
5034
|
if (output["Id"] !== undefined) {
|
|
5035
|
-
contents.Id =
|
|
5035
|
+
contents.Id = smithy_client_1.expectString(output["Id"]);
|
|
5036
5036
|
}
|
|
5037
5037
|
if (output["Label"] !== undefined) {
|
|
5038
|
-
contents.Label =
|
|
5038
|
+
contents.Label = smithy_client_1.expectString(output["Label"]);
|
|
5039
5039
|
}
|
|
5040
5040
|
if (output.Timestamps === "") {
|
|
5041
5041
|
contents.Timestamps = [];
|
|
5042
5042
|
}
|
|
5043
5043
|
if (output["Timestamps"] !== undefined && output["Timestamps"]["member"] !== undefined) {
|
|
5044
|
-
contents.Timestamps = deserializeAws_queryTimestamps(
|
|
5044
|
+
contents.Timestamps = deserializeAws_queryTimestamps(smithy_client_1.getArrayIfSingleItem(output["Timestamps"]["member"]), context);
|
|
5045
5045
|
}
|
|
5046
5046
|
if (output.Values === "") {
|
|
5047
5047
|
contents.Values = [];
|
|
5048
5048
|
}
|
|
5049
5049
|
if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) {
|
|
5050
|
-
contents.Values = deserializeAws_queryDatapointValues(
|
|
5050
|
+
contents.Values = deserializeAws_queryDatapointValues(smithy_client_1.getArrayIfSingleItem(output["Values"]["member"]), context);
|
|
5051
5051
|
}
|
|
5052
5052
|
if (output["StatusCode"] !== undefined) {
|
|
5053
|
-
contents.StatusCode =
|
|
5053
|
+
contents.StatusCode = smithy_client_1.expectString(output["StatusCode"]);
|
|
5054
5054
|
}
|
|
5055
5055
|
if (output.Messages === "") {
|
|
5056
5056
|
contents.Messages = [];
|
|
5057
5057
|
}
|
|
5058
5058
|
if (output["Messages"] !== undefined && output["Messages"]["member"] !== undefined) {
|
|
5059
|
-
contents.Messages = deserializeAws_queryMetricDataResultMessages(
|
|
5059
|
+
contents.Messages = deserializeAws_queryMetricDataResultMessages(smithy_client_1.getArrayIfSingleItem(output["Messages"]["member"]), context);
|
|
5060
5060
|
}
|
|
5061
5061
|
return contents;
|
|
5062
5062
|
};
|
|
@@ -5101,13 +5101,13 @@ const deserializeAws_queryMetricStat = (output, context) => {
|
|
|
5101
5101
|
contents.Metric = deserializeAws_queryMetric(output["Metric"], context);
|
|
5102
5102
|
}
|
|
5103
5103
|
if (output["Period"] !== undefined) {
|
|
5104
|
-
contents.Period =
|
|
5104
|
+
contents.Period = smithy_client_1.strictParseInt32(output["Period"]);
|
|
5105
5105
|
}
|
|
5106
5106
|
if (output["Stat"] !== undefined) {
|
|
5107
|
-
contents.Stat =
|
|
5107
|
+
contents.Stat = smithy_client_1.expectString(output["Stat"]);
|
|
5108
5108
|
}
|
|
5109
5109
|
if (output["Unit"] !== undefined) {
|
|
5110
|
-
contents.Unit =
|
|
5110
|
+
contents.Unit = smithy_client_1.expectString(output["Unit"]);
|
|
5111
5111
|
}
|
|
5112
5112
|
return contents;
|
|
5113
5113
|
};
|
|
@@ -5132,25 +5132,25 @@ const deserializeAws_queryMetricStreamEntry = (output, context) => {
|
|
|
5132
5132
|
OutputFormat: undefined,
|
|
5133
5133
|
};
|
|
5134
5134
|
if (output["Arn"] !== undefined) {
|
|
5135
|
-
contents.Arn =
|
|
5135
|
+
contents.Arn = smithy_client_1.expectString(output["Arn"]);
|
|
5136
5136
|
}
|
|
5137
5137
|
if (output["CreationDate"] !== undefined) {
|
|
5138
|
-
contents.CreationDate =
|
|
5138
|
+
contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["CreationDate"]));
|
|
5139
5139
|
}
|
|
5140
5140
|
if (output["LastUpdateDate"] !== undefined) {
|
|
5141
|
-
contents.LastUpdateDate =
|
|
5141
|
+
contents.LastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastUpdateDate"]));
|
|
5142
5142
|
}
|
|
5143
5143
|
if (output["Name"] !== undefined) {
|
|
5144
|
-
contents.Name =
|
|
5144
|
+
contents.Name = smithy_client_1.expectString(output["Name"]);
|
|
5145
5145
|
}
|
|
5146
5146
|
if (output["FirehoseArn"] !== undefined) {
|
|
5147
|
-
contents.FirehoseArn =
|
|
5147
|
+
contents.FirehoseArn = smithy_client_1.expectString(output["FirehoseArn"]);
|
|
5148
5148
|
}
|
|
5149
5149
|
if (output["State"] !== undefined) {
|
|
5150
|
-
contents.State =
|
|
5150
|
+
contents.State = smithy_client_1.expectString(output["State"]);
|
|
5151
5151
|
}
|
|
5152
5152
|
if (output["OutputFormat"] !== undefined) {
|
|
5153
|
-
contents.OutputFormat =
|
|
5153
|
+
contents.OutputFormat = smithy_client_1.expectString(output["OutputFormat"]);
|
|
5154
5154
|
}
|
|
5155
5155
|
return contents;
|
|
5156
5156
|
};
|
|
@@ -5159,7 +5159,7 @@ const deserializeAws_queryMetricStreamFilter = (output, context) => {
|
|
|
5159
5159
|
Namespace: undefined,
|
|
5160
5160
|
};
|
|
5161
5161
|
if (output["Namespace"] !== undefined) {
|
|
5162
|
-
contents.Namespace =
|
|
5162
|
+
contents.Namespace = smithy_client_1.expectString(output["Namespace"]);
|
|
5163
5163
|
}
|
|
5164
5164
|
return contents;
|
|
5165
5165
|
};
|
|
@@ -5178,7 +5178,7 @@ const deserializeAws_queryMissingRequiredParameterException = (output, context)
|
|
|
5178
5178
|
message: undefined,
|
|
5179
5179
|
};
|
|
5180
5180
|
if (output["message"] !== undefined) {
|
|
5181
|
-
contents.message =
|
|
5181
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
5182
5182
|
}
|
|
5183
5183
|
return contents;
|
|
5184
5184
|
};
|
|
@@ -5190,16 +5190,16 @@ const deserializeAws_queryPartialFailure = (output, context) => {
|
|
|
5190
5190
|
FailureDescription: undefined,
|
|
5191
5191
|
};
|
|
5192
5192
|
if (output["FailureResource"] !== undefined) {
|
|
5193
|
-
contents.FailureResource =
|
|
5193
|
+
contents.FailureResource = smithy_client_1.expectString(output["FailureResource"]);
|
|
5194
5194
|
}
|
|
5195
5195
|
if (output["ExceptionType"] !== undefined) {
|
|
5196
|
-
contents.ExceptionType =
|
|
5196
|
+
contents.ExceptionType = smithy_client_1.expectString(output["ExceptionType"]);
|
|
5197
5197
|
}
|
|
5198
5198
|
if (output["FailureCode"] !== undefined) {
|
|
5199
|
-
contents.FailureCode =
|
|
5199
|
+
contents.FailureCode = smithy_client_1.expectString(output["FailureCode"]);
|
|
5200
5200
|
}
|
|
5201
5201
|
if (output["FailureDescription"] !== undefined) {
|
|
5202
|
-
contents.FailureDescription =
|
|
5202
|
+
contents.FailureDescription = smithy_client_1.expectString(output["FailureDescription"]);
|
|
5203
5203
|
}
|
|
5204
5204
|
return contents;
|
|
5205
5205
|
};
|
|
@@ -5216,7 +5216,7 @@ const deserializeAws_queryPutDashboardOutput = (output, context) => {
|
|
|
5216
5216
|
}
|
|
5217
5217
|
if (output["DashboardValidationMessages"] !== undefined &&
|
|
5218
5218
|
output["DashboardValidationMessages"]["member"] !== undefined) {
|
|
5219
|
-
contents.DashboardValidationMessages = deserializeAws_queryDashboardValidationMessages(
|
|
5219
|
+
contents.DashboardValidationMessages = deserializeAws_queryDashboardValidationMessages(smithy_client_1.getArrayIfSingleItem(output["DashboardValidationMessages"]["member"]), context);
|
|
5220
5220
|
}
|
|
5221
5221
|
return contents;
|
|
5222
5222
|
};
|
|
@@ -5229,7 +5229,7 @@ const deserializeAws_queryPutMetricStreamOutput = (output, context) => {
|
|
|
5229
5229
|
Arn: undefined,
|
|
5230
5230
|
};
|
|
5231
5231
|
if (output["Arn"] !== undefined) {
|
|
5232
|
-
contents.Arn =
|
|
5232
|
+
contents.Arn = smithy_client_1.expectString(output["Arn"]);
|
|
5233
5233
|
}
|
|
5234
5234
|
return contents;
|
|
5235
5235
|
};
|
|
@@ -5239,10 +5239,10 @@ const deserializeAws_queryRange = (output, context) => {
|
|
|
5239
5239
|
EndTime: undefined,
|
|
5240
5240
|
};
|
|
5241
5241
|
if (output["StartTime"] !== undefined) {
|
|
5242
|
-
contents.StartTime =
|
|
5242
|
+
contents.StartTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["StartTime"]));
|
|
5243
5243
|
}
|
|
5244
5244
|
if (output["EndTime"] !== undefined) {
|
|
5245
|
-
contents.EndTime =
|
|
5245
|
+
contents.EndTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["EndTime"]));
|
|
5246
5246
|
}
|
|
5247
5247
|
return contents;
|
|
5248
5248
|
};
|
|
@@ -5253,7 +5253,7 @@ const deserializeAws_queryResourceList = (output, context) => {
|
|
|
5253
5253
|
if (entry === null) {
|
|
5254
5254
|
return null;
|
|
5255
5255
|
}
|
|
5256
|
-
return
|
|
5256
|
+
return smithy_client_1.expectString(entry);
|
|
5257
5257
|
});
|
|
5258
5258
|
};
|
|
5259
5259
|
const deserializeAws_queryResourceNotFound = (output, context) => {
|
|
@@ -5261,7 +5261,7 @@ const deserializeAws_queryResourceNotFound = (output, context) => {
|
|
|
5261
5261
|
message: undefined,
|
|
5262
5262
|
};
|
|
5263
5263
|
if (output["message"] !== undefined) {
|
|
5264
|
-
contents.message =
|
|
5264
|
+
contents.message = smithy_client_1.expectString(output["message"]);
|
|
5265
5265
|
}
|
|
5266
5266
|
return contents;
|
|
5267
5267
|
};
|
|
@@ -5272,13 +5272,13 @@ const deserializeAws_queryResourceNotFoundException = (output, context) => {
|
|
|
5272
5272
|
Message: undefined,
|
|
5273
5273
|
};
|
|
5274
5274
|
if (output["ResourceType"] !== undefined) {
|
|
5275
|
-
contents.ResourceType =
|
|
5275
|
+
contents.ResourceType = smithy_client_1.expectString(output["ResourceType"]);
|
|
5276
5276
|
}
|
|
5277
5277
|
if (output["ResourceId"] !== undefined) {
|
|
5278
|
-
contents.ResourceId =
|
|
5278
|
+
contents.ResourceId = smithy_client_1.expectString(output["ResourceId"]);
|
|
5279
5279
|
}
|
|
5280
5280
|
if (output["Message"] !== undefined) {
|
|
5281
|
-
contents.Message =
|
|
5281
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
5282
5282
|
}
|
|
5283
5283
|
return contents;
|
|
5284
5284
|
};
|
|
@@ -5296,10 +5296,10 @@ const deserializeAws_queryTag = (output, context) => {
|
|
|
5296
5296
|
Value: undefined,
|
|
5297
5297
|
};
|
|
5298
5298
|
if (output["Key"] !== undefined) {
|
|
5299
|
-
contents.Key =
|
|
5299
|
+
contents.Key = smithy_client_1.expectString(output["Key"]);
|
|
5300
5300
|
}
|
|
5301
5301
|
if (output["Value"] !== undefined) {
|
|
5302
|
-
contents.Value =
|
|
5302
|
+
contents.Value = smithy_client_1.expectString(output["Value"]);
|
|
5303
5303
|
}
|
|
5304
5304
|
return contents;
|
|
5305
5305
|
};
|
|
@@ -5324,7 +5324,7 @@ const deserializeAws_queryTimestamps = (output, context) => {
|
|
|
5324
5324
|
if (entry === null) {
|
|
5325
5325
|
return null;
|
|
5326
5326
|
}
|
|
5327
|
-
return
|
|
5327
|
+
return smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(entry));
|
|
5328
5328
|
});
|
|
5329
5329
|
};
|
|
5330
5330
|
const deserializeAws_queryUntagResourceOutput = (output, context) => {
|
|
@@ -5369,12 +5369,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
5369
5369
|
};
|
|
5370
5370
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5371
5371
|
if (encoded.length) {
|
|
5372
|
-
const parsedObj =
|
|
5372
|
+
const parsedObj = fast_xml_parser_1.parse(encoded, {
|
|
5373
5373
|
attributeNamePrefix: "",
|
|
5374
5374
|
ignoreAttributes: false,
|
|
5375
5375
|
parseNodeValue: false,
|
|
5376
5376
|
trimValues: false,
|
|
5377
|
-
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" :
|
|
5377
|
+
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : entities_1.decodeHTML(val)),
|
|
5378
5378
|
});
|
|
5379
5379
|
const textNodeName = "#text";
|
|
5380
5380
|
const key = Object.keys(parsedObj)[0];
|
|
@@ -5383,12 +5383,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5383
5383
|
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
5384
5384
|
delete parsedObjToReturn[textNodeName];
|
|
5385
5385
|
}
|
|
5386
|
-
return
|
|
5386
|
+
return smithy_client_1.getValueFromTextNode(parsedObjToReturn);
|
|
5387
5387
|
}
|
|
5388
5388
|
return {};
|
|
5389
5389
|
});
|
|
5390
5390
|
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
5391
|
-
.map(([key, value]) =>
|
|
5391
|
+
.map(([key, value]) => smithy_client_1.extendedEncodeURIComponent(key) + "=" + smithy_client_1.extendedEncodeURIComponent(value))
|
|
5392
5392
|
.join("&");
|
|
5393
5393
|
const loadQueryErrorCode = (output, data) => {
|
|
5394
5394
|
if (data.Error.Code !== undefined) {
|