Skip to content

Commit

Permalink
Rebuild CostExplorer SDK
Browse files Browse the repository at this point in the history
- Includes the new paginator definitions for the Cost Explorer API,
  so #next_page?, #next_page and other pagination methods are now
  properly working on the response
  • Loading branch information
thomasklemm committed Aug 2, 2024
1 parent 27142a4 commit e23d71d
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 0 deletions.
28 changes: 28 additions & 0 deletions gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down
82 changes: 82 additions & 0 deletions gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand All @@ -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|
Expand Down Expand Up @@ -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|
Expand Down Expand Up @@ -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|
Expand Down Expand Up @@ -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|
Expand Down

0 comments on commit e23d71d

Please sign in to comment.