aws-sdk-costexplorer 1.56.0 → 1.61.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.61.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-costexplorer/customizations'
48
48
  # @!group service
49
49
  module Aws::CostExplorer
50
50
 
51
- GEM_VERSION = '1.56.0'
51
+ GEM_VERSION = '1.61.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -466,6 +466,9 @@ module Aws::CostExplorer
466
466
  #
467
467
  # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html
468
468
  #
469
+ # @option params [String] :default_value
470
+ # The default value for the cost category.
471
+ #
469
472
  # @return [Types::CreateCostCategoryDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
470
473
  #
471
474
  # * {Types::CreateCostCategoryDefinitionResponse#cost_category_arn #cost_category_arn} => String
@@ -478,8 +481,8 @@ module Aws::CostExplorer
478
481
  # rule_version: "CostCategoryExpression.v1", # required, accepts CostCategoryExpression.v1
479
482
  # rules: [ # required
480
483
  # {
481
- # value: "CostCategoryValue", # required
482
- # rule: { # required
484
+ # value: "CostCategoryValue",
485
+ # rule: {
483
486
  # or: [
484
487
  # {
485
488
  # # recursive Expression
@@ -509,8 +512,14 @@ module Aws::CostExplorer
509
512
  # match_options: ["EQUALS"], # accepts EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
510
513
  # },
511
514
  # },
515
+ # inherited_value: {
516
+ # dimension_name: "LINKED_ACCOUNT_NAME", # accepts LINKED_ACCOUNT_NAME, TAG
517
+ # dimension_key: "GenericString",
518
+ # },
519
+ # type: "REGULAR", # accepts REGULAR, INHERITED_VALUE
512
520
  # },
513
521
  # ],
522
+ # default_value: "CostCategoryValue",
514
523
  # })
515
524
  #
516
525
  # @example Response structure
@@ -659,9 +668,13 @@ module Aws::CostExplorer
659
668
  # resp.cost_category.rules[0].rule.cost_categories.values[0] #=> String
660
669
  # resp.cost_category.rules[0].rule.cost_categories.match_options #=> Array
661
670
  # resp.cost_category.rules[0].rule.cost_categories.match_options[0] #=> String, one of "EQUALS", "ABSENT", "STARTS_WITH", "ENDS_WITH", "CONTAINS", "CASE_SENSITIVE", "CASE_INSENSITIVE"
671
+ # resp.cost_category.rules[0].inherited_value.dimension_name #=> String, one of "LINKED_ACCOUNT_NAME", "TAG"
672
+ # resp.cost_category.rules[0].inherited_value.dimension_key #=> String
673
+ # resp.cost_category.rules[0].type #=> String, one of "REGULAR", "INHERITED_VALUE"
662
674
  # resp.cost_category.processing_status #=> Array
663
675
  # resp.cost_category.processing_status[0].component #=> String, one of "COST_EXPLORER"
664
676
  # resp.cost_category.processing_status[0].status #=> String, one of "PROCESSING", "APPLIED"
677
+ # resp.cost_category.default_value #=> String
665
678
  #
666
679
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/DescribeCostCategoryDefinition AWS API Documentation
667
680
  #
@@ -903,7 +916,7 @@ module Aws::CostExplorer
903
916
  # data is retrieved from `2017-01-01` up to and including `2017-04-30`
904
917
  # but not including `2017-05-01`.
905
918
  #
906
- # @option params [String] :granularity
919
+ # @option params [required, String] :granularity
907
920
  # Sets the AWS cost granularity to `MONTHLY` or `DAILY`, or `HOURLY`. If
908
921
  # `Granularity` isn't set, the response object doesn't include the
909
922
  # `Granularity`, either `MONTHLY` or `DAILY`, or `HOURLY`.
@@ -974,7 +987,7 @@ module Aws::CostExplorer
974
987
  # start: "YearMonthDay", # required
975
988
  # end: "YearMonthDay", # required
976
989
  # },
977
- # granularity: "DAILY", # accepts DAILY, MONTHLY, HOURLY
990
+ # granularity: "DAILY", # required, accepts DAILY, MONTHLY, HOURLY
978
991
  # filter: {
979
992
  # or: [
980
993
  # {
@@ -1079,7 +1092,7 @@ module Aws::CostExplorer
1079
1092
  # `2017-01-01` up to and including `2017-04-30` but not including
1080
1093
  # `2017-05-01`.
1081
1094
  #
1082
- # @option params [String] :granularity
1095
+ # @option params [required, String] :granularity
1083
1096
  # Sets the AWS cost granularity to `MONTHLY`, `DAILY`, or `HOURLY`. If
1084
1097
  # `Granularity` isn't set, the response object doesn't include the
1085
1098
  # `Granularity`, `MONTHLY`, `DAILY`, or `HOURLY`.
@@ -1147,7 +1160,7 @@ module Aws::CostExplorer
1147
1160
  # start: "YearMonthDay", # required
1148
1161
  # end: "YearMonthDay", # required
1149
1162
  # },
1150
- # granularity: "DAILY", # accepts DAILY, MONTHLY, HOURLY
1163
+ # granularity: "DAILY", # required, accepts DAILY, MONTHLY, HOURLY
1151
1164
  # filter: { # required
1152
1165
  # or: [
1153
1166
  # {
@@ -1328,6 +1341,8 @@ module Aws::CostExplorer
1328
1341
  # `MaxResults` is not specified with `SortBy`, the request will return
1329
1342
  # 1000 results as the default value for this parameter.
1330
1343
  #
1344
+ # For `GetCostCategories`, MaxResults has an upper limit of 1000.
1345
+ #
1331
1346
  # @option params [String] :next_page_token
1332
1347
  # If the number of objects that are still available for retrieval
1333
1348
  # exceeds the limit, AWS returns a NextPageToken value in the response.
@@ -1448,8 +1463,54 @@ module Aws::CostExplorer
1448
1463
  # granularities.
1449
1464
  #
1450
1465
  # @option params [Types::Expression] :filter
1451
- # The filters that you want to use to filter your forecast. Cost
1452
- # Explorer API supports all of the Cost Explorer filters.
1466
+ # The filters that you want to use to filter your forecast. The
1467
+ # `GetCostForecast` API supports filtering by the following dimensions:
1468
+ #
1469
+ # * `AZ`
1470
+ #
1471
+ # * `INSTANCE_TYPE`
1472
+ #
1473
+ # * `LINKED_ACCOUNT`
1474
+ #
1475
+ # * `LINKED_ACCOUNT_NAME`
1476
+ #
1477
+ # * `OPERATION`
1478
+ #
1479
+ # * `PURCHASE_TYPE`
1480
+ #
1481
+ # * `REGION`
1482
+ #
1483
+ # * `SERVICE`
1484
+ #
1485
+ # * `USAGE_TYPE`
1486
+ #
1487
+ # * `USAGE_TYPE_GROUP`
1488
+ #
1489
+ # * `RECORD_TYPE`
1490
+ #
1491
+ # * `OPERATING_SYSTEM`
1492
+ #
1493
+ # * `TENANCY`
1494
+ #
1495
+ # * `SCOPE`
1496
+ #
1497
+ # * `PLATFORM`
1498
+ #
1499
+ # * `SUBSCRIPTION_ID`
1500
+ #
1501
+ # * `LEGAL_ENTITY_NAME`
1502
+ #
1503
+ # * `DEPLOYMENT_OPTION`
1504
+ #
1505
+ # * `DATABASE_ENGINE`
1506
+ #
1507
+ # * `INSTANCE_TYPE_FAMILY`
1508
+ #
1509
+ # * `BILLING_ENTITY`
1510
+ #
1511
+ # * `RESERVATION_ID`
1512
+ #
1513
+ # * `SAVINGS_PLAN_ARN`
1453
1514
  #
1454
1515
  # @option params [Integer] :prediction_interval_level
1455
1516
  # Cost Explorer always returns the mean forecast as a single point. You
@@ -1739,6 +1800,8 @@ module Aws::CostExplorer
1739
1800
  # MaxResults is not specified with SortBy, the request will return 1000
1740
1801
  # results as the default value for this parameter.
1741
1802
  #
1803
+ # For `GetDimensionValues`, MaxResults has an upper limit of 1000.
1804
+ #
1742
1805
  # @option params [String] :next_page_token
1743
1806
  # The token to retrieve the next set of results. AWS provides the token
1744
1807
  # when the response from a previous call has more results than the
@@ -3015,7 +3078,7 @@ module Aws::CostExplorer
3015
3078
  # @example Request syntax with placeholder values
3016
3079
  #
3017
3080
  # resp = client.get_savings_plans_purchase_recommendation({
3018
- # savings_plans_type: "COMPUTE_SP", # required, accepts COMPUTE_SP, EC2_INSTANCE_SP
3081
+ # savings_plans_type: "COMPUTE_SP", # required, accepts COMPUTE_SP, EC2_INSTANCE_SP, SAGEMAKER_SP
3019
3082
  # term_in_years: "ONE_YEAR", # required, accepts ONE_YEAR, THREE_YEARS
3020
3083
  # payment_option: "NO_UPFRONT", # required, accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT, LIGHT_UTILIZATION, MEDIUM_UTILIZATION, HEAVY_UTILIZATION
3021
3084
  # account_scope: "PAYER", # accepts PAYER, LINKED
@@ -3060,7 +3123,7 @@ module Aws::CostExplorer
3060
3123
  # resp.metadata.generation_timestamp #=> String
3061
3124
  # resp.metadata.additional_metadata #=> String
3062
3125
  # resp.savings_plans_purchase_recommendation.account_scope #=> String, one of "PAYER", "LINKED"
3063
- # resp.savings_plans_purchase_recommendation.savings_plans_type #=> String, one of "COMPUTE_SP", "EC2_INSTANCE_SP"
3126
+ # resp.savings_plans_purchase_recommendation.savings_plans_type #=> String, one of "COMPUTE_SP", "EC2_INSTANCE_SP", "SAGEMAKER_SP"
3064
3127
  # resp.savings_plans_purchase_recommendation.term_in_years #=> String, one of "ONE_YEAR", "THREE_YEARS"
3065
3128
  # resp.savings_plans_purchase_recommendation.payment_option #=> String, one of "NO_UPFRONT", "PARTIAL_UPFRONT", "ALL_UPFRONT", "LIGHT_UTILIZATION", "MEDIUM_UTILIZATION", "HEAVY_UTILIZATION"
3066
3129
  # resp.savings_plans_purchase_recommendation.lookback_period_in_days #=> String, one of "SEVEN_DAYS", "THIRTY_DAYS", "SIXTY_DAYS"
@@ -3519,6 +3582,8 @@ module Aws::CostExplorer
3519
3582
  # MaxResults is not specified with SortBy, the request will return 1000
3520
3583
  # results as the default value for this parameter.
3521
3584
  #
3585
+ # For `GetTags`, MaxResults has an upper limit of 1000.
3586
+ #
3522
3587
  # @option params [String] :next_page_token
3523
3588
  # The token to retrieve the next set of results. AWS provides the token
3524
3589
  # when the response from a previous call has more results than the
@@ -3627,8 +3692,54 @@ module Aws::CostExplorer
3627
3692
  # granularities.
3628
3693
  #
3629
3694
  # @option params [Types::Expression] :filter
3630
- # The filters that you want to use to filter your forecast. Cost
3631
- # Explorer API supports all of the Cost Explorer filters.
3695
+ # The filters that you want to use to filter your forecast. The
3696
+ # `GetUsageForecast` API supports filtering by the following dimensions:
3697
+ #
3698
+ # * `AZ`
3699
+ #
3700
+ # * `INSTANCE_TYPE`
3701
+ #
3702
+ # * `LINKED_ACCOUNT`
3703
+ #
3704
+ # * `LINKED_ACCOUNT_NAME`
3705
+ #
3706
+ # * `OPERATION`
3707
+ #
3708
+ # * `PURCHASE_TYPE`
3709
+ #
3710
+ # * `REGION`
3711
+ #
3712
+ # * `SERVICE`
3713
+ #
3714
+ # * `USAGE_TYPE`
3715
+ #
3716
+ # * `USAGE_TYPE_GROUP`
3717
+ #
3718
+ # * `RECORD_TYPE`
3719
+ #
3720
+ # * `OPERATING_SYSTEM`
3721
+ #
3722
+ # * `TENANCY`
3723
+ #
3724
+ # * `SCOPE`
3725
+ #
3726
+ # * `PLATFORM`
3727
+ #
3728
+ # * `SUBSCRIPTION_ID`
3729
+ #
3730
+ # * `LEGAL_ENTITY_NAME`
3731
+ #
3732
+ # * `DEPLOYMENT_OPTION`
3733
+ #
3734
+ # * `DATABASE_ENGINE`
3735
+ #
3736
+ # * `INSTANCE_TYPE_FAMILY`
3737
+ #
3738
+ # * `BILLING_ENTITY`
3739
+ #
3740
+ # * `RESERVATION_ID`
3741
+ #
3742
+ # * `SAVINGS_PLAN_ARN`
3632
3743
  #
3633
3744
  # @option params [Integer] :prediction_interval_level
3634
3745
  # Cost Explorer always returns the mean forecast as a single point. You
@@ -3753,6 +3864,7 @@ module Aws::CostExplorer
3753
3864
  # resp.cost_category_references[0].processing_status[0].status #=> String, one of "PROCESSING", "APPLIED"
3754
3865
  # resp.cost_category_references[0].values #=> Array
3755
3866
  # resp.cost_category_references[0].values[0] #=> String
3867
+ # resp.cost_category_references[0].default_value #=> String
3756
3868
  # resp.next_token #=> String
3757
3869
  #
3758
3870
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostCategoryDefinitions AWS API Documentation
@@ -3904,6 +4016,9 @@ module Aws::CostExplorer
3904
4016
  #
3905
4017
  # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html
3906
4018
  #
4019
+ # @option params [String] :default_value
4020
+ # The default value for the cost category.
4021
+ #
3907
4022
  # @return [Types::UpdateCostCategoryDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3908
4023
  #
3909
4024
  # * {Types::UpdateCostCategoryDefinitionResponse#cost_category_arn #cost_category_arn} => String
@@ -3916,8 +4031,8 @@ module Aws::CostExplorer
3916
4031
  # rule_version: "CostCategoryExpression.v1", # required, accepts CostCategoryExpression.v1
3917
4032
  # rules: [ # required
3918
4033
  # {
3919
- # value: "CostCategoryValue", # required
3920
- # rule: { # required
4034
+ # value: "CostCategoryValue",
4035
+ # rule: {
3921
4036
  # or: [
3922
4037
  # {
3923
4038
  # # recursive Expression
@@ -3947,8 +4062,14 @@ module Aws::CostExplorer
3947
4062
  # match_options: ["EQUALS"], # accepts EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
3948
4063
  # },
3949
4064
  # },
4065
+ # inherited_value: {
4066
+ # dimension_name: "LINKED_ACCOUNT_NAME", # accepts LINKED_ACCOUNT_NAME, TAG
4067
+ # dimension_key: "GenericString",
4068
+ # },
4069
+ # type: "REGULAR", # accepts REGULAR, INHERITED_VALUE
3950
4070
  # },
3951
4071
  # ],
4072
+ # default_value: "CostCategoryValue",
3952
4073
  # })
3953
4074
  #
3954
4075
  # @example Response structure
@@ -3978,7 +4099,7 @@ module Aws::CostExplorer
3978
4099
  params: params,
3979
4100
  config: config)
3980
4101
  context[:gem_name] = 'aws-sdk-costexplorer'
3981
- context[:gem_version] = '1.56.0'
4102
+ context[:gem_version] = '1.61.0'
3982
4103
  Seahorse::Client::Request.new(handlers, context)
3983
4104
  end
3984
4105
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -33,6 +33,8 @@ module Aws::CostExplorer
33
33
  BillExpirationException = Shapes::StructureShape.new(name: 'BillExpirationException')
34
34
  Context = Shapes::StringShape.new(name: 'Context')
35
35
  CostCategory = Shapes::StructureShape.new(name: 'CostCategory')
36
+ CostCategoryInheritedValueDimension = Shapes::StructureShape.new(name: 'CostCategoryInheritedValueDimension')
37
+ CostCategoryInheritedValueDimensionName = Shapes::StringShape.new(name: 'CostCategoryInheritedValueDimensionName')
36
38
  CostCategoryMaxResults = Shapes::IntegerShape.new(name: 'CostCategoryMaxResults')
37
39
  CostCategoryName = Shapes::StringShape.new(name: 'CostCategoryName')
38
40
  CostCategoryNamesList = Shapes::ListShape.new(name: 'CostCategoryNamesList')
@@ -41,6 +43,7 @@ module Aws::CostExplorer
41
43
  CostCategoryReference = Shapes::StructureShape.new(name: 'CostCategoryReference')
42
44
  CostCategoryReferencesList = Shapes::ListShape.new(name: 'CostCategoryReferencesList')
43
45
  CostCategoryRule = Shapes::StructureShape.new(name: 'CostCategoryRule')
46
+ CostCategoryRuleType = Shapes::StringShape.new(name: 'CostCategoryRuleType')
44
47
  CostCategoryRuleVersion = Shapes::StringShape.new(name: 'CostCategoryRuleVersion')
45
48
  CostCategoryRulesList = Shapes::ListShape.new(name: 'CostCategoryRulesList')
46
49
  CostCategoryStatus = Shapes::StringShape.new(name: 'CostCategoryStatus')
@@ -338,8 +341,13 @@ module Aws::CostExplorer
338
341
  CostCategory.add_member(:rule_version, Shapes::ShapeRef.new(shape: CostCategoryRuleVersion, required: true, location_name: "RuleVersion"))
339
342
  CostCategory.add_member(:rules, Shapes::ShapeRef.new(shape: CostCategoryRulesList, required: true, location_name: "Rules"))
340
343
  CostCategory.add_member(:processing_status, Shapes::ShapeRef.new(shape: CostCategoryProcessingStatusList, location_name: "ProcessingStatus"))
344
+ CostCategory.add_member(:default_value, Shapes::ShapeRef.new(shape: CostCategoryValue, location_name: "DefaultValue"))
341
345
  CostCategory.struct_class = Types::CostCategory
342
346
 
347
+ CostCategoryInheritedValueDimension.add_member(:dimension_name, Shapes::ShapeRef.new(shape: CostCategoryInheritedValueDimensionName, location_name: "DimensionName"))
348
+ CostCategoryInheritedValueDimension.add_member(:dimension_key, Shapes::ShapeRef.new(shape: GenericString, location_name: "DimensionKey"))
349
+ CostCategoryInheritedValueDimension.struct_class = Types::CostCategoryInheritedValueDimension
350
+
343
351
  CostCategoryNamesList.member = Shapes::ShapeRef.new(shape: CostCategoryName)
344
352
 
345
353
  CostCategoryProcessingStatus.add_member(:component, Shapes::ShapeRef.new(shape: CostCategoryStatusComponent, location_name: "Component"))
@@ -355,12 +363,15 @@ module Aws::CostExplorer
355
363
  CostCategoryReference.add_member(:number_of_rules, Shapes::ShapeRef.new(shape: NonNegativeInteger, location_name: "NumberOfRules"))
356
364
  CostCategoryReference.add_member(:processing_status, Shapes::ShapeRef.new(shape: CostCategoryProcessingStatusList, location_name: "ProcessingStatus"))
357
365
  CostCategoryReference.add_member(:values, Shapes::ShapeRef.new(shape: CostCategoryValuesList, location_name: "Values"))
366
+ CostCategoryReference.add_member(:default_value, Shapes::ShapeRef.new(shape: CostCategoryValue, location_name: "DefaultValue"))
358
367
  CostCategoryReference.struct_class = Types::CostCategoryReference
359
368
 
360
369
  CostCategoryReferencesList.member = Shapes::ShapeRef.new(shape: CostCategoryReference)
361
370
 
362
- CostCategoryRule.add_member(:value, Shapes::ShapeRef.new(shape: CostCategoryValue, required: true, location_name: "Value"))
363
- CostCategoryRule.add_member(:rule, Shapes::ShapeRef.new(shape: Expression, required: true, location_name: "Rule"))
371
+ CostCategoryRule.add_member(:value, Shapes::ShapeRef.new(shape: CostCategoryValue, location_name: "Value"))
372
+ CostCategoryRule.add_member(:rule, Shapes::ShapeRef.new(shape: Expression, location_name: "Rule"))
373
+ CostCategoryRule.add_member(:inherited_value, Shapes::ShapeRef.new(shape: CostCategoryInheritedValueDimension, location_name: "InheritedValue"))
374
+ CostCategoryRule.add_member(:type, Shapes::ShapeRef.new(shape: CostCategoryRuleType, location_name: "Type"))
364
375
  CostCategoryRule.struct_class = Types::CostCategoryRule
365
376
 
366
377
  CostCategoryRulesList.member = Shapes::ShapeRef.new(shape: CostCategoryRule)
@@ -414,6 +425,7 @@ module Aws::CostExplorer
414
425
  CreateCostCategoryDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: CostCategoryName, required: true, location_name: "Name"))
415
426
  CreateCostCategoryDefinitionRequest.add_member(:rule_version, Shapes::ShapeRef.new(shape: CostCategoryRuleVersion, required: true, location_name: "RuleVersion"))
416
427
  CreateCostCategoryDefinitionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: CostCategoryRulesList, required: true, location_name: "Rules"))
428
+ CreateCostCategoryDefinitionRequest.add_member(:default_value, Shapes::ShapeRef.new(shape: CostCategoryValue, location_name: "DefaultValue"))
417
429
  CreateCostCategoryDefinitionRequest.struct_class = Types::CreateCostCategoryDefinitionRequest
418
430
 
419
431
  CreateCostCategoryDefinitionResponse.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CostCategoryArn"))
@@ -576,7 +588,7 @@ module Aws::CostExplorer
576
588
  GetAnomalySubscriptionsResponse.struct_class = Types::GetAnomalySubscriptionsResponse
577
589
 
578
590
  GetCostAndUsageRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "TimePeriod"))
579
- GetCostAndUsageRequest.add_member(:granularity, Shapes::ShapeRef.new(shape: Granularity, location_name: "Granularity"))
591
+ GetCostAndUsageRequest.add_member(:granularity, Shapes::ShapeRef.new(shape: Granularity, required: true, location_name: "Granularity"))
580
592
  GetCostAndUsageRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter"))
581
593
  GetCostAndUsageRequest.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricNames, required: true, location_name: "Metrics"))
582
594
  GetCostAndUsageRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: GroupDefinitions, location_name: "GroupBy"))
@@ -590,7 +602,7 @@ module Aws::CostExplorer
590
602
  GetCostAndUsageResponse.struct_class = Types::GetCostAndUsageResponse
591
603
 
592
604
  GetCostAndUsageWithResourcesRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "TimePeriod"))
593
- GetCostAndUsageWithResourcesRequest.add_member(:granularity, Shapes::ShapeRef.new(shape: Granularity, location_name: "Granularity"))
605
+ GetCostAndUsageWithResourcesRequest.add_member(:granularity, Shapes::ShapeRef.new(shape: Granularity, required: true, location_name: "Granularity"))
594
606
  GetCostAndUsageWithResourcesRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, required: true, location_name: "Filter"))
595
607
  GetCostAndUsageWithResourcesRequest.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricNames, location_name: "Metrics"))
596
608
  GetCostAndUsageWithResourcesRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: GroupDefinitions, location_name: "GroupBy"))
@@ -1176,6 +1188,7 @@ module Aws::CostExplorer
1176
1188
  UpdateCostCategoryDefinitionRequest.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CostCategoryArn"))
1177
1189
  UpdateCostCategoryDefinitionRequest.add_member(:rule_version, Shapes::ShapeRef.new(shape: CostCategoryRuleVersion, required: true, location_name: "RuleVersion"))
1178
1190
  UpdateCostCategoryDefinitionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: CostCategoryRulesList, required: true, location_name: "Rules"))
1191
+ UpdateCostCategoryDefinitionRequest.add_member(:default_value, Shapes::ShapeRef.new(shape: CostCategoryValue, location_name: "DefaultValue"))
1179
1192
  UpdateCostCategoryDefinitionRequest.struct_class = Types::UpdateCostCategoryDefinitionRequest
1180
1193
 
1181
1194
  UpdateCostCategoryDefinitionResponse.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CostCategoryArn"))
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -380,6 +380,10 @@ module Aws::CostExplorer
380
380
  # specific cost category.
381
381
  # @return [Array<Types::CostCategoryProcessingStatus>]
382
382
  #
383
+ # @!attribute [rw] default_value
384
+ # The default value for the cost category.
385
+ # @return [String]
386
+ #
383
387
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/CostCategory AWS API Documentation
384
388
  #
385
389
  class CostCategory < Struct.new(
@@ -389,7 +393,46 @@ module Aws::CostExplorer
389
393
  :name,
390
394
  :rule_version,
391
395
  :rules,
392
- :processing_status)
396
+ :processing_status,
397
+ :default_value)
398
+ SENSITIVE = []
399
+ include Aws::Structure
400
+ end
401
+
402
+ # When creating or updating a cost category, you can define the
403
+ # `CostCategoryRule` rule type as `INHERITED_VALUE`. This rule type adds
404
+ # the flexibility of defining a rule that dynamically inherits the cost
405
+ # category value from the dimension value defined by
406
+ # `CostCategoryInheritedValueDimension`. For example, if you wanted to
407
+ # dynamically group costs based on the value of a specific tag key, you
408
+ # would first choose an inherited value rule type, then choose the tag
409
+ # dimension and specify the tag key to use.
410
+ #
411
+ # @note When making an API call, you may pass CostCategoryInheritedValueDimension
412
+ # data as a hash:
413
+ #
414
+ # {
415
+ # dimension_name: "LINKED_ACCOUNT_NAME", # accepts LINKED_ACCOUNT_NAME, TAG
416
+ # dimension_key: "GenericString",
417
+ # }
418
+ #
419
+ # @!attribute [rw] dimension_name
420
+ # The name of dimension for which to group costs.
421
+ #
422
+ # If you specify `LINKED_ACCOUNT_NAME`, the cost category value will
423
+ # be based on account name. If you specify `TAG`, the cost category
424
+ # value will be based on the value of the specified tag key.
425
+ # @return [String]
426
+ #
427
+ # @!attribute [rw] dimension_key
428
+ # The key to extract cost category values.
429
+ # @return [String]
430
+ #
431
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/CostCategoryInheritedValueDimension AWS API Documentation
432
+ #
433
+ class CostCategoryInheritedValueDimension < Struct.new(
434
+ :dimension_name,
435
+ :dimension_key)
393
436
  SENSITIVE = []
394
437
  include Aws::Structure
395
438
  end
@@ -449,6 +492,10 @@ module Aws::CostExplorer
449
492
  # A list of unique cost category values in a specific cost category.
450
493
  # @return [Array<String>]
451
494
  #
495
+ # @!attribute [rw] default_value
496
+ # The default value for the cost category.
497
+ # @return [String]
498
+ #
452
499
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/CostCategoryReference AWS API Documentation
453
500
  #
454
501
  class CostCategoryReference < Struct.new(
@@ -458,7 +505,8 @@ module Aws::CostExplorer
458
505
  :effective_end,
459
506
  :number_of_rules,
460
507
  :processing_status,
461
- :values)
508
+ :values,
509
+ :default_value)
462
510
  SENSITIVE = []
463
511
  include Aws::Structure
464
512
  end
@@ -471,8 +519,8 @@ module Aws::CostExplorer
471
519
  # data as a hash:
472
520
  #
473
521
  # {
474
- # value: "CostCategoryValue", # required
475
- # rule: { # required
522
+ # value: "CostCategoryValue",
523
+ # rule: {
476
524
  # or: [
477
525
  # {
478
526
  # # recursive Expression
@@ -502,11 +550,15 @@ module Aws::CostExplorer
502
550
  # match_options: ["EQUALS"], # accepts EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
503
551
  # },
504
552
  # },
553
+ # inherited_value: {
554
+ # dimension_name: "LINKED_ACCOUNT_NAME", # accepts LINKED_ACCOUNT_NAME, TAG
555
+ # dimension_key: "GenericString",
556
+ # },
557
+ # type: "REGULAR", # accepts REGULAR, INHERITED_VALUE
505
558
  # }
506
559
  #
507
560
  # @!attribute [rw] value
508
- # The value a line item will be categorized as, if it matches the
509
- # rule.
561
+ # The default value for the cost category.
510
562
  # @return [String]
511
563
  #
512
564
  # @!attribute [rw] rule
@@ -530,11 +582,29 @@ module Aws::CostExplorer
530
582
  # [2]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-cost-categories.html#cost-categories-terms
531
583
  # @return [Types::Expression]
532
584
  #
585
+ # @!attribute [rw] inherited_value
586
+ # The value the line item will be categorized as, if the line item
587
+ # contains the matched dimension.
588
+ # @return [Types::CostCategoryInheritedValueDimension]
589
+ #
590
+ # @!attribute [rw] type
591
+ # You can define the `CostCategoryRule` rule type as either `REGULAR`
592
+ # or `INHERITED_VALUE`. The `INHERITED_VALUE` rule type adds the
593
+ # flexibility of defining a rule that dynamically inherits the cost
594
+ # category value from the dimension value defined by
595
+ # `CostCategoryInheritedValueDimension`. For example, if you wanted to
596
+ # dynamically group costs based on the value of a specific tag key,
597
+ # you would first choose an inherited value rule type, then choose the
598
+ # tag dimension and specify the tag key to use.
599
+ # @return [String]
600
+ #
533
601
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/CostCategoryRule AWS API Documentation
534
602
  #
535
603
  class CostCategoryRule < Struct.new(
536
604
  :value,
537
- :rule)
605
+ :rule,
606
+ :inherited_value,
607
+ :type)
538
608
  SENSITIVE = []
539
609
  include Aws::Structure
540
610
  end
@@ -848,8 +918,8 @@ module Aws::CostExplorer
848
918
  # rule_version: "CostCategoryExpression.v1", # required, accepts CostCategoryExpression.v1
849
919
  # rules: [ # required
850
920
  # {
851
- # value: "CostCategoryValue", # required
852
- # rule: { # required
921
+ # value: "CostCategoryValue",
922
+ # rule: {
853
923
  # or: [
854
924
  # {
855
925
  # # recursive Expression
@@ -879,8 +949,14 @@ module Aws::CostExplorer
879
949
  # match_options: ["EQUALS"], # accepts EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
880
950
  # },
881
951
  # },
952
+ # inherited_value: {
953
+ # dimension_name: "LINKED_ACCOUNT_NAME", # accepts LINKED_ACCOUNT_NAME, TAG
954
+ # dimension_key: "GenericString",
955
+ # },
956
+ # type: "REGULAR", # accepts REGULAR, INHERITED_VALUE
882
957
  # },
883
958
  # ],
959
+ # default_value: "CostCategoryValue",
884
960
  # }
885
961
  #
886
962
  # @!attribute [rw] name
@@ -900,12 +976,17 @@ module Aws::CostExplorer
900
976
  # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html
901
977
  # @return [Array<Types::CostCategoryRule>]
902
978
  #
979
+ # @!attribute [rw] default_value
980
+ # The default value for the cost category.
981
+ # @return [String]
982
+ #
903
983
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/CreateCostCategoryDefinitionRequest AWS API Documentation
904
984
  #
905
985
  class CreateCostCategoryDefinitionRequest < Struct.new(
906
986
  :name,
907
987
  :rule_version,
908
- :rules)
988
+ :rules,
989
+ :default_value)
909
990
  SENSITIVE = []
910
991
  include Aws::Structure
911
992
  end
@@ -1923,7 +2004,7 @@ module Aws::CostExplorer
1923
2004
  # start: "YearMonthDay", # required
1924
2005
  # end: "YearMonthDay", # required
1925
2006
  # },
1926
- # granularity: "DAILY", # accepts DAILY, MONTHLY, HOURLY
2007
+ # granularity: "DAILY", # required, accepts DAILY, MONTHLY, HOURLY
1927
2008
  # filter: {
1928
2009
  # or: [
1929
2010
  # {
@@ -2087,7 +2168,7 @@ module Aws::CostExplorer
2087
2168
  # start: "YearMonthDay", # required
2088
2169
  # end: "YearMonthDay", # required
2089
2170
  # },
2090
- # granularity: "DAILY", # accepts DAILY, MONTHLY, HOURLY
2171
+ # granularity: "DAILY", # required, accepts DAILY, MONTHLY, HOURLY
2091
2172
  # filter: { # required
2092
2173
  # or: [
2093
2174
  # {
@@ -2398,6 +2479,8 @@ module Aws::CostExplorer
2398
2479
  # The maximum number of objects that to be returned for this request.
2399
2480
  # If `MaxResults` is not specified with `SortBy`, the request will
2400
2481
  # return 1000 results as the default value for this parameter.
2482
+ #
2483
+ # For `GetCostCategories`, MaxResults has an upper limit of 1000.
2401
2484
  # @return [Integer]
2402
2485
  #
2403
2486
  # @!attribute [rw] next_page_token
@@ -2539,8 +2622,55 @@ module Aws::CostExplorer
2539
2622
  # @return [String]
2540
2623
  #
2541
2624
  # @!attribute [rw] filter
2542
- # The filters that you want to use to filter your forecast. Cost
2543
- # Explorer API supports all of the Cost Explorer filters.
2625
+ # The filters that you want to use to filter your forecast. The
2626
+ # `GetCostForecast` API supports filtering by the following
2627
+ # dimensions:
2628
+ #
2629
+ # * `AZ`
2630
+ #
2631
+ # * `INSTANCE_TYPE`
2632
+ #
2633
+ # * `LINKED_ACCOUNT`
2634
+ #
2635
+ # * `LINKED_ACCOUNT_NAME`
2636
+ #
2637
+ # * `OPERATION`
2638
+ #
2639
+ # * `PURCHASE_TYPE`
2640
+ #
2641
+ # * `REGION`
2642
+ #
2643
+ # * `SERVICE`
2644
+ #
2645
+ # * `USAGE_TYPE`
2646
+ #
2647
+ # * `USAGE_TYPE_GROUP`
2648
+ #
2649
+ # * `RECORD_TYPE`
2650
+ #
2651
+ # * `OPERATING_SYSTEM`
2652
+ #
2653
+ # * `TENANCY`
2654
+ #
2655
+ # * `SCOPE`
2656
+ #
2657
+ # * `PLATFORM`
2658
+ #
2659
+ # * `SUBSCRIPTION_ID`
2660
+ #
2661
+ # * `LEGAL_ENTITY_NAME`
2662
+ #
2663
+ # * `DEPLOYMENT_OPTION`
2664
+ #
2665
+ # * `DATABASE_ENGINE`
2666
+ #
2667
+ # * `INSTANCE_TYPE_FAMILY`
2668
+ #
2669
+ # * `BILLING_ENTITY`
2670
+ #
2671
+ # * `RESERVATION_ID`
2672
+ #
2673
+ # * `SAVINGS_PLAN_ARN`
2544
2674
  # @return [Types::Expression]
2545
2675
  #
2546
2676
  # @!attribute [rw] prediction_interval_level
@@ -2851,6 +2981,8 @@ module Aws::CostExplorer
2851
2981
  # maximum number of objects that to be returned for this request. If
2852
2982
  # MaxResults is not specified with SortBy, the request will return
2853
2983
  # 1000 results as the default value for this parameter.
2984
+ #
2985
+ # For `GetDimensionValues`, MaxResults has an upper limit of 1000.
2854
2986
  # @return [Integer]
2855
2987
  #
2856
2988
  # @!attribute [rw] next_page_token
@@ -3975,7 +4107,7 @@ module Aws::CostExplorer
3975
4107
  # data as a hash:
3976
4108
  #
3977
4109
  # {
3978
- # savings_plans_type: "COMPUTE_SP", # required, accepts COMPUTE_SP, EC2_INSTANCE_SP
4110
+ # savings_plans_type: "COMPUTE_SP", # required, accepts COMPUTE_SP, EC2_INSTANCE_SP, SAGEMAKER_SP
3979
4111
  # term_in_years: "ONE_YEAR", # required, accepts ONE_YEAR, THREE_YEARS
3980
4112
  # payment_option: "NO_UPFRONT", # required, accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT, LIGHT_UTILIZATION, MEDIUM_UTILIZATION, HEAVY_UTILIZATION
3981
4113
  # account_scope: "PAYER", # accepts PAYER, LINKED
@@ -4547,6 +4679,8 @@ module Aws::CostExplorer
4547
4679
  # maximum number of objects that to be returned for this request. If
4548
4680
  # MaxResults is not specified with SortBy, the request will return
4549
4681
  # 1000 results as the default value for this parameter.
4682
+ #
4683
+ # For `GetTags`, MaxResults has an upper limit of 1000.
4550
4684
  # @return [Integer]
4551
4685
  #
4552
4686
  # @!attribute [rw] next_page_token
@@ -4670,8 +4804,55 @@ module Aws::CostExplorer
4670
4804
  # @return [String]
4671
4805
  #
4672
4806
  # @!attribute [rw] filter
4673
- # The filters that you want to use to filter your forecast. Cost
4674
- # Explorer API supports all of the Cost Explorer filters.
4807
+ # The filters that you want to use to filter your forecast. The
4808
+ # `GetUsageForecast` API supports filtering by the following
4809
+ # dimensions:
4810
+ #
4811
+ # * `AZ`
4812
+ #
4813
+ # * `INSTANCE_TYPE`
4814
+ #
4815
+ # * `LINKED_ACCOUNT`
4816
+ #
4817
+ # * `LINKED_ACCOUNT_NAME`
4818
+ #
4819
+ # * `OPERATION`
4820
+ #
4821
+ # * `PURCHASE_TYPE`
4822
+ #
4823
+ # * `REGION`
4824
+ #
4825
+ # * `SERVICE`
4826
+ #
4827
+ # * `USAGE_TYPE`
4828
+ #
4829
+ # * `USAGE_TYPE_GROUP`
4830
+ #
4831
+ # * `RECORD_TYPE`
4832
+ #
4833
+ # * `OPERATING_SYSTEM`
4834
+ #
4835
+ # * `TENANCY`
4836
+ #
4837
+ # * `SCOPE`
4838
+ #
4839
+ # * `PLATFORM`
4840
+ #
4841
+ # * `SUBSCRIPTION_ID`
4842
+ #
4843
+ # * `LEGAL_ENTITY_NAME`
4844
+ #
4845
+ # * `DEPLOYMENT_OPTION`
4846
+ #
4847
+ # * `DATABASE_ENGINE`
4848
+ #
4849
+ # * `INSTANCE_TYPE_FAMILY`
4850
+ #
4851
+ # * `BILLING_ENTITY`
4852
+ #
4853
+ # * `RESERVATION_ID`
4854
+ #
4855
+ # * `SAVINGS_PLAN_ARN`
4675
4856
  # @return [Types::Expression]
4676
4857
  #
4677
4858
  # @!attribute [rw] prediction_interval_level
@@ -6599,8 +6780,8 @@ module Aws::CostExplorer
6599
6780
  # rule_version: "CostCategoryExpression.v1", # required, accepts CostCategoryExpression.v1
6600
6781
  # rules: [ # required
6601
6782
  # {
6602
- # value: "CostCategoryValue", # required
6603
- # rule: { # required
6783
+ # value: "CostCategoryValue",
6784
+ # rule: {
6604
6785
  # or: [
6605
6786
  # {
6606
6787
  # # recursive Expression
@@ -6630,8 +6811,14 @@ module Aws::CostExplorer
6630
6811
  # match_options: ["EQUALS"], # accepts EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
6631
6812
  # },
6632
6813
  # },
6814
+ # inherited_value: {
6815
+ # dimension_name: "LINKED_ACCOUNT_NAME", # accepts LINKED_ACCOUNT_NAME, TAG
6816
+ # dimension_key: "GenericString",
6817
+ # },
6818
+ # type: "REGULAR", # accepts REGULAR, INHERITED_VALUE
6633
6819
  # },
6634
6820
  # ],
6821
+ # default_value: "CostCategoryValue",
6635
6822
  # }
6636
6823
  #
6637
6824
  # @!attribute [rw] cost_category_arn
@@ -6651,12 +6838,17 @@ module Aws::CostExplorer
6651
6838
  # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html
6652
6839
  # @return [Array<Types::CostCategoryRule>]
6653
6840
  #
6841
+ # @!attribute [rw] default_value
6842
+ # The default value for the cost category.
6843
+ # @return [String]
6844
+ #
6654
6845
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/UpdateCostCategoryDefinitionRequest AWS API Documentation
6655
6846
  #
6656
6847
  class UpdateCostCategoryDefinitionRequest < Struct.new(
6657
6848
  :cost_category_arn,
6658
6849
  :rule_version,
6659
- :rules)
6850
+ :rules,
6851
+ :default_value)
6660
6852
  SENSITIVE = []
6661
6853
  include Aws::Structure
6662
6854
  end