| 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 |
Amazonka.BillingConductor.ListPricingRules
Description
Describes a pricing rule that can be associated to a pricing plan, or set of pricing plans.
This operation returns paginated results.
Synopsis
- data ListPricingRules = ListPricingRules' {}
- newListPricingRules :: ListPricingRules
- listPricingRules_billingPeriod :: Lens' ListPricingRules (Maybe Text)
- listPricingRules_filters :: Lens' ListPricingRules (Maybe ListPricingRulesFilter)
- listPricingRules_maxResults :: Lens' ListPricingRules (Maybe Natural)
- listPricingRules_nextToken :: Lens' ListPricingRules (Maybe Text)
- data ListPricingRulesResponse = ListPricingRulesResponse' {}
- newListPricingRulesResponse :: Int -> ListPricingRulesResponse
- listPricingRulesResponse_billingPeriod :: Lens' ListPricingRulesResponse (Maybe Text)
- listPricingRulesResponse_nextToken :: Lens' ListPricingRulesResponse (Maybe Text)
- listPricingRulesResponse_pricingRules :: Lens' ListPricingRulesResponse (Maybe [PricingRuleListElement])
- listPricingRulesResponse_httpStatus :: Lens' ListPricingRulesResponse Int
Creating a Request
data ListPricingRules Source #
See: newListPricingRules smart constructor.
Constructors
| ListPricingRules' | |
Fields
| |
Instances
newListPricingRules :: ListPricingRules Source #
Create a value of ListPricingRules 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:
ListPricingRules, listPricingRules_billingPeriod - The preferred billing period to get the pricing plan.
$sel:filters:ListPricingRules', listPricingRules_filters - A DescribePricingRuleFilter that specifies the Amazon Resource Name
(ARNs) of pricing rules to retrieve pricing rules information.
$sel:maxResults:ListPricingRules', listPricingRules_maxResults - The maximum number of pricing rules to retrieve.
ListPricingRules, listPricingRules_nextToken - The pagination token that's used on subsequent call to get pricing
rules.
Request Lenses
listPricingRules_billingPeriod :: Lens' ListPricingRules (Maybe Text) Source #
The preferred billing period to get the pricing plan.
listPricingRules_filters :: Lens' ListPricingRules (Maybe ListPricingRulesFilter) Source #
A DescribePricingRuleFilter that specifies the Amazon Resource Name
(ARNs) of pricing rules to retrieve pricing rules information.
listPricingRules_maxResults :: Lens' ListPricingRules (Maybe Natural) Source #
The maximum number of pricing rules to retrieve.
listPricingRules_nextToken :: Lens' ListPricingRules (Maybe Text) Source #
The pagination token that's used on subsequent call to get pricing rules.
Destructuring the Response
data ListPricingRulesResponse Source #
See: newListPricingRulesResponse smart constructor.
Constructors
| ListPricingRulesResponse' | |
Fields
| |
Instances
newListPricingRulesResponse Source #
Create a value of ListPricingRulesResponse 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:
ListPricingRules, listPricingRulesResponse_billingPeriod - The billing period for which the described pricing rules are applicable.
ListPricingRules, listPricingRulesResponse_nextToken - The pagination token that's used on subsequent calls to get pricing
rules.
$sel:pricingRules:ListPricingRulesResponse', listPricingRulesResponse_pricingRules - A list containing the described pricing rules.
$sel:httpStatus:ListPricingRulesResponse', listPricingRulesResponse_httpStatus - The response's http status code.
Response Lenses
listPricingRulesResponse_billingPeriod :: Lens' ListPricingRulesResponse (Maybe Text) Source #
The billing period for which the described pricing rules are applicable.
listPricingRulesResponse_nextToken :: Lens' ListPricingRulesResponse (Maybe Text) Source #
The pagination token that's used on subsequent calls to get pricing rules.
listPricingRulesResponse_pricingRules :: Lens' ListPricingRulesResponse (Maybe [PricingRuleListElement]) Source #
A list containing the described pricing rules.
listPricingRulesResponse_httpStatus :: Lens' ListPricingRulesResponse Int Source #
The response's http status code.