1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListPriceLists`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`service_code(impl Into<String>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::service_code) / [`set_service_code(Option<String>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::set_service_code):<br>required: **true**<br><p>The service code or the Savings Plan service code for the attributes that you want to retrieve. For example, to get the list of applicable Amazon EC2 price lists, use <code>AmazonEC2</code>. For a full list of service codes containing On-Demand and Reserved Instance (RI) pricing, use the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_DescribeServices.html#awscostmanagement-pricing_DescribeServices-request-FormatVersion">DescribeServices</a> API.</p>  <p>To retrieve the Reserved Instance and Compute Savings Plan price lists, use <code>ComputeSavingsPlans</code>. </p>  <p>To retrieve Machine Learning Savings Plans price lists, use <code>MachineLearningSavingsPlans</code>. </p><br>
    ///   - [`effective_date(DateTime)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::effective_date) / [`set_effective_date(Option<DateTime>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::set_effective_date):<br>required: **true**<br><p>The date that the Price List file prices are effective from. </p><br>
    ///   - [`region_code(impl Into<String>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::region_code) / [`set_region_code(Option<String>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::set_region_code):<br>required: **false**<br><p>This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for the <code>US East (N. Virginia)</code> Region, use <code>us-east-1</code>. If nothing is specified, you retrieve price lists for all applicable Regions. The available <code>RegionCode</code> list can be retrieved from <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_GetAttributeValues.html">GetAttributeValues</a> API.</p><br>
    ///   - [`currency_code(impl Into<String>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::currency_code) / [`set_currency_code(Option<String>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::set_currency_code):<br>required: **true**<br><p>The three alphabetical character ISO-4217 currency code that the Price List files are denominated in. </p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token that indicates the next set of results that you want to retrieve. </p><br>
    ///   - [`max_results(i32)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in the response. </p><br>
    /// - On success, responds with [`ListPriceListsOutput`](crate::operation::list_price_lists::ListPriceListsOutput) with field(s):
    ///   - [`price_lists(Option<Vec::<PriceList>>)`](crate::operation::list_price_lists::ListPriceListsOutput::price_lists): <p>The type of price list references that match your request. </p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_price_lists::ListPriceListsOutput::next_token): <p>The pagination token that indicates the next set of results to retrieve. </p>
    /// - On failure, responds with [`SdkError<ListPriceListsError>`](crate::operation::list_price_lists::ListPriceListsError)
    pub fn list_price_lists(&self) -> crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder {
        crate::operation::list_price_lists::builders::ListPriceListsFluentBuilder::new(self.handle.clone())
    }
}