aws_sdk_pricing/client/
get_attribute_values.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 [`GetAttributeValues`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`service_code(impl Into<String>)`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::service_code) / [`set_service_code(Option<String>)`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::set_service_code):<br>required: **true**<br><p>The service code for the service whose attributes you want to retrieve. For example, if you want the retrieve an EC2 attribute, use <code>AmazonEC2</code>.</p><br>
8    ///   - [`attribute_name(impl Into<String>)`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::attribute_name) / [`set_attribute_name(Option<String>)`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::set_attribute_name):<br>required: **true**<br><p>The name of the attribute that you want to retrieve the values for, such as <code>volumeType</code>.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::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>
10    ///   - [`max_results(i32)`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in response.</p><br>
11    /// - On success, responds with [`GetAttributeValuesOutput`](crate::operation::get_attribute_values::GetAttributeValuesOutput) with field(s):
12    ///   - [`attribute_values(Option<Vec::<AttributeValue>>)`](crate::operation::get_attribute_values::GetAttributeValuesOutput::attribute_values): <p>The list of values for an attribute. For example, <code>Throughput Optimized HDD</code> and <code>Provisioned IOPS</code> are two available values for the <code>AmazonEC2</code> <code>volumeType</code>.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::get_attribute_values::GetAttributeValuesOutput::next_token): <p>The pagination token that indicates the next set of results to retrieve.</p>
14    /// - On failure, responds with [`SdkError<GetAttributeValuesError>`](crate::operation::get_attribute_values::GetAttributeValuesError)
15    pub fn get_attribute_values(&self) -> crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder {
16        crate::operation::get_attribute_values::builders::GetAttributeValuesFluentBuilder::new(self.handle.clone())
17    }
18}