Struct aws_sdk_clouddirectory::client::fluent_builders::CreateSchema
source · [−]pub struct CreateSchema<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSchema
.
Creates a new schema in a development state. A schema can exist in three phases:
-
Development: This is a mutable phase of the schema. All new schemas are in the development phase. Once the schema is finalized, it can be published.
-
Published: Published schemas are immutable and have a version associated with them.
-
Applied: Applied schemas are mutable in a way that allows you to add new schema facets. You can also add new, nonrequired attributes to existing schema facets. You can apply only published schemas to directories.
Implementations
impl<C, M, R> CreateSchema<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateSchema<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateSchemaOutput, SdkError<CreateSchemaError>> where
R::Policy: SmithyRetryPolicy<CreateSchemaInputOperationOutputAlias, CreateSchemaOutput, CreateSchemaError, CreateSchemaInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateSchemaOutput, SdkError<CreateSchemaError>> where
R::Policy: SmithyRetryPolicy<CreateSchemaInputOperationOutputAlias, CreateSchemaOutput, CreateSchemaError, CreateSchemaInputOperationRetryAlias>,
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.
The name that is associated with the schema. This is unique to each account and in each region.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateSchema<C, M, R>
impl<C, M, R> Unpin for CreateSchema<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateSchema<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more