Struct aws_sdk_glue::operation::register_schema_version::builders::RegisterSchemaVersionFluentBuilder
source · pub struct RegisterSchemaVersionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RegisterSchemaVersion
.
Adds a new version to the existing schema. Returns an error if new version of schema does not meet the compatibility requirements of the schema set. This API will not create a new schema set and will return a 404 error if the schema set is not already present in the Schema Registry.
If this is the first schema definition to be registered in the Schema Registry, this API will store the schema version and return immediately. Otherwise, this call has the potential to run longer than other operations due to compatibility modes. You can call the GetSchemaVersion
API with the SchemaVersionId
to check compatibility modes.
If the same schema definition is already stored in Schema Registry as a version, the schema ID of the existing schema is returned to the caller.
Implementations§
source§impl RegisterSchemaVersionFluentBuilder
impl RegisterSchemaVersionFluentBuilder
sourcepub fn as_input(&self) -> &RegisterSchemaVersionInputBuilder
pub fn as_input(&self) -> &RegisterSchemaVersionInputBuilder
Access the RegisterSchemaVersion as a reference.
sourcepub async fn send(
self,
) -> Result<RegisterSchemaVersionOutput, SdkError<RegisterSchemaVersionError, HttpResponse>>
pub async fn send( self, ) -> Result<RegisterSchemaVersionOutput, SdkError<RegisterSchemaVersionError, 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<RegisterSchemaVersionOutput, RegisterSchemaVersionError, Self>
pub fn customize( self, ) -> CustomizableOperation<RegisterSchemaVersionOutput, RegisterSchemaVersionError, 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 to contain schema identity fields. The structure contains:
-
SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either
SchemaArn
orSchemaName
andRegistryName
has to be provided. -
SchemaId$SchemaName: The name of the schema. Either
SchemaArn
orSchemaName
andRegistryName
has to be provided.
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 to contain schema identity fields. The structure contains:
-
SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either
SchemaArn
orSchemaName
andRegistryName
has to be provided. -
SchemaId$SchemaName: The name of the schema. Either
SchemaArn
orSchemaName
andRegistryName
has to be provided.
sourcepub fn get_schema_id(&self) -> &Option<SchemaId>
pub fn get_schema_id(&self) -> &Option<SchemaId>
This is a wrapper structure to contain schema identity fields. The structure contains:
-
SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either
SchemaArn
orSchemaName
andRegistryName
has to be provided. -
SchemaId$SchemaName: The name of the schema. Either
SchemaArn
orSchemaName
andRegistryName
has to be provided.
sourcepub fn schema_definition(self, input: impl Into<String>) -> Self
pub fn schema_definition(self, input: impl Into<String>) -> Self
The schema definition using the DataFormat
setting for the SchemaName
.
sourcepub fn set_schema_definition(self, input: Option<String>) -> Self
pub fn set_schema_definition(self, input: Option<String>) -> Self
The schema definition using the DataFormat
setting for the SchemaName
.
sourcepub fn get_schema_definition(&self) -> &Option<String>
pub fn get_schema_definition(&self) -> &Option<String>
The schema definition using the DataFormat
setting for the SchemaName
.
Trait Implementations§
source§impl Clone for RegisterSchemaVersionFluentBuilder
impl Clone for RegisterSchemaVersionFluentBuilder
source§fn clone(&self) -> RegisterSchemaVersionFluentBuilder
fn clone(&self) -> RegisterSchemaVersionFluentBuilder
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 RegisterSchemaVersionFluentBuilder
impl !RefUnwindSafe for RegisterSchemaVersionFluentBuilder
impl Send for RegisterSchemaVersionFluentBuilder
impl Sync for RegisterSchemaVersionFluentBuilder
impl Unpin for RegisterSchemaVersionFluentBuilder
impl !UnwindSafe for RegisterSchemaVersionFluentBuilder
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