Struct aws_sdk_personalize::client::fluent_builders::CreateSchema
source · pub struct CreateSchema { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSchema
.
Creates an Amazon Personalize schema from the specified schema string. The schema you create must be in Avro JSON format.
Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset type and has a set of required field and keywords. If you are creating a schema for a dataset in a Domain dataset group, you provide the domain of the Domain dataset group. You specify a schema when you call CreateDataset.
Related APIs
Implementations§
source§impl CreateSchema
impl CreateSchema
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateSchema, AwsResponseRetryClassifier>, SdkError<CreateSchemaError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateSchema, AwsResponseRetryClassifier>, SdkError<CreateSchemaError>>
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<CreateSchemaOutput, SdkError<CreateSchemaError>>
pub async fn send(
self
) -> Result<CreateSchemaOutput, SdkError<CreateSchemaError>>
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 set_schema(self, input: Option<String>) -> Self
pub fn set_schema(self, input: Option<String>) -> Self
A schema in Avro JSON format.
sourcepub fn domain(self, input: Domain) -> Self
pub fn domain(self, input: Domain) -> Self
The domain for the schema. If you are creating a schema for a dataset in a Domain dataset group, specify the domain you chose when you created the Domain dataset group.
sourcepub fn set_domain(self, input: Option<Domain>) -> Self
pub fn set_domain(self, input: Option<Domain>) -> Self
The domain for the schema. If you are creating a schema for a dataset in a Domain dataset group, specify the domain you chose when you created the Domain dataset group.
Trait Implementations§
source§impl Clone for CreateSchema
impl Clone for CreateSchema
source§fn clone(&self) -> CreateSchema
fn clone(&self) -> CreateSchema
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more