Struct aws_sdk_glue::operation::delete_schema_versions::builders::DeleteSchemaVersionsFluentBuilder
source · pub struct DeleteSchemaVersionsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteSchemaVersions
.
Remove versions from the specified schema. A version number or range may be supplied. If the compatibility mode forbids deleting of a version that is necessary, such as BACKWARDS_FULL, an error is returned. Calling the GetSchemaVersions
API after this call will list the status of the deleted versions.
When the range of version numbers contain check pointed version, the API will return a 409 conflict and will not proceed with the deletion. You have to remove the checkpoint first using the DeleteSchemaCheckpoint
API before using this API.
You cannot use the DeleteSchemaVersions
API to delete the first schema version in the schema set. The first schema version can only be deleted by the DeleteSchema
API. This operation will also delete the attached SchemaVersionMetadata
under the schema versions. Hard deletes will be enforced on the database.
If the compatibility mode forbids deleting of a version that is necessary, such as BACKWARDS_FULL, an error is returned.
Implementations§
source§impl DeleteSchemaVersionsFluentBuilder
impl DeleteSchemaVersionsFluentBuilder
sourcepub fn as_input(&self) -> &DeleteSchemaVersionsInputBuilder
pub fn as_input(&self) -> &DeleteSchemaVersionsInputBuilder
Access the DeleteSchemaVersions as a reference.
sourcepub async fn send(
self,
) -> Result<DeleteSchemaVersionsOutput, SdkError<DeleteSchemaVersionsError, HttpResponse>>
pub async fn send( self, ) -> Result<DeleteSchemaVersionsOutput, SdkError<DeleteSchemaVersionsError, 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<DeleteSchemaVersionsOutput, DeleteSchemaVersionsError, Self>
pub fn customize( self, ) -> CustomizableOperation<DeleteSchemaVersionsOutput, DeleteSchemaVersionsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn schema_id(self, input: SchemaId) -> Self
pub fn schema_id(self, input: SchemaId) -> Self
This is a wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
sourcepub fn set_schema_id(self, input: Option<SchemaId>) -> Self
pub fn set_schema_id(self, input: Option<SchemaId>) -> Self
This is a wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
sourcepub fn get_schema_id(&self) -> &Option<SchemaId>
pub fn get_schema_id(&self) -> &Option<SchemaId>
This is a wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
sourcepub fn versions(self, input: impl Into<String>) -> Self
pub fn versions(self, input: impl Into<String>) -> Self
A version range may be supplied which may be of the format:
-
a single version number, 5
-
a range, 5-8 : deletes versions 5, 6, 7, 8
sourcepub fn set_versions(self, input: Option<String>) -> Self
pub fn set_versions(self, input: Option<String>) -> Self
A version range may be supplied which may be of the format:
-
a single version number, 5
-
a range, 5-8 : deletes versions 5, 6, 7, 8
sourcepub fn get_versions(&self) -> &Option<String>
pub fn get_versions(&self) -> &Option<String>
A version range may be supplied which may be of the format:
-
a single version number, 5
-
a range, 5-8 : deletes versions 5, 6, 7, 8
Trait Implementations§
source§impl Clone for DeleteSchemaVersionsFluentBuilder
impl Clone for DeleteSchemaVersionsFluentBuilder
source§fn clone(&self) -> DeleteSchemaVersionsFluentBuilder
fn clone(&self) -> DeleteSchemaVersionsFluentBuilder
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 DeleteSchemaVersionsFluentBuilder
impl !RefUnwindSafe for DeleteSchemaVersionsFluentBuilder
impl Send for DeleteSchemaVersionsFluentBuilder
impl Sync for DeleteSchemaVersionsFluentBuilder
impl Unpin for DeleteSchemaVersionsFluentBuilder
impl !UnwindSafe for DeleteSchemaVersionsFluentBuilder
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> 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