@aws-sdk/client-auto-scaling 3.224.0 → 3.227.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.
Files changed (81) hide show
  1. package/dist-cjs/AutoScaling.js +45 -0
  2. package/dist-cjs/commands/AttachTrafficSourcesCommand.js +46 -0
  3. package/dist-cjs/commands/DescribeTrafficSourcesCommand.js +46 -0
  4. package/dist-cjs/commands/DetachTrafficSourcesCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/endpoint/ruleset.js +1 -10
  7. package/dist-cjs/models/models_0.js +45 -4
  8. package/dist-cjs/protocols/Aws_query.js +420 -3
  9. package/dist-es/AutoScaling.js +45 -0
  10. package/dist-es/commands/AttachTrafficSourcesCommand.js +42 -0
  11. package/dist-es/commands/DescribeTrafficSourcesCommand.js +42 -0
  12. package/dist-es/commands/DetachTrafficSourcesCommand.js +42 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/endpoint/ruleset.js +1 -10
  15. package/dist-es/models/models_0.js +30 -0
  16. package/dist-es/protocols/Aws_query.js +411 -0
  17. package/dist-types/AutoScaling.d.ts +217 -183
  18. package/dist-types/AutoScalingClient.d.ts +7 -17
  19. package/dist-types/commands/AttachInstancesCommand.d.ts +3 -3
  20. package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +8 -8
  21. package/dist-types/commands/AttachLoadBalancersCommand.d.ts +5 -5
  22. package/dist-types/commands/AttachTrafficSourcesCommand.d.ts +45 -0
  23. package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +1 -1
  24. package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +11 -11
  25. package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +4 -4
  26. package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +3 -3
  27. package/dist-types/commands/CreateOrUpdateTagsCommand.d.ts +2 -2
  28. package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +5 -5
  29. package/dist-types/commands/DeleteLaunchConfigurationCommand.d.ts +1 -1
  30. package/dist-types/commands/DeleteLifecycleHookCommand.d.ts +1 -1
  31. package/dist-types/commands/DeletePolicyCommand.d.ts +2 -2
  32. package/dist-types/commands/DeleteWarmPoolCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribeAdjustmentTypesCommand.d.ts +11 -11
  35. package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +2 -2
  36. package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +10 -10
  37. package/dist-types/commands/DescribeLifecycleHookTypesCommand.d.ts +8 -8
  38. package/dist-types/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +8 -3
  39. package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +4 -4
  40. package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +2 -2
  41. package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeTagsCommand.d.ts +3 -3
  43. package/dist-types/commands/DescribeTerminationPolicyTypesCommand.d.ts +1 -1
  44. package/dist-types/commands/DescribeTrafficSourcesCommand.d.ts +41 -0
  45. package/dist-types/commands/DescribeWarmPoolCommand.d.ts +1 -1
  46. package/dist-types/commands/DetachInstancesCommand.d.ts +4 -4
  47. package/dist-types/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +6 -1
  48. package/dist-types/commands/DetachLoadBalancersCommand.d.ts +2 -2
  49. package/dist-types/commands/DetachTrafficSourcesCommand.d.ts +41 -0
  50. package/dist-types/commands/EnableMetricsCollectionCommand.d.ts +1 -1
  51. package/dist-types/commands/EnterStandbyCommand.d.ts +3 -3
  52. package/dist-types/commands/ExitStandbyCommand.d.ts +2 -2
  53. package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +3 -3
  54. package/dist-types/commands/PutLifecycleHookCommand.d.ts +14 -14
  55. package/dist-types/commands/PutNotificationConfigurationCommand.d.ts +3 -3
  56. package/dist-types/commands/PutScalingPolicyCommand.d.ts +3 -3
  57. package/dist-types/commands/PutScheduledUpdateGroupActionCommand.d.ts +3 -3
  58. package/dist-types/commands/PutWarmPoolCommand.d.ts +2 -2
  59. package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +11 -11
  60. package/dist-types/commands/ResumeProcessesCommand.d.ts +1 -1
  61. package/dist-types/commands/SetDesiredCapacityCommand.d.ts +2 -2
  62. package/dist-types/commands/SetInstanceHealthCommand.d.ts +1 -1
  63. package/dist-types/commands/SetInstanceProtectionCommand.d.ts +2 -2
  64. package/dist-types/commands/StartInstanceRefreshCommand.d.ts +2 -2
  65. package/dist-types/commands/SuspendProcessesCommand.d.ts +2 -2
  66. package/dist-types/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +3 -3
  67. package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +9 -9
  68. package/dist-types/commands/index.d.ts +3 -0
  69. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  70. package/dist-types/models/models_0.d.ts +1040 -790
  71. package/dist-types/protocols/Aws_query.d.ts +9 -0
  72. package/dist-types/ts3.4/AutoScaling.d.ts +51 -0
  73. package/dist-types/ts3.4/AutoScalingClient.d.ts +18 -0
  74. package/dist-types/ts3.4/commands/AttachTrafficSourcesCommand.d.ts +41 -0
  75. package/dist-types/ts3.4/commands/DescribeTrafficSourcesCommand.d.ts +41 -0
  76. package/dist-types/ts3.4/commands/DetachTrafficSourcesCommand.d.ts +41 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  78. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  79. package/dist-types/ts3.4/models/models_0.d.ts +75 -3
  80. package/dist-types/ts3.4/protocols/Aws_query.d.ts +36 -0
  81. package/package.json +29 -29
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_queryPutScalingPolicyCommand = exports.serializeAws_queryPutNotificationConfigurationCommand = exports.serializeAws_queryPutLifecycleHookCommand = exports.serializeAws_queryGetPredictiveScalingForecastCommand = exports.serializeAws_queryExitStandbyCommand = exports.serializeAws_queryExecutePolicyCommand = exports.serializeAws_queryEnterStandbyCommand = exports.serializeAws_queryEnableMetricsCollectionCommand = exports.serializeAws_queryDisableMetricsCollectionCommand = exports.serializeAws_queryDetachLoadBalancerTargetGroupsCommand = exports.serializeAws_queryDetachLoadBalancersCommand = exports.serializeAws_queryDetachInstancesCommand = exports.serializeAws_queryDescribeWarmPoolCommand = exports.serializeAws_queryDescribeTerminationPolicyTypesCommand = exports.serializeAws_queryDescribeTagsCommand = exports.serializeAws_queryDescribeScheduledActionsCommand = exports.serializeAws_queryDescribeScalingProcessTypesCommand = exports.serializeAws_queryDescribeScalingActivitiesCommand = exports.serializeAws_queryDescribePoliciesCommand = exports.serializeAws_queryDescribeNotificationConfigurationsCommand = exports.serializeAws_queryDescribeMetricCollectionTypesCommand = exports.serializeAws_queryDescribeLoadBalancerTargetGroupsCommand = exports.serializeAws_queryDescribeLoadBalancersCommand = exports.serializeAws_queryDescribeLifecycleHookTypesCommand = exports.serializeAws_queryDescribeLifecycleHooksCommand = exports.serializeAws_queryDescribeLaunchConfigurationsCommand = exports.serializeAws_queryDescribeInstanceRefreshesCommand = exports.serializeAws_queryDescribeAutoScalingNotificationTypesCommand = exports.serializeAws_queryDescribeAutoScalingInstancesCommand = exports.serializeAws_queryDescribeAutoScalingGroupsCommand = exports.serializeAws_queryDescribeAdjustmentTypesCommand = exports.serializeAws_queryDescribeAccountLimitsCommand = exports.serializeAws_queryDeleteWarmPoolCommand = exports.serializeAws_queryDeleteTagsCommand = exports.serializeAws_queryDeleteScheduledActionCommand = exports.serializeAws_queryDeletePolicyCommand = exports.serializeAws_queryDeleteNotificationConfigurationCommand = exports.serializeAws_queryDeleteLifecycleHookCommand = exports.serializeAws_queryDeleteLaunchConfigurationCommand = exports.serializeAws_queryDeleteAutoScalingGroupCommand = exports.serializeAws_queryCreateOrUpdateTagsCommand = exports.serializeAws_queryCreateLaunchConfigurationCommand = exports.serializeAws_queryCreateAutoScalingGroupCommand = exports.serializeAws_queryCompleteLifecycleActionCommand = exports.serializeAws_queryCancelInstanceRefreshCommand = exports.serializeAws_queryBatchPutScheduledUpdateGroupActionCommand = exports.serializeAws_queryBatchDeleteScheduledActionCommand = exports.serializeAws_queryAttachLoadBalancerTargetGroupsCommand = exports.serializeAws_queryAttachLoadBalancersCommand = exports.serializeAws_queryAttachInstancesCommand = void 0;
4
- exports.deserializeAws_queryDetachInstancesCommand = exports.deserializeAws_queryDescribeWarmPoolCommand = exports.deserializeAws_queryDescribeTerminationPolicyTypesCommand = exports.deserializeAws_queryDescribeTagsCommand = exports.deserializeAws_queryDescribeScheduledActionsCommand = exports.deserializeAws_queryDescribeScalingProcessTypesCommand = exports.deserializeAws_queryDescribeScalingActivitiesCommand = exports.deserializeAws_queryDescribePoliciesCommand = exports.deserializeAws_queryDescribeNotificationConfigurationsCommand = exports.deserializeAws_queryDescribeMetricCollectionTypesCommand = exports.deserializeAws_queryDescribeLoadBalancerTargetGroupsCommand = exports.deserializeAws_queryDescribeLoadBalancersCommand = exports.deserializeAws_queryDescribeLifecycleHookTypesCommand = exports.deserializeAws_queryDescribeLifecycleHooksCommand = exports.deserializeAws_queryDescribeLaunchConfigurationsCommand = exports.deserializeAws_queryDescribeInstanceRefreshesCommand = exports.deserializeAws_queryDescribeAutoScalingNotificationTypesCommand = exports.deserializeAws_queryDescribeAutoScalingInstancesCommand = exports.deserializeAws_queryDescribeAutoScalingGroupsCommand = exports.deserializeAws_queryDescribeAdjustmentTypesCommand = exports.deserializeAws_queryDescribeAccountLimitsCommand = exports.deserializeAws_queryDeleteWarmPoolCommand = exports.deserializeAws_queryDeleteTagsCommand = exports.deserializeAws_queryDeleteScheduledActionCommand = exports.deserializeAws_queryDeletePolicyCommand = exports.deserializeAws_queryDeleteNotificationConfigurationCommand = exports.deserializeAws_queryDeleteLifecycleHookCommand = exports.deserializeAws_queryDeleteLaunchConfigurationCommand = exports.deserializeAws_queryDeleteAutoScalingGroupCommand = exports.deserializeAws_queryCreateOrUpdateTagsCommand = exports.deserializeAws_queryCreateLaunchConfigurationCommand = exports.deserializeAws_queryCreateAutoScalingGroupCommand = exports.deserializeAws_queryCompleteLifecycleActionCommand = exports.deserializeAws_queryCancelInstanceRefreshCommand = exports.deserializeAws_queryBatchPutScheduledUpdateGroupActionCommand = exports.deserializeAws_queryBatchDeleteScheduledActionCommand = exports.deserializeAws_queryAttachLoadBalancerTargetGroupsCommand = exports.deserializeAws_queryAttachLoadBalancersCommand = exports.deserializeAws_queryAttachInstancesCommand = exports.serializeAws_queryUpdateAutoScalingGroupCommand = exports.serializeAws_queryTerminateInstanceInAutoScalingGroupCommand = exports.serializeAws_querySuspendProcessesCommand = exports.serializeAws_queryStartInstanceRefreshCommand = exports.serializeAws_querySetInstanceProtectionCommand = exports.serializeAws_querySetInstanceHealthCommand = exports.serializeAws_querySetDesiredCapacityCommand = exports.serializeAws_queryResumeProcessesCommand = exports.serializeAws_queryRecordLifecycleActionHeartbeatCommand = exports.serializeAws_queryPutWarmPoolCommand = exports.serializeAws_queryPutScheduledUpdateGroupActionCommand = void 0;
5
- exports.deserializeAws_queryUpdateAutoScalingGroupCommand = exports.deserializeAws_queryTerminateInstanceInAutoScalingGroupCommand = exports.deserializeAws_querySuspendProcessesCommand = exports.deserializeAws_queryStartInstanceRefreshCommand = exports.deserializeAws_querySetInstanceProtectionCommand = exports.deserializeAws_querySetInstanceHealthCommand = exports.deserializeAws_querySetDesiredCapacityCommand = exports.deserializeAws_queryResumeProcessesCommand = exports.deserializeAws_queryRecordLifecycleActionHeartbeatCommand = exports.deserializeAws_queryPutWarmPoolCommand = exports.deserializeAws_queryPutScheduledUpdateGroupActionCommand = exports.deserializeAws_queryPutScalingPolicyCommand = exports.deserializeAws_queryPutNotificationConfigurationCommand = exports.deserializeAws_queryPutLifecycleHookCommand = exports.deserializeAws_queryGetPredictiveScalingForecastCommand = exports.deserializeAws_queryExitStandbyCommand = exports.deserializeAws_queryExecutePolicyCommand = exports.deserializeAws_queryEnterStandbyCommand = exports.deserializeAws_queryEnableMetricsCollectionCommand = exports.deserializeAws_queryDisableMetricsCollectionCommand = exports.deserializeAws_queryDetachLoadBalancerTargetGroupsCommand = exports.deserializeAws_queryDetachLoadBalancersCommand = void 0;
3
+ exports.serializeAws_queryGetPredictiveScalingForecastCommand = exports.serializeAws_queryExitStandbyCommand = exports.serializeAws_queryExecutePolicyCommand = exports.serializeAws_queryEnterStandbyCommand = exports.serializeAws_queryEnableMetricsCollectionCommand = exports.serializeAws_queryDisableMetricsCollectionCommand = exports.serializeAws_queryDetachTrafficSourcesCommand = exports.serializeAws_queryDetachLoadBalancerTargetGroupsCommand = exports.serializeAws_queryDetachLoadBalancersCommand = exports.serializeAws_queryDetachInstancesCommand = exports.serializeAws_queryDescribeWarmPoolCommand = exports.serializeAws_queryDescribeTrafficSourcesCommand = exports.serializeAws_queryDescribeTerminationPolicyTypesCommand = exports.serializeAws_queryDescribeTagsCommand = exports.serializeAws_queryDescribeScheduledActionsCommand = exports.serializeAws_queryDescribeScalingProcessTypesCommand = exports.serializeAws_queryDescribeScalingActivitiesCommand = exports.serializeAws_queryDescribePoliciesCommand = exports.serializeAws_queryDescribeNotificationConfigurationsCommand = exports.serializeAws_queryDescribeMetricCollectionTypesCommand = exports.serializeAws_queryDescribeLoadBalancerTargetGroupsCommand = exports.serializeAws_queryDescribeLoadBalancersCommand = exports.serializeAws_queryDescribeLifecycleHookTypesCommand = exports.serializeAws_queryDescribeLifecycleHooksCommand = exports.serializeAws_queryDescribeLaunchConfigurationsCommand = exports.serializeAws_queryDescribeInstanceRefreshesCommand = exports.serializeAws_queryDescribeAutoScalingNotificationTypesCommand = exports.serializeAws_queryDescribeAutoScalingInstancesCommand = exports.serializeAws_queryDescribeAutoScalingGroupsCommand = exports.serializeAws_queryDescribeAdjustmentTypesCommand = exports.serializeAws_queryDescribeAccountLimitsCommand = exports.serializeAws_queryDeleteWarmPoolCommand = exports.serializeAws_queryDeleteTagsCommand = exports.serializeAws_queryDeleteScheduledActionCommand = exports.serializeAws_queryDeletePolicyCommand = exports.serializeAws_queryDeleteNotificationConfigurationCommand = exports.serializeAws_queryDeleteLifecycleHookCommand = exports.serializeAws_queryDeleteLaunchConfigurationCommand = exports.serializeAws_queryDeleteAutoScalingGroupCommand = exports.serializeAws_queryCreateOrUpdateTagsCommand = exports.serializeAws_queryCreateLaunchConfigurationCommand = exports.serializeAws_queryCreateAutoScalingGroupCommand = exports.serializeAws_queryCompleteLifecycleActionCommand = exports.serializeAws_queryCancelInstanceRefreshCommand = exports.serializeAws_queryBatchPutScheduledUpdateGroupActionCommand = exports.serializeAws_queryBatchDeleteScheduledActionCommand = exports.serializeAws_queryAttachTrafficSourcesCommand = exports.serializeAws_queryAttachLoadBalancerTargetGroupsCommand = exports.serializeAws_queryAttachLoadBalancersCommand = exports.serializeAws_queryAttachInstancesCommand = void 0;
4
+ exports.deserializeAws_queryDescribeScheduledActionsCommand = exports.deserializeAws_queryDescribeScalingProcessTypesCommand = exports.deserializeAws_queryDescribeScalingActivitiesCommand = exports.deserializeAws_queryDescribePoliciesCommand = exports.deserializeAws_queryDescribeNotificationConfigurationsCommand = exports.deserializeAws_queryDescribeMetricCollectionTypesCommand = exports.deserializeAws_queryDescribeLoadBalancerTargetGroupsCommand = exports.deserializeAws_queryDescribeLoadBalancersCommand = exports.deserializeAws_queryDescribeLifecycleHookTypesCommand = exports.deserializeAws_queryDescribeLifecycleHooksCommand = exports.deserializeAws_queryDescribeLaunchConfigurationsCommand = exports.deserializeAws_queryDescribeInstanceRefreshesCommand = exports.deserializeAws_queryDescribeAutoScalingNotificationTypesCommand = exports.deserializeAws_queryDescribeAutoScalingInstancesCommand = exports.deserializeAws_queryDescribeAutoScalingGroupsCommand = exports.deserializeAws_queryDescribeAdjustmentTypesCommand = exports.deserializeAws_queryDescribeAccountLimitsCommand = exports.deserializeAws_queryDeleteWarmPoolCommand = exports.deserializeAws_queryDeleteTagsCommand = exports.deserializeAws_queryDeleteScheduledActionCommand = exports.deserializeAws_queryDeletePolicyCommand = exports.deserializeAws_queryDeleteNotificationConfigurationCommand = exports.deserializeAws_queryDeleteLifecycleHookCommand = exports.deserializeAws_queryDeleteLaunchConfigurationCommand = exports.deserializeAws_queryDeleteAutoScalingGroupCommand = exports.deserializeAws_queryCreateOrUpdateTagsCommand = exports.deserializeAws_queryCreateLaunchConfigurationCommand = exports.deserializeAws_queryCreateAutoScalingGroupCommand = exports.deserializeAws_queryCompleteLifecycleActionCommand = exports.deserializeAws_queryCancelInstanceRefreshCommand = exports.deserializeAws_queryBatchPutScheduledUpdateGroupActionCommand = exports.deserializeAws_queryBatchDeleteScheduledActionCommand = exports.deserializeAws_queryAttachTrafficSourcesCommand = exports.deserializeAws_queryAttachLoadBalancerTargetGroupsCommand = exports.deserializeAws_queryAttachLoadBalancersCommand = exports.deserializeAws_queryAttachInstancesCommand = exports.serializeAws_queryUpdateAutoScalingGroupCommand = exports.serializeAws_queryTerminateInstanceInAutoScalingGroupCommand = exports.serializeAws_querySuspendProcessesCommand = exports.serializeAws_queryStartInstanceRefreshCommand = exports.serializeAws_querySetInstanceProtectionCommand = exports.serializeAws_querySetInstanceHealthCommand = exports.serializeAws_querySetDesiredCapacityCommand = exports.serializeAws_queryResumeProcessesCommand = exports.serializeAws_queryRecordLifecycleActionHeartbeatCommand = exports.serializeAws_queryPutWarmPoolCommand = exports.serializeAws_queryPutScheduledUpdateGroupActionCommand = exports.serializeAws_queryPutScalingPolicyCommand = exports.serializeAws_queryPutNotificationConfigurationCommand = exports.serializeAws_queryPutLifecycleHookCommand = void 0;
5
+ exports.deserializeAws_queryUpdateAutoScalingGroupCommand = exports.deserializeAws_queryTerminateInstanceInAutoScalingGroupCommand = exports.deserializeAws_querySuspendProcessesCommand = exports.deserializeAws_queryStartInstanceRefreshCommand = exports.deserializeAws_querySetInstanceProtectionCommand = exports.deserializeAws_querySetInstanceHealthCommand = exports.deserializeAws_querySetDesiredCapacityCommand = exports.deserializeAws_queryResumeProcessesCommand = exports.deserializeAws_queryRecordLifecycleActionHeartbeatCommand = exports.deserializeAws_queryPutWarmPoolCommand = exports.deserializeAws_queryPutScheduledUpdateGroupActionCommand = exports.deserializeAws_queryPutScalingPolicyCommand = exports.deserializeAws_queryPutNotificationConfigurationCommand = exports.deserializeAws_queryPutLifecycleHookCommand = exports.deserializeAws_queryGetPredictiveScalingForecastCommand = exports.deserializeAws_queryExitStandbyCommand = exports.deserializeAws_queryExecutePolicyCommand = exports.deserializeAws_queryEnterStandbyCommand = exports.deserializeAws_queryEnableMetricsCollectionCommand = exports.deserializeAws_queryDisableMetricsCollectionCommand = exports.deserializeAws_queryDetachTrafficSourcesCommand = exports.deserializeAws_queryDetachLoadBalancerTargetGroupsCommand = exports.deserializeAws_queryDetachLoadBalancersCommand = exports.deserializeAws_queryDetachInstancesCommand = exports.deserializeAws_queryDescribeWarmPoolCommand = exports.deserializeAws_queryDescribeTrafficSourcesCommand = exports.deserializeAws_queryDescribeTerminationPolicyTypesCommand = exports.deserializeAws_queryDescribeTagsCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const fast_xml_parser_1 = require("fast-xml-parser");
@@ -47,6 +47,19 @@ const serializeAws_queryAttachLoadBalancerTargetGroupsCommand = async (input, co
47
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
48
  };
49
49
  exports.serializeAws_queryAttachLoadBalancerTargetGroupsCommand = serializeAws_queryAttachLoadBalancerTargetGroupsCommand;
50
+ const serializeAws_queryAttachTrafficSourcesCommand = async (input, context) => {
51
+ const headers = {
52
+ "content-type": "application/x-www-form-urlencoded",
53
+ };
54
+ let body;
55
+ body = buildFormUrlencodedString({
56
+ ...serializeAws_queryAttachTrafficSourcesType(input, context),
57
+ Action: "AttachTrafficSources",
58
+ Version: "2011-01-01",
59
+ });
60
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
61
+ };
62
+ exports.serializeAws_queryAttachTrafficSourcesCommand = serializeAws_queryAttachTrafficSourcesCommand;
50
63
  const serializeAws_queryBatchDeleteScheduledActionCommand = async (input, context) => {
51
64
  const headers = {
52
65
  "content-type": "application/x-www-form-urlencoded",
@@ -475,6 +488,19 @@ const serializeAws_queryDescribeTerminationPolicyTypesCommand = async (input, co
475
488
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
476
489
  };
477
490
  exports.serializeAws_queryDescribeTerminationPolicyTypesCommand = serializeAws_queryDescribeTerminationPolicyTypesCommand;
491
+ const serializeAws_queryDescribeTrafficSourcesCommand = async (input, context) => {
492
+ const headers = {
493
+ "content-type": "application/x-www-form-urlencoded",
494
+ };
495
+ let body;
496
+ body = buildFormUrlencodedString({
497
+ ...serializeAws_queryDescribeTrafficSourcesRequest(input, context),
498
+ Action: "DescribeTrafficSources",
499
+ Version: "2011-01-01",
500
+ });
501
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
502
+ };
503
+ exports.serializeAws_queryDescribeTrafficSourcesCommand = serializeAws_queryDescribeTrafficSourcesCommand;
478
504
  const serializeAws_queryDescribeWarmPoolCommand = async (input, context) => {
479
505
  const headers = {
480
506
  "content-type": "application/x-www-form-urlencoded",
@@ -527,6 +553,19 @@ const serializeAws_queryDetachLoadBalancerTargetGroupsCommand = async (input, co
527
553
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
554
  };
529
555
  exports.serializeAws_queryDetachLoadBalancerTargetGroupsCommand = serializeAws_queryDetachLoadBalancerTargetGroupsCommand;
556
+ const serializeAws_queryDetachTrafficSourcesCommand = async (input, context) => {
557
+ const headers = {
558
+ "content-type": "application/x-www-form-urlencoded",
559
+ };
560
+ let body;
561
+ body = buildFormUrlencodedString({
562
+ ...serializeAws_queryDetachTrafficSourcesType(input, context),
563
+ Action: "DetachTrafficSources",
564
+ Version: "2011-01-01",
565
+ });
566
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
567
+ };
568
+ exports.serializeAws_queryDetachTrafficSourcesCommand = serializeAws_queryDetachTrafficSourcesCommand;
530
569
  const serializeAws_queryDisableMetricsCollectionCommand = async (input, context) => {
531
570
  const headers = {
532
571
  "content-type": "application/x-www-form-urlencoded",
@@ -895,6 +934,43 @@ const deserializeAws_queryAttachLoadBalancerTargetGroupsCommandError = async (ou
895
934
  });
896
935
  }
897
936
  };
937
+ const deserializeAws_queryAttachTrafficSourcesCommand = async (output, context) => {
938
+ if (output.statusCode >= 300) {
939
+ return deserializeAws_queryAttachTrafficSourcesCommandError(output, context);
940
+ }
941
+ const data = await parseBody(output.body, context);
942
+ let contents = {};
943
+ contents = deserializeAws_queryAttachTrafficSourcesResultType(data.AttachTrafficSourcesResult, context);
944
+ const response = {
945
+ $metadata: deserializeMetadata(output),
946
+ ...contents,
947
+ };
948
+ return Promise.resolve(response);
949
+ };
950
+ exports.deserializeAws_queryAttachTrafficSourcesCommand = deserializeAws_queryAttachTrafficSourcesCommand;
951
+ const deserializeAws_queryAttachTrafficSourcesCommandError = async (output, context) => {
952
+ const parsedOutput = {
953
+ ...output,
954
+ body: await parseErrorBody(output.body, context),
955
+ };
956
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
957
+ switch (errorCode) {
958
+ case "ResourceContention":
959
+ case "com.amazonaws.autoscaling#ResourceContentionFault":
960
+ throw await deserializeAws_queryResourceContentionFaultResponse(parsedOutput, context);
961
+ case "ServiceLinkedRoleFailure":
962
+ case "com.amazonaws.autoscaling#ServiceLinkedRoleFailure":
963
+ throw await deserializeAws_queryServiceLinkedRoleFailureResponse(parsedOutput, context);
964
+ default:
965
+ const parsedBody = parsedOutput.body;
966
+ (0, smithy_client_1.throwDefaultError)({
967
+ output,
968
+ parsedBody: parsedBody.Error,
969
+ exceptionCtor: AutoScalingServiceException_1.AutoScalingServiceException,
970
+ errorCode,
971
+ });
972
+ }
973
+ };
898
974
  const deserializeAws_queryBatchDeleteScheduledActionCommand = async (output, context) => {
899
975
  if (output.statusCode >= 300) {
900
976
  return deserializeAws_queryBatchDeleteScheduledActionCommandError(output, context);
@@ -2120,6 +2196,43 @@ const deserializeAws_queryDescribeTerminationPolicyTypesCommandError = async (ou
2120
2196
  });
2121
2197
  }
2122
2198
  };
2199
+ const deserializeAws_queryDescribeTrafficSourcesCommand = async (output, context) => {
2200
+ if (output.statusCode >= 300) {
2201
+ return deserializeAws_queryDescribeTrafficSourcesCommandError(output, context);
2202
+ }
2203
+ const data = await parseBody(output.body, context);
2204
+ let contents = {};
2205
+ contents = deserializeAws_queryDescribeTrafficSourcesResponse(data.DescribeTrafficSourcesResult, context);
2206
+ const response = {
2207
+ $metadata: deserializeMetadata(output),
2208
+ ...contents,
2209
+ };
2210
+ return Promise.resolve(response);
2211
+ };
2212
+ exports.deserializeAws_queryDescribeTrafficSourcesCommand = deserializeAws_queryDescribeTrafficSourcesCommand;
2213
+ const deserializeAws_queryDescribeTrafficSourcesCommandError = async (output, context) => {
2214
+ const parsedOutput = {
2215
+ ...output,
2216
+ body: await parseErrorBody(output.body, context),
2217
+ };
2218
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2219
+ switch (errorCode) {
2220
+ case "InvalidNextToken":
2221
+ case "com.amazonaws.autoscaling#InvalidNextToken":
2222
+ throw await deserializeAws_queryInvalidNextTokenResponse(parsedOutput, context);
2223
+ case "ResourceContention":
2224
+ case "com.amazonaws.autoscaling#ResourceContentionFault":
2225
+ throw await deserializeAws_queryResourceContentionFaultResponse(parsedOutput, context);
2226
+ default:
2227
+ const parsedBody = parsedOutput.body;
2228
+ (0, smithy_client_1.throwDefaultError)({
2229
+ output,
2230
+ parsedBody: parsedBody.Error,
2231
+ exceptionCtor: AutoScalingServiceException_1.AutoScalingServiceException,
2232
+ errorCode,
2233
+ });
2234
+ }
2235
+ };
2123
2236
  const deserializeAws_queryDescribeWarmPoolCommand = async (output, context) => {
2124
2237
  if (output.statusCode >= 300) {
2125
2238
  return deserializeAws_queryDescribeWarmPoolCommandError(output, context);
@@ -2262,6 +2375,40 @@ const deserializeAws_queryDetachLoadBalancerTargetGroupsCommandError = async (ou
2262
2375
  });
2263
2376
  }
2264
2377
  };
2378
+ const deserializeAws_queryDetachTrafficSourcesCommand = async (output, context) => {
2379
+ if (output.statusCode >= 300) {
2380
+ return deserializeAws_queryDetachTrafficSourcesCommandError(output, context);
2381
+ }
2382
+ const data = await parseBody(output.body, context);
2383
+ let contents = {};
2384
+ contents = deserializeAws_queryDetachTrafficSourcesResultType(data.DetachTrafficSourcesResult, context);
2385
+ const response = {
2386
+ $metadata: deserializeMetadata(output),
2387
+ ...contents,
2388
+ };
2389
+ return Promise.resolve(response);
2390
+ };
2391
+ exports.deserializeAws_queryDetachTrafficSourcesCommand = deserializeAws_queryDetachTrafficSourcesCommand;
2392
+ const deserializeAws_queryDetachTrafficSourcesCommandError = async (output, context) => {
2393
+ const parsedOutput = {
2394
+ ...output,
2395
+ body: await parseErrorBody(output.body, context),
2396
+ };
2397
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2398
+ switch (errorCode) {
2399
+ case "ResourceContention":
2400
+ case "com.amazonaws.autoscaling#ResourceContentionFault":
2401
+ throw await deserializeAws_queryResourceContentionFaultResponse(parsedOutput, context);
2402
+ default:
2403
+ const parsedBody = parsedOutput.body;
2404
+ (0, smithy_client_1.throwDefaultError)({
2405
+ output,
2406
+ parsedBody: parsedBody.Error,
2407
+ exceptionCtor: AutoScalingServiceException_1.AutoScalingServiceException,
2408
+ errorCode,
2409
+ });
2410
+ }
2411
+ };
2265
2412
  const deserializeAws_queryDisableMetricsCollectionCommand = async (output, context) => {
2266
2413
  if (output.statusCode >= 300) {
2267
2414
  return deserializeAws_queryDisableMetricsCollectionCommandError(output, context);
@@ -3178,6 +3325,23 @@ const serializeAws_queryAttachLoadBalancerTargetGroupsType = (input, context) =>
3178
3325
  }
3179
3326
  return entries;
3180
3327
  };
3328
+ const serializeAws_queryAttachTrafficSourcesType = (input, context) => {
3329
+ const entries = {};
3330
+ if (input.AutoScalingGroupName != null) {
3331
+ entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
3332
+ }
3333
+ if (input.TrafficSources != null) {
3334
+ const memberEntries = serializeAws_queryTrafficSources(input.TrafficSources, context);
3335
+ if (input.TrafficSources?.length === 0) {
3336
+ entries.TrafficSources = [];
3337
+ }
3338
+ Object.entries(memberEntries).forEach(([key, value]) => {
3339
+ const loc = `TrafficSources.${key}`;
3340
+ entries[loc] = value;
3341
+ });
3342
+ }
3343
+ return entries;
3344
+ };
3181
3345
  const serializeAws_queryAutoScalingGroupNames = (input, context) => {
3182
3346
  const entries = {};
3183
3347
  let counter = 1;
@@ -3515,6 +3679,16 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
3515
3679
  if (input.DefaultInstanceWarmup != null) {
3516
3680
  entries["DefaultInstanceWarmup"] = input.DefaultInstanceWarmup;
3517
3681
  }
3682
+ if (input.TrafficSources != null) {
3683
+ const memberEntries = serializeAws_queryTrafficSources(input.TrafficSources, context);
3684
+ if (input.TrafficSources?.length === 0) {
3685
+ entries.TrafficSources = [];
3686
+ }
3687
+ Object.entries(memberEntries).forEach(([key, value]) => {
3688
+ const loc = `TrafficSources.${key}`;
3689
+ entries[loc] = value;
3690
+ });
3691
+ }
3518
3692
  return entries;
3519
3693
  };
3520
3694
  const serializeAws_queryCreateLaunchConfigurationType = (input, context) => {
@@ -3645,6 +3819,16 @@ const serializeAws_queryCustomizedMetricSpecification = (input, context) => {
3645
3819
  if (input.Unit != null) {
3646
3820
  entries["Unit"] = input.Unit;
3647
3821
  }
3822
+ if (input.Metrics != null) {
3823
+ const memberEntries = serializeAws_queryTargetTrackingMetricDataQueries(input.Metrics, context);
3824
+ if (input.Metrics?.length === 0) {
3825
+ entries.Metrics = [];
3826
+ }
3827
+ Object.entries(memberEntries).forEach(([key, value]) => {
3828
+ const loc = `Metrics.${key}`;
3829
+ entries[loc] = value;
3830
+ });
3831
+ }
3648
3832
  return entries;
3649
3833
  };
3650
3834
  const serializeAws_queryDeleteAutoScalingGroupType = (input, context) => {
@@ -3935,6 +4119,22 @@ const serializeAws_queryDescribeTagsType = (input, context) => {
3935
4119
  }
3936
4120
  return entries;
3937
4121
  };
4122
+ const serializeAws_queryDescribeTrafficSourcesRequest = (input, context) => {
4123
+ const entries = {};
4124
+ if (input.AutoScalingGroupName != null) {
4125
+ entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4126
+ }
4127
+ if (input.TrafficSourceType != null) {
4128
+ entries["TrafficSourceType"] = input.TrafficSourceType;
4129
+ }
4130
+ if (input.NextToken != null) {
4131
+ entries["NextToken"] = input.NextToken;
4132
+ }
4133
+ if (input.MaxRecords != null) {
4134
+ entries["MaxRecords"] = input.MaxRecords;
4135
+ }
4136
+ return entries;
4137
+ };
3938
4138
  const serializeAws_queryDescribeWarmPoolType = (input, context) => {
3939
4139
  const entries = {};
3940
4140
  if (input.AutoScalingGroupName != null) {
@@ -4020,6 +4220,23 @@ const serializeAws_queryDetachLoadBalancerTargetGroupsType = (input, context) =>
4020
4220
  }
4021
4221
  return entries;
4022
4222
  };
4223
+ const serializeAws_queryDetachTrafficSourcesType = (input, context) => {
4224
+ const entries = {};
4225
+ if (input.AutoScalingGroupName != null) {
4226
+ entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4227
+ }
4228
+ if (input.TrafficSources != null) {
4229
+ const memberEntries = serializeAws_queryTrafficSources(input.TrafficSources, context);
4230
+ if (input.TrafficSources?.length === 0) {
4231
+ entries.TrafficSources = [];
4232
+ }
4233
+ Object.entries(memberEntries).forEach(([key, value]) => {
4234
+ const loc = `TrafficSources.${key}`;
4235
+ entries[loc] = value;
4236
+ });
4237
+ }
4238
+ return entries;
4239
+ };
4023
4240
  const serializeAws_queryDisableMetricsCollectionQuery = (input, context) => {
4024
4241
  const entries = {};
4025
4242
  if (input.AutoScalingGroupName != null) {
@@ -5474,6 +5691,61 @@ const serializeAws_queryTargetTrackingConfiguration = (input, context) => {
5474
5691
  }
5475
5692
  return entries;
5476
5693
  };
5694
+ const serializeAws_queryTargetTrackingMetricDataQueries = (input, context) => {
5695
+ const entries = {};
5696
+ let counter = 1;
5697
+ for (const entry of input) {
5698
+ if (entry === null) {
5699
+ continue;
5700
+ }
5701
+ const memberEntries = serializeAws_queryTargetTrackingMetricDataQuery(entry, context);
5702
+ Object.entries(memberEntries).forEach(([key, value]) => {
5703
+ entries[`member.${counter}.${key}`] = value;
5704
+ });
5705
+ counter++;
5706
+ }
5707
+ return entries;
5708
+ };
5709
+ const serializeAws_queryTargetTrackingMetricDataQuery = (input, context) => {
5710
+ const entries = {};
5711
+ if (input.Id != null) {
5712
+ entries["Id"] = input.Id;
5713
+ }
5714
+ if (input.Expression != null) {
5715
+ entries["Expression"] = input.Expression;
5716
+ }
5717
+ if (input.MetricStat != null) {
5718
+ const memberEntries = serializeAws_queryTargetTrackingMetricStat(input.MetricStat, context);
5719
+ Object.entries(memberEntries).forEach(([key, value]) => {
5720
+ const loc = `MetricStat.${key}`;
5721
+ entries[loc] = value;
5722
+ });
5723
+ }
5724
+ if (input.Label != null) {
5725
+ entries["Label"] = input.Label;
5726
+ }
5727
+ if (input.ReturnData != null) {
5728
+ entries["ReturnData"] = input.ReturnData;
5729
+ }
5730
+ return entries;
5731
+ };
5732
+ const serializeAws_queryTargetTrackingMetricStat = (input, context) => {
5733
+ const entries = {};
5734
+ if (input.Metric != null) {
5735
+ const memberEntries = serializeAws_queryMetric(input.Metric, context);
5736
+ Object.entries(memberEntries).forEach(([key, value]) => {
5737
+ const loc = `Metric.${key}`;
5738
+ entries[loc] = value;
5739
+ });
5740
+ }
5741
+ if (input.Stat != null) {
5742
+ entries["Stat"] = input.Stat;
5743
+ }
5744
+ if (input.Unit != null) {
5745
+ entries["Unit"] = input.Unit;
5746
+ }
5747
+ return entries;
5748
+ };
5477
5749
  const serializeAws_queryTerminateInstanceInAutoScalingGroupType = (input, context) => {
5478
5750
  const entries = {};
5479
5751
  if (input.InstanceId != null) {
@@ -5506,6 +5778,28 @@ const serializeAws_queryTotalLocalStorageGBRequest = (input, context) => {
5506
5778
  }
5507
5779
  return entries;
5508
5780
  };
5781
+ const serializeAws_queryTrafficSourceIdentifier = (input, context) => {
5782
+ const entries = {};
5783
+ if (input.Identifier != null) {
5784
+ entries["Identifier"] = input.Identifier;
5785
+ }
5786
+ return entries;
5787
+ };
5788
+ const serializeAws_queryTrafficSources = (input, context) => {
5789
+ const entries = {};
5790
+ let counter = 1;
5791
+ for (const entry of input) {
5792
+ if (entry === null) {
5793
+ continue;
5794
+ }
5795
+ const memberEntries = serializeAws_queryTrafficSourceIdentifier(entry, context);
5796
+ Object.entries(memberEntries).forEach(([key, value]) => {
5797
+ entries[`member.${counter}.${key}`] = value;
5798
+ });
5799
+ counter++;
5800
+ }
5801
+ return entries;
5802
+ };
5509
5803
  const serializeAws_queryUpdateAutoScalingGroupType = (input, context) => {
5510
5804
  const entries = {};
5511
5805
  if (input.AutoScalingGroupName != null) {
@@ -5818,6 +6112,10 @@ const deserializeAws_queryAttachLoadBalancerTargetGroupsResultType = (output, co
5818
6112
  const contents = {};
5819
6113
  return contents;
5820
6114
  };
6115
+ const deserializeAws_queryAttachTrafficSourcesResultType = (output, context) => {
6116
+ const contents = {};
6117
+ return contents;
6118
+ };
5821
6119
  const deserializeAws_queryAutoScalingGroup = (output, context) => {
5822
6120
  const contents = {
5823
6121
  AutoScalingGroupName: undefined,
@@ -5853,6 +6151,7 @@ const deserializeAws_queryAutoScalingGroup = (output, context) => {
5853
6151
  Context: undefined,
5854
6152
  DesiredCapacityType: undefined,
5855
6153
  DefaultInstanceWarmup: undefined,
6154
+ TrafficSources: undefined,
5856
6155
  };
5857
6156
  if (output["AutoScalingGroupName"] !== undefined) {
5858
6157
  contents.AutoScalingGroupName = (0, smithy_client_1.expectString)(output["AutoScalingGroupName"]);
@@ -5977,6 +6276,12 @@ const deserializeAws_queryAutoScalingGroup = (output, context) => {
5977
6276
  if (output["DefaultInstanceWarmup"] !== undefined) {
5978
6277
  contents.DefaultInstanceWarmup = (0, smithy_client_1.strictParseInt32)(output["DefaultInstanceWarmup"]);
5979
6278
  }
6279
+ if (output.TrafficSources === "") {
6280
+ contents.TrafficSources = [];
6281
+ }
6282
+ else if (output["TrafficSources"] !== undefined && output["TrafficSources"]["member"] !== undefined) {
6283
+ contents.TrafficSources = deserializeAws_queryTrafficSources((0, smithy_client_1.getArrayIfSingleItem)(output["TrafficSources"]["member"]), context);
6284
+ }
5980
6285
  return contents;
5981
6286
  };
5982
6287
  const deserializeAws_queryAutoScalingGroups = (output, context) => {
@@ -6211,6 +6516,7 @@ const deserializeAws_queryCustomizedMetricSpecification = (output, context) => {
6211
6516
  Dimensions: undefined,
6212
6517
  Statistic: undefined,
6213
6518
  Unit: undefined,
6519
+ Metrics: undefined,
6214
6520
  };
6215
6521
  if (output["MetricName"] !== undefined) {
6216
6522
  contents.MetricName = (0, smithy_client_1.expectString)(output["MetricName"]);
@@ -6230,6 +6536,12 @@ const deserializeAws_queryCustomizedMetricSpecification = (output, context) => {
6230
6536
  if (output["Unit"] !== undefined) {
6231
6537
  contents.Unit = (0, smithy_client_1.expectString)(output["Unit"]);
6232
6538
  }
6539
+ if (output.Metrics === "") {
6540
+ contents.Metrics = [];
6541
+ }
6542
+ else if (output["Metrics"] !== undefined && output["Metrics"]["member"] !== undefined) {
6543
+ contents.Metrics = deserializeAws_queryTargetTrackingMetricDataQueries((0, smithy_client_1.getArrayIfSingleItem)(output["Metrics"]["member"]), context);
6544
+ }
6233
6545
  return contents;
6234
6546
  };
6235
6547
  const deserializeAws_queryDeleteLifecycleHookAnswer = (output, context) => {
@@ -6408,6 +6720,22 @@ const deserializeAws_queryDescribeTerminationPolicyTypesAnswer = (output, contex
6408
6720
  }
6409
6721
  return contents;
6410
6722
  };
6723
+ const deserializeAws_queryDescribeTrafficSourcesResponse = (output, context) => {
6724
+ const contents = {
6725
+ TrafficSources: undefined,
6726
+ NextToken: undefined,
6727
+ };
6728
+ if (output.TrafficSources === "") {
6729
+ contents.TrafficSources = [];
6730
+ }
6731
+ else if (output["TrafficSources"] !== undefined && output["TrafficSources"]["member"] !== undefined) {
6732
+ contents.TrafficSources = deserializeAws_queryTrafficSourceStates((0, smithy_client_1.getArrayIfSingleItem)(output["TrafficSources"]["member"]), context);
6733
+ }
6734
+ if (output["NextToken"] !== undefined) {
6735
+ contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
6736
+ }
6737
+ return contents;
6738
+ };
6411
6739
  const deserializeAws_queryDescribeWarmPoolAnswer = (output, context) => {
6412
6740
  const contents = {
6413
6741
  WarmPoolConfiguration: undefined,
@@ -6461,6 +6789,10 @@ const deserializeAws_queryDetachLoadBalancerTargetGroupsResultType = (output, co
6461
6789
  const contents = {};
6462
6790
  return contents;
6463
6791
  };
6792
+ const deserializeAws_queryDetachTrafficSourcesResultType = (output, context) => {
6793
+ const contents = {};
6794
+ return contents;
6795
+ };
6464
6796
  const deserializeAws_queryEbs = (output, context) => {
6465
6797
  const contents = {
6466
6798
  SnapshotId: undefined,
@@ -8074,6 +8406,55 @@ const deserializeAws_queryTargetTrackingConfiguration = (output, context) => {
8074
8406
  }
8075
8407
  return contents;
8076
8408
  };
8409
+ const deserializeAws_queryTargetTrackingMetricDataQueries = (output, context) => {
8410
+ return (output || [])
8411
+ .filter((e) => e != null)
8412
+ .map((entry) => {
8413
+ return deserializeAws_queryTargetTrackingMetricDataQuery(entry, context);
8414
+ });
8415
+ };
8416
+ const deserializeAws_queryTargetTrackingMetricDataQuery = (output, context) => {
8417
+ const contents = {
8418
+ Id: undefined,
8419
+ Expression: undefined,
8420
+ MetricStat: undefined,
8421
+ Label: undefined,
8422
+ ReturnData: undefined,
8423
+ };
8424
+ if (output["Id"] !== undefined) {
8425
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
8426
+ }
8427
+ if (output["Expression"] !== undefined) {
8428
+ contents.Expression = (0, smithy_client_1.expectString)(output["Expression"]);
8429
+ }
8430
+ if (output["MetricStat"] !== undefined) {
8431
+ contents.MetricStat = deserializeAws_queryTargetTrackingMetricStat(output["MetricStat"], context);
8432
+ }
8433
+ if (output["Label"] !== undefined) {
8434
+ contents.Label = (0, smithy_client_1.expectString)(output["Label"]);
8435
+ }
8436
+ if (output["ReturnData"] !== undefined) {
8437
+ contents.ReturnData = (0, smithy_client_1.parseBoolean)(output["ReturnData"]);
8438
+ }
8439
+ return contents;
8440
+ };
8441
+ const deserializeAws_queryTargetTrackingMetricStat = (output, context) => {
8442
+ const contents = {
8443
+ Metric: undefined,
8444
+ Stat: undefined,
8445
+ Unit: undefined,
8446
+ };
8447
+ if (output["Metric"] !== undefined) {
8448
+ contents.Metric = deserializeAws_queryMetric(output["Metric"], context);
8449
+ }
8450
+ if (output["Stat"] !== undefined) {
8451
+ contents.Stat = (0, smithy_client_1.expectString)(output["Stat"]);
8452
+ }
8453
+ if (output["Unit"] !== undefined) {
8454
+ contents.Unit = (0, smithy_client_1.expectString)(output["Unit"]);
8455
+ }
8456
+ return contents;
8457
+ };
8077
8458
  const deserializeAws_queryTerminationPolicies = (output, context) => {
8078
8459
  return (output || [])
8079
8460
  .filter((e) => e != null)
@@ -8094,6 +8475,42 @@ const deserializeAws_queryTotalLocalStorageGBRequest = (output, context) => {
8094
8475
  }
8095
8476
  return contents;
8096
8477
  };
8478
+ const deserializeAws_queryTrafficSourceIdentifier = (output, context) => {
8479
+ const contents = {
8480
+ Identifier: undefined,
8481
+ };
8482
+ if (output["Identifier"] !== undefined) {
8483
+ contents.Identifier = (0, smithy_client_1.expectString)(output["Identifier"]);
8484
+ }
8485
+ return contents;
8486
+ };
8487
+ const deserializeAws_queryTrafficSources = (output, context) => {
8488
+ return (output || [])
8489
+ .filter((e) => e != null)
8490
+ .map((entry) => {
8491
+ return deserializeAws_queryTrafficSourceIdentifier(entry, context);
8492
+ });
8493
+ };
8494
+ const deserializeAws_queryTrafficSourceState = (output, context) => {
8495
+ const contents = {
8496
+ TrafficSource: undefined,
8497
+ State: undefined,
8498
+ };
8499
+ if (output["TrafficSource"] !== undefined) {
8500
+ contents.TrafficSource = (0, smithy_client_1.expectString)(output["TrafficSource"]);
8501
+ }
8502
+ if (output["State"] !== undefined) {
8503
+ contents.State = (0, smithy_client_1.expectString)(output["State"]);
8504
+ }
8505
+ return contents;
8506
+ };
8507
+ const deserializeAws_queryTrafficSourceStates = (output, context) => {
8508
+ return (output || [])
8509
+ .filter((e) => e != null)
8510
+ .map((entry) => {
8511
+ return deserializeAws_queryTrafficSourceState(entry, context);
8512
+ });
8513
+ };
8097
8514
  const deserializeAws_queryVCpuCountRequest = (output, context) => {
8098
8515
  const contents = {
8099
8516
  Min: undefined,