# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::CloudWatch # @api private module ClientApi include Seahorse::Model ActionPrefix = Shapes::StringShape.new(name: 'ActionPrefix') ActionsEnabled = Shapes::BooleanShape.new(name: 'ActionsEnabled') AlarmArn = Shapes::StringShape.new(name: 'AlarmArn') AlarmDescription = Shapes::StringShape.new(name: 'AlarmDescription') AlarmHistoryItem = Shapes::StructureShape.new(name: 'AlarmHistoryItem') AlarmHistoryItems = Shapes::ListShape.new(name: 'AlarmHistoryItems') AlarmName = Shapes::StringShape.new(name: 'AlarmName') AlarmNamePrefix = Shapes::StringShape.new(name: 'AlarmNamePrefix') AlarmNames = Shapes::ListShape.new(name: 'AlarmNames') AwsQueryErrorMessage = Shapes::StringShape.new(name: 'AwsQueryErrorMessage') ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator') Datapoint = Shapes::StructureShape.new(name: 'Datapoint') DatapointValue = Shapes::FloatShape.new(name: 'DatapointValue') DatapointValueMap = Shapes::MapShape.new(name: 'DatapointValueMap') Datapoints = Shapes::ListShape.new(name: 'Datapoints') DeleteAlarmsInput = Shapes::StructureShape.new(name: 'DeleteAlarmsInput') DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput') DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput') DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput') DescribeAlarmsForMetricOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricOutput') DescribeAlarmsInput = Shapes::StructureShape.new(name: 'DescribeAlarmsInput') DescribeAlarmsOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsOutput') Dimension = Shapes::StructureShape.new(name: 'Dimension') DimensionFilter = Shapes::StructureShape.new(name: 'DimensionFilter') DimensionFilters = Shapes::ListShape.new(name: 'DimensionFilters') DimensionName = Shapes::StringShape.new(name: 'DimensionName') DimensionValue = Shapes::StringShape.new(name: 'DimensionValue') Dimensions = Shapes::ListShape.new(name: 'Dimensions') DisableAlarmActionsInput = Shapes::StructureShape.new(name: 'DisableAlarmActionsInput') EnableAlarmActionsInput = Shapes::StructureShape.new(name: 'EnableAlarmActionsInput') ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage') EvaluateLowSampleCountPercentile = Shapes::StringShape.new(name: 'EvaluateLowSampleCountPercentile') EvaluationPeriods = Shapes::IntegerShape.new(name: 'EvaluationPeriods') ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic') ExtendedStatistics = Shapes::ListShape.new(name: 'ExtendedStatistics') FaultDescription = Shapes::StringShape.new(name: 'FaultDescription') GetMetricStatisticsInput = Shapes::StructureShape.new(name: 'GetMetricStatisticsInput') GetMetricStatisticsOutput = Shapes::StructureShape.new(name: 'GetMetricStatisticsOutput') HistoryData = Shapes::StringShape.new(name: 'HistoryData') HistoryItemType = Shapes::StringShape.new(name: 'HistoryItemType') HistorySummary = Shapes::StringShape.new(name: 'HistorySummary') InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault') InvalidFormatFault = Shapes::StructureShape.new(name: 'InvalidFormatFault') InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken') InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException') InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException') LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault') ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput') ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput') MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords') Metric = Shapes::StructureShape.new(name: 'Metric') MetricAlarm = Shapes::StructureShape.new(name: 'MetricAlarm') MetricAlarms = Shapes::ListShape.new(name: 'MetricAlarms') MetricData = Shapes::ListShape.new(name: 'MetricData') MetricDatum = Shapes::StructureShape.new(name: 'MetricDatum') MetricLabel = Shapes::StringShape.new(name: 'MetricLabel') MetricName = Shapes::StringShape.new(name: 'MetricName') Metrics = Shapes::ListShape.new(name: 'Metrics') MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException') Namespace = Shapes::StringShape.new(name: 'Namespace') NextToken = Shapes::StringShape.new(name: 'NextToken') Period = Shapes::IntegerShape.new(name: 'Period') PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput') PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput') ResourceList = Shapes::ListShape.new(name: 'ResourceList') ResourceName = Shapes::StringShape.new(name: 'ResourceName') ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound') SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput') StandardUnit = Shapes::StringShape.new(name: 'StandardUnit') StateReason = Shapes::StringShape.new(name: 'StateReason') StateReasonData = Shapes::StringShape.new(name: 'StateReasonData') StateValue = Shapes::StringShape.new(name: 'StateValue') Statistic = Shapes::StringShape.new(name: 'Statistic') StatisticSet = Shapes::StructureShape.new(name: 'StatisticSet') Statistics = Shapes::ListShape.new(name: 'Statistics') Threshold = Shapes::FloatShape.new(name: 'Threshold') Timestamp = Shapes::TimestampShape.new(name: 'Timestamp') TreatMissingData = Shapes::StringShape.new(name: 'TreatMissingData') AlarmHistoryItem.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName")) AlarmHistoryItem.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp")) AlarmHistoryItem.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType")) AlarmHistoryItem.add_member(:history_summary, Shapes::ShapeRef.new(shape: HistorySummary, location_name: "HistorySummary")) AlarmHistoryItem.add_member(:history_data, Shapes::ShapeRef.new(shape: HistoryData, location_name: "HistoryData")) AlarmHistoryItem.struct_class = Types::AlarmHistoryItem AlarmHistoryItems.member = Shapes::ShapeRef.new(shape: AlarmHistoryItem) AlarmNames.member = Shapes::ShapeRef.new(shape: AlarmName) Datapoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp")) Datapoint.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "SampleCount")) Datapoint.add_member(:average, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Average")) Datapoint.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Sum")) Datapoint.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Minimum")) Datapoint.add_member(:maximum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Maximum")) Datapoint.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit")) Datapoint.add_member(:extended_statistics, Shapes::ShapeRef.new(shape: DatapointValueMap, location_name: "ExtendedStatistics")) Datapoint.struct_class = Types::Datapoint DatapointValueMap.key = Shapes::ShapeRef.new(shape: ExtendedStatistic) DatapointValueMap.value = Shapes::ShapeRef.new(shape: DatapointValue) Datapoints.member = Shapes::ShapeRef.new(shape: Datapoint) DeleteAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames")) DeleteAlarmsInput.struct_class = Types::DeleteAlarmsInput DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName")) DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType")) DescribeAlarmHistoryInput.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartDate")) DescribeAlarmHistoryInput.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndDate")) DescribeAlarmHistoryInput.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords")) DescribeAlarmHistoryInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) DescribeAlarmHistoryInput.struct_class = Types::DescribeAlarmHistoryInput DescribeAlarmHistoryOutput.add_member(:alarm_history_items, Shapes::ShapeRef.new(shape: AlarmHistoryItems, location_name: "AlarmHistoryItems")) DescribeAlarmHistoryOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) DescribeAlarmHistoryOutput.struct_class = Types::DescribeAlarmHistoryOutput DescribeAlarmsForMetricInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName")) DescribeAlarmsForMetricInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace")) DescribeAlarmsForMetricInput.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic")) DescribeAlarmsForMetricInput.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic")) DescribeAlarmsForMetricInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions")) DescribeAlarmsForMetricInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period")) DescribeAlarmsForMetricInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit")) DescribeAlarmsForMetricInput.struct_class = Types::DescribeAlarmsForMetricInput DescribeAlarmsForMetricOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms")) DescribeAlarmsForMetricOutput.struct_class = Types::DescribeAlarmsForMetricOutput DescribeAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, location_name: "AlarmNames")) DescribeAlarmsInput.add_member(:alarm_name_prefix, Shapes::ShapeRef.new(shape: AlarmNamePrefix, location_name: "AlarmNamePrefix")) DescribeAlarmsInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue")) DescribeAlarmsInput.add_member(:action_prefix, Shapes::ShapeRef.new(shape: ActionPrefix, location_name: "ActionPrefix")) DescribeAlarmsInput.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords")) DescribeAlarmsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) DescribeAlarmsInput.struct_class = Types::DescribeAlarmsInput DescribeAlarmsOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms")) DescribeAlarmsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) DescribeAlarmsOutput.struct_class = Types::DescribeAlarmsOutput Dimension.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name")) Dimension.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, required: true, location_name: "Value")) Dimension.struct_class = Types::Dimension DimensionFilter.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name")) DimensionFilter.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, location_name: "Value")) DimensionFilter.struct_class = Types::DimensionFilter DimensionFilters.member = Shapes::ShapeRef.new(shape: DimensionFilter) Dimensions.member = Shapes::ShapeRef.new(shape: Dimension) DisableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames")) DisableAlarmActionsInput.struct_class = Types::DisableAlarmActionsInput EnableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames")) EnableAlarmActionsInput.struct_class = Types::EnableAlarmActionsInput ExtendedStatistics.member = Shapes::ShapeRef.new(shape: ExtendedStatistic) GetMetricStatisticsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace")) GetMetricStatisticsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName")) GetMetricStatisticsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions")) GetMetricStatisticsInput.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime")) GetMetricStatisticsInput.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime")) GetMetricStatisticsInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period")) GetMetricStatisticsInput.add_member(:statistics, Shapes::ShapeRef.new(shape: Statistics, location_name: "Statistics")) GetMetricStatisticsInput.add_member(:extended_statistics, Shapes::ShapeRef.new(shape: ExtendedStatistics, location_name: "ExtendedStatistics")) GetMetricStatisticsInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit")) GetMetricStatisticsInput.struct_class = Types::GetMetricStatisticsInput GetMetricStatisticsOutput.add_member(:label, Shapes::ShapeRef.new(shape: MetricLabel, location_name: "Label")) GetMetricStatisticsOutput.add_member(:datapoints, Shapes::ShapeRef.new(shape: Datapoints, location_name: "Datapoints")) GetMetricStatisticsOutput.struct_class = Types::GetMetricStatisticsOutput ListMetricsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace")) ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName")) ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions")) ListMetricsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListMetricsInput.struct_class = Types::ListMetricsInput ListMetricsOutput.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics")) ListMetricsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListMetricsOutput.struct_class = Types::ListMetricsOutput Metric.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace")) Metric.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName")) Metric.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions")) Metric.struct_class = Types::Metric MetricAlarm.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName")) MetricAlarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "AlarmArn")) MetricAlarm.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription")) MetricAlarm.add_member(:alarm_configuration_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "AlarmConfigurationUpdatedTimestamp")) MetricAlarm.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled")) MetricAlarm.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions")) MetricAlarm.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions")) MetricAlarm.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions")) MetricAlarm.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue")) MetricAlarm.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason")) MetricAlarm.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData")) MetricAlarm.add_member(:state_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateUpdatedTimestamp")) MetricAlarm.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName")) MetricAlarm.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace")) MetricAlarm.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic")) MetricAlarm.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic")) MetricAlarm.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions")) MetricAlarm.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period")) MetricAlarm.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit")) MetricAlarm.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, location_name: "EvaluationPeriods")) MetricAlarm.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, location_name: "Threshold")) MetricAlarm.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, location_name: "ComparisonOperator")) MetricAlarm.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData")) MetricAlarm.add_member(:evaluate_low_sample_count_percentile, Shapes::ShapeRef.new(shape: EvaluateLowSampleCountPercentile, location_name: "EvaluateLowSampleCountPercentile")) MetricAlarm.struct_class = Types::MetricAlarm MetricAlarms.member = Shapes::ShapeRef.new(shape: MetricAlarm) MetricData.member = Shapes::ShapeRef.new(shape: MetricDatum) MetricDatum.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName")) MetricDatum.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions")) MetricDatum.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp")) MetricDatum.add_member(:value, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Value")) MetricDatum.add_member(:statistic_values, Shapes::ShapeRef.new(shape: StatisticSet, location_name: "StatisticValues")) MetricDatum.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit")) MetricDatum.struct_class = Types::MetricDatum Metrics.member = Shapes::ShapeRef.new(shape: Metric) PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName")) PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription")) PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled")) PutMetricAlarmInput.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions")) PutMetricAlarmInput.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions")) PutMetricAlarmInput.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions")) PutMetricAlarmInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName")) PutMetricAlarmInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace")) PutMetricAlarmInput.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic")) PutMetricAlarmInput.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic")) PutMetricAlarmInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions")) PutMetricAlarmInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period")) PutMetricAlarmInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit")) PutMetricAlarmInput.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, required: true, location_name: "EvaluationPeriods")) PutMetricAlarmInput.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, required: true, location_name: "Threshold")) PutMetricAlarmInput.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator")) PutMetricAlarmInput.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData")) PutMetricAlarmInput.add_member(:evaluate_low_sample_count_percentile, Shapes::ShapeRef.new(shape: EvaluateLowSampleCountPercentile, location_name: "EvaluateLowSampleCountPercentile")) PutMetricAlarmInput.struct_class = Types::PutMetricAlarmInput PutMetricDataInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace")) PutMetricDataInput.add_member(:metric_data, Shapes::ShapeRef.new(shape: MetricData, required: true, location_name: "MetricData")) PutMetricDataInput.struct_class = Types::PutMetricDataInput ResourceList.member = Shapes::ShapeRef.new(shape: ResourceName) SetAlarmStateInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName")) SetAlarmStateInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, required: true, location_name: "StateValue")) SetAlarmStateInput.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, required: true, location_name: "StateReason")) SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData")) SetAlarmStateInput.struct_class = Types::SetAlarmStateInput StatisticSet.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "SampleCount")) StatisticSet.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Sum")) StatisticSet.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Minimum")) StatisticSet.add_member(:maximum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Maximum")) StatisticSet.struct_class = Types::StatisticSet Statistics.member = Shapes::ShapeRef.new(shape: Statistic) # @api private API = Seahorse::Model::Api.new.tap do |api| api.version = "2010-08-01" api.metadata = { "endpointPrefix" => "monitoring", "protocol" => "query", "serviceFullName" => "Amazon CloudWatch", "signatureVersion" => "v4", "xmlNamespace" => "http://monitoring.amazonaws.com/doc/2010-08-01/", } api.add_operation(:delete_alarms, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteAlarms" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteAlarmsInput) o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound) end) api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o| o.name = "DescribeAlarmHistory" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DescribeAlarmHistoryInput) o.output = Shapes::ShapeRef.new(shape: DescribeAlarmHistoryOutput) o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken) o[:pager] = Aws::Pager.new( limit_key: "max_records", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:describe_alarms, Seahorse::Model::Operation.new.tap do |o| o.name = "DescribeAlarms" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DescribeAlarmsInput) o.output = Shapes::ShapeRef.new(shape: DescribeAlarmsOutput) o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken) o[:pager] = Aws::Pager.new( limit_key: "max_records", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:describe_alarms_for_metric, Seahorse::Model::Operation.new.tap do |o| o.name = "DescribeAlarmsForMetric" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DescribeAlarmsForMetricInput) o.output = Shapes::ShapeRef.new(shape: DescribeAlarmsForMetricOutput) end) api.add_operation(:disable_alarm_actions, Seahorse::Model::Operation.new.tap do |o| o.name = "DisableAlarmActions" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DisableAlarmActionsInput) o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) end) api.add_operation(:enable_alarm_actions, Seahorse::Model::Operation.new.tap do |o| o.name = "EnableAlarmActions" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: EnableAlarmActionsInput) o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) end) api.add_operation(:get_metric_statistics, Seahorse::Model::Operation.new.tap do |o| o.name = "GetMetricStatistics" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetMetricStatisticsInput) o.output = Shapes::ShapeRef.new(shape: GetMetricStatisticsOutput) o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException) o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException) o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException) o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault) end) api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o| o.name = "ListMetrics" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListMetricsInput) o.output = Shapes::ShapeRef.new(shape: ListMetricsOutput) o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault) o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException) o[:pager] = Aws::Pager.new( tokens: { "next_token" => "next_token" } ) end) api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o| o.name = "PutMetricAlarm" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: PutMetricAlarmInput) o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault) end) api.add_operation(:put_metric_data, Seahorse::Model::Operation.new.tap do |o| o.name = "PutMetricData" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: PutMetricDataInput) o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException) o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException) o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException) o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault) end) api.add_operation(:set_alarm_state, Seahorse::Model::Operation.new.tap do |o| o.name = "SetAlarmState" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SetAlarmStateInput) o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound) o.errors << Shapes::ShapeRef.new(shape: InvalidFormatFault) end) end end end