aws_sdk_efs/client/
put_account_preferences.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 [`PutAccountPreferences`](crate::operation::put_account_preferences::builders::PutAccountPreferencesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource_id_type(ResourceIdType)`](crate::operation::put_account_preferences::builders::PutAccountPreferencesFluentBuilder::resource_id_type) / [`set_resource_id_type(Option<ResourceIdType>)`](crate::operation::put_account_preferences::builders::PutAccountPreferencesFluentBuilder::set_resource_id_type):<br>required: **true**<br><p>Specifies the EFS resource ID preference to set for the user's Amazon Web Services account, in the current Amazon Web Services Region, either <code>LONG_ID</code> (17 characters), or <code>SHORT_ID</code> (8 characters).</p><note>  <p>Starting in October, 2021, you will receive an error when setting the account preference to <code>SHORT_ID</code>. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.</p> </note><br>
7    /// - On success, responds with [`PutAccountPreferencesOutput`](crate::operation::put_account_preferences::PutAccountPreferencesOutput) with field(s):
8    ///   - [`resource_id_preference(Option<ResourceIdPreference>)`](crate::operation::put_account_preferences::PutAccountPreferencesOutput::resource_id_preference): <p>Describes the resource type and its ID preference for the user's Amazon Web Services account, in the current Amazon Web Services Region.</p>
9    /// - On failure, responds with [`SdkError<PutAccountPreferencesError>`](crate::operation::put_account_preferences::PutAccountPreferencesError)
10    pub fn put_account_preferences(&self) -> crate::operation::put_account_preferences::builders::PutAccountPreferencesFluentBuilder {
11        crate::operation::put_account_preferences::builders::PutAccountPreferencesFluentBuilder::new(self.handle.clone())
12    }
13}