[][src]Struct rusoto_iotthingsgraph::IotThingsGraphClient

pub struct IotThingsGraphClient { /* fields omitted */ }

A client for the AWS IoT Things Graph API.

Implementations

impl IotThingsGraphClient[src]

pub fn new(region: Region) -> IotThingsGraphClient[src]

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
) -> IotThingsGraphClient where
    P: ProvideAwsCredentials + Send + Sync + 'static,
    D: DispatchSignedRequest + Send + Sync + 'static, 
[src]

pub fn new_with_client(client: Client, region: Region) -> IotThingsGraphClient[src]

Trait Implementations

impl Clone for IotThingsGraphClient[src]

impl IotThingsGraph for IotThingsGraphClient[src]

fn associate_entity_to_thing<'life0, 'async_trait>(
    &'life0 self,
    input: AssociateEntityToThingRequest
) -> Pin<Box<dyn Future<Output = Result<AssociateEntityToThingResponse, RusotoError<AssociateEntityToThingError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Associates a device with a concrete thing that is in the user's registry.

A thing can be associated with only one device at a time. If you associate a thing with a new device id, its previous association will be removed.

fn create_flow_template<'life0, 'async_trait>(
    &'life0 self,
    input: CreateFlowTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<CreateFlowTemplateResponse, RusotoError<CreateFlowTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a workflow template. Workflows can be created only in the user's namespace. (The public namespace contains only entities.) The workflow can contain only entities in the specified namespace. The workflow is validated against the entities in the latest version of the user's namespace unless another namespace version is specified in the request.

fn create_system_instance<'life0, 'async_trait>(
    &'life0 self,
    input: CreateSystemInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<CreateSystemInstanceResponse, RusotoError<CreateSystemInstanceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a system instance.

This action validates the system instance, prepares the deployment-related resources. For Greengrass deployments, it updates the Greengrass group that is specified by the greengrassGroupName parameter. It also adds a file to the S3 bucket specified by the s3BucketName parameter. You need to call DeploySystemInstance after running this action.

For Greengrass deployments, since this action modifies and adds resources to a Greengrass group and an S3 bucket on the caller's behalf, the calling identity must have write permissions to both the specified Greengrass group and S3 bucket. Otherwise, the call will fail with an authorization error.

For cloud deployments, this action requires a flowActionsRoleArn value. This is an IAM role that has permissions to access AWS services, such as AWS Lambda and AWS IoT, that the flow uses when it executes.

If the definition document doesn't specify a version of the user's namespace, the latest version will be used by default.

fn create_system_template<'life0, 'async_trait>(
    &'life0 self,
    input: CreateSystemTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<CreateSystemTemplateResponse, RusotoError<CreateSystemTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a system. The system is validated against the entities in the latest version of the user's namespace unless another namespace version is specified in the request.

fn delete_flow_template<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteFlowTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteFlowTemplateResponse, RusotoError<DeleteFlowTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes a workflow. Any new system or deployment that contains this workflow will fail to update or deploy. Existing deployments that contain the workflow will continue to run (since they use a snapshot of the workflow taken at the time of deployment).

fn delete_namespace<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<DeleteNamespaceResponse, RusotoError<DeleteNamespaceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the specified namespace. This action deletes all of the entities in the namespace. Delete the systems and flows that use entities in the namespace before performing this action.

fn delete_system_instance<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteSystemInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteSystemInstanceResponse, RusotoError<DeleteSystemInstanceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes a system instance. Only system instances that have never been deployed, or that have been undeployed can be deleted.

Users can create a new system instance that has the same ID as a deleted system instance.

fn delete_system_template<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteSystemTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteSystemTemplateResponse, RusotoError<DeleteSystemTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes a system. New deployments can't contain the system after its deletion. Existing deployments that contain the system will continue to work because they use a snapshot of the system that is taken when it is deployed.

fn deploy_system_instance<'life0, 'async_trait>(
    &'life0 self,
    input: DeploySystemInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<DeploySystemInstanceResponse, RusotoError<DeploySystemInstanceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Greengrass and Cloud Deployments

Deploys the system instance to the target specified in CreateSystemInstance.

Greengrass Deployments

If the system or any workflows and entities have been updated before this action is called, then the deployment will create a new Amazon Simple Storage Service resource file and then deploy it.

Since this action creates a Greengrass deployment on the caller's behalf, the calling identity must have write permissions to the specified Greengrass group. Otherwise, the call will fail with an authorization error.

For information about the artifacts that get added to your Greengrass core device when you use this API, see AWS IoT Things Graph and AWS IoT Greengrass.

fn deprecate_flow_template<'life0, 'async_trait>(
    &'life0 self,
    input: DeprecateFlowTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<DeprecateFlowTemplateResponse, RusotoError<DeprecateFlowTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deprecates the specified workflow. This action marks the workflow for deletion. Deprecated flows can't be deployed, but existing deployments will continue to run.

fn deprecate_system_template<'life0, 'async_trait>(
    &'life0 self,
    input: DeprecateSystemTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<DeprecateSystemTemplateResponse, RusotoError<DeprecateSystemTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deprecates the specified system.

fn describe_namespace<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeNamespaceResponse, RusotoError<DescribeNamespaceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets the latest version of the user's namespace and the public version that it is tracking.

fn dissociate_entity_from_thing<'life0, 'async_trait>(
    &'life0 self,
    input: DissociateEntityFromThingRequest
) -> Pin<Box<dyn Future<Output = Result<DissociateEntityFromThingResponse, RusotoError<DissociateEntityFromThingError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Dissociates a device entity from a concrete thing. The action takes only the type of the entity that you need to dissociate because only one entity of a particular type can be associated with a thing.

fn get_entities<'life0, 'async_trait>(
    &'life0 self,
    input: GetEntitiesRequest
) -> Pin<Box<dyn Future<Output = Result<GetEntitiesResponse, RusotoError<GetEntitiesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets definitions of the specified entities. Uses the latest version of the user's namespace by default. This API returns the following TDM entities.

  • Properties

  • States

  • Events

  • Actions

  • Capabilities

  • Mappings

  • Devices

  • Device Models

  • Services

This action doesn't return definitions for systems, flows, and deployments.

fn get_flow_template<'life0, 'async_trait>(
    &'life0 self,
    input: GetFlowTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<GetFlowTemplateResponse, RusotoError<GetFlowTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets the latest version of the DefinitionDocument and FlowTemplateSummary for the specified workflow.

fn get_flow_template_revisions<'life0, 'async_trait>(
    &'life0 self,
    input: GetFlowTemplateRevisionsRequest
) -> Pin<Box<dyn Future<Output = Result<GetFlowTemplateRevisionsResponse, RusotoError<GetFlowTemplateRevisionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets revisions of the specified workflow. Only the last 100 revisions are stored. If the workflow has been deprecated, this action will return revisions that occurred before the deprecation. This action won't work for workflows that have been deleted.

fn get_namespace_deletion_status<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<GetNamespaceDeletionStatusResponse, RusotoError<GetNamespaceDeletionStatusError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets the status of a namespace deletion task.

fn get_system_instance<'life0, 'async_trait>(
    &'life0 self,
    input: GetSystemInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<GetSystemInstanceResponse, RusotoError<GetSystemInstanceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets a system instance.

fn get_system_template<'life0, 'async_trait>(
    &'life0 self,
    input: GetSystemTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<GetSystemTemplateResponse, RusotoError<GetSystemTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets a system.

fn get_system_template_revisions<'life0, 'async_trait>(
    &'life0 self,
    input: GetSystemTemplateRevisionsRequest
) -> Pin<Box<dyn Future<Output = Result<GetSystemTemplateRevisionsResponse, RusotoError<GetSystemTemplateRevisionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets revisions made to the specified system template. Only the previous 100 revisions are stored. If the system has been deprecated, this action will return the revisions that occurred before its deprecation. This action won't work with systems that have been deleted.

fn get_upload_status<'life0, 'async_trait>(
    &'life0 self,
    input: GetUploadStatusRequest
) -> Pin<Box<dyn Future<Output = Result<GetUploadStatusResponse, RusotoError<GetUploadStatusError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets the status of the specified upload.

fn list_flow_execution_messages<'life0, 'async_trait>(
    &'life0 self,
    input: ListFlowExecutionMessagesRequest
) -> Pin<Box<dyn Future<Output = Result<ListFlowExecutionMessagesResponse, RusotoError<ListFlowExecutionMessagesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns a list of objects that contain information about events in a flow execution.

fn list_tags_for_resource<'life0, 'async_trait>(
    &'life0 self,
    input: ListTagsForResourceRequest
) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists all tags on an AWS IoT Things Graph resource.

fn search_entities<'life0, 'async_trait>(
    &'life0 self,
    input: SearchEntitiesRequest
) -> Pin<Box<dyn Future<Output = Result<SearchEntitiesResponse, RusotoError<SearchEntitiesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Searches for entities of the specified type. You can search for entities in your namespace and the public namespace that you're tracking.

fn search_flow_executions<'life0, 'async_trait>(
    &'life0 self,
    input: SearchFlowExecutionsRequest
) -> Pin<Box<dyn Future<Output = Result<SearchFlowExecutionsResponse, RusotoError<SearchFlowExecutionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Searches for AWS IoT Things Graph workflow execution instances.

fn search_flow_templates<'life0, 'async_trait>(
    &'life0 self,
    input: SearchFlowTemplatesRequest
) -> Pin<Box<dyn Future<Output = Result<SearchFlowTemplatesResponse, RusotoError<SearchFlowTemplatesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Searches for summary information about workflows.

fn search_system_instances<'life0, 'async_trait>(
    &'life0 self,
    input: SearchSystemInstancesRequest
) -> Pin<Box<dyn Future<Output = Result<SearchSystemInstancesResponse, RusotoError<SearchSystemInstancesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Searches for system instances in the user's account.

fn search_system_templates<'life0, 'async_trait>(
    &'life0 self,
    input: SearchSystemTemplatesRequest
) -> Pin<Box<dyn Future<Output = Result<SearchSystemTemplatesResponse, RusotoError<SearchSystemTemplatesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Searches for summary information about systems in the user's account. You can filter by the ID of a workflow to return only systems that use the specified workflow.

fn search_things<'life0, 'async_trait>(
    &'life0 self,
    input: SearchThingsRequest
) -> Pin<Box<dyn Future<Output = Result<SearchThingsResponse, RusotoError<SearchThingsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Searches for things associated with the specified entity. You can search by both device and device model.

For example, if two different devices, camera1 and camera2, implement the camera device model, the user can associate thing1 to camera1 and thing2 to camera2. SearchThings(camera2) will return only thing2, but SearchThings(camera) will return both thing1 and thing2.

This action searches for exact matches and doesn't perform partial text matching.

fn tag_resource<'life0, 'async_trait>(
    &'life0 self,
    input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a tag for the specified resource.

fn undeploy_system_instance<'life0, 'async_trait>(
    &'life0 self,
    input: UndeploySystemInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<UndeploySystemInstanceResponse, RusotoError<UndeploySystemInstanceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Removes a system instance from its target (Cloud or Greengrass).

fn untag_resource<'life0, 'async_trait>(
    &'life0 self,
    input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Removes a tag from the specified resource.

fn update_flow_template<'life0, 'async_trait>(
    &'life0 self,
    input: UpdateFlowTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateFlowTemplateResponse, RusotoError<UpdateFlowTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Updates the specified workflow. All deployed systems and system instances that use the workflow will see the changes in the flow when it is redeployed. If you don't want this behavior, copy the workflow (creating a new workflow with a different ID), and update the copy. The workflow can contain only entities in the specified namespace.

fn update_system_template<'life0, 'async_trait>(
    &'life0 self,
    input: UpdateSystemTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateSystemTemplateResponse, RusotoError<UpdateSystemTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Updates the specified system. You don't need to run this action after updating a workflow. Any deployment that uses the system will see the changes in the system when it is redeployed.

fn upload_entity_definitions<'life0, 'async_trait>(
    &'life0 self,
    input: UploadEntityDefinitionsRequest
) -> Pin<Box<dyn Future<Output = Result<UploadEntityDefinitionsResponse, RusotoError<UploadEntityDefinitionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Asynchronously uploads one or more entity definitions to the user's namespace. The document parameter is required if syncWithPublicNamespace and deleteExistingEntites are false. If the syncWithPublicNamespace parameter is set to true, the user's namespace will synchronize with the latest version of the public namespace. If deprecateExistingEntities is set to true, all entities in the latest version will be deleted before the new DefinitionDocument is uploaded.

When a user uploads entity definitions for the first time, the service creates a new namespace for the user. The new namespace tracks the public namespace. Currently users can have only one namespace. The namespace version increments whenever a user uploads entity definitions that are backwards-incompatible and whenever a user sets the syncWithPublicNamespace parameter or the deprecateExistingEntities parameter to true.

The IDs for all of the entities should be in URN format. Each entity must be in the user's namespace. Users can't create entities in the public namespace, but entity definitions can refer to entities in the public namespace.

Valid entities are Device, DeviceModel, Service, Capability, State, Action, Event, Property, Mapping, Enum.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.