1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssignTapePool`](crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`tape_arn(impl Into<String>)`](crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder::tape_arn) / [`set_tape_arn(Option<String>)`](crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder::set_tape_arn):<br>required: **true**<br><p>The unique Amazon Resource Name (ARN) of the virtual tape that you want to add to the tape pool.</p><br>
    ///   - [`pool_id(impl Into<String>)`](crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder::pool_id) / [`set_pool_id(Option<String>)`](crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder::set_pool_id):<br>required: **true**<br><p>The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.</p><br>
    ///   - [`bypass_governance_retention(bool)`](crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder::bypass_governance_retention) / [`set_bypass_governance_retention(Option<bool>)`](crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder::set_bypass_governance_retention):<br>required: **false**<br><p>Set permissions to bypass governance retention. If the lock type of the archived tape is <code>Governance</code>, the tape's archived age is not older than <code>RetentionLockInDays</code>, and the user does not already have <code>BypassGovernanceRetention</code>, setting this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console.</p> <p>Valid values: <code>TRUE</code> | <code>FALSE</code></p><br>
    /// - On success, responds with [`AssignTapePoolOutput`](crate::operation::assign_tape_pool::AssignTapePoolOutput) with field(s):
    ///   - [`tape_arn(Option<String>)`](crate::operation::assign_tape_pool::AssignTapePoolOutput::tape_arn): <p>The unique Amazon Resource Names (ARN) of the virtual tape that was added to the tape pool.</p>
    /// - On failure, responds with [`SdkError<AssignTapePoolError>`](crate::operation::assign_tape_pool::AssignTapePoolError)
    pub fn assign_tape_pool(&self) -> crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder {
        crate::operation::assign_tape_pool::builders::AssignTapePoolFluentBuilder::new(self.handle.clone())
    }
}