Struct aws_sdk_iotdeviceadvisor::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Client for AWS IoT Core Device Advisor
Client for invoking operations on AWS IoT Core Device Advisor. Each operation on AWS IoT Core Device Advisor 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_iotdeviceadvisor::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_iotdeviceadvisor::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_iotdeviceadvisor::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 create_suite_definition(&self) -> CreateSuiteDefinition
pub fn create_suite_definition(&self) -> CreateSuiteDefinition
Constructs a fluent builder for the CreateSuiteDefinition operation.
- The fluent builder is configurable:
suite_definition_configuration(SuiteDefinitionConfiguration)/set_suite_definition_configuration(Option<SuiteDefinitionConfiguration>):Creates a Device Advisor test suite with suite definition configuration.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags to be attached to the suite definition.
- On success, responds with
CreateSuiteDefinitionOutputwith field(s):suite_definition_id(Option<String>):Creates a Device Advisor test suite with suite UUID.
suite_definition_arn(Option<String>):Creates a Device Advisor test suite with Amazon Resource Name (ARN).
suite_definition_name(Option<String>):Creates a Device Advisor test suite with suite definition name.
created_at(Option<DateTime>):Creates a Device Advisor test suite with TimeStamp of when it was created.
- On failure, responds with
SdkError<CreateSuiteDefinitionError>
sourcepub fn delete_suite_definition(&self) -> DeleteSuiteDefinition
pub fn delete_suite_definition(&self) -> DeleteSuiteDefinition
Constructs a fluent builder for the DeleteSuiteDefinition operation.
- The fluent builder is configurable:
suite_definition_id(impl Into<String>)/set_suite_definition_id(Option<String>):Suite definition ID of the test suite to be deleted.
- On success, responds with
DeleteSuiteDefinitionOutput - On failure, responds with
SdkError<DeleteSuiteDefinitionError>
sourcepub fn get_endpoint(&self) -> GetEndpoint
pub fn get_endpoint(&self) -> GetEndpoint
Constructs a fluent builder for the GetEndpoint operation.
- The fluent builder is configurable:
thing_arn(impl Into<String>)/set_thing_arn(Option<String>):The thing ARN of the device. This is an optional parameter.
certificate_arn(impl Into<String>)/set_certificate_arn(Option<String>):The certificate ARN of the device. This is an optional parameter.
- On success, responds with
GetEndpointOutputwith field(s):endpoint(Option<String>):The response of an Device Advisor endpoint.
- On failure, responds with
SdkError<GetEndpointError>
sourcepub fn get_suite_definition(&self) -> GetSuiteDefinition
pub fn get_suite_definition(&self) -> GetSuiteDefinition
Constructs a fluent builder for the GetSuiteDefinition operation.
- The fluent builder is configurable:
suite_definition_id(impl Into<String>)/set_suite_definition_id(Option<String>):Suite definition ID of the test suite to get.
suite_definition_version(impl Into<String>)/set_suite_definition_version(Option<String>):Suite definition version of the test suite to get.
- On success, responds with
GetSuiteDefinitionOutputwith field(s):suite_definition_id(Option<String>):Suite definition ID of the suite definition.
suite_definition_arn(Option<String>):The ARN of the suite definition.
suite_definition_version(Option<String>):Suite definition version of the suite definition.
latest_version(Option<String>):Latest suite definition version of the suite definition.
suite_definition_configuration(Option<SuiteDefinitionConfiguration>):Suite configuration of the suite definition.
created_at(Option<DateTime>):Date (in Unix epoch time) when the suite definition was created.
last_modified_at(Option<DateTime>):Date (in Unix epoch time) when the suite definition was last modified.
tags(Option<HashMap<String, String>>):Tags attached to the suite definition.
- On failure, responds with
SdkError<GetSuiteDefinitionError>
sourcepub fn get_suite_run(&self) -> GetSuiteRun
pub fn get_suite_run(&self) -> GetSuiteRun
Constructs a fluent builder for the GetSuiteRun operation.
- The fluent builder is configurable:
suite_definition_id(impl Into<String>)/set_suite_definition_id(Option<String>):Suite definition ID for the test suite run.
suite_run_id(impl Into<String>)/set_suite_run_id(Option<String>):Suite run ID for the test suite run.
- On success, responds with
GetSuiteRunOutputwith field(s):suite_definition_id(Option<String>):Suite definition ID for the test suite run.
suite_definition_version(Option<String>):Suite definition version for the test suite run.
suite_run_id(Option<String>):Suite run ID for the test suite run.
suite_run_arn(Option<String>):The ARN of the suite run.
suite_run_configuration(Option<SuiteRunConfiguration>):Suite run configuration for the test suite run.
test_result(Option<TestResult>):Test results for the test suite run.
start_time(Option<DateTime>):Date (in Unix epoch time) when the test suite run started.
end_time(Option<DateTime>):Date (in Unix epoch time) when the test suite run ended.
status(Option<SuiteRunStatus>):Status for the test suite run.
error_reason(Option<String>):Error reason for any test suite run failure.
tags(Option<HashMap<String, String>>):The tags attached to the suite run.
- On failure, responds with
SdkError<GetSuiteRunError>
sourcepub fn get_suite_run_report(&self) -> GetSuiteRunReport
pub fn get_suite_run_report(&self) -> GetSuiteRunReport
Constructs a fluent builder for the GetSuiteRunReport operation.
- The fluent builder is configurable:
suite_definition_id(impl Into<String>)/set_suite_definition_id(Option<String>):Suite definition ID of the test suite.
suite_run_id(impl Into<String>)/set_suite_run_id(Option<String>):Suite run ID of the test suite run.
- On success, responds with
GetSuiteRunReportOutputwith field(s):qualification_report_download_url(Option<String>):Download URL of the qualification report.
- On failure, responds with
SdkError<GetSuiteRunReportError>
sourcepub fn list_suite_definitions(&self) -> ListSuiteDefinitions
pub fn list_suite_definitions(&self) -> ListSuiteDefinitions
Constructs a fluent builder for the ListSuiteDefinitions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(i32):The maximum number of results to return at once.
next_token(impl Into<String>)/set_next_token(Option<String>):A token used to get the next set of results.
- On success, responds with
ListSuiteDefinitionsOutputwith field(s):suite_definition_information_list(Option<Vec<SuiteDefinitionInformation>>):An array of objects that provide summaries of information about the suite definitions in the list.
next_token(Option<String>):A token used to get the next set of results.
- On failure, responds with
SdkError<ListSuiteDefinitionsError>
sourcepub fn list_suite_runs(&self) -> ListSuiteRuns
pub fn list_suite_runs(&self) -> ListSuiteRuns
Constructs a fluent builder for the ListSuiteRuns operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
suite_definition_id(impl Into<String>)/set_suite_definition_id(Option<String>):Lists the test suite runs of the specified test suite based on suite definition ID.
suite_definition_version(impl Into<String>)/set_suite_definition_version(Option<String>):Must be passed along with
suiteDefinitionId. Lists the test suite runs of the specified test suite based on suite definition version.max_results(i32)/set_max_results(i32):The maximum number of results to return at once.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to retrieve the next set of results.
- On success, responds with
ListSuiteRunsOutputwith field(s):suite_runs_list(Option<Vec<SuiteRunInformation>>):An array of objects that provide summaries of information about the suite runs in the list.
next_token(Option<String>):A token to retrieve the next set of results.
- On failure, responds with
SdkError<ListSuiteRunsError>
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 IoT Device Advisor resource.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap<String, String>>):The tags attached to the IoT Device Advisor resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn start_suite_run(&self) -> StartSuiteRun
pub fn start_suite_run(&self) -> StartSuiteRun
Constructs a fluent builder for the StartSuiteRun operation.
- The fluent builder is configurable:
suite_definition_id(impl Into<String>)/set_suite_definition_id(Option<String>):Suite definition ID of the test suite.
suite_definition_version(impl Into<String>)/set_suite_definition_version(Option<String>):Suite definition version of the test suite.
suite_run_configuration(SuiteRunConfiguration)/set_suite_run_configuration(Option<SuiteRunConfiguration>):Suite run configuration.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags to be attached to the suite run.
- On success, responds with
StartSuiteRunOutputwith field(s):suite_run_id(Option<String>):Suite Run ID of the started suite run.
suite_run_arn(Option<String>):Amazon Resource Name (ARN) of the started suite run.
created_at(Option<DateTime>):Starts a Device Advisor test suite run based on suite create time.
- On failure, responds with
SdkError<StartSuiteRunError>
sourcepub fn stop_suite_run(&self) -> StopSuiteRun
pub fn stop_suite_run(&self) -> StopSuiteRun
Constructs a fluent builder for the StopSuiteRun operation.
- The fluent builder is configurable:
suite_definition_id(impl Into<String>)/set_suite_definition_id(Option<String>):Suite definition ID of the test suite run to be stopped.
suite_run_id(impl Into<String>)/set_suite_run_id(Option<String>):Suite run ID of the test suite run to be stopped.
- On success, responds with
StopSuiteRunOutput - On failure, responds with
SdkError<StopSuiteRunError>
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 resource ARN of an IoT Device Advisor resource.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags to be attached to the IoT Device Advisor resource.
- 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 resource ARN of an IoT Device Advisor resource.
tag_keys(Vec<String>)/set_tag_keys(Option<Vec<String>>):List of tag keys to remove from the IoT Device Advisor resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_suite_definition(&self) -> UpdateSuiteDefinition
pub fn update_suite_definition(&self) -> UpdateSuiteDefinition
Constructs a fluent builder for the UpdateSuiteDefinition operation.
- The fluent builder is configurable:
suite_definition_id(impl Into<String>)/set_suite_definition_id(Option<String>):Suite definition ID of the test suite to be updated.
suite_definition_configuration(SuiteDefinitionConfiguration)/set_suite_definition_configuration(Option<SuiteDefinitionConfiguration>):Updates a Device Advisor test suite with suite definition configuration.
- On success, responds with
UpdateSuiteDefinitionOutputwith field(s):suite_definition_id(Option<String>):Suite definition ID of the updated test suite.
suite_definition_arn(Option<String>):Amazon Resource Name (ARN) of the updated test suite.
suite_definition_name(Option<String>):Suite definition name of the updated test suite.
suite_definition_version(Option<String>):Suite definition version of the updated test suite.
created_at(Option<DateTime>):Timestamp of when the test suite was created.
last_updated_at(Option<DateTime>):Timestamp of when the test suite was updated.
- On failure, responds with
SdkError<UpdateSuiteDefinitionError>
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