Struct aws_sdk_glue::client::fluent_builders::DeleteSchemaVersions
source · pub struct DeleteSchemaVersions { /* 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 DeleteSchemaVersions
impl DeleteSchemaVersions
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteSchemaVersions, AwsResponseRetryClassifier>, SdkError<DeleteSchemaVersionsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteSchemaVersions, AwsResponseRetryClassifier>, SdkError<DeleteSchemaVersionsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteSchemaVersionsOutput, SdkError<DeleteSchemaVersionsError>>
pub async fn send(
self
) -> Result<DeleteSchemaVersionsOutput, SdkError<DeleteSchemaVersionsError>>
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 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 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
Trait Implementations§
source§impl Clone for DeleteSchemaVersions
impl Clone for DeleteSchemaVersions
source§fn clone(&self) -> DeleteSchemaVersions
fn clone(&self) -> DeleteSchemaVersions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more