aws-sdk-costexplorer 1.76.0 → 1.77.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-costexplorer/client.rb +237 -131
- data/lib/aws-sdk-costexplorer/client_api.rb +78 -0
- data/lib/aws-sdk-costexplorer/types.rb +380 -175
- data/lib/aws-sdk-costexplorer.rb +1 -1
- metadata +2 -2
@@ -370,7 +370,7 @@ module Aws::CostExplorer
|
|
370
370
|
# @option params [Array<Types::ResourceTag>] :resource_tags
|
371
371
|
# An optional list of tags to associate with the specified [
|
372
372
|
# `AnomalyMonitor` ][1]. You can use resource tags to control access to
|
373
|
-
# your monitor using IAM policies.
|
373
|
+
# your `monitor` using IAM policies.
|
374
374
|
#
|
375
375
|
# Each tag consists of a key and a value, and each key must be unique
|
376
376
|
# for the resource. The following restrictions apply to resource tags:
|
@@ -383,8 +383,8 @@ module Aws::CostExplorer
|
|
383
383
|
#
|
384
384
|
# * The maximum length of a value is 256 characters
|
385
385
|
#
|
386
|
-
# *
|
387
|
-
# `_
|
386
|
+
# * Keys and values can only contain alphanumeric characters, spaces,
|
387
|
+
# and any of the following: `_.:/=+@-`
|
388
388
|
#
|
389
389
|
# * Keys and values are case sensitive
|
390
390
|
#
|
@@ -489,8 +489,8 @@ module Aws::CostExplorer
|
|
489
489
|
#
|
490
490
|
# * The maximum length of a value is 256 characters
|
491
491
|
#
|
492
|
-
# *
|
493
|
-
# `_
|
492
|
+
# * Keys and values can only contain alphanumeric characters, spaces,
|
493
|
+
# and any of the following: `_.:/=+@-`
|
494
494
|
#
|
495
495
|
# * Keys and values are case sensitive
|
496
496
|
#
|
@@ -585,8 +585,8 @@ module Aws::CostExplorer
|
|
585
585
|
#
|
586
586
|
# * The maximum length of a value is 256 characters
|
587
587
|
#
|
588
|
-
# *
|
589
|
-
# `_
|
588
|
+
# * Keys and values can only contain alphanumeric characters, spaces,
|
589
|
+
# and any of the following: `_.:/=+@-`
|
590
590
|
#
|
591
591
|
# * Keys and values are case sensitive
|
592
592
|
#
|
@@ -762,12 +762,12 @@ module Aws::CostExplorer
|
|
762
762
|
req.send_request(options)
|
763
763
|
end
|
764
764
|
|
765
|
-
# Returns the name, ARN, rules, definition, and
|
766
|
-
# Cost Category that's defined in the account.
|
765
|
+
# Returns the name, Amazon Resource Name (ARN), rules, definition, and
|
766
|
+
# effective dates of a Cost Category that's defined in the account.
|
767
767
|
#
|
768
768
|
# You have the option to use `EffectiveOn` to return a Cost Category
|
769
|
-
# that
|
770
|
-
# specified, you
|
769
|
+
# that's active on a specific date. If there's no `EffectiveOn`
|
770
|
+
# specified, you see a Cost Category that's effective on the current
|
771
771
|
# date. If Cost Category is still effective, `EffectiveEnd` is omitted
|
772
772
|
# in the response.
|
773
773
|
#
|
@@ -1239,7 +1239,7 @@ module Aws::CostExplorer
|
|
1239
1239
|
# Elastic Compute Cloud – Compute service only.
|
1240
1240
|
#
|
1241
1241
|
# <note markdown="1"> This is an opt-in only feature. You can enable this feature from the
|
1242
|
-
# Cost Explorer Settings page. For information
|
1242
|
+
# Cost Explorer Settings page. For information about how to access the
|
1243
1243
|
# Settings page, see [Controlling Access for Cost Explorer][2] in the
|
1244
1244
|
# *Billing and Cost Management User Guide*.
|
1245
1245
|
#
|
@@ -1299,8 +1299,8 @@ module Aws::CostExplorer
|
|
1299
1299
|
# usage numbers without taking the units into account. For example, if
|
1300
1300
|
# you aggregate `usageQuantity` across all of Amazon EC2, the results
|
1301
1301
|
# aren't meaningful because Amazon EC2 compute hours and data transfer
|
1302
|
-
# are measured in different units (for example,
|
1303
|
-
#
|
1302
|
+
# are measured in different units (for example, hour or GB). To get more
|
1303
|
+
# meaningful `UsageQuantity` metrics, filter by `UsageType` or
|
1304
1304
|
# `UsageTypeGroups`.
|
1305
1305
|
#
|
1306
1306
|
# </note>
|
@@ -1418,11 +1418,10 @@ module Aws::CostExplorer
|
|
1418
1418
|
# @option params [String] :search_string
|
1419
1419
|
# The value that you want to search the filter values for.
|
1420
1420
|
#
|
1421
|
-
# If you
|
1422
|
-
#
|
1423
|
-
#
|
1424
|
-
#
|
1425
|
-
# pattern.
|
1421
|
+
# If you don't specify a `CostCategoryName`, `SearchString` is used to
|
1422
|
+
# filter Cost Category names that match the `SearchString` pattern. If
|
1423
|
+
# you specify a `CostCategoryName`, `SearchString` is used to filter
|
1424
|
+
# Cost Category values that match the `SearchString` pattern.
|
1426
1425
|
#
|
1427
1426
|
# @option params [required, Types::DateInterval] :time_period
|
1428
1427
|
# The time period of the request.
|
@@ -1484,10 +1483,10 @@ module Aws::CostExplorer
|
|
1484
1483
|
# </note>
|
1485
1484
|
#
|
1486
1485
|
# @option params [Array<Types::SortDefinition>] :sort_by
|
1487
|
-
# The value
|
1486
|
+
# The value that you sort the data by.
|
1488
1487
|
#
|
1489
|
-
# The key represents cost and usage metrics. The following values
|
1490
|
-
# supported:
|
1488
|
+
# The key represents the cost and usage metrics. The following values
|
1489
|
+
# are supported:
|
1491
1490
|
#
|
1492
1491
|
# * `BlendedCost`
|
1493
1492
|
#
|
@@ -1503,25 +1502,27 @@ module Aws::CostExplorer
|
|
1503
1502
|
#
|
1504
1503
|
# * `NormalizedUsageAmount`
|
1505
1504
|
#
|
1506
|
-
#
|
1505
|
+
# The supported key values for the `SortOrder` value are `ASCENDING` and
|
1506
|
+
# `DESCENDING`.
|
1507
1507
|
#
|
1508
|
-
# When
|
1509
|
-
# supported.
|
1508
|
+
# When you use the `SortBy` value, the `NextPageToken` and
|
1509
|
+
# `SearchString` key values aren't supported.
|
1510
1510
|
#
|
1511
1511
|
# @option params [Integer] :max_results
|
1512
|
-
# This field is only used when `SortBy` is provided in the
|
1512
|
+
# This field is only used when the `SortBy` value is provided in the
|
1513
|
+
# request.
|
1513
1514
|
#
|
1514
|
-
# The maximum number of objects that
|
1515
|
-
# `MaxResults`
|
1516
|
-
# 1000 results as the default value for this parameter.
|
1515
|
+
# The maximum number of objects that are returned for this request. If
|
1516
|
+
# `MaxResults` isn't specified with the `SortBy` value, the request
|
1517
|
+
# returns 1000 results as the default value for this parameter.
|
1517
1518
|
#
|
1518
|
-
# For `GetCostCategories`, MaxResults has an upper
|
1519
|
+
# For `GetCostCategories`, MaxResults has an upper quota of 1000.
|
1519
1520
|
#
|
1520
1521
|
# @option params [String] :next_page_token
|
1521
1522
|
# If the number of objects that are still available for retrieval
|
1522
|
-
# exceeds the
|
1523
|
+
# exceeds the quota, Amazon Web Services returns a NextPageToken value
|
1523
1524
|
# in the response. To retrieve the next batch of objects, provide the
|
1524
|
-
# NextPageToken from the
|
1525
|
+
# NextPageToken from the previous call in your next request.
|
1525
1526
|
#
|
1526
1527
|
# @return [Types::GetCostCategoriesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1527
1528
|
#
|
@@ -1797,15 +1798,14 @@ module Aws::CostExplorer
|
|
1797
1798
|
# is with. Possible values are the following:
|
1798
1799
|
#
|
1799
1800
|
# \- Amazon Web Services(Amazon Web Services): The entity that sells
|
1800
|
-
# Amazon Web Services
|
1801
|
+
# Amazon Web Services.
|
1801
1802
|
#
|
1802
1803
|
# \- AISPL (Amazon Internet Services Pvt. Ltd.): The local Indian
|
1803
|
-
# entity that
|
1804
|
-
# in India.
|
1804
|
+
# entity that's an acting reseller for Amazon Web Services in India.
|
1805
1805
|
#
|
1806
1806
|
# \- Amazon Web Services Marketplace: The entity that supports the sale
|
1807
|
-
# of solutions built on Amazon Web Services by third-party
|
1808
|
-
# providers.
|
1807
|
+
# of solutions that are built on Amazon Web Services by third-party
|
1808
|
+
# software providers.
|
1809
1809
|
#
|
1810
1810
|
# * CACHE\_ENGINE - The Amazon ElastiCache operating system. Examples
|
1811
1811
|
# are Windows or Linux.
|
@@ -1820,12 +1820,12 @@ module Aws::CostExplorer
|
|
1820
1820
|
# `m4.xlarge`.
|
1821
1821
|
#
|
1822
1822
|
# * INSTANCE\_TYPE\_FAMILY - A family of instance types optimized to fit
|
1823
|
-
# different use cases. Examples are `Compute Optimized` (
|
1824
|
-
# `C6g`, `C7g`
|
1825
|
-
#
|
1823
|
+
# different use cases. Examples are `Compute Optimized` (for example,
|
1824
|
+
# `C4`, `C5`, `C6g`, and `C7g`), `Memory Optimization` (for example,
|
1825
|
+
# `R4`, `R5n`, `R5b`, and `R6g`).
|
1826
1826
|
#
|
1827
|
-
# * INVOICING\_ENTITY - The name of the entity
|
1828
|
-
# Services invoice.
|
1827
|
+
# * INVOICING\_ENTITY - The name of the entity that issues the Amazon
|
1828
|
+
# Web Services invoice.
|
1829
1829
|
#
|
1830
1830
|
# * LEGAL\_ENTITY\_NAME - The name of the organization that sells you
|
1831
1831
|
# Amazon Web Services services, such as Amazon Web Services.
|
@@ -1843,9 +1843,9 @@ module Aws::CostExplorer
|
|
1843
1843
|
# * PLATFORM - The Amazon EC2 operating system. Examples are Windows or
|
1844
1844
|
# Linux.
|
1845
1845
|
#
|
1846
|
-
# * PURCHASE\_TYPE - The reservation type of the purchase
|
1847
|
-
# usage is related. Examples include On-Demand Instances and
|
1848
|
-
# Reserved Instances.
|
1846
|
+
# * PURCHASE\_TYPE - The reservation type of the purchase that this
|
1847
|
+
# usage is related to. Examples include On-Demand Instances and
|
1848
|
+
# Standard Reserved Instances.
|
1849
1849
|
#
|
1850
1850
|
# * RESERVATION\_ID - The unique identifier for an Amazon Web Services
|
1851
1851
|
# Reservation Instance.
|
@@ -1870,8 +1870,8 @@ module Aws::CostExplorer
|
|
1870
1870
|
#
|
1871
1871
|
# * REGION - The Amazon Web Services Region.
|
1872
1872
|
#
|
1873
|
-
# * RECORD\_TYPE - The different types of charges such as
|
1874
|
-
# costs, tax refunds, and credits.
|
1873
|
+
# * RECORD\_TYPE - The different types of charges such as Reserved
|
1874
|
+
# Instance (RI) fees, usage costs, tax refunds, and credits.
|
1875
1875
|
#
|
1876
1876
|
# * RESOURCE\_ID - The unique identifier of the resource. ResourceId is
|
1877
1877
|
# an opt-in feature only available for last 14 days for EC2-Compute
|
@@ -1915,8 +1915,8 @@ module Aws::CostExplorer
|
|
1915
1915
|
# * SAVINGS\_PLANS\_TYPE - Type of Savings Plans (EC2 Instance or
|
1916
1916
|
# Compute)
|
1917
1917
|
#
|
1918
|
-
# * PAYMENT\_OPTION -
|
1919
|
-
# example, All Upfront)
|
1918
|
+
# * PAYMENT\_OPTION - The payment option for the given Savings Plans
|
1919
|
+
# (for example, All Upfront)
|
1920
1920
|
#
|
1921
1921
|
# * REGION - The Amazon Web Services Region.
|
1922
1922
|
#
|
@@ -1982,7 +1982,7 @@ module Aws::CostExplorer
|
|
1982
1982
|
# </note>
|
1983
1983
|
#
|
1984
1984
|
# @option params [Array<Types::SortDefinition>] :sort_by
|
1985
|
-
# The value
|
1985
|
+
# The value that you want to sort the data by.
|
1986
1986
|
#
|
1987
1987
|
# The key represents cost and usage metrics. The following values are
|
1988
1988
|
# supported:
|
@@ -2001,16 +2001,17 @@ module Aws::CostExplorer
|
|
2001
2001
|
#
|
2002
2002
|
# * `NormalizedUsageAmount`
|
2003
2003
|
#
|
2004
|
-
#
|
2004
|
+
# The supported values for the `SortOrder` key are `ASCENDING` or
|
2005
|
+
# `DESCENDING`.
|
2005
2006
|
#
|
2006
2007
|
# When you specify a `SortBy` paramater, the context must be
|
2007
2008
|
# `COST_AND_USAGE`. Further, when using `SortBy`, `NextPageToken` and
|
2008
|
-
# `SearchString`
|
2009
|
+
# `SearchString` aren't supported.
|
2009
2010
|
#
|
2010
2011
|
# @option params [Integer] :max_results
|
2011
2012
|
# This field is only used when SortBy is provided in the request. The
|
2012
|
-
# maximum number of objects that
|
2013
|
-
# MaxResults
|
2013
|
+
# maximum number of objects that are returned for this request. If
|
2014
|
+
# MaxResults isn't specified with SortBy, the request returns 1000
|
2014
2015
|
# results as the default value for this parameter.
|
2015
2016
|
#
|
2016
2017
|
# For `GetDimensionValues`, MaxResults has an upper limit of 1000.
|
@@ -2096,7 +2097,7 @@ module Aws::CostExplorer
|
|
2096
2097
|
req.send_request(options)
|
2097
2098
|
end
|
2098
2099
|
|
2099
|
-
# Retrieves the reservation coverage for your account
|
2100
|
+
# Retrieves the reservation coverage for your account, which you can use
|
2100
2101
|
# to see how much of your Amazon Elastic Compute Cloud, Amazon
|
2101
2102
|
# ElastiCache, Amazon Relational Database Service, or Amazon Redshift
|
2102
2103
|
# usage is covered by a reservation. An organization's management
|
@@ -2368,31 +2369,31 @@ module Aws::CostExplorer
|
|
2368
2369
|
req.send_request(options)
|
2369
2370
|
end
|
2370
2371
|
|
2371
|
-
# Gets recommendations for
|
2372
|
-
#
|
2373
|
-
#
|
2372
|
+
# Gets recommendations for reservation purchases. These recommendations
|
2373
|
+
# might help you to reduce your costs. Reservations provide a discounted
|
2374
|
+
# hourly rate (up to 75%) compared to On-Demand pricing.
|
2374
2375
|
#
|
2375
2376
|
# Amazon Web Services generates your recommendations by identifying your
|
2376
2377
|
# On-Demand usage during a specific time period and collecting your
|
2377
2378
|
# usage into categories that are eligible for a reservation. After
|
2378
2379
|
# Amazon Web Services has these categories, it simulates every
|
2379
2380
|
# combination of reservations in each category of usage to identify the
|
2380
|
-
# best number of each type of RI to purchase to
|
2381
|
-
# savings.
|
2381
|
+
# best number of each type of Reserved Instance (RI) to purchase to
|
2382
|
+
# maximize your estimated savings.
|
2382
2383
|
#
|
2383
2384
|
# For example, Amazon Web Services automatically aggregates your Amazon
|
2384
2385
|
# EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon)
|
2385
2386
|
# Region and recommends that you buy size-flexible regional reservations
|
2386
2387
|
# to apply to the c4 family usage. Amazon Web Services recommends the
|
2387
2388
|
# smallest size instance in an instance family. This makes it easier to
|
2388
|
-
# purchase a size-flexible RI. Amazon Web Services
|
2389
|
-
# number of normalized units
|
2390
|
-
# that you want. For this example, your RI
|
2391
|
-
# `c4.large` because that is the smallest size
|
2392
|
-
# instance family.
|
2389
|
+
# purchase a size-flexible Reserved Instance (RI). Amazon Web Services
|
2390
|
+
# also shows the equal number of normalized units. This way, you can
|
2391
|
+
# purchase any instance size that you want. For this example, your RI
|
2392
|
+
# recommendation is for `c4.large` because that is the smallest size
|
2393
|
+
# instance in the c4 instance family.
|
2393
2394
|
#
|
2394
2395
|
# @option params [String] :account_id
|
2395
|
-
# The account ID that
|
2396
|
+
# The account ID that's associated with the recommendation.
|
2396
2397
|
#
|
2397
2398
|
# @option params [required, String] :service
|
2398
2399
|
# The specific service that you want recommendations for.
|
@@ -2617,11 +2618,12 @@ module Aws::CostExplorer
|
|
2617
2618
|
# Currently, you can group only by `SUBSCRIPTION_ID`.
|
2618
2619
|
#
|
2619
2620
|
# @option params [required, Types::DateInterval] :time_period
|
2620
|
-
# Sets the start and end dates for retrieving
|
2621
|
-
# date is inclusive, but the end date is
|
2622
|
-
# `start` is `2017-01-01` and `end` is
|
2623
|
-
#
|
2624
|
-
# `2017-
|
2621
|
+
# Sets the start and end dates for retrieving Reserved Instance (RI)
|
2622
|
+
# utilization. The start date is inclusive, but the end date is
|
2623
|
+
# exclusive. For example, if `start` is `2017-01-01` and `end` is
|
2624
|
+
# `2017-05-01`, then the cost and usage data is retrieved from
|
2625
|
+
# `2017-01-01` up to and including `2017-04-30` but not including
|
2626
|
+
# `2017-05-01`.
|
2625
2627
|
#
|
2626
2628
|
# @option params [Array<Types::GroupDefinition>] :group_by
|
2627
2629
|
# Groups only by `SUBSCRIPTION_ID`. Metadata is included.
|
@@ -2671,7 +2673,7 @@ module Aws::CostExplorer
|
|
2671
2673
|
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html
|
2672
2674
|
#
|
2673
2675
|
# @option params [Types::SortDefinition] :sort_by
|
2674
|
-
# The value
|
2676
|
+
# The value that you want to sort the data by.
|
2675
2677
|
#
|
2676
2678
|
# The following values are supported for `Key`\:
|
2677
2679
|
#
|
@@ -2709,7 +2711,7 @@ module Aws::CostExplorer
|
|
2709
2711
|
#
|
2710
2712
|
# * `UnrealizedSavings`
|
2711
2713
|
#
|
2712
|
-
#
|
2714
|
+
# The supported values for `SortOrder` are `ASCENDING` and `DESCENDING`.
|
2713
2715
|
#
|
2714
2716
|
# @option params [String] :next_page_token
|
2715
2717
|
# The token to retrieve the next set of results. Amazon Web Services
|
@@ -2856,10 +2858,10 @@ module Aws::CostExplorer
|
|
2856
2858
|
# and underutilized Amazon EC2 instances.
|
2857
2859
|
#
|
2858
2860
|
# Recommendations are generated to either downsize or terminate
|
2859
|
-
# instances, along with providing savings detail and metrics. For
|
2860
|
-
#
|
2861
|
-
# Rightsizing Recommendations][1] in the *Billing and Cost
|
2862
|
-
# User Guide*.
|
2861
|
+
# instances, along with providing savings detail and metrics. For more
|
2862
|
+
# information about calculation and function, see [Optimizing Your Cost
|
2863
|
+
# with Rightsizing Recommendations][1] in the *Billing and Cost
|
2864
|
+
# Management User Guide*.
|
2863
2865
|
#
|
2864
2866
|
#
|
2865
2867
|
#
|
@@ -2919,12 +2921,12 @@ module Aws::CostExplorer
|
|
2919
2921
|
# </note>
|
2920
2922
|
#
|
2921
2923
|
# @option params [Types::RightsizingRecommendationConfiguration] :configuration
|
2922
|
-
#
|
2923
|
-
# can choose to view recommendations for instances
|
2924
|
-
# instance families or across different instance
|
2925
|
-
# choose to view your estimated savings
|
2926
|
-
# with consideration of existing Savings
|
2927
|
-
# neither.
|
2924
|
+
# You can use Configuration to customize recommendations across two
|
2925
|
+
# attributes. You can choose to view recommendations for instances
|
2926
|
+
# within the same instance families or across different instance
|
2927
|
+
# families. You can also choose to view your estimated savings that are
|
2928
|
+
# associated with recommendations with consideration of existing Savings
|
2929
|
+
# Plans or RI benefits, or neither.
|
2928
2930
|
#
|
2929
2931
|
# @option params [required, String] :service
|
2930
2932
|
# The specific service that you want recommendations for. The only valid
|
@@ -3158,7 +3160,7 @@ module Aws::CostExplorer
|
|
3158
3160
|
# with a minimum value of `1`.
|
3159
3161
|
#
|
3160
3162
|
# @option params [Types::SortDefinition] :sort_by
|
3161
|
-
# The value
|
3163
|
+
# The value that you want to sort the data by.
|
3162
3164
|
#
|
3163
3165
|
# The following values are supported for `Key`\:
|
3164
3166
|
#
|
@@ -3176,7 +3178,7 @@ module Aws::CostExplorer
|
|
3176
3178
|
#
|
3177
3179
|
# * `Service`
|
3178
3180
|
#
|
3179
|
-
#
|
3181
|
+
# The supported values for `SortOrder` are `ASCENDING` and `DESCENDING`.
|
3180
3182
|
#
|
3181
3183
|
# @return [Types::GetSavingsPlansCoverageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3182
3184
|
#
|
@@ -3264,14 +3266,14 @@ module Aws::CostExplorer
|
|
3264
3266
|
# Summary and Details.
|
3265
3267
|
#
|
3266
3268
|
# @option params [required, String] :savings_plans_type
|
3267
|
-
# The Savings Plans recommendation type requested.
|
3269
|
+
# The Savings Plans recommendation type that's requested.
|
3268
3270
|
#
|
3269
3271
|
# @option params [required, String] :term_in_years
|
3270
|
-
# The savings plan recommendation term used to generate these
|
3272
|
+
# The savings plan recommendation term that's used to generate these
|
3271
3273
|
# recommendations.
|
3272
3274
|
#
|
3273
3275
|
# @option params [required, String] :payment_option
|
3274
|
-
# The payment option used to generate these recommendations.
|
3276
|
+
# The payment option that's used to generate these recommendations.
|
3275
3277
|
#
|
3276
3278
|
# @option params [String] :account_scope
|
3277
3279
|
# The account scope that you want your recommendations for. Amazon Web
|
@@ -3290,20 +3292,20 @@ module Aws::CostExplorer
|
|
3290
3292
|
# response object.
|
3291
3293
|
#
|
3292
3294
|
# @option params [required, String] :lookback_period_in_days
|
3293
|
-
# The lookback period used to generate the recommendation.
|
3295
|
+
# The lookback period that's used to generate the recommendation.
|
3294
3296
|
#
|
3295
3297
|
# @option params [Types::Expression] :filter
|
3296
3298
|
# You can filter your recommendations by Account ID with the
|
3297
3299
|
# `LINKED_ACCOUNT` dimension. To filter your recommendations by Account
|
3298
3300
|
# ID, specify `Key` as `LINKED_ACCOUNT` and `Value` as the
|
3299
|
-
# comma-separated Acount ID(s)
|
3300
|
-
# purchase recommendations.
|
3301
|
+
# comma-separated Acount ID(s) that you want to see Savings Plans
|
3302
|
+
# purchase recommendations for.
|
3301
3303
|
#
|
3302
|
-
# For GetSavingsPlansPurchaseRecommendation, the `Filter`
|
3304
|
+
# For GetSavingsPlansPurchaseRecommendation, the `Filter` doesn't
|
3303
3305
|
# include `CostCategories` or `Tags`. It only includes `Dimensions`.
|
3304
3306
|
# With `Dimensions`, `Key` must be `LINKED_ACCOUNT` and `Value` can be a
|
3305
|
-
# single Account ID or multiple comma-separated Account IDs
|
3306
|
-
#
|
3307
|
+
# single Account ID or multiple comma-separated Account IDs that you
|
3308
|
+
# want to see Savings Plans Purchase Recommendations for. `AND` and `OR`
|
3307
3309
|
# operators are not supported.
|
3308
3310
|
#
|
3309
3311
|
# @return [Types::GetSavingsPlansPurchaseRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -3411,7 +3413,7 @@ module Aws::CostExplorer
|
|
3411
3413
|
# `GetDimensionValues` in `SAVINGS_PLANS` to determine the possible
|
3412
3414
|
# dimension values.
|
3413
3415
|
#
|
3414
|
-
# <note markdown="1"> You
|
3416
|
+
# <note markdown="1"> You can't group by any dimension values for
|
3415
3417
|
# `GetSavingsPlansUtilization`.
|
3416
3418
|
#
|
3417
3419
|
# </note>
|
@@ -3454,7 +3456,7 @@ module Aws::CostExplorer
|
|
3454
3456
|
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html
|
3455
3457
|
#
|
3456
3458
|
# @option params [Types::SortDefinition] :sort_by
|
3457
|
-
# The value
|
3459
|
+
# The value that you want to sort the data by.
|
3458
3460
|
#
|
3459
3461
|
# The following values are supported for `Key`\:
|
3460
3462
|
#
|
@@ -3468,7 +3470,7 @@ module Aws::CostExplorer
|
|
3468
3470
|
#
|
3469
3471
|
# * `NetSavings`
|
3470
3472
|
#
|
3471
|
-
#
|
3473
|
+
# The supported values for `SortOrder` are `ASCENDING` and `DESCENDING`.
|
3472
3474
|
#
|
3473
3475
|
# @return [Types::GetSavingsPlansUtilizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3474
3476
|
#
|
@@ -3607,7 +3609,7 @@ module Aws::CostExplorer
|
|
3607
3609
|
# with a minimum value of `1`.
|
3608
3610
|
#
|
3609
3611
|
# @option params [Types::SortDefinition] :sort_by
|
3610
|
-
# The value
|
3612
|
+
# The value that you want to sort the data by.
|
3611
3613
|
#
|
3612
3614
|
# The following values are supported for `Key`\:
|
3613
3615
|
#
|
@@ -3625,7 +3627,7 @@ module Aws::CostExplorer
|
|
3625
3627
|
#
|
3626
3628
|
# * `AmortizedUpfrontCommitment`
|
3627
3629
|
#
|
3628
|
-
#
|
3630
|
+
# The supported values for `SortOrder` are `ASCENDING` and `DESCENDING`.
|
3629
3631
|
#
|
3630
3632
|
# @return [Types::GetSavingsPlansUtilizationDetailsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3631
3633
|
#
|
@@ -3789,7 +3791,7 @@ module Aws::CostExplorer
|
|
3789
3791
|
# </note>
|
3790
3792
|
#
|
3791
3793
|
# @option params [Array<Types::SortDefinition>] :sort_by
|
3792
|
-
# The value
|
3794
|
+
# The value that you want to sort the data by.
|
3793
3795
|
#
|
3794
3796
|
# The key represents cost and usage metrics. The following values are
|
3795
3797
|
# supported:
|
@@ -3808,18 +3810,18 @@ module Aws::CostExplorer
|
|
3808
3810
|
#
|
3809
3811
|
# * `NormalizedUsageAmount`
|
3810
3812
|
#
|
3811
|
-
#
|
3813
|
+
# The supported values for `SortOrder` are `ASCENDING` and `DESCENDING`.
|
3812
3814
|
#
|
3813
|
-
# When
|
3815
|
+
# When you use `SortBy`, `NextPageToken` and `SearchString` aren't
|
3814
3816
|
# supported.
|
3815
3817
|
#
|
3816
3818
|
# @option params [Integer] :max_results
|
3817
3819
|
# This field is only used when SortBy is provided in the request. The
|
3818
|
-
# maximum number of objects that
|
3819
|
-
# MaxResults
|
3820
|
+
# maximum number of objects that are returned for this request. If
|
3821
|
+
# MaxResults isn't specified with SortBy, the request returns 1000
|
3820
3822
|
# results as the default value for this parameter.
|
3821
3823
|
#
|
3822
|
-
# For `GetTags`, MaxResults has an upper
|
3824
|
+
# For `GetTags`, MaxResults has an upper quota of 1000.
|
3823
3825
|
#
|
3824
3826
|
# @option params [String] :next_page_token
|
3825
3827
|
# The token to retrieve the next set of results. Amazon Web Services
|
@@ -3905,12 +3907,12 @@ module Aws::CostExplorer
|
|
3905
3907
|
#
|
3906
3908
|
# @option params [required, Types::DateInterval] :time_period
|
3907
3909
|
# The start and end dates of the period that you want to retrieve usage
|
3908
|
-
# forecast for. The start date is
|
3909
|
-
#
|
3910
|
-
# `2017-05-01`, then the cost and usage data
|
3911
|
-
# `2017-01-01` up to and including `2017-04-30` but
|
3912
|
-
# `2017-05-01`. The start date must be equal to or later
|
3913
|
-
# current date to avoid a validation error.
|
3910
|
+
# forecast for. The start date is included in the period, but the end
|
3911
|
+
# date isn't included in the period. For example, if `start` is
|
3912
|
+
# `2017-01-01` and `end` is `2017-05-01`, then the cost and usage data
|
3913
|
+
# is retrieved from `2017-01-01` up to and including `2017-04-30` but
|
3914
|
+
# not including `2017-05-01`. The start date must be equal to or later
|
3915
|
+
# than the current date to avoid a validation error.
|
3914
3916
|
#
|
3915
3917
|
# @option params [required, String] :metric
|
3916
3918
|
# Which metric Cost Explorer uses to create your forecast.
|
@@ -3979,12 +3981,12 @@ module Aws::CostExplorer
|
|
3979
3981
|
# * `SAVINGS_PLAN_ARN`
|
3980
3982
|
#
|
3981
3983
|
# @option params [Integer] :prediction_interval_level
|
3982
|
-
# Cost Explorer always returns the mean forecast as
|
3983
|
-
# can request a prediction interval around the mean
|
3984
|
-
# confidence level. The higher the confidence level, the
|
3985
|
-
# Cost Explorer is about the actual value falling in the
|
3986
|
-
# interval. Higher confidence levels result in wider
|
3987
|
-
# intervals.
|
3984
|
+
# Amazon Web Services Cost Explorer always returns the mean forecast as
|
3985
|
+
# a single point. You can request a prediction interval around the mean
|
3986
|
+
# by specifying a confidence level. The higher the confidence level, the
|
3987
|
+
# more confident Cost Explorer is about the actual value falling in the
|
3988
|
+
# prediction interval. Higher confidence levels result in wider
|
3989
|
+
# prediction intervals.
|
3988
3990
|
#
|
3989
3991
|
# @return [Types::GetUsageForecastResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3990
3992
|
#
|
@@ -4053,14 +4055,77 @@ module Aws::CostExplorer
|
|
4053
4055
|
req.send_request(options)
|
4054
4056
|
end
|
4055
4057
|
|
4056
|
-
#
|
4057
|
-
#
|
4058
|
-
#
|
4059
|
-
#
|
4060
|
-
#
|
4061
|
-
#
|
4062
|
-
#
|
4063
|
-
#
|
4058
|
+
# Get a list of cost allocation tags. All inputs in the API are optional
|
4059
|
+
# and serve as filters. By default, all cost allocation tags are
|
4060
|
+
# returned.
|
4061
|
+
#
|
4062
|
+
# @option params [String] :status
|
4063
|
+
# The status of cost allocation tag keys that are returned for this
|
4064
|
+
# request.
|
4065
|
+
#
|
4066
|
+
# @option params [Array<String>] :tag_keys
|
4067
|
+
# The list of cost allocation tag keys that are returned for this
|
4068
|
+
# request.
|
4069
|
+
#
|
4070
|
+
# @option params [String] :type
|
4071
|
+
# The type of `CostAllocationTag` object that are returned for this
|
4072
|
+
# request. The `AWSGenerated` type tags are tags that Amazon Web
|
4073
|
+
# Services defines and applies to support Amazon Web Services resources
|
4074
|
+
# for cost allocation purposes. The `UserDefined` type tags are tags
|
4075
|
+
# that you define, create, and apply to resources.
|
4076
|
+
#
|
4077
|
+
# @option params [String] :next_token
|
4078
|
+
# The token to retrieve the next set of results. Amazon Web Services
|
4079
|
+
# provides the token when the response from a previous call has more
|
4080
|
+
# results than the maximum page size.
|
4081
|
+
#
|
4082
|
+
# @option params [Integer] :max_results
|
4083
|
+
# The maximum number of objects that are returned for this request. By
|
4084
|
+
# default, the request returns 100 results.
|
4085
|
+
#
|
4086
|
+
# @return [Types::ListCostAllocationTagsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4087
|
+
#
|
4088
|
+
# * {Types::ListCostAllocationTagsResponse#cost_allocation_tags #cost_allocation_tags} => Array<Types::CostAllocationTag>
|
4089
|
+
# * {Types::ListCostAllocationTagsResponse#next_token #next_token} => String
|
4090
|
+
#
|
4091
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4092
|
+
#
|
4093
|
+
# @example Request syntax with placeholder values
|
4094
|
+
#
|
4095
|
+
# resp = client.list_cost_allocation_tags({
|
4096
|
+
# status: "Active", # accepts Active, Inactive
|
4097
|
+
# tag_keys: ["TagKey"],
|
4098
|
+
# type: "AWSGenerated", # accepts AWSGenerated, UserDefined
|
4099
|
+
# next_token: "NextPageToken",
|
4100
|
+
# max_results: 1,
|
4101
|
+
# })
|
4102
|
+
#
|
4103
|
+
# @example Response structure
|
4104
|
+
#
|
4105
|
+
# resp.cost_allocation_tags #=> Array
|
4106
|
+
# resp.cost_allocation_tags[0].tag_key #=> String
|
4107
|
+
# resp.cost_allocation_tags[0].type #=> String, one of "AWSGenerated", "UserDefined"
|
4108
|
+
# resp.cost_allocation_tags[0].status #=> String, one of "Active", "Inactive"
|
4109
|
+
# resp.next_token #=> String
|
4110
|
+
#
|
4111
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostAllocationTags AWS API Documentation
|
4112
|
+
#
|
4113
|
+
# @overload list_cost_allocation_tags(params = {})
|
4114
|
+
# @param [Hash] params ({})
|
4115
|
+
def list_cost_allocation_tags(params = {}, options = {})
|
4116
|
+
req = build_request(:list_cost_allocation_tags, params)
|
4117
|
+
req.send_request(options)
|
4118
|
+
end
|
4119
|
+
|
4120
|
+
# Returns the name, Amazon Resource Name (ARN), `NumberOfRules` and
|
4121
|
+
# effective dates of all Cost Categories defined in the account. You
|
4122
|
+
# have the option to use `EffectiveOn` to return a list of Cost
|
4123
|
+
# Categories that were active on a specific date. If there is no
|
4124
|
+
# `EffectiveOn` specified, you’ll see Cost Categories that are effective
|
4125
|
+
# on the current date. If Cost Category is still effective,
|
4126
|
+
# `EffectiveEnd` is omitted in the response.
|
4127
|
+
# `ListCostCategoryDefinitions` supports pagination. The request can
|
4128
|
+
# have a `MaxResults` range up to 100.
|
4064
4129
|
#
|
4065
4130
|
# @option params [String] :effective_on
|
4066
4131
|
# The date when the Cost Category was effective.
|
@@ -4216,8 +4281,8 @@ module Aws::CostExplorer
|
|
4216
4281
|
#
|
4217
4282
|
# * The maximum length of a value is 256 characters
|
4218
4283
|
#
|
4219
|
-
# *
|
4220
|
-
# `_
|
4284
|
+
# * Keys and values can only contain alphanumeric characters, spaces,
|
4285
|
+
# and any of the following: `_.:/=+@-`
|
4221
4286
|
#
|
4222
4287
|
# * Keys and values are case sensitive
|
4223
4288
|
#
|
@@ -4249,8 +4314,8 @@ module Aws::CostExplorer
|
|
4249
4314
|
req.send_request(options)
|
4250
4315
|
end
|
4251
4316
|
|
4252
|
-
# Removes one or more tags from a resource. Specify only tag
|
4253
|
-
# your request.
|
4317
|
+
# Removes one or more tags from a resource. Specify only tag keys in
|
4318
|
+
# your request. Don't specify the value.
|
4254
4319
|
#
|
4255
4320
|
# @option params [required, String] :resource_arn
|
4256
4321
|
# The Amazon Resource Name (ARN) of the resource. For a list of
|
@@ -4262,7 +4327,7 @@ module Aws::CostExplorer
|
|
4262
4327
|
#
|
4263
4328
|
# @option params [required, Array<String>] :resource_tag_keys
|
4264
4329
|
# A list of tag keys associated with tags that need to be removed from
|
4265
|
-
# the resource. If you specify a tag key that
|
4330
|
+
# the resource. If you specify a tag key that doesn't exist, it's
|
4266
4331
|
# ignored. Although the maximum number of array members is 200, user-tag
|
4267
4332
|
# maximum is 50. The remaining are reserved for Amazon Web Services use.
|
4268
4333
|
#
|
@@ -4372,6 +4437,47 @@ module Aws::CostExplorer
|
|
4372
4437
|
req.send_request(options)
|
4373
4438
|
end
|
4374
4439
|
|
4440
|
+
# Updates status for cost allocation tags in bulk, with maximum batch
|
4441
|
+
# size of 20. If the tag status that's updated is the same as the
|
4442
|
+
# existing tag status, the request doesn't fail. Instead, it doesn't
|
4443
|
+
# have any effect on the tag status (for example, activating the active
|
4444
|
+
# tag).
|
4445
|
+
#
|
4446
|
+
# @option params [required, Array<Types::CostAllocationTagStatusEntry>] :cost_allocation_tags_status
|
4447
|
+
# The list of `CostAllocationTagStatusEntry` objects that are used to
|
4448
|
+
# update cost allocation tags status for this request.
|
4449
|
+
#
|
4450
|
+
# @return [Types::UpdateCostAllocationTagsStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4451
|
+
#
|
4452
|
+
# * {Types::UpdateCostAllocationTagsStatusResponse#errors #errors} => Array<Types::UpdateCostAllocationTagsStatusError>
|
4453
|
+
#
|
4454
|
+
# @example Request syntax with placeholder values
|
4455
|
+
#
|
4456
|
+
# resp = client.update_cost_allocation_tags_status({
|
4457
|
+
# cost_allocation_tags_status: [ # required
|
4458
|
+
# {
|
4459
|
+
# tag_key: "TagKey", # required
|
4460
|
+
# status: "Active", # required, accepts Active, Inactive
|
4461
|
+
# },
|
4462
|
+
# ],
|
4463
|
+
# })
|
4464
|
+
#
|
4465
|
+
# @example Response structure
|
4466
|
+
#
|
4467
|
+
# resp.errors #=> Array
|
4468
|
+
# resp.errors[0].tag_key #=> String
|
4469
|
+
# resp.errors[0].code #=> String
|
4470
|
+
# resp.errors[0].message #=> String
|
4471
|
+
#
|
4472
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/UpdateCostAllocationTagsStatus AWS API Documentation
|
4473
|
+
#
|
4474
|
+
# @overload update_cost_allocation_tags_status(params = {})
|
4475
|
+
# @param [Hash] params ({})
|
4476
|
+
def update_cost_allocation_tags_status(params = {}, options = {})
|
4477
|
+
req = build_request(:update_cost_allocation_tags_status, params)
|
4478
|
+
req.send_request(options)
|
4479
|
+
end
|
4480
|
+
|
4375
4481
|
# Updates an existing Cost Category. Changes made to the Cost Category
|
4376
4482
|
# rules will be used to categorize the current month’s expenses and
|
4377
4483
|
# future expenses. This won’t change categorization for the previous
|
@@ -4491,7 +4597,7 @@ module Aws::CostExplorer
|
|
4491
4597
|
params: params,
|
4492
4598
|
config: config)
|
4493
4599
|
context[:gem_name] = 'aws-sdk-costexplorer'
|
4494
|
-
context[:gem_version] = '1.
|
4600
|
+
context[:gem_version] = '1.77.0'
|
4495
4601
|
Seahorse::Client::Request.new(handlers, context)
|
4496
4602
|
end
|
4497
4603
|
|