diff --git a/apis/ce/2017-10-25/paginators-1.json b/apis/ce/2017-10-25/paginators-1.json index 7c7eb23b0d7..68044940a43 100644 --- a/apis/ce/2017-10-25/paginators-1.json +++ b/apis/ce/2017-10-25/paginators-1.json @@ -18,27 +18,86 @@ "limit_key": "MaxResults", "result_key": "AnomalySubscriptions" }, + "GetCostAndUsage": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "result_key": "ResultsByTime" + }, "GetCostAndUsageComparisons": { "input_token": "NextPageToken", "output_token": "NextPageToken", "limit_key": "MaxResults", "result_key": "CostAndUsageComparisons" }, + "GetCostAndUsageWithResources": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "result_key": "ResultsByTime" + }, + "GetCostCategories": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "limit_key": "MaxResults" + }, "GetCostComparisonDrivers": { "input_token": "NextPageToken", "output_token": "NextPageToken", "limit_key": "MaxResults", "result_key": "CostComparisonDrivers" }, + "GetDimensionValues": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "limit_key": "MaxResults", + "result_key": "DimensionValues" + }, + "GetReservationCoverage": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "limit_key": "MaxResults", + "result_key": "CoveragesByTime" + }, + "GetReservationPurchaseRecommendation": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "limit_key": "PageSize", + "result_key": "Recommendations" + }, + "GetReservationUtilization": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "limit_key": "MaxResults", + "result_key": "UtilizationsByTime" + }, + "GetRightsizingRecommendation": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "limit_key": "PageSize", + "result_key": "RightsizingRecommendations" + }, "GetSavingsPlansCoverage": { "input_token": "NextToken", "output_token": "NextToken", - "limit_key": "MaxResults" + "limit_key": "MaxResults", + "result_key": "SavingsPlansCoverages" + }, + "GetSavingsPlansPurchaseRecommendation": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "SavingsPlansPurchaseRecommendation" }, "GetSavingsPlansUtilizationDetails": { "input_token": "NextToken", "output_token": "NextToken", - "limit_key": "MaxResults" + "limit_key": "MaxResults", + "result_key": "SavingsPlansUtilizationDetails" + }, + "GetTags": { + "input_token": "NextPageToken", + "output_token": "NextPageToken", + "limit_key": "MaxResults", + "result_key": "Tags" }, "ListCostAllocationTagBackfillHistory": { "input_token": "NextToken", @@ -54,6 +113,12 @@ "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" + }, + "ListSavingsPlansPurchaseRecommendationGeneration": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "GenerationSummaryList" } } } 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 a6b8b7bb8e1..9aeedfd86e7 100644 --- a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client.rb +++ b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client.rb @@ -1470,6 +1470,8 @@ def get_commitment_purchase_analysis(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({ @@ -1603,6 +1605,7 @@ def get_cost_and_usage(params = {}, options = {}) # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -1617,6 +1620,7 @@ def get_cost_and_usage(params = {}, options = {}) # # * As shown in the previous example, lists of dimension values are # combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is supported. @@ -1627,6 +1631,7 @@ def get_cost_and_usage(params = {}, options = {}) # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": # [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical operators @@ -1642,6 +1647,7 @@ def get_cost_and_usage(params = {}, options = {}) # "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -1892,6 +1898,8 @@ def get_cost_and_usage_comparisons(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({ @@ -2016,6 +2024,7 @@ def get_cost_and_usage_with_resources(params = {}, options = {}) # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -2030,6 +2039,7 @@ def get_cost_and_usage_with_resources(params = {}, options = {}) # # * As shown in the previous example, lists of dimension values are # combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is supported. @@ -2040,6 +2050,7 @@ def get_cost_and_usage_with_resources(params = {}, options = {}) # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": # [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical operators @@ -2055,6 +2066,7 @@ def get_cost_and_usage_with_resources(params = {}, options = {}) # "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -2142,6 +2154,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({ @@ -2263,6 +2277,7 @@ def get_cost_categories(params = {}, options = {}) # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -2277,6 +2292,7 @@ def get_cost_categories(params = {}, options = {}) # # * As shown in the previous example, lists of dimension values are # combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is supported. @@ -2287,6 +2303,7 @@ def get_cost_categories(params = {}, options = {}) # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": # [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical operators @@ -2302,6 +2319,7 @@ def get_cost_categories(params = {}, options = {}) # "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -2812,6 +2830,7 @@ def get_cost_forecast(params = {}, options = {}) # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -2826,6 +2845,7 @@ def get_cost_forecast(params = {}, options = {}) # # * As shown in the previous example, lists of dimension values are # combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is supported. @@ -2836,6 +2856,7 @@ def get_cost_forecast(params = {}, options = {}) # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": # [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical operators @@ -2851,6 +2872,7 @@ def get_cost_forecast(params = {}, options = {}) # "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -2935,6 +2957,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({ @@ -3178,6 +3202,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({ @@ -3327,6 +3353,7 @@ def get_reservation_coverage(params = {}, options = {}) # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -3341,6 +3368,7 @@ def get_reservation_coverage(params = {}, options = {}) # # * As shown in the previous example, lists of dimension values are # combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is supported. @@ -3351,6 +3379,7 @@ def get_reservation_coverage(params = {}, options = {}) # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": # [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical operators @@ -3366,6 +3395,7 @@ def get_reservation_coverage(params = {}, options = {}) # "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -3431,6 +3461,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({ @@ -3694,6 +3726,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({ @@ -3852,6 +3886,7 @@ def get_reservation_utilization(params = {}, options = {}) # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -3866,6 +3901,7 @@ def get_reservation_utilization(params = {}, options = {}) # # * As shown in the previous example, lists of dimension values are # combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is supported. @@ -3876,6 +3912,7 @@ def get_reservation_utilization(params = {}, options = {}) # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": # [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical operators @@ -3891,6 +3928,7 @@ def get_reservation_utilization(params = {}, options = {}) # "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -3948,6 +3986,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({ @@ -4381,6 +4421,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({ @@ -4826,6 +4868,7 @@ def get_savings_plans_utilization_details(params = {}, options = {}) # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -4840,6 +4883,7 @@ def get_savings_plans_utilization_details(params = {}, options = {}) # # * As shown in the previous example, lists of dimension values are # combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is supported. @@ -4850,6 +4894,7 @@ def get_savings_plans_utilization_details(params = {}, options = {}) # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": # [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical operators @@ -4865,6 +4910,7 @@ def get_savings_plans_utilization_details(params = {}, options = {}) # "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -4947,6 +4993,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({ @@ -5431,6 +5479,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 34d8232c63c..37b7a6a36b0 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 @@ -454,7 +454,7 @@ module ClientApi AnomalySubscription.add_member(:account_id, Shapes::ShapeRef.new(shape: GenericString, location_name: "AccountId")) AnomalySubscription.add_member(:monitor_arn_list, Shapes::ShapeRef.new(shape: MonitorArnList, required: true, location_name: "MonitorArnList")) AnomalySubscription.add_member(:subscribers, Shapes::ShapeRef.new(shape: Subscribers, required: true, location_name: "Subscribers")) - AnomalySubscription.add_member(:threshold, Shapes::ShapeRef.new(shape: NullableNonNegativeDouble, deprecated: true, location_name: "Threshold", metadata: {"deprecatedMessage" => "Threshold has been deprecated in favor of ThresholdExpression"})) + AnomalySubscription.add_member(:threshold, Shapes::ShapeRef.new(shape: NullableNonNegativeDouble, deprecated: true, location_name: "Threshold", metadata: {"deprecatedMessage"=>"Threshold has been deprecated in favor of ThresholdExpression"})) AnomalySubscription.add_member(:frequency, Shapes::ShapeRef.new(shape: AnomalySubscriptionFrequency, required: true, location_name: "Frequency")) AnomalySubscription.add_member(:subscription_name, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "SubscriptionName")) AnomalySubscription.add_member(:threshold_expression, Shapes::ShapeRef.new(shape: Expression, location_name: "ThresholdExpression")) @@ -809,7 +809,7 @@ module ClientApi GetAnomaliesRequest.add_member(:feedback, Shapes::ShapeRef.new(shape: AnomalyFeedbackType, location_name: "Feedback")) GetAnomaliesRequest.add_member(:total_impact, Shapes::ShapeRef.new(shape: TotalImpactFilter, location_name: "TotalImpact")) GetAnomaliesRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken")) - GetAnomaliesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults", metadata: {"box" => true})) + GetAnomaliesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults", metadata: {"box"=>true})) GetAnomaliesRequest.struct_class = Types::GetAnomaliesRequest GetAnomaliesResponse.add_member(:anomalies, Shapes::ShapeRef.new(shape: Anomalies, required: true, location_name: "Anomalies")) @@ -818,7 +818,7 @@ module ClientApi GetAnomalyMonitorsRequest.add_member(:monitor_arn_list, Shapes::ShapeRef.new(shape: Values, location_name: "MonitorArnList")) GetAnomalyMonitorsRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken")) - GetAnomalyMonitorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults", metadata: {"box" => true})) + GetAnomalyMonitorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults", metadata: {"box"=>true})) GetAnomalyMonitorsRequest.struct_class = Types::GetAnomalyMonitorsRequest GetAnomalyMonitorsResponse.add_member(:anomaly_monitors, Shapes::ShapeRef.new(shape: AnomalyMonitors, required: true, location_name: "AnomalyMonitors")) @@ -828,7 +828,7 @@ module ClientApi GetAnomalySubscriptionsRequest.add_member(:subscription_arn_list, Shapes::ShapeRef.new(shape: Values, location_name: "SubscriptionArnList")) GetAnomalySubscriptionsRequest.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "MonitorArn")) GetAnomalySubscriptionsRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken")) - GetAnomalySubscriptionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults", metadata: {"box" => true})) + GetAnomalySubscriptionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults", metadata: {"box"=>true})) GetAnomalySubscriptionsRequest.struct_class = Types::GetAnomalySubscriptionsRequest GetAnomalySubscriptionsResponse.add_member(:anomaly_subscriptions, Shapes::ShapeRef.new(shape: AnomalySubscriptions, required: true, location_name: "AnomalySubscriptions")) @@ -864,7 +864,7 @@ module ClientApi GetCostAndUsageComparisonsRequest.add_member(:metric_for_comparison, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricForComparison")) GetCostAndUsageComparisonsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter")) GetCostAndUsageComparisonsRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: GroupDefinitions, location_name: "GroupBy")) - GetCostAndUsageComparisonsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAndUsageComparisonsMaxResults, location_name: "MaxResults", metadata: {"box" => true})) + GetCostAndUsageComparisonsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAndUsageComparisonsMaxResults, location_name: "MaxResults", metadata: {"box"=>true})) GetCostAndUsageComparisonsRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken")) GetCostAndUsageComparisonsRequest.struct_class = Types::GetCostAndUsageComparisonsRequest @@ -926,7 +926,7 @@ module ClientApi GetCostComparisonDriversRequest.add_member(:metric_for_comparison, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricForComparison")) GetCostComparisonDriversRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter")) GetCostComparisonDriversRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: GroupDefinitions, location_name: "GroupBy")) - GetCostComparisonDriversRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostComparisonDriversMaxResults, location_name: "MaxResults", metadata: {"box" => true})) + GetCostComparisonDriversRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostComparisonDriversMaxResults, location_name: "MaxResults", metadata: {"box"=>true})) GetCostComparisonDriversRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken")) GetCostComparisonDriversRequest.struct_class = Types::GetCostComparisonDriversRequest @@ -970,7 +970,7 @@ module ClientApi GetReservationCoverageRequest.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricNames, location_name: "Metrics")) GetReservationCoverageRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken")) GetReservationCoverageRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortDefinition, location_name: "SortBy")) - GetReservationCoverageRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box" => true})) + GetReservationCoverageRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true})) GetReservationCoverageRequest.struct_class = Types::GetReservationCoverageRequest GetReservationCoverageResponse.add_member(:coverages_by_time, Shapes::ShapeRef.new(shape: CoveragesByTime, required: true, location_name: "CoveragesByTime")) @@ -1001,7 +1001,7 @@ module ClientApi GetReservationUtilizationRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter")) GetReservationUtilizationRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortDefinition, location_name: "SortBy")) GetReservationUtilizationRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken")) - GetReservationUtilizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box" => true})) + GetReservationUtilizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true})) GetReservationUtilizationRequest.struct_class = Types::GetReservationUtilizationRequest GetReservationUtilizationResponse.add_member(:utilizations_by_time, Shapes::ShapeRef.new(shape: UtilizationsByTime, required: true, location_name: "UtilizationsByTime")) @@ -1036,7 +1036,7 @@ module ClientApi GetSavingsPlansCoverageRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter")) GetSavingsPlansCoverageRequest.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricNames, location_name: "Metrics")) GetSavingsPlansCoverageRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken")) - GetSavingsPlansCoverageRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box" => true})) + GetSavingsPlansCoverageRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true})) GetSavingsPlansCoverageRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortDefinition, location_name: "SortBy")) GetSavingsPlansCoverageRequest.struct_class = Types::GetSavingsPlansCoverageRequest @@ -1063,7 +1063,7 @@ module ClientApi GetSavingsPlansUtilizationDetailsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter")) GetSavingsPlansUtilizationDetailsRequest.add_member(:data_type, Shapes::ShapeRef.new(shape: SavingsPlansDataTypes, location_name: "DataType")) GetSavingsPlansUtilizationDetailsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken")) - GetSavingsPlansUtilizationDetailsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box" => true})) + GetSavingsPlansUtilizationDetailsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true})) GetSavingsPlansUtilizationDetailsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortDefinition, location_name: "SortBy")) GetSavingsPlansUtilizationDetailsRequest.struct_class = Types::GetSavingsPlansUtilizationDetailsRequest @@ -1157,7 +1157,7 @@ module ClientApi ListCommitmentPurchaseAnalysesResponse.struct_class = Types::ListCommitmentPurchaseAnalysesResponse ListCostAllocationTagBackfillHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken")) - ListCostAllocationTagBackfillHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAllocationTagsMaxResults, location_name: "MaxResults", metadata: {"box" => true})) + ListCostAllocationTagBackfillHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAllocationTagsMaxResults, location_name: "MaxResults", metadata: {"box"=>true})) ListCostAllocationTagBackfillHistoryRequest.struct_class = Types::ListCostAllocationTagBackfillHistoryRequest ListCostAllocationTagBackfillHistoryResponse.add_member(:backfill_requests, Shapes::ShapeRef.new(shape: CostAllocationTagBackfillRequestList, location_name: "BackfillRequests")) @@ -1168,7 +1168,7 @@ module ClientApi ListCostAllocationTagsRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: CostAllocationTagKeyList, location_name: "TagKeys")) ListCostAllocationTagsRequest.add_member(:type, Shapes::ShapeRef.new(shape: CostAllocationTagType, location_name: "Type")) ListCostAllocationTagsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken")) - ListCostAllocationTagsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAllocationTagsMaxResults, location_name: "MaxResults", metadata: {"box" => true})) + ListCostAllocationTagsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAllocationTagsMaxResults, location_name: "MaxResults", metadata: {"box"=>true})) ListCostAllocationTagsRequest.struct_class = Types::ListCostAllocationTagsRequest ListCostAllocationTagsResponse.add_member(:cost_allocation_tags, Shapes::ShapeRef.new(shape: CostAllocationTagList, location_name: "CostAllocationTags")) @@ -1177,7 +1177,7 @@ module ClientApi ListCostCategoryDefinitionsRequest.add_member(:effective_on, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "EffectiveOn")) ListCostCategoryDefinitionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken")) - ListCostCategoryDefinitionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostCategoryMaxResults, location_name: "MaxResults", metadata: {"box" => true})) + ListCostCategoryDefinitionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostCategoryMaxResults, location_name: "MaxResults", metadata: {"box"=>true})) ListCostCategoryDefinitionsRequest.struct_class = Types::ListCostCategoryDefinitionsRequest ListCostCategoryDefinitionsResponse.add_member(:cost_category_references, Shapes::ShapeRef.new(shape: CostCategoryReferencesList, location_name: "CostCategoryReferences")) @@ -1703,7 +1703,7 @@ module ClientApi UpdateAnomalyMonitorResponse.struct_class = Types::UpdateAnomalyMonitorResponse UpdateAnomalySubscriptionRequest.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "SubscriptionArn")) - UpdateAnomalySubscriptionRequest.add_member(:threshold, Shapes::ShapeRef.new(shape: NullableNonNegativeDouble, deprecated: true, location_name: "Threshold", metadata: {"deprecatedMessage" => "Threshold has been deprecated in favor of ThresholdExpression"})) + UpdateAnomalySubscriptionRequest.add_member(:threshold, Shapes::ShapeRef.new(shape: NullableNonNegativeDouble, deprecated: true, location_name: "Threshold", metadata: {"deprecatedMessage"=>"Threshold has been deprecated in favor of ThresholdExpression"})) UpdateAnomalySubscriptionRequest.add_member(:frequency, Shapes::ShapeRef.new(shape: AnomalySubscriptionFrequency, location_name: "Frequency")) UpdateAnomalySubscriptionRequest.add_member(:monitor_arn_list, Shapes::ShapeRef.new(shape: MonitorArnList, location_name: "MonitorArnList")) UpdateAnomalySubscriptionRequest.add_member(:subscribers, Shapes::ShapeRef.new(shape: Subscribers, location_name: "Subscribers")) @@ -1924,6 +1924,11 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + o[:pager] = Aws::Pager.new( + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_cost_and_usage_comparisons, Seahorse::Model::Operation.new.tap do |o| @@ -1956,6 +1961,11 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + 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| @@ -1970,6 +1980,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_page_token" => "next_page_token" + } + ) end) api.add_operation(:get_cost_comparison_drivers, Seahorse::Model::Operation.new.tap do |o| @@ -2013,6 +2029,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + 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| @@ -2024,6 +2046,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| @@ -2035,6 +2063,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| @@ -2046,6 +2080,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| @@ -2056,6 +2096,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| @@ -2093,6 +2139,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| @@ -2134,6 +2186,12 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException) o.errors << Shapes::ShapeRef.new(shape: RequestChangedException) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + 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| @@ -2215,6 +2273,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| diff --git a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/endpoint_provider.rb b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/endpoint_provider.rb index 461e188c442..e042aa4a87d 100644 --- a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/endpoint_provider.rb +++ b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/endpoint_provider.rb @@ -22,22 +22,22 @@ def resolve_endpoint(parameters) if Aws::Endpoints::Matchers.set?(parameters.region) if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) - return Aws::Endpoints::Endpoint.new(url: "https://ce.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-east-1"}]}) + return Aws::Endpoints::Endpoint.new(url: "https://ce.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-east-1"}]}) end if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) - return Aws::Endpoints::Endpoint.new(url: "https://ce.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "cn-northwest-1"}]}) + return Aws::Endpoints::Endpoint.new(url: "https://ce.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"cn-northwest-1"}]}) end if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) - return Aws::Endpoints::Endpoint.new(url: "https://ce.us-iso-east-1.c2s.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-iso-east-1"}]}) + return Aws::Endpoints::Endpoint.new(url: "https://ce.us-iso-east-1.c2s.ic.gov", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-iso-east-1"}]}) end if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) - return Aws::Endpoints::Endpoint.new(url: "https://ce.us-isob-east-1.sc2s.sgov.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-isob-east-1"}]}) + return Aws::Endpoints::Endpoint.new(url: "https://ce.us-isob-east-1.sc2s.sgov.gov", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-isob-east-1"}]}) end if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-e") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) - return Aws::Endpoints::Endpoint.new(url: "https://ce.eu-isoe-west-1.cloud.adc-e.uk", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "eu-isoe-west-1"}]}) + return Aws::Endpoints::Endpoint.new(url: "https://ce.eu-isoe-west-1.cloud.adc-e.uk", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"eu-isoe-west-1"}]}) end if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-f") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false) - return Aws::Endpoints::Endpoint.new(url: "https://ce.us-isof-south-1.csp.hci.ic.gov", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-isof-south-1"}]}) + return Aws::Endpoints::Endpoint.new(url: "https://ce.us-isof-south-1.csp.hci.ic.gov", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-isof-south-1"}]}) end if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true) if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) diff --git a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb index c90245fb5c0..c396f481231 100644 --- a/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb +++ b/gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb @@ -212,6 +212,7 @@ class AnomalyDateInterval < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -226,6 +227,7 @@ class AnomalyDateInterval < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -237,6 +239,7 @@ class AnomalyDateInterval < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -253,6 +256,7 @@ class AnomalyDateInterval < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -648,6 +652,7 @@ class CostAllocationTagStatusEntry < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -662,6 +667,7 @@ class CostAllocationTagStatusEntry < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -673,6 +679,7 @@ class CostAllocationTagStatusEntry < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -689,6 +696,7 @@ class CostAllocationTagStatusEntry < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -1072,6 +1080,7 @@ class CostCategoryValues < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -1086,6 +1095,7 @@ class CostCategoryValues < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -1097,6 +1107,7 @@ class CostCategoryValues < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -1113,6 +1124,7 @@ class CostCategoryValues < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -2175,6 +2187,7 @@ class ElastiCacheInstanceDetails < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -2189,6 +2202,7 @@ class ElastiCacheInstanceDetails < Struct.new( # # * As shown in the previous example, lists of dimension values are # combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is supported. @@ -2199,6 +2213,7 @@ class ElastiCacheInstanceDetails < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": # [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical operators @@ -2214,6 +2229,7 @@ class ElastiCacheInstanceDetails < Struct.new( # "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -2677,6 +2693,7 @@ class GetCommitmentPurchaseAnalysisResponse < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -2691,6 +2708,7 @@ class GetCommitmentPurchaseAnalysisResponse < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -2702,6 +2720,7 @@ class GetCommitmentPurchaseAnalysisResponse < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -2718,6 +2737,7 @@ class GetCommitmentPurchaseAnalysisResponse < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -3102,6 +3122,7 @@ class GetCostAndUsageWithResourcesResponse < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -3116,6 +3137,7 @@ class GetCostAndUsageWithResourcesResponse < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -3127,6 +3149,7 @@ class GetCostAndUsageWithResourcesResponse < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -3143,6 +3166,7 @@ class GetCostAndUsageWithResourcesResponse < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -3331,6 +3355,7 @@ class GetCostCategoriesResponse < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -3345,6 +3370,7 @@ class GetCostCategoriesResponse < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -3356,6 +3382,7 @@ class GetCostCategoriesResponse < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -3372,6 +3399,7 @@ class GetCostCategoriesResponse < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -3782,6 +3810,7 @@ class GetCostForecastResponse < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -3796,6 +3825,7 @@ class GetCostForecastResponse < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -3807,6 +3837,7 @@ class GetCostForecastResponse < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -3823,6 +3854,7 @@ class GetCostForecastResponse < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -4262,6 +4294,7 @@ class GetReservationCoverageResponse < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -4276,6 +4309,7 @@ class GetReservationCoverageResponse < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -4287,6 +4321,7 @@ class GetReservationCoverageResponse < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -4303,6 +4338,7 @@ class GetReservationCoverageResponse < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -4594,6 +4630,7 @@ class GetReservationUtilizationResponse < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -4608,6 +4645,7 @@ class GetReservationUtilizationResponse < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -4619,6 +4657,7 @@ class GetReservationUtilizationResponse < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -4635,6 +4674,7 @@ class GetReservationUtilizationResponse < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { @@ -5213,6 +5253,7 @@ class GetSavingsPlansUtilizationResponse < Struct.new( # # * Specify the `Dimensions` field to define a filter that acts on # the [ `DimensionValues` ][1]. + # # * For each filter type, you can set the dimension name and values # for the filters that you plan to use. # @@ -5227,6 +5268,7 @@ class GetSavingsPlansUtilizationResponse < Struct.new( # # * As shown in the previous example, lists of dimension values # are combined with `OR` when applying the filter. + # # * You can also set different match options to further control how # the filter behaves. Not all APIs support match options. Refer to # the documentation for each specific API to see what is @@ -5238,6 +5280,7 @@ class GetSavingsPlansUtilizationResponse < Struct.new( # * The corresponding `Expression` for this example is as follows: # `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", # "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }` + # # * Compound `Expression` types with logical operations. # # * You can use multiple `Expression` types and the logical @@ -5254,6 +5297,7 @@ class GetSavingsPlansUtilizationResponse < Struct.new( # [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", # "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": # "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } ` + # # Because each `Expression` can have only one operator, the service # returns an error if more than one is specified. The following # example shows an `Expression` object that creates an error: ` { diff --git a/gems/aws-sdk-costexplorer/spec/endpoint_provider_spec.rb b/gems/aws-sdk-costexplorer/spec/endpoint_provider_spec.rb index 543cff2e42b..5319a0d1814 100644 --- a/gems/aws-sdk-costexplorer/spec/endpoint_provider_spec.rb +++ b/gems/aws-sdk-costexplorer/spec/endpoint_provider_spec.rb @@ -16,11 +16,11 @@ module Aws::CostExplorer context "For region aws-global with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-east-1"}]}, "url" => "https://ce.us-east-1.amazonaws.com"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-east-1"}]}, "url"=>"https://ce.us-east-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "aws-global", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"aws-global", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -30,11 +30,11 @@ module Aws::CostExplorer context "For region us-east-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce-fips.us-east-1.api.aws"}} + {"endpoint"=>{"url"=>"https://ce-fips.us-east-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-east-1", use_fips: true, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -44,11 +44,11 @@ module Aws::CostExplorer context "For region us-east-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce-fips.us-east-1.amazonaws.com"}} + {"endpoint"=>{"url"=>"https://ce-fips.us-east-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-east-1", use_fips: true, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -58,11 +58,11 @@ module Aws::CostExplorer context "For region us-east-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce.us-east-1.api.aws"}} + {"endpoint"=>{"url"=>"https://ce.us-east-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-east-1", use_fips: false, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -72,11 +72,11 @@ module Aws::CostExplorer context "For region us-east-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-east-1"}]}, "url" => "https://ce.us-east-1.amazonaws.com"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-east-1"}]}, "url"=>"https://ce.us-east-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-east-1", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -86,11 +86,11 @@ module Aws::CostExplorer context "For region aws-cn-global with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "cn-northwest-1"}]}, "url" => "https://ce.cn-northwest-1.amazonaws.com.cn"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"cn-northwest-1"}]}, "url"=>"https://ce.cn-northwest-1.amazonaws.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "aws-cn-global", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"aws-cn-global", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -100,11 +100,11 @@ module Aws::CostExplorer context "For region cn-north-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce-fips.cn-north-1.api.amazonwebservices.com.cn"}} + {"endpoint"=>{"url"=>"https://ce-fips.cn-north-1.api.amazonwebservices.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "cn-north-1", use_fips: true, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -114,11 +114,11 @@ module Aws::CostExplorer context "For region cn-north-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce-fips.cn-north-1.amazonaws.com.cn"}} + {"endpoint"=>{"url"=>"https://ce-fips.cn-north-1.amazonaws.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "cn-north-1", use_fips: true, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -128,11 +128,11 @@ module Aws::CostExplorer context "For region cn-north-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce.cn-north-1.api.amazonwebservices.com.cn"}} + {"endpoint"=>{"url"=>"https://ce.cn-north-1.api.amazonwebservices.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "cn-north-1", use_fips: false, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -142,11 +142,11 @@ module Aws::CostExplorer context "For region cn-north-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "cn-northwest-1"}]}, "url" => "https://ce.cn-northwest-1.amazonaws.com.cn"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"cn-northwest-1"}]}, "url"=>"https://ce.cn-northwest-1.amazonaws.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "cn-north-1", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -156,11 +156,11 @@ module Aws::CostExplorer context "For region us-gov-east-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce-fips.us-gov-east-1.api.aws"}} + {"endpoint"=>{"url"=>"https://ce-fips.us-gov-east-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-gov-east-1", use_fips: true, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -170,11 +170,11 @@ module Aws::CostExplorer context "For region us-gov-east-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce-fips.us-gov-east-1.amazonaws.com"}} + {"endpoint"=>{"url"=>"https://ce-fips.us-gov-east-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-gov-east-1", use_fips: true, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -184,11 +184,11 @@ module Aws::CostExplorer context "For region us-gov-east-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce.us-gov-east-1.api.aws"}} + {"endpoint"=>{"url"=>"https://ce.us-gov-east-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-gov-east-1", use_fips: false, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -198,11 +198,11 @@ module Aws::CostExplorer context "For region us-gov-east-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce.us-gov-east-1.amazonaws.com"}} + {"endpoint"=>{"url"=>"https://ce.us-gov-east-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-gov-east-1", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -212,11 +212,11 @@ module Aws::CostExplorer context "For region aws-iso-global with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-iso-east-1"}]}, "url" => "https://ce.us-iso-east-1.c2s.ic.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-iso-east-1"}]}, "url"=>"https://ce.us-iso-east-1.c2s.ic.gov"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "aws-iso-global", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"aws-iso-global", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -226,11 +226,11 @@ module Aws::CostExplorer context "For region us-iso-east-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"error" => "FIPS and DualStack are enabled, but this partition does not support one or both"} + {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-iso-east-1", use_fips: true, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>true}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) @@ -239,11 +239,11 @@ module Aws::CostExplorer context "For region us-iso-east-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce-fips.us-iso-east-1.c2s.ic.gov"}} + {"endpoint"=>{"url"=>"https://ce-fips.us-iso-east-1.c2s.ic.gov"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-iso-east-1", use_fips: true, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -253,11 +253,11 @@ module Aws::CostExplorer context "For region us-iso-east-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"error" => "DualStack is enabled but this partition does not support DualStack"} + {"error"=>"DualStack is enabled but this partition does not support DualStack"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-iso-east-1", use_fips: false, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>true}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) @@ -266,11 +266,11 @@ module Aws::CostExplorer context "For region us-iso-east-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-iso-east-1"}]}, "url" => "https://ce.us-iso-east-1.c2s.ic.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-iso-east-1"}]}, "url"=>"https://ce.us-iso-east-1.c2s.ic.gov"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-iso-east-1", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -280,11 +280,11 @@ module Aws::CostExplorer context "For region aws-iso-b-global with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-isob-east-1"}]}, "url" => "https://ce.us-isob-east-1.sc2s.sgov.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-isob-east-1"}]}, "url"=>"https://ce.us-isob-east-1.sc2s.sgov.gov"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "aws-iso-b-global", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"aws-iso-b-global", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -294,11 +294,11 @@ module Aws::CostExplorer context "For region us-isob-east-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"error" => "FIPS and DualStack are enabled, but this partition does not support one or both"} + {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-isob-east-1", use_fips: true, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>true}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) @@ -307,11 +307,11 @@ module Aws::CostExplorer context "For region us-isob-east-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"url" => "https://ce-fips.us-isob-east-1.sc2s.sgov.gov"}} + {"endpoint"=>{"url"=>"https://ce-fips.us-isob-east-1.sc2s.sgov.gov"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-isob-east-1", use_fips: true, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -321,11 +321,11 @@ module Aws::CostExplorer context "For region us-isob-east-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"error" => "DualStack is enabled but this partition does not support DualStack"} + {"error"=>"DualStack is enabled but this partition does not support DualStack"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-isob-east-1", use_fips: false, use_dual_stack: true}) + params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>true}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) @@ -334,11 +334,11 @@ module Aws::CostExplorer context "For region us-isob-east-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-isob-east-1"}]}, "url" => "https://ce.us-isob-east-1.sc2s.sgov.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-isob-east-1"}]}, "url"=>"https://ce.us-isob-east-1.sc2s.sgov.gov"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-isob-east-1", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -348,11 +348,11 @@ module Aws::CostExplorer context "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "eu-isoe-west-1"}]}, "url" => "https://ce.eu-isoe-west-1.cloud.adc-e.uk"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"eu-isoe-west-1"}]}, "url"=>"https://ce.eu-isoe-west-1.cloud.adc-e.uk"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "eu-isoe-west-1", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"eu-isoe-west-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -362,11 +362,11 @@ module Aws::CostExplorer context "For region us-isof-south-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint" => {"properties" => {"authSchemes" => [{"name" => "sigv4", "signingName" => "ce", "signingRegion" => "us-isof-south-1"}]}, "url" => "https://ce.us-isof-south-1.csp.hci.ic.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"ce", "signingRegion"=>"us-isof-south-1"}]}, "url"=>"https://ce.us-isof-south-1.csp.hci.ic.gov"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-isof-south-1", use_fips: false, use_dual_stack: false}) + params = EndpointParameters.new(**{:region=>"us-isof-south-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -376,11 +376,11 @@ module Aws::CostExplorer context "For custom endpoint with region set and fips disabled and dualstack disabled" do let(:expected) do - {"endpoint" => {"url" => "https://example.com"}} + {"endpoint"=>{"url"=>"https://example.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-east-1", use_fips: false, use_dual_stack: false, endpoint: "https://example.com"}) + params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -390,11 +390,11 @@ module Aws::CostExplorer context "For custom endpoint with region not set and fips disabled and dualstack disabled" do let(:expected) do - {"endpoint" => {"url" => "https://example.com"}} + {"endpoint"=>{"url"=>"https://example.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{use_fips: false, use_dual_stack: false, endpoint: "https://example.com"}) + params = EndpointParameters.new(**{:use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -404,11 +404,11 @@ module Aws::CostExplorer context "For custom endpoint with fips enabled and dualstack disabled" do let(:expected) do - {"error" => "Invalid Configuration: FIPS and custom endpoint are not supported"} + {"error"=>"Invalid Configuration: FIPS and custom endpoint are not supported"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-east-1", use_fips: true, use_dual_stack: false, endpoint: "https://example.com"}) + params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false, :endpoint=>"https://example.com"}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) @@ -417,11 +417,11 @@ module Aws::CostExplorer context "For custom endpoint with fips disabled and dualstack enabled" do let(:expected) do - {"error" => "Invalid Configuration: Dualstack and custom endpoint are not supported"} + {"error"=>"Invalid Configuration: Dualstack and custom endpoint are not supported"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{region: "us-east-1", use_fips: false, use_dual_stack: true, endpoint: "https://example.com"}) + params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true, :endpoint=>"https://example.com"}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) @@ -430,7 +430,7 @@ module Aws::CostExplorer context "Missing region" do let(:expected) do - {"error" => "Invalid Configuration: Missing Region"} + {"error"=>"Invalid Configuration: Missing Region"} end it 'produces the expected output from the EndpointProvider' do