Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves an array of Cost Category names and values incurred cost.
If some Cost Category names and values are not associated with any cost, they will not be returned by this API.
Synopsis
- data GetCostCategories = GetCostCategories' {}
- newGetCostCategories :: DateInterval -> GetCostCategories
- getCostCategories_costCategoryName :: Lens' GetCostCategories (Maybe Text)
- getCostCategories_filter :: Lens' GetCostCategories (Maybe Expression)
- getCostCategories_maxResults :: Lens' GetCostCategories (Maybe Natural)
- getCostCategories_nextPageToken :: Lens' GetCostCategories (Maybe Text)
- getCostCategories_searchString :: Lens' GetCostCategories (Maybe Text)
- getCostCategories_sortBy :: Lens' GetCostCategories (Maybe [SortDefinition])
- getCostCategories_timePeriod :: Lens' GetCostCategories DateInterval
- data GetCostCategoriesResponse = GetCostCategoriesResponse' {
- costCategoryNames :: Maybe [Text]
- costCategoryValues :: Maybe [Text]
- nextPageToken :: Maybe Text
- httpStatus :: Int
- returnSize :: Int
- totalSize :: Int
- newGetCostCategoriesResponse :: Int -> Int -> Int -> GetCostCategoriesResponse
- getCostCategoriesResponse_costCategoryNames :: Lens' GetCostCategoriesResponse (Maybe [Text])
- getCostCategoriesResponse_costCategoryValues :: Lens' GetCostCategoriesResponse (Maybe [Text])
- getCostCategoriesResponse_nextPageToken :: Lens' GetCostCategoriesResponse (Maybe Text)
- getCostCategoriesResponse_httpStatus :: Lens' GetCostCategoriesResponse Int
- getCostCategoriesResponse_returnSize :: Lens' GetCostCategoriesResponse Int
- getCostCategoriesResponse_totalSize :: Lens' GetCostCategoriesResponse Int
Creating a Request
data GetCostCategories Source #
See: newGetCostCategories
smart constructor.
GetCostCategories' | |
|
Instances
Create a value of GetCostCategories
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:costCategoryName:GetCostCategories'
, getCostCategories_costCategoryName
- Undocumented member.
$sel:filter':GetCostCategories'
, getCostCategories_filter
- Undocumented member.
$sel:maxResults:GetCostCategories'
, getCostCategories_maxResults
- This field is only used when the SortBy
value is provided in the
request.
The maximum number of objects that are returned for this request. If
MaxResults
isn't specified with the SortBy
value, the request
returns 1000 results as the default value for this parameter.
For GetCostCategories
, MaxResults has an upper quota of 1000.
GetCostCategories
, getCostCategories_nextPageToken
- If the number of objects that are still available for retrieval exceeds
the quota, Amazon Web Services returns a NextPageToken value in the
response. To retrieve the next batch of objects, provide the
NextPageToken from the previous call in your next request.
$sel:searchString:GetCostCategories'
, getCostCategories_searchString
- The value that you want to search the filter values for.
If you don't specify a CostCategoryName
, SearchString
is used to
filter Cost Category names that match the SearchString
pattern. If you
specify a CostCategoryName
, SearchString
is used to filter Cost
Category values that match the SearchString
pattern.
$sel:sortBy:GetCostCategories'
, getCostCategories_sortBy
- The value that you sort the data by.
The key represents the cost and usage metrics. The following values are supported:
BlendedCost
UnblendedCost
AmortizedCost
NetAmortizedCost
NetUnblendedCost
UsageQuantity
NormalizedUsageAmount
The supported key values for the SortOrder
value are ASCENDING
and
DESCENDING
.
When you use the SortBy
value, the NextPageToken
and SearchString
key values aren't supported.
GetCostCategories
, getCostCategories_timePeriod
- Undocumented member.
Request Lenses
getCostCategories_costCategoryName :: Lens' GetCostCategories (Maybe Text) Source #
Undocumented member.
getCostCategories_filter :: Lens' GetCostCategories (Maybe Expression) Source #
Undocumented member.
getCostCategories_maxResults :: Lens' GetCostCategories (Maybe Natural) Source #
This field is only used when the SortBy
value is provided in the
request.
The maximum number of objects that are returned for this request. If
MaxResults
isn't specified with the SortBy
value, the request
returns 1000 results as the default value for this parameter.
For GetCostCategories
, MaxResults has an upper quota of 1000.
getCostCategories_nextPageToken :: Lens' GetCostCategories (Maybe Text) Source #
If the number of objects that are still available for retrieval exceeds the quota, Amazon Web Services returns a NextPageToken value in the response. To retrieve the next batch of objects, provide the NextPageToken from the previous call in your next request.
getCostCategories_searchString :: Lens' GetCostCategories (Maybe Text) Source #
The value that you want to search the filter values for.
If you don't specify a CostCategoryName
, SearchString
is used to
filter Cost Category names that match the SearchString
pattern. If you
specify a CostCategoryName
, SearchString
is used to filter Cost
Category values that match the SearchString
pattern.
getCostCategories_sortBy :: Lens' GetCostCategories (Maybe [SortDefinition]) Source #
The value that you sort the data by.
The key represents the cost and usage metrics. The following values are supported:
BlendedCost
UnblendedCost
AmortizedCost
NetAmortizedCost
NetUnblendedCost
UsageQuantity
NormalizedUsageAmount
The supported key values for the SortOrder
value are ASCENDING
and
DESCENDING
.
When you use the SortBy
value, the NextPageToken
and SearchString
key values aren't supported.
getCostCategories_timePeriod :: Lens' GetCostCategories DateInterval Source #
Undocumented member.
Destructuring the Response
data GetCostCategoriesResponse Source #
See: newGetCostCategoriesResponse
smart constructor.
GetCostCategoriesResponse' | |
|
Instances
newGetCostCategoriesResponse Source #
:: Int | |
-> Int | |
-> Int | |
-> GetCostCategoriesResponse |
Create a value of GetCostCategoriesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:costCategoryNames:GetCostCategoriesResponse'
, getCostCategoriesResponse_costCategoryNames
- The names of the Cost Categories.
$sel:costCategoryValues:GetCostCategoriesResponse'
, getCostCategoriesResponse_costCategoryValues
- The Cost Category values.
If the CostCategoryName
key isn't specified in the request, the
CostCategoryValues
fields aren't returned.
GetCostCategories
, getCostCategoriesResponse_nextPageToken
- If the number of objects that are still available for retrieval exceeds
the quota, Amazon Web Services returns a NextPageToken value in the
response. To retrieve the next batch of objects, provide the marker from
the prior call in your next request.
$sel:httpStatus:GetCostCategoriesResponse'
, getCostCategoriesResponse_httpStatus
- The response's http status code.
$sel:returnSize:GetCostCategoriesResponse'
, getCostCategoriesResponse_returnSize
- The number of objects that are returned.
$sel:totalSize:GetCostCategoriesResponse'
, getCostCategoriesResponse_totalSize
- The total number of objects.
Response Lenses
getCostCategoriesResponse_costCategoryNames :: Lens' GetCostCategoriesResponse (Maybe [Text]) Source #
The names of the Cost Categories.
getCostCategoriesResponse_costCategoryValues :: Lens' GetCostCategoriesResponse (Maybe [Text]) Source #
The Cost Category values.
If the CostCategoryName
key isn't specified in the request, the
CostCategoryValues
fields aren't returned.
getCostCategoriesResponse_nextPageToken :: Lens' GetCostCategoriesResponse (Maybe Text) Source #
If the number of objects that are still available for retrieval exceeds the quota, Amazon Web Services returns a NextPageToken value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
getCostCategoriesResponse_httpStatus :: Lens' GetCostCategoriesResponse Int Source #
The response's http status code.
getCostCategoriesResponse_returnSize :: Lens' GetCostCategoriesResponse Int Source #
The number of objects that are returned.
getCostCategoriesResponse_totalSize :: Lens' GetCostCategoriesResponse Int Source #
The total number of objects.