Skip to main content

aws_sdk_bedrockagentcorecontrol/client/
delete_registry.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 [`DeleteRegistry`](crate::operation::delete_registry::builders::DeleteRegistryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`registry_id(impl Into<String>)`](crate::operation::delete_registry::builders::DeleteRegistryFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::delete_registry::builders::DeleteRegistryFluentBuilder::set_registry_id):<br>required: **true**<br><p>The identifier of the registry to delete. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.</p><br>
7    /// - On success, responds with [`DeleteRegistryOutput`](crate::operation::delete_registry::DeleteRegistryOutput) with field(s):
8    ///   - [`status(RegistryStatus)`](crate::operation::delete_registry::DeleteRegistryOutput::status): <p>The current status of the registry, set to <code>DELETING</code> when deletion is initiated. For a list of all possible registry statuses, see the <code>RegistryStatus</code> data type.</p>
9    /// - On failure, responds with [`SdkError<DeleteRegistryError>`](crate::operation::delete_registry::DeleteRegistryError)
10    pub fn delete_registry(&self) -> crate::operation::delete_registry::builders::DeleteRegistryFluentBuilder {
11        crate::operation::delete_registry::builders::DeleteRegistryFluentBuilder::new(self.handle.clone())
12    }
13}