Struct aws_sdk_elasticinference::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* 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
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
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>
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>
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>
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>
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>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<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