Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the name, ARN, NumberOfRules
and effective dates of all Cost
Categories defined in the account. You have the option to use
EffectiveOn
to return a list of Cost Categories that were active on a
specific date. If there is no EffectiveOn
specified, you’ll see Cost
Categories that are effective on the current date. If Cost Category is
still effective, EffectiveEnd
is omitted in the response.
ListCostCategoryDefinitions
supports pagination. The request can have
a MaxResults
range up to 100.
Synopsis
- data ListCostCategoryDefinitions = ListCostCategoryDefinitions' {
- effectiveOn :: Maybe Text
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- newListCostCategoryDefinitions :: ListCostCategoryDefinitions
- listCostCategoryDefinitions_effectiveOn :: Lens' ListCostCategoryDefinitions (Maybe Text)
- listCostCategoryDefinitions_nextToken :: Lens' ListCostCategoryDefinitions (Maybe Text)
- listCostCategoryDefinitions_maxResults :: Lens' ListCostCategoryDefinitions (Maybe Natural)
- data ListCostCategoryDefinitionsResponse = ListCostCategoryDefinitionsResponse' {}
- newListCostCategoryDefinitionsResponse :: Int -> ListCostCategoryDefinitionsResponse
- listCostCategoryDefinitionsResponse_costCategoryReferences :: Lens' ListCostCategoryDefinitionsResponse (Maybe [CostCategoryReference])
- listCostCategoryDefinitionsResponse_nextToken :: Lens' ListCostCategoryDefinitionsResponse (Maybe Text)
- listCostCategoryDefinitionsResponse_httpStatus :: Lens' ListCostCategoryDefinitionsResponse Int
Creating a Request
data ListCostCategoryDefinitions Source #
See: newListCostCategoryDefinitions
smart constructor.
ListCostCategoryDefinitions' | |
|
Instances
newListCostCategoryDefinitions :: ListCostCategoryDefinitions Source #
Create a value of ListCostCategoryDefinitions
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:effectiveOn:ListCostCategoryDefinitions'
, listCostCategoryDefinitions_effectiveOn
- The date when the Cost Category was effective.
$sel:nextToken:ListCostCategoryDefinitions'
, listCostCategoryDefinitions_nextToken
- The token to retrieve the next set of results. Amazon Web Services
provides the token when the response from a previous call has more
results than the maximum page size.
$sel:maxResults:ListCostCategoryDefinitions'
, listCostCategoryDefinitions_maxResults
- The number of entries a paginated response contains.
Request Lenses
listCostCategoryDefinitions_effectiveOn :: Lens' ListCostCategoryDefinitions (Maybe Text) Source #
The date when the Cost Category was effective.
listCostCategoryDefinitions_nextToken :: Lens' ListCostCategoryDefinitions (Maybe Text) Source #
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
listCostCategoryDefinitions_maxResults :: Lens' ListCostCategoryDefinitions (Maybe Natural) Source #
The number of entries a paginated response contains.
Destructuring the Response
data ListCostCategoryDefinitionsResponse Source #
See: newListCostCategoryDefinitionsResponse
smart constructor.
ListCostCategoryDefinitionsResponse' | |
|
Instances
newListCostCategoryDefinitionsResponse Source #
Create a value of ListCostCategoryDefinitionsResponse
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:costCategoryReferences:ListCostCategoryDefinitionsResponse'
, listCostCategoryDefinitionsResponse_costCategoryReferences
- A reference to a Cost Category containing enough information to identify
the Cost Category.
$sel:nextToken:ListCostCategoryDefinitions'
, listCostCategoryDefinitionsResponse_nextToken
- The token to retrieve the next set of results. Amazon Web Services
provides the token when the response from a previous call has more
results than the maximum page size.
$sel:httpStatus:ListCostCategoryDefinitionsResponse'
, listCostCategoryDefinitionsResponse_httpStatus
- The response's http status code.
Response Lenses
listCostCategoryDefinitionsResponse_costCategoryReferences :: Lens' ListCostCategoryDefinitionsResponse (Maybe [CostCategoryReference]) Source #
A reference to a Cost Category containing enough information to identify the Cost Category.
listCostCategoryDefinitionsResponse_nextToken :: Lens' ListCostCategoryDefinitionsResponse (Maybe Text) Source #
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
listCostCategoryDefinitionsResponse_httpStatus :: Lens' ListCostCategoryDefinitionsResponse Int Source #
The response's http status code.