aws_sdk_redshiftserverless/client/delete_namespace.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 [`DeleteNamespace`](crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`namespace_name(impl Into<String>)`](crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder::namespace_name) / [`set_namespace_name(Option<String>)`](crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder::set_namespace_name):<br>required: **true**<br><p>The name of the namespace to delete.</p><br>
7 /// - [`final_snapshot_name(impl Into<String>)`](crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder::final_snapshot_name) / [`set_final_snapshot_name(Option<String>)`](crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder::set_final_snapshot_name):<br>required: **false**<br><p>The name of the snapshot to be created before the namespace is deleted.</p><br>
8 /// - [`final_snapshot_retention_period(i32)`](crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder::final_snapshot_retention_period) / [`set_final_snapshot_retention_period(Option<i32>)`](crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder::set_final_snapshot_retention_period):<br>required: **false**<br><p>How long to retain the final snapshot.</p><br>
9 /// - On success, responds with [`DeleteNamespaceOutput`](crate::operation::delete_namespace::DeleteNamespaceOutput) with field(s):
10 /// - [`namespace(Option<Namespace>)`](crate::operation::delete_namespace::DeleteNamespaceOutput::namespace): <p>The deleted namespace object.</p>
11 /// - On failure, responds with [`SdkError<DeleteNamespaceError>`](crate::operation::delete_namespace::DeleteNamespaceError)
12 pub fn delete_namespace(&self) -> crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder {
13 crate::operation::delete_namespace::builders::DeleteNamespaceFluentBuilder::new(self.handle.clone())
14 }
15}