diff --git a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client.rb b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client.rb index dda62335750..6458b717cc8 100644 --- a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client.rb +++ b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client.rb @@ -985,6 +985,8 @@ def describe_cost_category_definition(params = {}, options = {}) # * {Types::GetAnomaliesResponse#anomalies #anomalies} => Array<Types::Anomaly> # * {Types::GetAnomaliesResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_anomalies({ @@ -1056,6 +1058,8 @@ def get_anomalies(params = {}, options = {}) # * {Types::GetAnomalyMonitorsResponse#anomaly_monitors #anomaly_monitors} => Array<Types::AnomalyMonitor> # * {Types::GetAnomalyMonitorsResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_anomaly_monitors({ @@ -1129,6 +1133,8 @@ def get_anomaly_monitors(params = {}, options = {}) # * {Types::GetAnomalySubscriptionsResponse#anomaly_subscriptions #anomaly_subscriptions} => Array<Types::AnomalySubscription> # * {Types::GetAnomalySubscriptionsResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_anomaly_subscriptions({ @@ -1327,6 +1333,8 @@ def get_approximate_usage_records(params = {}, options = {}) # * {Types::GetCostAndUsageResponse#results_by_time #results_by_time} => Array<Types::ResultByTime> # * {Types::GetCostAndUsageResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes> # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_cost_and_usage({ @@ -1510,6 +1518,8 @@ def get_cost_and_usage(params = {}, options = {}) # * {Types::GetCostAndUsageWithResourcesResponse#results_by_time #results_by_time} => Array<Types::ResultByTime> # * {Types::GetCostAndUsageWithResourcesResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes> # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_cost_and_usage_with_resources({ @@ -1755,6 +1765,8 @@ def get_cost_and_usage_with_resources(params = {}, options = {}) # * {Types::GetCostCategoriesResponse#return_size #return_size} => Integer # * {Types::GetCostCategoriesResponse#total_size #total_size} => Integer # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_cost_categories({ @@ -2297,6 +2309,8 @@ def get_cost_forecast(params = {}, options = {}) # * {Types::GetDimensionValuesResponse#total_size #total_size} => Integer # * {Types::GetDimensionValuesResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_dimension_values({ @@ -2539,6 +2553,8 @@ def get_dimension_values(params = {}, options = {}) # * {Types::GetReservationCoverageResponse#total #total} => Types::Coverage # * {Types::GetReservationCoverageResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_reservation_coverage({ @@ -2796,6 +2812,8 @@ def get_reservation_coverage(params = {}, options = {}) # * {Types::GetReservationPurchaseRecommendationResponse#recommendations #recommendations} => Array<Types::ReservationPurchaseRecommendation> # * {Types::GetReservationPurchaseRecommendationResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_reservation_purchase_recommendation({ @@ -3045,6 +3063,8 @@ def get_reservation_purchase_recommendation(params = {}, options = {}) # * {Types::GetReservationUtilizationResponse#total #total} => Types::ReservationAggregates # * {Types::GetReservationUtilizationResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_reservation_utilization({ @@ -3303,6 +3323,8 @@ def get_reservation_utilization(params = {}, options = {}) # * {Types::GetRightsizingRecommendationResponse#next_page_token #next_page_token} => String # * {Types::GetRightsizingRecommendationResponse#configuration #configuration} => Types::RightsizingRecommendationConfiguration # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_rightsizing_recommendation({ @@ -3736,6 +3758,8 @@ def get_savings_plans_coverage(params = {}, options = {}) # * {Types::GetSavingsPlansPurchaseRecommendationResponse#savings_plans_purchase_recommendation #savings_plans_purchase_recommendation} => Types::SavingsPlansPurchaseRecommendation # * {Types::GetSavingsPlansPurchaseRecommendationResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_savings_plans_purchase_recommendation({ @@ -4298,6 +4322,8 @@ def get_savings_plans_utilization_details(params = {}, options = {}) # * {Types::GetTagsResponse#return_size #return_size} => Integer # * {Types::GetTagsResponse#total_size #total_size} => Integer # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.get_tags({ @@ -4708,6 +4734,8 @@ def list_cost_category_definitions(params = {}, options = {}) # * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#generation_summary_list #generation_summary_list} => Array<Types::GenerationSummary> # * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#next_page_token #next_page_token} => String # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # # @example Request syntax with placeholder values # # resp = client.list_savings_plans_purchase_recommendation_generation({ diff --git a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client_api.rb b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client_api.rb index 061dc9929ce..e9a3e34ccf1 100644 --- a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client_api.rb +++ b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client_api.rb @@ -1627,6 +1627,12 @@ module ClientApi o.output = Shapes::ShapeRef.new(shape: GetAnomaliesResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_anomaly_monitors, Seahorse::Model::Operation.new.tap do |o| @@ -1638,6 +1644,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: UnknownMonitorException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_anomaly_subscriptions, Seahorse::Model::Operation.new.tap do |o| @@ -1649,6 +1661,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: UnknownSubscriptionException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_approximate_usage_records, Seahorse::Model::Operation.new.tap do |o| @@ -1672,6 +1690,11 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) + o[:pager] = Aws::Pager.new( + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_cost_and_usage_with_resources, Seahorse::Model::Operation.new.tap do |o| @@ -1685,6 +1708,11 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: BillExpirationException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) + o[:pager] = Aws::Pager.new( + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_cost_categories, Seahorse::Model::Operation.new.tap do |o| @@ -1698,6 +1726,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_cost_forecast, Seahorse::Model::Operation.new.tap do |o| @@ -1721,6 +1755,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_reservation_coverage, Seahorse::Model::Operation.new.tap do |o| @@ -1732,6 +1772,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_reservation_purchase_recommendation, Seahorse::Model::Operation.new.tap do |o| @@ -1743,6 +1789,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) + o[:pager] = Aws::Pager.new( + limit_key: "page_size", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_reservation_utilization, Seahorse::Model::Operation.new.tap do |o| @@ -1754,6 +1806,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_rightsizing_recommendation, Seahorse::Model::Operation.new.tap do |o| @@ -1764,6 +1822,12 @@ module ClientApi o.output = Shapes::ShapeRef.new(shape: GetRightsizingRecommendationResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) + o[:pager] = Aws::Pager.new( + limit_key: "page_size", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_savings_plan_purchase_recommendation_details, Seahorse::Model::Operation.new.tap do |o| @@ -1801,6 +1865,12 @@ module ClientApi o.output = Shapes::ShapeRef.new(shape: GetSavingsPlansPurchaseRecommendationResponse) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) + o[:pager] = Aws::Pager.new( + limit_key: "page_size", + tokens: { + "next_token" => "next_token" + } + ) end) api.add_operation(:get_savings_plans_utilization, Seahorse::Model::Operation.new.tap do |o| @@ -1841,6 +1911,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_usage_forecast, Seahorse::Model::Operation.new.tap do |o| @@ -1910,6 +1986,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException) + o[:pager] = Aws::Pager.new( + limit_key: "page_size", + tokens: { + "next_token" => "next_token" + } + ) end) api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|