pub struct SageMakerRuntimeClient { /* private fields */ }
Expand description
A client for the Amazon SageMaker Runtime API.
Implementations
sourceimpl SageMakerRuntimeClient
impl SageMakerRuntimeClient
sourcepub fn new(region: Region) -> SageMakerRuntimeClient
pub fn new(region: Region) -> SageMakerRuntimeClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> SageMakerRuntimeClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> SageMakerRuntimeClient
Trait Implementations
sourceimpl Clone for SageMakerRuntimeClient
impl Clone for SageMakerRuntimeClient
sourcefn clone(&self) -> SageMakerRuntimeClient
fn clone(&self) -> SageMakerRuntimeClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl SageMakerRuntime for SageMakerRuntimeClient
impl SageMakerRuntime for SageMakerRuntimeClient
sourcefn invoke_endpoint<'life0, 'async_trait>(
&'life0 self,
input: InvokeEndpointInput
) -> Pin<Box<dyn Future<Output = Result<InvokeEndpointOutput, RusotoError<InvokeEndpointError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn invoke_endpoint<'life0, 'async_trait>(
&'life0 self,
input: InvokeEndpointInput
) -> Pin<Box<dyn Future<Output = Result<InvokeEndpointOutput, RusotoError<InvokeEndpointError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint.
For an overview of Amazon SageMaker, see How It Works.
Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax.
Calls to InvokeEndpoint
are authenticated by using AWS Signature Version 4. For information, see Authenticating Requests (AWS Signature Version 4) in the Amazon S3 API Reference.
A customer's model containers must respond to requests within 60 seconds. The model itself can have a maximum processing time of 60 seconds before responding to invocations. If your model is going to take 50-60 seconds of processing time, the SDK socket timeout should be set to be 70 seconds.
Endpoints are scoped to an individual account, and are not public. The URL does not contain the account ID, but Amazon SageMaker determines the account ID from the authentication token that is supplied by the caller.
Auto Trait Implementations
impl !RefUnwindSafe for SageMakerRuntimeClient
impl Send for SageMakerRuntimeClient
impl Sync for SageMakerRuntimeClient
impl Unpin for SageMakerRuntimeClient
impl !UnwindSafe for SageMakerRuntimeClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more