aws_sdk_storagegateway/client/
add_working_storage.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 [`AddWorkingStorage`](crate::operation::add_working_storage::builders::AddWorkingStorageFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::add_working_storage::builders::AddWorkingStorageFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::add_working_storage::builders::AddWorkingStorageFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p><br>
7    ///   - [`disk_ids(impl Into<String>)`](crate::operation::add_working_storage::builders::AddWorkingStorageFluentBuilder::disk_ids) / [`set_disk_ids(Option<Vec::<String>>)`](crate::operation::add_working_storage::builders::AddWorkingStorageFluentBuilder::set_disk_ids):<br>required: **true**<br><p>An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the <code>ListLocalDisks</code> API.</p><br>
8    /// - On success, responds with [`AddWorkingStorageOutput`](crate::operation::add_working_storage::AddWorkingStorageOutput) with field(s):
9    ///   - [`gateway_arn(Option<String>)`](crate::operation::add_working_storage::AddWorkingStorageOutput::gateway_arn): <p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p>
10    /// - On failure, responds with [`SdkError<AddWorkingStorageError>`](crate::operation::add_working_storage::AddWorkingStorageError)
11    pub fn add_working_storage(&self) -> crate::operation::add_working_storage::builders::AddWorkingStorageFluentBuilder {
12        crate::operation::add_working_storage::builders::AddWorkingStorageFluentBuilder::new(self.handle.clone())
13    }
14}