Struct aws_sdk_iot1clickprojects::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }Expand description
Client for AWS IoT 1-Click Projects Service
Client for invoking operations on AWS IoT 1-Click Projects Service. Each operation on AWS IoT 1-Click Projects Service 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_iot1clickprojects::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_iot1clickprojects::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_iot1clickprojects::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 AssociateDeviceWithPlacement operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project containing the placement in which to associate the device.
placement_name(impl Into<String>)/set_placement_name(Option<String>):The name of the placement in which to associate the device.
device_id(impl Into<String>)/set_device_id(Option<String>):The ID of the physical device to be associated with the given placement in the project. Note that a mandatory 4 character prefix is required for all
deviceIdvalues.device_template_name(impl Into<String>)/set_device_template_name(Option<String>):The device template name to associate with the device ID.
- On success, responds with
AssociateDeviceWithPlacementOutput - On failure, responds with
SdkError<AssociateDeviceWithPlacementError>
Constructs a fluent builder for the CreatePlacement operation.
- The fluent builder is configurable:
placement_name(impl Into<String>)/set_placement_name(Option<String>):The name of the placement to be created.
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project in which to create the placement.
attributes(HashMap<String, String>)/set_attributes(Option<HashMap<String, String>>):Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement.
- On success, responds with
CreatePlacementOutput - On failure, responds with
SdkError<CreatePlacementError>
Constructs a fluent builder for the CreateProject operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project to create.
description(impl Into<String>)/set_description(Option<String>):An optional description for the project.
placement_template(PlacementTemplate)/set_placement_template(Option<PlacementTemplate>):The schema defining the placement to be created. A placement template defines placement default attributes and device templates. You cannot add or remove device templates after the project has been created. However, you can update
callbackOverridesfor the device templates using theUpdateProjectAPI.tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):Optional tags (metadata key/value pairs) to be associated with the project. For example,
{ {“key1”: “value1”, “key2”: “value2”} }. For more information, see AWS Tagging Strategies.
- On success, responds with
CreateProjectOutput - On failure, responds with
SdkError<CreateProjectError>
Constructs a fluent builder for the DeletePlacement operation.
- The fluent builder is configurable:
placement_name(impl Into<String>)/set_placement_name(Option<String>):The name of the empty placement to delete.
project_name(impl Into<String>)/set_project_name(Option<String>):The project containing the empty placement to delete.
- On success, responds with
DeletePlacementOutput - On failure, responds with
SdkError<DeletePlacementError>
Constructs a fluent builder for the DeleteProject operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the empty project to delete.
- On success, responds with
DeleteProjectOutput - On failure, responds with
SdkError<DeleteProjectError>
Constructs a fluent builder for the DescribePlacement operation.
- The fluent builder is configurable:
placement_name(impl Into<String>)/set_placement_name(Option<String>):The name of the placement within a project.
project_name(impl Into<String>)/set_project_name(Option<String>):The project containing the placement to be described.
- On success, responds with
DescribePlacementOutputwith field(s):placement(Option<PlacementDescription>):An object describing the placement.
- On failure, responds with
SdkError<DescribePlacementError>
Constructs a fluent builder for the DescribeProject operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project to be described.
- On success, responds with
DescribeProjectOutputwith field(s):project(Option<ProjectDescription>):An object describing the project.
- On failure, responds with
SdkError<DescribeProjectError>
Constructs a fluent builder for the DisassociateDeviceFromPlacement operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the placement.
placement_name(impl Into<String>)/set_placement_name(Option<String>):The name of the placement that the device should be removed from.
device_template_name(impl Into<String>)/set_device_template_name(Option<String>):The device ID that should be removed from the placement.
- On success, responds with
DisassociateDeviceFromPlacementOutput - On failure, responds with
SdkError<DisassociateDeviceFromPlacementError>
Constructs a fluent builder for the GetDevicesInPlacement operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project containing the placement.
placement_name(impl Into<String>)/set_placement_name(Option<String>):The name of the placement to get the devices from.
- On success, responds with
GetDevicesInPlacementOutputwith field(s):devices(Option<HashMap<String, String>>):An object containing the devices (zero or more) within the placement.
- On failure, responds with
SdkError<GetDevicesInPlacementError>
Constructs a fluent builder for the ListPlacements operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The project containing the placements to be listed.
next_token(impl Into<String>)/set_next_token(Option<String>):The token to retrieve the next set of results.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per request. If not set, a default value of 100 is used.
- On success, responds with
ListPlacementsOutputwith field(s):placements(Option<Vec<PlacementSummary>>):An object listing the requested placements.
next_token(Option<String>):The token used to retrieve the next set of results - will be effectively empty if there are no further results.
- On failure, responds with
SdkError<ListPlacementsError>
Constructs a fluent builder for the ListProjects operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):The token to retrieve the next set of results.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per request. If not set, a default value of 100 is used.
- On success, responds with
ListProjectsOutputwith field(s):projects(Option<Vec<ProjectSummary>>):An object containing the list of projects.
next_token(Option<String>):The token used to retrieve the next set of results - will be effectively empty if there are no further results.
- On failure, responds with
SdkError<ListProjectsError>
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 resource whose tags you want to list.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap<String, String>>):The tags (metadata key/value pairs) which you have assigned to the resource.
- 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 resouce for which tag(s) should be added or modified.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The new or modifying tag(s) for the resource. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per resource.
- 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 resource whose tag you want to remove.
tag_keys(Vec<String>)/set_tag_keys(Option<Vec<String>>):The keys of those tags which you want to remove.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Constructs a fluent builder for the UpdatePlacement operation.
- The fluent builder is configurable:
placement_name(impl Into<String>)/set_placement_name(Option<String>):The name of the placement to update.
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project containing the placement to be updated.
attributes(HashMap<String, String>)/set_attributes(Option<HashMap<String, String>>):The user-defined object of attributes used to update the placement. The maximum number of key/value pairs is 50.
- On success, responds with
UpdatePlacementOutput - On failure, responds with
SdkError<UpdatePlacementError>
Constructs a fluent builder for the UpdateProject operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project to be updated.
description(impl Into<String>)/set_description(Option<String>):An optional user-defined description for the project.
placement_template(PlacementTemplate)/set_placement_template(Option<PlacementTemplate>):An object defining the project update. Once a project has been created, you cannot add device template names to the project. However, for a given
placementTemplate, you can update the associatedcallbackOverridesfor the device definition using this API.
- On success, responds with
UpdateProjectOutput - On failure, responds with
SdkError<UpdateProjectError>
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