Struct aws_sdk_elasticinference::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for Amazon Elastic Inference
Client for invoking operations on Amazon Elastic Inference. Each operation on Amazon Elastic Inference is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_elasticinference::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_elasticinference::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_elasticinference::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn describe_accelerator_offerings(&self) -> DescribeAcceleratorOfferings
pub fn describe_accelerator_offerings(&self) -> DescribeAcceleratorOfferings
Constructs a fluent builder for the DescribeAcceleratorOfferings
operation.
- The fluent builder is configurable:
location_type(LocationType)
/set_location_type(Option<LocationType>)
:The location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.
accelerator_types(Vec<String>)
/set_accelerator_types(Option<Vec<String>>)
:The list of accelerator types to describe.
- On success, responds with
DescribeAcceleratorOfferingsOutput
with field(s):accelerator_type_offerings(Option<Vec<AcceleratorTypeOffering>>)
:The list of accelerator type offerings for a specific location.
- On failure, responds with
SdkError<DescribeAcceleratorOfferingsError>
sourcepub fn describe_accelerators(&self) -> DescribeAccelerators
pub fn describe_accelerators(&self) -> DescribeAccelerators
Constructs a fluent builder for the DescribeAccelerators
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
accelerator_ids(Vec<String>)
/set_accelerator_ids(Option<Vec<String>>)
:The IDs of the accelerators to describe.
filters(Vec<Filter>)
/set_filters(Option<Vec<Filter>>)
:One or more filters. Filter names and values are case-sensitive. Valid filter names are: accelerator-types: can provide a list of accelerator type names to filter for. instance-id: can provide a list of EC2 instance ids to filter for.
max_results(i32)
/set_max_results(i32)
:The total number of items to return in the command’s output. If the total number of items available is more than the value specified, a NextToken is provided in the command’s output. To resume pagination, provide the NextToken value in the starting-token argument of a subsequent command. Do not use the NextToken response element directly outside of the AWS CLI.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A token to specify where to start paginating. This is the NextToken from a previously truncated response.
- On success, responds with
DescribeAcceleratorsOutput
with field(s):accelerator_set(Option<Vec<ElasticInferenceAccelerator>>)
:The details of the Elastic Inference Accelerators.
next_token(Option<String>)
:A token to specify where to start paginating. This is the NextToken from a previously truncated response.
- On failure, responds with
SdkError<DescribeAcceleratorsError>
sourcepub fn describe_accelerator_types(&self) -> DescribeAcceleratorTypes
pub fn describe_accelerator_types(&self) -> DescribeAcceleratorTypes
Constructs a fluent builder for the DescribeAcceleratorTypes
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeAcceleratorTypesOutput
with field(s):accelerator_types(Option<Vec<AcceleratorType>>)
:The available accelerator types.
- On failure, responds with
SdkError<DescribeAcceleratorTypesError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the Elastic Inference Accelerator to list the tags for.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap<String, String>>)
:The tags of the Elastic Inference Accelerator.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the Elastic Inference Accelerator to tag.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The tags to add to the Elastic Inference Accelerator.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the Elastic Inference Accelerator to untag.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The list of tags to remove from the Elastic Inference Accelerator.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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> 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