Struct aws_sdk_databrew::operation::batch_delete_recipe_version::builders::BatchDeleteRecipeVersionFluentBuilder
source · pub struct BatchDeleteRecipeVersionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to BatchDeleteRecipeVersion
.
Deletes one or more versions of a recipe at a time.
The entire request will be rejected if:
-
The recipe does not exist.
-
There is an invalid version identifier in the list of versions.
-
The version list is empty.
-
The version list size exceeds 50.
-
The version list contains duplicate entries.
The request will complete successfully, but with partial failures, if:
-
A version does not exist.
-
A version is being used by a job.
-
You specify
LATEST_WORKING
, but it's being used by a project. -
The version fails to be deleted.
The LATEST_WORKING
version will only be deleted if the recipe has no other versions. If you try to delete LATEST_WORKING
while other versions exist (or if they can't be deleted), then LATEST_WORKING
will be listed as partial failure in the response.
Implementations§
source§impl BatchDeleteRecipeVersionFluentBuilder
impl BatchDeleteRecipeVersionFluentBuilder
sourcepub fn as_input(&self) -> &BatchDeleteRecipeVersionInputBuilder
pub fn as_input(&self) -> &BatchDeleteRecipeVersionInputBuilder
Access the BatchDeleteRecipeVersion as a reference.
sourcepub async fn send(
self,
) -> Result<BatchDeleteRecipeVersionOutput, SdkError<BatchDeleteRecipeVersionError, HttpResponse>>
pub async fn send( self, ) -> Result<BatchDeleteRecipeVersionOutput, SdkError<BatchDeleteRecipeVersionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<BatchDeleteRecipeVersionOutput, BatchDeleteRecipeVersionError, Self>
pub fn customize( self, ) -> CustomizableOperation<BatchDeleteRecipeVersionOutput, BatchDeleteRecipeVersionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the recipe whose versions are to be deleted.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the recipe whose versions are to be deleted.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the recipe whose versions are to be deleted.
sourcepub fn recipe_versions(self, input: impl Into<String>) -> Self
pub fn recipe_versions(self, input: impl Into<String>) -> Self
Appends an item to RecipeVersions
.
To override the contents of this collection use set_recipe_versions
.
An array of version identifiers, for the recipe versions to be deleted. You can specify numeric versions (X.Y
) or LATEST_WORKING
. LATEST_PUBLISHED
is not supported.
sourcepub fn set_recipe_versions(self, input: Option<Vec<String>>) -> Self
pub fn set_recipe_versions(self, input: Option<Vec<String>>) -> Self
An array of version identifiers, for the recipe versions to be deleted. You can specify numeric versions (X.Y
) or LATEST_WORKING
. LATEST_PUBLISHED
is not supported.
sourcepub fn get_recipe_versions(&self) -> &Option<Vec<String>>
pub fn get_recipe_versions(&self) -> &Option<Vec<String>>
An array of version identifiers, for the recipe versions to be deleted. You can specify numeric versions (X.Y
) or LATEST_WORKING
. LATEST_PUBLISHED
is not supported.
Trait Implementations§
source§impl Clone for BatchDeleteRecipeVersionFluentBuilder
impl Clone for BatchDeleteRecipeVersionFluentBuilder
source§fn clone(&self) -> BatchDeleteRecipeVersionFluentBuilder
fn clone(&self) -> BatchDeleteRecipeVersionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for BatchDeleteRecipeVersionFluentBuilder
impl !RefUnwindSafe for BatchDeleteRecipeVersionFluentBuilder
impl Send for BatchDeleteRecipeVersionFluentBuilder
impl Sync for BatchDeleteRecipeVersionFluentBuilder
impl Unpin for BatchDeleteRecipeVersionFluentBuilder
impl !UnwindSafe for BatchDeleteRecipeVersionFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more