aws-sdk-costexplorer 1.125.0 → 1.126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/sig/client.rbs CHANGED
@@ -419,6 +419,59 @@ module Aws
419
419
  ) -> _GetCostAndUsageResponseSuccess
420
420
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCostAndUsageResponseSuccess
421
421
 
422
+ interface _GetCostAndUsageComparisonsResponseSuccess
423
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCostAndUsageComparisonsResponse]
424
+ def cost_and_usage_comparisons: () -> ::Array[Types::CostAndUsageComparison]
425
+ def total_cost_and_usage: () -> ::Hash[::String, Types::ComparisonMetricValue]
426
+ def next_page_token: () -> ::String
427
+ end
428
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostExplorer/Client.html#get_cost_and_usage_comparisons-instance_method
429
+ def get_cost_and_usage_comparisons: (
430
+ ?billing_view_arn: ::String,
431
+ baseline_time_period: {
432
+ start: ::String,
433
+ end: ::String
434
+ },
435
+ comparison_time_period: {
436
+ start: ::String,
437
+ end: ::String
438
+ },
439
+ metric_for_comparison: ::String,
440
+ ?filter: {
441
+ or: Array[
442
+ untyped,
443
+ ]?,
444
+ and: Array[
445
+ untyped,
446
+ ]?,
447
+ not: untyped?,
448
+ dimensions: {
449
+ key: ("AZ" | "INSTANCE_TYPE" | "LINKED_ACCOUNT" | "LINKED_ACCOUNT_NAME" | "OPERATION" | "PURCHASE_TYPE" | "REGION" | "SERVICE" | "SERVICE_CODE" | "USAGE_TYPE" | "USAGE_TYPE_GROUP" | "RECORD_TYPE" | "OPERATING_SYSTEM" | "TENANCY" | "SCOPE" | "PLATFORM" | "SUBSCRIPTION_ID" | "LEGAL_ENTITY_NAME" | "DEPLOYMENT_OPTION" | "DATABASE_ENGINE" | "CACHE_ENGINE" | "INSTANCE_TYPE_FAMILY" | "BILLING_ENTITY" | "RESERVATION_ID" | "RESOURCE_ID" | "RIGHTSIZING_TYPE" | "SAVINGS_PLANS_TYPE" | "SAVINGS_PLAN_ARN" | "PAYMENT_OPTION" | "AGREEMENT_END_DATE_TIME_AFTER" | "AGREEMENT_END_DATE_TIME_BEFORE" | "INVOICING_ENTITY" | "ANOMALY_TOTAL_IMPACT_ABSOLUTE" | "ANOMALY_TOTAL_IMPACT_PERCENTAGE")?,
450
+ values: Array[::String]?,
451
+ match_options: Array[("EQUALS" | "ABSENT" | "STARTS_WITH" | "ENDS_WITH" | "CONTAINS" | "CASE_SENSITIVE" | "CASE_INSENSITIVE" | "GREATER_THAN_OR_EQUAL")]?
452
+ }?,
453
+ tags: {
454
+ key: ::String?,
455
+ values: Array[::String]?,
456
+ match_options: Array[("EQUALS" | "ABSENT" | "STARTS_WITH" | "ENDS_WITH" | "CONTAINS" | "CASE_SENSITIVE" | "CASE_INSENSITIVE" | "GREATER_THAN_OR_EQUAL")]?
457
+ }?,
458
+ cost_categories: {
459
+ key: ::String?,
460
+ values: Array[::String]?,
461
+ match_options: Array[("EQUALS" | "ABSENT" | "STARTS_WITH" | "ENDS_WITH" | "CONTAINS" | "CASE_SENSITIVE" | "CASE_INSENSITIVE" | "GREATER_THAN_OR_EQUAL")]?
462
+ }?
463
+ },
464
+ ?group_by: Array[
465
+ {
466
+ type: ("DIMENSION" | "TAG" | "COST_CATEGORY")?,
467
+ key: ::String?
468
+ },
469
+ ],
470
+ ?max_results: ::Integer,
471
+ ?next_page_token: ::String
472
+ ) -> _GetCostAndUsageComparisonsResponseSuccess
473
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCostAndUsageComparisonsResponseSuccess
474
+
422
475
  interface _GetCostAndUsageWithResourcesResponseSuccess
423
476
  include ::Seahorse::Client::_ResponseSuccess[Types::GetCostAndUsageWithResourcesResponse]
424
477
  def next_page_token: () -> ::String
@@ -521,6 +574,58 @@ module Aws
521
574
  ) -> _GetCostCategoriesResponseSuccess
522
575
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCostCategoriesResponseSuccess
523
576
 
577
+ interface _GetCostComparisonDriversResponseSuccess
578
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCostComparisonDriversResponse]
579
+ def cost_comparison_drivers: () -> ::Array[Types::CostComparisonDriver]
580
+ def next_page_token: () -> ::String
581
+ end
582
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostExplorer/Client.html#get_cost_comparison_drivers-instance_method
583
+ def get_cost_comparison_drivers: (
584
+ ?billing_view_arn: ::String,
585
+ baseline_time_period: {
586
+ start: ::String,
587
+ end: ::String
588
+ },
589
+ comparison_time_period: {
590
+ start: ::String,
591
+ end: ::String
592
+ },
593
+ metric_for_comparison: ::String,
594
+ ?filter: {
595
+ or: Array[
596
+ untyped,
597
+ ]?,
598
+ and: Array[
599
+ untyped,
600
+ ]?,
601
+ not: untyped?,
602
+ dimensions: {
603
+ key: ("AZ" | "INSTANCE_TYPE" | "LINKED_ACCOUNT" | "LINKED_ACCOUNT_NAME" | "OPERATION" | "PURCHASE_TYPE" | "REGION" | "SERVICE" | "SERVICE_CODE" | "USAGE_TYPE" | "USAGE_TYPE_GROUP" | "RECORD_TYPE" | "OPERATING_SYSTEM" | "TENANCY" | "SCOPE" | "PLATFORM" | "SUBSCRIPTION_ID" | "LEGAL_ENTITY_NAME" | "DEPLOYMENT_OPTION" | "DATABASE_ENGINE" | "CACHE_ENGINE" | "INSTANCE_TYPE_FAMILY" | "BILLING_ENTITY" | "RESERVATION_ID" | "RESOURCE_ID" | "RIGHTSIZING_TYPE" | "SAVINGS_PLANS_TYPE" | "SAVINGS_PLAN_ARN" | "PAYMENT_OPTION" | "AGREEMENT_END_DATE_TIME_AFTER" | "AGREEMENT_END_DATE_TIME_BEFORE" | "INVOICING_ENTITY" | "ANOMALY_TOTAL_IMPACT_ABSOLUTE" | "ANOMALY_TOTAL_IMPACT_PERCENTAGE")?,
604
+ values: Array[::String]?,
605
+ match_options: Array[("EQUALS" | "ABSENT" | "STARTS_WITH" | "ENDS_WITH" | "CONTAINS" | "CASE_SENSITIVE" | "CASE_INSENSITIVE" | "GREATER_THAN_OR_EQUAL")]?
606
+ }?,
607
+ tags: {
608
+ key: ::String?,
609
+ values: Array[::String]?,
610
+ match_options: Array[("EQUALS" | "ABSENT" | "STARTS_WITH" | "ENDS_WITH" | "CONTAINS" | "CASE_SENSITIVE" | "CASE_INSENSITIVE" | "GREATER_THAN_OR_EQUAL")]?
611
+ }?,
612
+ cost_categories: {
613
+ key: ::String?,
614
+ values: Array[::String]?,
615
+ match_options: Array[("EQUALS" | "ABSENT" | "STARTS_WITH" | "ENDS_WITH" | "CONTAINS" | "CASE_SENSITIVE" | "CASE_INSENSITIVE" | "GREATER_THAN_OR_EQUAL")]?
616
+ }?
617
+ },
618
+ ?group_by: Array[
619
+ {
620
+ type: ("DIMENSION" | "TAG" | "COST_CATEGORY")?,
621
+ key: ::String?
622
+ },
623
+ ],
624
+ ?max_results: ::Integer,
625
+ ?next_page_token: ::String
626
+ ) -> _GetCostComparisonDriversResponseSuccess
627
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCostComparisonDriversResponseSuccess
628
+
524
629
  interface _GetCostForecastResponseSuccess
525
630
  include ::Seahorse::Client::_ResponseSuccess[Types::GetCostForecastResponse]
526
631
  def total: () -> Types::MetricValue
data/sig/types.rbs CHANGED
@@ -94,6 +94,14 @@ module Aws::CostExplorer
94
94
  SENSITIVE: []
95
95
  end
96
96
 
97
+ class ComparisonMetricValue
98
+ attr_accessor baseline_time_period_amount: ::String
99
+ attr_accessor comparison_time_period_amount: ::String
100
+ attr_accessor difference: ::String
101
+ attr_accessor unit: ::String
102
+ SENSITIVE: []
103
+ end
104
+
97
105
  class CostAllocationTag
98
106
  attr_accessor tag_key: ::String
99
107
  attr_accessor type: ("AWSGenerated" | "UserDefined")
@@ -118,6 +126,12 @@ module Aws::CostExplorer
118
126
  SENSITIVE: []
119
127
  end
120
128
 
129
+ class CostAndUsageComparison
130
+ attr_accessor cost_and_usage_selector: Types::Expression
131
+ attr_accessor metrics: ::Hash[::String, Types::ComparisonMetricValue]
132
+ SENSITIVE: []
133
+ end
134
+
121
135
  class CostCategory
122
136
  attr_accessor cost_category_arn: ::String
123
137
  attr_accessor effective_start: ::String
@@ -184,6 +198,20 @@ module Aws::CostExplorer
184
198
  SENSITIVE: []
185
199
  end
186
200
 
201
+ class CostComparisonDriver
202
+ attr_accessor cost_selector: Types::Expression
203
+ attr_accessor metrics: ::Hash[::String, Types::ComparisonMetricValue]
204
+ attr_accessor cost_drivers: ::Array[Types::CostDriver]
205
+ SENSITIVE: []
206
+ end
207
+
208
+ class CostDriver
209
+ attr_accessor type: ::String
210
+ attr_accessor name: ::String
211
+ attr_accessor metrics: ::Hash[::String, Types::ComparisonMetricValue]
212
+ SENSITIVE: []
213
+ end
214
+
187
215
  class Coverage
188
216
  attr_accessor coverage_hours: Types::CoverageHours
189
217
  attr_accessor coverage_normalized_units: Types::CoverageNormalizedUnits
@@ -522,6 +550,25 @@ module Aws::CostExplorer
522
550
  SENSITIVE: []
523
551
  end
524
552
 
553
+ class GetCostAndUsageComparisonsRequest
554
+ attr_accessor billing_view_arn: ::String
555
+ attr_accessor baseline_time_period: Types::DateInterval
556
+ attr_accessor comparison_time_period: Types::DateInterval
557
+ attr_accessor metric_for_comparison: ::String
558
+ attr_accessor filter: Types::Expression
559
+ attr_accessor group_by: ::Array[Types::GroupDefinition]
560
+ attr_accessor max_results: ::Integer
561
+ attr_accessor next_page_token: ::String
562
+ SENSITIVE: []
563
+ end
564
+
565
+ class GetCostAndUsageComparisonsResponse
566
+ attr_accessor cost_and_usage_comparisons: ::Array[Types::CostAndUsageComparison]
567
+ attr_accessor total_cost_and_usage: ::Hash[::String, Types::ComparisonMetricValue]
568
+ attr_accessor next_page_token: ::String
569
+ SENSITIVE: []
570
+ end
571
+
525
572
  class GetCostAndUsageRequest
526
573
  attr_accessor time_period: Types::DateInterval
527
574
  attr_accessor granularity: ("DAILY" | "MONTHLY" | "HOURLY")
@@ -581,6 +628,24 @@ module Aws::CostExplorer
581
628
  SENSITIVE: []
582
629
  end
583
630
 
631
+ class GetCostComparisonDriversRequest
632
+ attr_accessor billing_view_arn: ::String
633
+ attr_accessor baseline_time_period: Types::DateInterval
634
+ attr_accessor comparison_time_period: Types::DateInterval
635
+ attr_accessor metric_for_comparison: ::String
636
+ attr_accessor filter: Types::Expression
637
+ attr_accessor group_by: ::Array[Types::GroupDefinition]
638
+ attr_accessor max_results: ::Integer
639
+ attr_accessor next_page_token: ::String
640
+ SENSITIVE: []
641
+ end
642
+
643
+ class GetCostComparisonDriversResponse
644
+ attr_accessor cost_comparison_drivers: ::Array[Types::CostComparisonDriver]
645
+ attr_accessor next_page_token: ::String
646
+ SENSITIVE: []
647
+ end
648
+
584
649
  class GetCostForecastRequest
585
650
  attr_accessor time_period: Types::DateInterval
586
651
  attr_accessor metric: ("BLENDED_COST" | "UNBLENDED_COST" | "AMORTIZED_COST" | "NET_UNBLENDED_COST" | "NET_AMORTIZED_COST" | "USAGE_QUANTITY" | "NORMALIZED_USAGE_AMOUNT")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-costexplorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.125.0
4
+ version: 1.126.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services