Struct aws_sdk_comprehend::client::fluent_builders::CreateEndpoint
source · [−]pub struct CreateEndpoint<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateEndpoint
.
Creates a model-specific endpoint for synchronous inference for a previously trained custom model
Implementations
impl<C, M, R> CreateEndpoint<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateEndpoint<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateEndpointOutput, SdkError<CreateEndpointError>> where
R::Policy: SmithyRetryPolicy<CreateEndpointInputOperationOutputAlias, CreateEndpointOutput, CreateEndpointError, CreateEndpointInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateEndpointOutput, SdkError<CreateEndpointError>> where
R::Policy: SmithyRetryPolicy<CreateEndpointInputOperationOutputAlias, CreateEndpointOutput, CreateEndpointError, CreateEndpointInputOperationRetryAlias>,
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.
This is the descriptive suffix that becomes part of the EndpointArn
used for all subsequent requests to this resource.
This is the descriptive suffix that becomes part of the EndpointArn
used for all subsequent requests to this resource.
The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
An idempotency token provided by the customer. If this token matches a previous endpoint creation request, Amazon Comprehend will not return a ResourceInUseException
.
An idempotency token provided by the customer. If this token matches a previous endpoint creation request, Amazon Comprehend will not return a ResourceInUseException
.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateEndpoint<C, M, R>
impl<C, M, R> Send for CreateEndpoint<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateEndpoint<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateEndpoint<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateEndpoint<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