MachineLearning.Client.
create_realtime_endpoint
(**kwargs)¶Creates a real-time endpoint for the MLModel
. The endpoint contains the URI of the MLModel
; that is, the location to send real-time prediction requests for the specified MLModel
.
See also: AWS API Documentation
Request Syntax
response = client.create_realtime_endpoint(
MLModelId='string'
)
[REQUIRED]
The ID assigned to the MLModel
during creation.
{
'MLModelId': 'string',
'RealtimeEndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
}
}
Response Structure
Represents the output of an CreateRealtimeEndpoint
operation.
The result contains the MLModelId
and the endpoint information for the MLModel
.
Note: The endpoint information includes the URI of theMLModel
; that is, the location to send online prediction requests for the specifiedMLModel
.
A user-supplied ID that uniquely identifies the MLModel
. This value should be identical to the value of the MLModelId
in the request.
The endpoint information of the MLModel
The maximum processing rate for the real-time endpoint for MLModel
, measured in incoming requests per second.
The time that the request to create the real-time endpoint for the MLModel
was received. The time is expressed in epoch time.
The URI that specifies where to send real-time prediction requests for the MLModel
.
Note: The application must wait until the real-time endpoint is ready before using this URI.
The current status of the real-time endpoint for the MLModel
. This element can have one of the following values:
NONE
- Endpoint does not exist or was previously deleted.READY
- Endpoint is ready to be used for real-time predictions.UPDATING
- Updating/creating the endpoint.Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException