aws_sdk_pricing/client/
get_price_list_file_url.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetPriceListFileUrl`](crate::operation::get_price_list_file_url::builders::GetPriceListFileUrlFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`price_list_arn(impl Into<String>)`](crate::operation::get_price_list_file_url::builders::GetPriceListFileUrlFluentBuilder::price_list_arn) / [`set_price_list_arn(Option<String>)`](crate::operation::get_price_list_file_url::builders::GetPriceListFileUrlFluentBuilder::set_price_list_arn):<br>required: **true**<br><p>The unique identifier that maps to where your Price List files are located. <code>PriceListArn</code> can be obtained from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">ListPriceLists</a> response.</p><br>
7    ///   - [`file_format(impl Into<String>)`](crate::operation::get_price_list_file_url::builders::GetPriceListFileUrlFluentBuilder::file_format) / [`set_file_format(Option<String>)`](crate::operation::get_price_list_file_url::builders::GetPriceListFileUrlFluentBuilder::set_file_format):<br>required: **true**<br><p>The format that you want to retrieve your Price List files in. The <code>FileFormat</code> can be obtained from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">ListPriceLists</a> response.</p><br>
8    /// - On success, responds with [`GetPriceListFileUrlOutput`](crate::operation::get_price_list_file_url::GetPriceListFileUrlOutput) with field(s):
9    ///   - [`url(Option<String>)`](crate::operation::get_price_list_file_url::GetPriceListFileUrlOutput::url): <p>The URL to download your Price List file from.</p>
10    /// - On failure, responds with [`SdkError<GetPriceListFileUrlError>`](crate::operation::get_price_list_file_url::GetPriceListFileUrlError)
11    pub fn get_price_list_file_url(&self) -> crate::operation::get_price_list_file_url::builders::GetPriceListFileUrlFluentBuilder {
12        crate::operation::get_price_list_file_url::builders::GetPriceListFileUrlFluentBuilder::new(self.handle.clone())
13    }
14}