aws_sdk_storagegateway/client/
delete_tape_archive.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 [`DeleteTapeArchive`](crate::operation::delete_tape_archive::builders::DeleteTapeArchiveFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`tape_arn(impl Into<String>)`](crate::operation::delete_tape_archive::builders::DeleteTapeArchiveFluentBuilder::tape_arn) / [`set_tape_arn(Option<String>)`](crate::operation::delete_tape_archive::builders::DeleteTapeArchiveFluentBuilder::set_tape_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual tape shelf (VTS).</p><br>
7    ///   - [`bypass_governance_retention(bool)`](crate::operation::delete_tape_archive::builders::DeleteTapeArchiveFluentBuilder::bypass_governance_retention) / [`set_bypass_governance_retention(Option<bool>)`](crate::operation::delete_tape_archive::builders::DeleteTapeArchiveFluentBuilder::set_bypass_governance_retention):<br>required: **false**<br><p>Set to <code>TRUE</code> to delete an archived tape that belongs to a custom pool with tape retention lock. Only archived tapes with tape retention lock set to <code>governance</code> can be deleted. Archived tapes with tape retention lock set to <code>compliance</code> can't be deleted.</p><br>
8    /// - On success, responds with [`DeleteTapeArchiveOutput`](crate::operation::delete_tape_archive::DeleteTapeArchiveOutput) with field(s):
9    ///   - [`tape_arn(Option<String>)`](crate::operation::delete_tape_archive::DeleteTapeArchiveOutput::tape_arn): <p>The Amazon Resource Name (ARN) of the virtual tape that was deleted from the virtual tape shelf (VTS).</p>
10    /// - On failure, responds with [`SdkError<DeleteTapeArchiveError>`](crate::operation::delete_tape_archive::DeleteTapeArchiveError)
11    pub fn delete_tape_archive(&self) -> crate::operation::delete_tape_archive::builders::DeleteTapeArchiveFluentBuilder {
12        crate::operation::delete_tape_archive::builders::DeleteTapeArchiveFluentBuilder::new(self.handle.clone())
13    }
14}