Struct aws_sdk_glue::client::fluent_builders::RegisterSchemaVersion
source · pub struct RegisterSchemaVersion { /* 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 RegisterSchemaVersion
impl RegisterSchemaVersion
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<RegisterSchemaVersion, AwsResponseRetryClassifier>, SdkError<RegisterSchemaVersionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<RegisterSchemaVersion, AwsResponseRetryClassifier>, SdkError<RegisterSchemaVersionError>>
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<RegisterSchemaVersionOutput, SdkError<RegisterSchemaVersionError>>
pub async fn send(
self
) -> Result<RegisterSchemaVersionOutput, SdkError<RegisterSchemaVersionError>>
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 to contain schema identity fields. The structure contains:
-
SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either
SchemaArnorSchemaNameandRegistryNamehas to be provided. -
SchemaId$SchemaName: The name of the schema. Either
SchemaArnorSchemaNameandRegistryNamehas 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
SchemaArnorSchemaNameandRegistryNamehas to be provided. -
SchemaId$SchemaName: The name of the schema. Either
SchemaArnorSchemaNameandRegistryNamehas 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.
Trait Implementations§
source§impl Clone for RegisterSchemaVersion
impl Clone for RegisterSchemaVersion
source§fn clone(&self) -> RegisterSchemaVersion
fn clone(&self) -> RegisterSchemaVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more