aws_sdk_ecr/client/
delete_repository.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 [`DeleteRepository`](crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`registry_id(impl Into<String>)`](crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder::set_registry_id):<br>required: **false**<br><p>The Amazon Web Services account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.</p><br>
7    ///   - [`repository_name(impl Into<String>)`](crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository to delete.</p><br>
8    ///   - [`force(bool)`](crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder::force) / [`set_force(Option<bool>)`](crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder::set_force):<br>required: **false**<br><p>If true, deleting the repository force deletes the contents of the repository. If false, the repository must be empty before attempting to delete it.</p><br>
9    /// - On success, responds with [`DeleteRepositoryOutput`](crate::operation::delete_repository::DeleteRepositoryOutput) with field(s):
10    ///   - [`repository(Option<Repository>)`](crate::operation::delete_repository::DeleteRepositoryOutput::repository): <p>The repository that was deleted.</p>
11    /// - On failure, responds with [`SdkError<DeleteRepositoryError>`](crate::operation::delete_repository::DeleteRepositoryError)
12    pub fn delete_repository(&self) -> crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder {
13        crate::operation::delete_repository::builders::DeleteRepositoryFluentBuilder::new(self.handle.clone())
14    }
15}