aws_sdk_deadline/client/
create_storage_profile.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateStorageProfile`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::set_client_token):<br>required: **false**<br><p>The unique token which the server uses to recognize retries of the same request.</p><br>
    ///   - [`farm_id(impl Into<String>)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID of the farm to connect to the storage profile.</p><br>
    ///   - [`display_name(impl Into<String>)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::set_display_name):<br>required: **true**<br><p>The display name of the storage profile.</p><important>  <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important><br>
    ///   - [`os_family(StorageProfileOperatingSystemFamily)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::os_family) / [`set_os_family(Option<StorageProfileOperatingSystemFamily>)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::set_os_family):<br>required: **true**<br><p>The type of operating system (OS) for the storage profile.</p><br>
    ///   - [`file_system_locations(FileSystemLocation)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::file_system_locations) / [`set_file_system_locations(Option<Vec::<FileSystemLocation>>)`](crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::set_file_system_locations):<br>required: **false**<br><p>File system paths to include in the storage profile.</p><br>
    /// - On success, responds with [`CreateStorageProfileOutput`](crate::operation::create_storage_profile::CreateStorageProfileOutput) with field(s):
    ///   - [`storage_profile_id(String)`](crate::operation::create_storage_profile::CreateStorageProfileOutput::storage_profile_id): <p>The storage profile ID.</p>
    /// - On failure, responds with [`SdkError<CreateStorageProfileError>`](crate::operation::create_storage_profile::CreateStorageProfileError)
    pub fn create_storage_profile(&self) -> crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder {
        crate::operation::create_storage_profile::builders::CreateStorageProfileFluentBuilder::new(self.handle.clone())
    }
}