pub struct Client { /* private fields */ }
Expand description
Client for Managed integrations for AWS IoT Device Management
Client for invoking operations on Managed integrations for AWS IoT Device Management. Each operation on Managed integrations for AWS IoT Device Management is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_iotmanagedintegrations::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Builder
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_iotmanagedintegrations::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the CreateAccountAssociation
operation has
a Client::create_account_association
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.create_account_association()
.client_token("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
Source§impl Client
impl Client
Sourcepub fn create_account_association(
&self,
) -> CreateAccountAssociationFluentBuilder
pub fn create_account_association( &self, ) -> CreateAccountAssociationFluentBuilder
Constructs a fluent builder for the CreateAccountAssociation
operation.
- The fluent builder is configurable:
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
connector_destination_id(impl Into<String>)
/set_connector_destination_id(Option<String>)
:
required: trueThe identifier of the connector destination.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the destination for the new account association.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseA description of the account association request.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseA set of key/value pairs that are used to manage the account association.
- On success, responds with
CreateAccountAssociationOutput
with field(s):o_auth_authorization_url(String)
:Third-party IoT platform OAuth authorization server URL backed with all the required parameters to perform end-user authentication.
account_association_id(String)
:The identifier for the account association request.
association_state(AssociationState)
:The current state of the account association request.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the account association.
- On failure, responds with
SdkError<CreateAccountAssociationError>
Source§impl Client
impl Client
Sourcepub fn create_cloud_connector(&self) -> CreateCloudConnectorFluentBuilder
pub fn create_cloud_connector(&self) -> CreateCloudConnectorFluentBuilder
Constructs a fluent builder for the CreateCloudConnector
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe display name of the C2C connector.
endpoint_config(EndpointConfig)
/set_endpoint_config(Option<EndpointConfig>)
:
required: trueThe configuration details for the cloud connector endpoint, including connection parameters and authentication requirements.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseA description of the C2C connector.
endpoint_type(EndpointType)
/set_endpoint_type(Option<EndpointType>)
:
required: falseThe type of endpoint used for the cloud connector, which defines how the connector communicates with external services.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
- On success, responds with
CreateCloudConnectorOutput
with field(s):id(Option<String>)
:The unique identifier assigned to the newly created cloud connector.
- On failure, responds with
SdkError<CreateCloudConnectorError>
Source§impl Client
impl Client
Sourcepub fn create_connector_destination(
&self,
) -> CreateConnectorDestinationFluentBuilder
pub fn create_connector_destination( &self, ) -> CreateConnectorDestinationFluentBuilder
Constructs a fluent builder for the CreateConnectorDestination
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe display name of the connector destination.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseA description of the connector destination.
cloud_connector_id(impl Into<String>)
/set_cloud_connector_id(Option<String>)
:
required: trueThe identifier of the C2C connector.
auth_type(AuthType)
/set_auth_type(Option<AuthType>)
:
required: trueThe authentication type used for the connector destination, which determines how credentials and access are managed.
auth_config(AuthConfig)
/set_auth_config(Option<AuthConfig>)
:
required: trueThe authentication configuration details for the connector destination, including OAuth settings and other authentication parameters.
secrets_manager(SecretsManager)
/set_secrets_manager(Option<SecretsManager>)
:
required: trueThe AWS Secrets Manager configuration used to securely store and manage sensitive information for the connector destination.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
- On success, responds with
CreateConnectorDestinationOutput
with field(s):id(Option<String>)
:The identifier of the C2C connector destination creation request.
- On failure, responds with
SdkError<CreateConnectorDestinationError>
Source§impl Client
impl Client
Sourcepub fn create_credential_locker(&self) -> CreateCredentialLockerFluentBuilder
pub fn create_credential_locker(&self) -> CreateCredentialLockerFluentBuilder
Constructs a fluent builder for the CreateCredentialLocker
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the credential locker.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseA set of key/value pairs that are used to manage the credential locker.
- On success, responds with
CreateCredentialLockerOutput
with field(s):id(Option<String>)
:The identifier of the credential locker creation request.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the credential locker.
created_at(Option<DateTime>)
:The timestamp value of when the credential locker request occurred.
- On failure, responds with
SdkError<CreateCredentialLockerError>
Source§impl Client
impl Client
Sourcepub fn create_destination(&self) -> CreateDestinationFluentBuilder
pub fn create_destination(&self) -> CreateDestinationFluentBuilder
Constructs a fluent builder for the CreateDestination
operation.
- The fluent builder is configurable:
delivery_destination_arn(impl Into<String>)
/set_delivery_destination_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the customer-managed destination.
delivery_destination_type(DeliveryDestinationType)
/set_delivery_destination_type(Option<DeliveryDestinationType>)
:
required: trueThe destination type for the customer-managed destination.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the customer-managed destination.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the delivery destination role.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the customer-managed destination.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseA set of key/value pairs that are used to manage the destination.
- On success, responds with
CreateDestinationOutput
with field(s):name(Option<String>)
:The name of the customer-managed destination.
- On failure, responds with
SdkError<CreateDestinationError>
Source§impl Client
impl Client
Sourcepub fn create_event_log_configuration(
&self,
) -> CreateEventLogConfigurationFluentBuilder
pub fn create_event_log_configuration( &self, ) -> CreateEventLogConfigurationFluentBuilder
Constructs a fluent builder for the CreateEventLogConfiguration
operation.
- The fluent builder is configurable:
resource_type(impl Into<String>)
/set_resource_type(Option<String>)
:
required: trueThe type of resource for the event log configuration.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:
required: falseThe identifier of the resource for the event log configuration.
event_log_level(LogLevel)
/set_event_log_level(Option<LogLevel>)
:
required: trueThe logging level for the event log configuration.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
- On success, responds with
CreateEventLogConfigurationOutput
with field(s):id(Option<String>)
:The identifier of the event log configuration request.
- On failure, responds with
SdkError<CreateEventLogConfigurationError>
Source§impl Client
impl Client
Sourcepub fn create_managed_thing(&self) -> CreateManagedThingFluentBuilder
pub fn create_managed_thing(&self) -> CreateManagedThingFluentBuilder
Constructs a fluent builder for the CreateManagedThing
operation.
- The fluent builder is configurable:
role(Role)
/set_role(Option<Role>)
:
required: trueThe type of device used. This will be the hub controller, cloud device, or AWS IoT device.
owner(impl Into<String>)
/set_owner(Option<String>)
:
required: falseOwner of the device, usually an indication of whom the device belongs to. This value should not contain personal identifiable information.
credential_locker_id(impl Into<String>)
/set_credential_locker_id(Option<String>)
:
required: falseThe identifier of the credential for the managed thing.
authentication_material(impl Into<String>)
/set_authentication_material(Option<String>)
:
required: trueThe authentication material defining the device connectivity setup requests. The authentication materials used are the device bar code.
authentication_material_type(AuthMaterialType)
/set_authentication_material_type(Option<AuthMaterialType>)
:
required: trueThe type of authentication material used for device connectivity setup requests.
serial_number(impl Into<String>)
/set_serial_number(Option<String>)
:
required: falseThe serial number of the device.
brand(impl Into<String>)
/set_brand(Option<String>)
:
required: falseThe brand of the device.
model(impl Into<String>)
/set_model(Option<String>)
:
required: falseThe model of the device.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the managed thing representing the physical device.
capability_report(CapabilityReport)
/set_capability_report(Option<CapabilityReport>)
:
required: falseA report of the capabilities for the managed thing.
capability_schemas(CapabilitySchemaItem)
/set_capability_schemas(Option<Vec::<CapabilitySchemaItem>>)
:
required: falseThe capability schemas that define the functionality and features supported by the managed thing, including device capabilities and their associated properties.
capabilities(impl Into<String>)
/set_capabilities(Option<String>)
:
required: falseThe capabilities of the device such as light bulb.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
classification(impl Into<String>)
/set_classification(Option<String>)
:
required: falseThe classification of the managed thing such as light bulb or thermostat.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseA set of key/value pairs that are used to manage the managed thing.
meta_data(impl Into<String>, impl Into<String>)
/set_meta_data(Option<HashMap::<String, String>>)
:
required: falseThe metadata for the managed thing.
The
managedThing
metadata
parameter is used for associating attributes with amanagedThing
that can be used for grouping over-the-air (OTA) tasks. Name value pairs inmetadata
can be used in theOtaTargetQueryString
parameter for theCreateOtaTask
API operation.
- On success, responds with
CreateManagedThingOutput
with field(s):id(Option<String>)
:The id of the managed thing.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the managed thing.
created_at(Option<DateTime>)
:The timestamp value of when the device creation request occurred.
- On failure, responds with
SdkError<CreateManagedThingError>
Source§impl Client
impl Client
Sourcepub fn create_notification_configuration(
&self,
) -> CreateNotificationConfigurationFluentBuilder
pub fn create_notification_configuration( &self, ) -> CreateNotificationConfigurationFluentBuilder
Constructs a fluent builder for the CreateNotificationConfiguration
operation.
- The fluent builder is configurable:
event_type(EventType)
/set_event_type(Option<EventType>)
:
required: trueThe type of event triggering a device notification to the customer-managed destination.
destination_name(impl Into<String>)
/set_destination_name(Option<String>)
:
required: trueThe name of the destination for the notification configuration.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseA set of key/value pairs that are used to manage the notification configuration.
- On success, responds with
CreateNotificationConfigurationOutput
with field(s):event_type(Option<EventType>)
:The type of event triggering a device notification to the customer-managed destination.
- On failure, responds with
SdkError<CreateNotificationConfigurationError>
Source§impl Client
impl Client
Sourcepub fn create_ota_task(&self) -> CreateOtaTaskFluentBuilder
pub fn create_ota_task(&self) -> CreateOtaTaskFluentBuilder
Constructs a fluent builder for the CreateOtaTask
operation.
- The fluent builder is configurable:
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the over-the-air (OTA) task.
s3_url(impl Into<String>)
/set_s3_url(Option<String>)
:
required: trueThe URL to the Amazon S3 bucket where the over-the-air (OTA) task is stored.
protocol(OtaProtocol)
/set_protocol(Option<OtaProtocol>)
:
required: falseThe connection protocol the over-the-air (OTA) task uses to update the device.
target(impl Into<String>)
/set_target(Option<Vec::<String>>)
:
required: falseThe device targeted for the over-the-air (OTA) task.
task_configuration_id(impl Into<String>)
/set_task_configuration_id(Option<String>)
:
required: falseThe identifier for the over-the-air (OTA) task configuration.
ota_mechanism(OtaMechanism)
/set_ota_mechanism(Option<OtaMechanism>)
:
required: falseThe deployment mechanism for the over-the-air (OTA) task.
ota_type(OtaType)
/set_ota_type(Option<OtaType>)
:
required: trueThe frequency type for the over-the-air (OTA) task.
ota_target_query_string(impl Into<String>)
/set_ota_target_query_string(Option<String>)
:
required: falseThe query string to add things to the thing group.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
ota_scheduling_config(OtaTaskSchedulingConfig)
/set_ota_scheduling_config(Option<OtaTaskSchedulingConfig>)
:
required: falseOver-the-air (OTA) task scheduling config.
ota_task_execution_retry_config(OtaTaskExecutionRetryConfig)
/set_ota_task_execution_retry_config(Option<OtaTaskExecutionRetryConfig>)
:
required: falseOver-the-air (OTA) task retry config.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseA set of key/value pairs that are used to manage the over-the-air (OTA) task.
- On success, responds with
CreateOtaTaskOutput
with field(s):task_id(Option<String>)
:The identifier of the over-the-air (OTA) task.
task_arn(Option<String>)
:The Amazon Resource Name (ARN) of the over-the-air (OTA) task.
description(Option<String>)
:A description of the over-the-air (OTA) task.
- On failure, responds with
SdkError<CreateOtaTaskError>
Source§impl Client
impl Client
Sourcepub fn create_ota_task_configuration(
&self,
) -> CreateOtaTaskConfigurationFluentBuilder
pub fn create_ota_task_configuration( &self, ) -> CreateOtaTaskConfigurationFluentBuilder
Constructs a fluent builder for the CreateOtaTaskConfiguration
operation.
- The fluent builder is configurable:
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseA description of the over-the-air (OTA) task configuration.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the over-the-air (OTA) task.
push_config(PushConfig)
/set_push_config(Option<PushConfig>)
:
required: falseDescribes the type of configuration used for the over-the-air (OTA) task.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
- On success, responds with
CreateOtaTaskConfigurationOutput
with field(s):task_configuration_id(Option<String>)
:The identifier of the over-the-air (OTA) task configuration.
- On failure, responds with
SdkError<CreateOtaTaskConfigurationError>
Source§impl Client
impl Client
Sourcepub fn create_provisioning_profile(
&self,
) -> CreateProvisioningProfileFluentBuilder
pub fn create_provisioning_profile( &self, ) -> CreateProvisioningProfileFluentBuilder
Constructs a fluent builder for the CreateProvisioningProfile
operation.
- The fluent builder is configurable:
provisioning_type(ProvisioningType)
/set_provisioning_type(Option<ProvisioningType>)
:
required: trueThe type of provisioning workflow the device uses for onboarding to IoT managed integrations.
ca_certificate(impl Into<String>)
/set_ca_certificate(Option<String>)
:
required: falseThe id of the certificate authority (CA) certificate.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the provisioning template.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseA set of key/value pairs that are used to manage the provisioning profile.
- On success, responds with
CreateProvisioningProfileOutput
with field(s):arn(Option<String>)
:The Amazon Resource Name (ARN) of the provisioning template used in the provisioning profile.
name(Option<String>)
:The name of the provisioning template.
provisioning_type(Option<ProvisioningType>)
:The type of provisioning workflow the device uses for onboarding to IoT managed integrations.
id(Option<String>)
:The identifier of the provisioning profile.
claim_certificate(Option<String>)
:The id of the claim certificate.
claim_certificate_private_key(Option<String>)
:The private key of the claim certificate. This is stored securely on the device for validating the connection endpoint with IoT managed integrations using the public key.
- On failure, responds with
SdkError<CreateProvisioningProfileError>
Source§impl Client
impl Client
Sourcepub fn delete_account_association(
&self,
) -> DeleteAccountAssociationFluentBuilder
pub fn delete_account_association( &self, ) -> DeleteAccountAssociationFluentBuilder
Constructs a fluent builder for the DeleteAccountAssociation
operation.
- The fluent builder is configurable:
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: trueThe unique identifier of the account association to be deleted.
- On success, responds with
DeleteAccountAssociationOutput
- On failure, responds with
SdkError<DeleteAccountAssociationError>
Source§impl Client
impl Client
Sourcepub fn delete_cloud_connector(&self) -> DeleteCloudConnectorFluentBuilder
pub fn delete_cloud_connector(&self) -> DeleteCloudConnectorFluentBuilder
Constructs a fluent builder for the DeleteCloudConnector
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the cloud connector.
- On success, responds with
DeleteCloudConnectorOutput
- On failure, responds with
SdkError<DeleteCloudConnectorError>
Source§impl Client
impl Client
Sourcepub fn delete_connector_destination(
&self,
) -> DeleteConnectorDestinationFluentBuilder
pub fn delete_connector_destination( &self, ) -> DeleteConnectorDestinationFluentBuilder
Constructs a fluent builder for the DeleteConnectorDestination
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the connector destination.
- On success, responds with
DeleteConnectorDestinationOutput
- On failure, responds with
SdkError<DeleteConnectorDestinationError>
Source§impl Client
impl Client
Sourcepub fn delete_credential_locker(&self) -> DeleteCredentialLockerFluentBuilder
pub fn delete_credential_locker(&self) -> DeleteCredentialLockerFluentBuilder
Constructs a fluent builder for the DeleteCredentialLocker
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the credential locker.
- On success, responds with
DeleteCredentialLockerOutput
- On failure, responds with
SdkError<DeleteCredentialLockerError>
Source§impl Client
impl Client
Sourcepub fn delete_destination(&self) -> DeleteDestinationFluentBuilder
pub fn delete_destination(&self) -> DeleteDestinationFluentBuilder
Constructs a fluent builder for the DeleteDestination
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe id of the customer-managed destination.
- On success, responds with
DeleteDestinationOutput
- On failure, responds with
SdkError<DeleteDestinationError>
Source§impl Client
impl Client
Sourcepub fn delete_event_log_configuration(
&self,
) -> DeleteEventLogConfigurationFluentBuilder
pub fn delete_event_log_configuration( &self, ) -> DeleteEventLogConfigurationFluentBuilder
Constructs a fluent builder for the DeleteEventLogConfiguration
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe identifier of the event log configuration.
- On success, responds with
DeleteEventLogConfigurationOutput
- On failure, responds with
SdkError<DeleteEventLogConfigurationError>
Source§impl Client
impl Client
Sourcepub fn delete_managed_thing(&self) -> DeleteManagedThingFluentBuilder
pub fn delete_managed_thing(&self) -> DeleteManagedThingFluentBuilder
Constructs a fluent builder for the DeleteManagedThing
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe id of the managed thing.
force(bool)
/set_force(Option<bool>)
:
required: falseWhen set to
TRUE
, a forceful deteletion of the managed thing will occur. When set toFALSE
, a non-forceful deletion of the managed thing will occur.
- On success, responds with
DeleteManagedThingOutput
- On failure, responds with
SdkError<DeleteManagedThingError>
Source§impl Client
impl Client
Sourcepub fn delete_notification_configuration(
&self,
) -> DeleteNotificationConfigurationFluentBuilder
pub fn delete_notification_configuration( &self, ) -> DeleteNotificationConfigurationFluentBuilder
Constructs a fluent builder for the DeleteNotificationConfiguration
operation.
- The fluent builder is configurable:
event_type(EventType)
/set_event_type(Option<EventType>)
:
required: trueThe type of event triggering a device notification to the customer-managed destination.
- On success, responds with
DeleteNotificationConfigurationOutput
- On failure, responds with
SdkError<DeleteNotificationConfigurationError>
Source§impl Client
impl Client
Sourcepub fn delete_ota_task(&self) -> DeleteOtaTaskFluentBuilder
pub fn delete_ota_task(&self) -> DeleteOtaTaskFluentBuilder
Constructs a fluent builder for the DeleteOtaTask
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the over-the-air (OTA) task.
- On success, responds with
DeleteOtaTaskOutput
- On failure, responds with
SdkError<DeleteOtaTaskError>
Source§impl Client
impl Client
Sourcepub fn delete_ota_task_configuration(
&self,
) -> DeleteOtaTaskConfigurationFluentBuilder
pub fn delete_ota_task_configuration( &self, ) -> DeleteOtaTaskConfigurationFluentBuilder
Constructs a fluent builder for the DeleteOtaTaskConfiguration
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the over-the-air (OTA) task configuration.
- On success, responds with
DeleteOtaTaskConfigurationOutput
- On failure, responds with
SdkError<DeleteOtaTaskConfigurationError>
Source§impl Client
impl Client
Sourcepub fn delete_provisioning_profile(
&self,
) -> DeleteProvisioningProfileFluentBuilder
pub fn delete_provisioning_profile( &self, ) -> DeleteProvisioningProfileFluentBuilder
Constructs a fluent builder for the DeleteProvisioningProfile
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe name of the provisioning template.
- On success, responds with
DeleteProvisioningProfileOutput
- On failure, responds with
SdkError<DeleteProvisioningProfileError>
Source§impl Client
impl Client
Sourcepub fn deregister_account_association(
&self,
) -> DeregisterAccountAssociationFluentBuilder
pub fn deregister_account_association( &self, ) -> DeregisterAccountAssociationFluentBuilder
Constructs a fluent builder for the DeregisterAccountAssociation
operation.
- The fluent builder is configurable:
managed_thing_id(impl Into<String>)
/set_managed_thing_id(Option<String>)
:
required: trueThe identifier of the managed thing to be deregistered from the account association.
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: trueThe unique identifier of the account association to be deregistered.
- On success, responds with
DeregisterAccountAssociationOutput
- On failure, responds with
SdkError<DeregisterAccountAssociationError>
Source§impl Client
impl Client
Sourcepub fn get_account_association(&self) -> GetAccountAssociationFluentBuilder
pub fn get_account_association(&self) -> GetAccountAssociationFluentBuilder
Constructs a fluent builder for the GetAccountAssociation
operation.
- The fluent builder is configurable:
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: trueThe unique identifier of the account association to retrieve.
- On success, responds with
GetAccountAssociationOutput
with field(s):account_association_id(String)
:The unique identifier of the retrieved account association.
association_state(AssociationState)
:The current status state for the account association.
error_message(Option<String>)
:The error message explaining the current account association error.
connector_destination_id(Option<String>)
:The identifier of the connector destination associated with this account association.
name(Option<String>)
:The name of the account association.
description(Option<String>)
:The description of the account association.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the account association.
o_auth_authorization_url(String)
:Third party IoT platform OAuth authorization server URL backed with all the required parameters to perform end-user authentication.
tags(Option<HashMap::<String, String>>)
:A set of key/value pairs that are used to manage the account association.
- On failure, responds with
SdkError<GetAccountAssociationError>
Source§impl Client
impl Client
Sourcepub fn get_cloud_connector(&self) -> GetCloudConnectorFluentBuilder
pub fn get_cloud_connector(&self) -> GetCloudConnectorFluentBuilder
Constructs a fluent builder for the GetCloudConnector
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the C2C connector.
- On success, responds with
GetCloudConnectorOutput
with field(s):name(String)
:The display name of the C2C connector.
endpoint_config(Option<EndpointConfig>)
:The configuration details for the cloud connector endpoint, including connection parameters and authentication requirements.
description(Option<String>)
:A description of the C2C connector.
endpoint_type(Option<EndpointType>)
:The type of endpoint used for the cloud connector, which defines how the connector communicates with external services.
id(Option<String>)
:The unique identifier of the cloud connector.
r#type(Option<CloudConnectorType>)
:The type of cloud connector created.
- On failure, responds with
SdkError<GetCloudConnectorError>
Source§impl Client
impl Client
Sourcepub fn get_connector_destination(&self) -> GetConnectorDestinationFluentBuilder
pub fn get_connector_destination(&self) -> GetConnectorDestinationFluentBuilder
Constructs a fluent builder for the GetConnectorDestination
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the C2C connector destination.
- On success, responds with
GetConnectorDestinationOutput
with field(s):name(Option<String>)
:The display name of the connector destination.
description(Option<String>)
:A description of the connector destination.
cloud_connector_id(Option<String>)
:The identifier of the C2C connector.
id(Option<String>)
:The unique identifier of the connector destination.
auth_type(Option<AuthType>)
:The authentication type used for the connector destination, which determines how credentials and access are managed.
auth_config(Option<AuthConfig>)
:The authentication configuration details for the connector destination, including OAuth settings and other authentication parameters.
secrets_manager(Option<SecretsManager>)
:The AWS Secrets Manager configuration used to securely store and manage sensitive information for the connector destination.
o_auth_complete_redirect_url(Option<String>)
:The URL where users are redirected after completing the OAuth authorization process for the connector destination.
- On failure, responds with
SdkError<GetConnectorDestinationError>
Source§impl Client
impl Client
Sourcepub fn get_credential_locker(&self) -> GetCredentialLockerFluentBuilder
pub fn get_credential_locker(&self) -> GetCredentialLockerFluentBuilder
Constructs a fluent builder for the GetCredentialLocker
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the credential locker.
- On success, responds with
GetCredentialLockerOutput
with field(s):id(Option<String>)
:The identifier of the credential locker.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the credential locker.
name(Option<String>)
:The name of the credential locker.
created_at(Option<DateTime>)
:The timestamp value of when the credential locker requset occurred.
tags(Option<HashMap::<String, String>>)
:A set of key/value pairs that are used to manage the credential locker.
- On failure, responds with
SdkError<GetCredentialLockerError>
Source§impl Client
impl Client
Sourcepub fn get_custom_endpoint(&self) -> GetCustomEndpointFluentBuilder
pub fn get_custom_endpoint(&self) -> GetCustomEndpointFluentBuilder
Constructs a fluent builder for the GetCustomEndpoint
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetCustomEndpointOutput
with field(s):endpoint_address(String)
:The IoT managed integrations dedicated, custom endpoint for the device to route traffic through.
- On failure, responds with
SdkError<GetCustomEndpointError>
Source§impl Client
impl Client
Sourcepub fn get_default_encryption_configuration(
&self,
) -> GetDefaultEncryptionConfigurationFluentBuilder
pub fn get_default_encryption_configuration( &self, ) -> GetDefaultEncryptionConfigurationFluentBuilder
Constructs a fluent builder for the GetDefaultEncryptionConfiguration
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetDefaultEncryptionConfigurationOutput
with field(s):configuration_status(Option<ConfigurationStatus>)
:Provides the status of the default encryption configuration for an Amazon Web Services account.
encryption_type(EncryptionType)
:The type of encryption used for the encryption configuration.
kms_key_arn(Option<String>)
:The Key Amazon Resource Name (ARN) of the AWS KMS key used for KMS encryption if you use
KMS_BASED_ENCRYPTION
.
- On failure, responds with
SdkError<GetDefaultEncryptionConfigurationError>
Source§impl Client
impl Client
Sourcepub fn get_destination(&self) -> GetDestinationFluentBuilder
pub fn get_destination(&self) -> GetDestinationFluentBuilder
Constructs a fluent builder for the GetDestination
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the customer-managed destination.
- On success, responds with
GetDestinationOutput
with field(s):description(Option<String>)
:The description of the customer-managed destination.
delivery_destination_arn(Option<String>)
:The Amazon Resource Name (ARN) of the customer-managed destination.
delivery_destination_type(Option<DeliveryDestinationType>)
:The destination type for the customer-managed destination.
name(Option<String>)
:The name of the customer-managed destination.
role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the delivery destination role.
created_at(Option<DateTime>)
:The timestamp value of when the destination creation requset occurred.
updated_at(Option<DateTime>)
:The timestamp value of when the destination update requset occurred.
tags(Option<HashMap::<String, String>>)
:A set of key/value pairs that are used to manage the customer-managed destination.
- On failure, responds with
SdkError<GetDestinationError>
Source§impl Client
impl Client
Sourcepub fn get_device_discovery(&self) -> GetDeviceDiscoveryFluentBuilder
pub fn get_device_discovery(&self) -> GetDeviceDiscoveryFluentBuilder
Constructs a fluent builder for the GetDeviceDiscovery
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe id of the device discovery job request.
- On success, responds with
GetDeviceDiscoveryOutput
with field(s):id(String)
:The id of the device discovery job request.
arn(String)
:The Amazon Resource Name (ARN) of the device discovery job request.
discovery_type(DiscoveryType)
:The discovery type supporting the type of device to be discovered in the device discovery job request.
status(DeviceDiscoveryStatus)
:The status of the device discovery job request.
started_at(DateTime)
:The timestamp value for the start time of the device discovery.
controller_id(Option<String>)
:The id of the end-user’s IoT hub.
connector_association_id(Option<String>)
:The ID tracking the current discovery process for one connector association.
account_association_id(Option<String>)
:The identifier of the account association used for the device discovery.
finished_at(Option<DateTime>)
:The timestamp value for the completion time of the device discovery.
tags(Option<HashMap::<String, String>>)
:A set of key/value pairs that are used to manage the device discovery request.
- On failure, responds with
SdkError<GetDeviceDiscoveryError>
Source§impl Client
impl Client
Sourcepub fn get_event_log_configuration(
&self,
) -> GetEventLogConfigurationFluentBuilder
pub fn get_event_log_configuration( &self, ) -> GetEventLogConfigurationFluentBuilder
Constructs a fluent builder for the GetEventLogConfiguration
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe identifier of the event log configuration.
- On success, responds with
GetEventLogConfigurationOutput
with field(s):id(Option<String>)
:The identifier of the event log configuration.
resource_type(Option<String>)
:The type of resource for the event log configuration.
resource_id(Option<String>)
:The identifier of the resource for the event log configuration.
event_log_level(Option<LogLevel>)
:The logging level for the event log configuration.
- On failure, responds with
SdkError<GetEventLogConfigurationError>
Source§impl Client
impl Client
Sourcepub fn get_hub_configuration(&self) -> GetHubConfigurationFluentBuilder
pub fn get_hub_configuration(&self) -> GetHubConfigurationFluentBuilder
Constructs a fluent builder for the GetHubConfiguration
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetHubConfigurationOutput
with field(s):hub_token_timer_expiry_setting_in_seconds(Option<i64>)
:A user-defined integer value that represents the hub token timer expiry setting in seconds.
updated_at(Option<DateTime>)
:The timestamp value of when the hub configuration was updated.
- On failure, responds with
SdkError<GetHubConfigurationError>
Source§impl Client
impl Client
Sourcepub fn get_managed_thing(&self) -> GetManagedThingFluentBuilder
pub fn get_managed_thing(&self) -> GetManagedThingFluentBuilder
Constructs a fluent builder for the GetManagedThing
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe id of the managed thing.
- On success, responds with
GetManagedThingOutput
with field(s):id(Option<String>)
:The id of the managed thing.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the managed thing.
owner(Option<String>)
:Owner of the device, usually an indication of whom the device belongs to. This value should not contain personal identifiable information.
credential_locker_id(Option<String>)
:The identifier of the credential locker for the managed thing.
advertised_product_id(Option<String>)
:The id of the advertised product.
role(Option<Role>)
:The type of device used. This will be the Amazon Web Services hub controller, cloud device, or IoT device.
provisioning_status(Option<ProvisioningStatus>)
:The provisioning status of the device in the provisioning workflow for onboarding to IoT managed integrations.
name(Option<String>)
:The name of the managed thing representing the physical device.
model(Option<String>)
:The model of the device.
brand(Option<String>)
:The brand of the device.
serial_number(Option<String>)
:The serial number of the device.
universal_product_code(Option<String>)
:The universal product code (UPC) of the device model. The UPC is typically used in the United States of America and Canada.
international_article_number(Option<String>)
:The unique 13 digit number that identifies the managed thing.
connector_policy_id(Option<String>)
:The id of the connector policy.
This parameter is used for cloud-to-cloud devices only.
connector_destination_id(Option<String>)
:The identifier of the connector destination associated with this managed thing.
connector_device_id(Option<String>)
:The third-party device id as defined by the connector. This device id must not contain personal identifiable information (PII).
This parameter is used for cloud-to-cloud devices only.
device_specific_key(Option<String>)
:A Zwave device-specific key used during device activation.
This parameter is used for Zwave devices only.
mac_address(Option<String>)
:The media access control (MAC) address for the device represented by the managed thing.
This parameter is used for Zigbee devices only.
parent_controller_id(Option<String>)
:Id of the controller device used for the discovery job.
classification(Option<String>)
:The classification of the managed thing such as light bulb or thermostat.
created_at(Option<DateTime>)
:The timestamp value of when the device creation request occurred.
updated_at(Option<DateTime>)
:The timestamp value of when the managed thing was last updated at.
activated_at(Option<DateTime>)
:The timestampe value of when the device was activated.
hub_network_mode(Option<HubNetworkMode>)
:The network mode for the hub-connected device.
meta_data(Option<HashMap::<String, String>>)
:The metadata for the managed thing.
tags(Option<HashMap::<String, String>>)
:A set of key/value pairs that are used to manage the managed thing.
- On failure, responds with
SdkError<GetManagedThingError>
Source§impl Client
impl Client
Sourcepub fn get_managed_thing_capabilities(
&self,
) -> GetManagedThingCapabilitiesFluentBuilder
pub fn get_managed_thing_capabilities( &self, ) -> GetManagedThingCapabilitiesFluentBuilder
Constructs a fluent builder for the GetManagedThingCapabilities
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe id of the device.
- On success, responds with
GetManagedThingCapabilitiesOutput
with field(s):managed_thing_id(Option<String>)
:The id of the device.
capabilities(Option<String>)
:The capabilities of the device such as light bulb.
capability_report(Option<CapabilityReport>)
:A report of the capabilities for the managed thing.
- On failure, responds with
SdkError<GetManagedThingCapabilitiesError>
Source§impl Client
impl Client
Sourcepub fn get_managed_thing_connectivity_data(
&self,
) -> GetManagedThingConnectivityDataFluentBuilder
pub fn get_managed_thing_connectivity_data( &self, ) -> GetManagedThingConnectivityDataFluentBuilder
Constructs a fluent builder for the GetManagedThingConnectivityData
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of a managed thing.
- On success, responds with
GetManagedThingConnectivityDataOutput
with field(s):managed_thing_id(Option<String>)
:The id of a managed thing.
connected(Option<bool>)
:The connectivity status for a managed thing.
timestamp(Option<DateTime>)
:The timestamp value of when the connectivity status for a managed thing was last taken.
disconnect_reason(Option<DisconnectReasonValue>)
:The reason for the connectivity disconnect with the managed thing.
- On failure, responds with
SdkError<GetManagedThingConnectivityDataError>
Source§impl Client
impl Client
Sourcepub fn get_managed_thing_meta_data(
&self,
) -> GetManagedThingMetaDataFluentBuilder
pub fn get_managed_thing_meta_data( &self, ) -> GetManagedThingMetaDataFluentBuilder
Constructs a fluent builder for the GetManagedThingMetaData
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe managed thing id.
- On success, responds with
GetManagedThingMetaDataOutput
with field(s):managed_thing_id(Option<String>)
:The managed thing id.
meta_data(Option<HashMap::<String, String>>)
:The metadata for the managed thing.
- On failure, responds with
SdkError<GetManagedThingMetaDataError>
Source§impl Client
impl Client
Sourcepub fn get_managed_thing_state(&self) -> GetManagedThingStateFluentBuilder
pub fn get_managed_thing_state(&self) -> GetManagedThingStateFluentBuilder
Constructs a fluent builder for the GetManagedThingState
operation.
- The fluent builder is configurable:
managed_thing_id(impl Into<String>)
/set_managed_thing_id(Option<String>)
:
required: trueThe id of the device.
- On success, responds with
GetManagedThingStateOutput
with field(s):endpoints(Vec::<StateEndpoint>)
:The device endpoint.
- On failure, responds with
SdkError<GetManagedThingStateError>
Source§impl Client
impl Client
Sourcepub fn get_notification_configuration(
&self,
) -> GetNotificationConfigurationFluentBuilder
pub fn get_notification_configuration( &self, ) -> GetNotificationConfigurationFluentBuilder
Constructs a fluent builder for the GetNotificationConfiguration
operation.
- The fluent builder is configurable:
event_type(EventType)
/set_event_type(Option<EventType>)
:
required: trueThe type of event triggering a device notification to the customer-managed destination.
- On success, responds with
GetNotificationConfigurationOutput
with field(s):event_type(Option<EventType>)
:The type of event triggering a device notification to the customer-managed destination.
destination_name(Option<String>)
:The name of the destination for the notification configuration.
created_at(Option<DateTime>)
:The timestamp value of when the notification configuration was created.
updated_at(Option<DateTime>)
:The timestamp value of when the notification configuration was last updated.
tags(Option<HashMap::<String, String>>)
:A set of key/value pairs that are used to manage the notification configuration.
- On failure, responds with
SdkError<GetNotificationConfigurationError>
Source§impl Client
impl Client
Sourcepub fn get_ota_task(&self) -> GetOtaTaskFluentBuilder
pub fn get_ota_task(&self) -> GetOtaTaskFluentBuilder
Constructs a fluent builder for the GetOtaTask
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe over-the-air (OTA) task id.
- On success, responds with
GetOtaTaskOutput
with field(s):task_id(Option<String>)
:The id of the over-the-air (OTA) task.
task_arn(Option<String>)
:The Amazon Resource Name (ARN) of the over-the-air (OTA) task
description(Option<String>)
:The description of the over-the-air (OTA) task.
s3_url(Option<String>)
:The URL to the Amazon S3 bucket where the over-the-air (OTA) task is stored.
protocol(Option<OtaProtocol>)
:The connection protocol the over-the-air (OTA) task uses to update the device.
ota_type(Option<OtaType>)
:The frequency type for the over-the-air (OTA) task.
ota_target_query_string(Option<String>)
:The query string to add things to the thing group.
ota_mechanism(Option<OtaMechanism>)
:The deployment mechanism for the over-the-air (OTA) task.
target(Option<Vec::<String>>)
:The device targeted for the over-the-air (OTA) task.
created_at(Option<DateTime>)
:The timestamp value of when the over-the-air (OTA) task was created.
last_updated_at(Option<DateTime>)
:The timestamp value of when the over-the-air (OTA) task was last updated at.
task_configuration_id(Option<String>)
:The identifier for the over-the-air (OTA) task configuration.
task_processing_details(Option<TaskProcessingDetails>)
:The processing details of all over-the-air (OTA) tasks.
ota_scheduling_config(Option<OtaTaskSchedulingConfig>)
:Over-the-air (OTA) task scheduling config.
ota_task_execution_retry_config(Option<OtaTaskExecutionRetryConfig>)
:Over-the-air (OTA) task retry config.
status(Option<OtaStatus>)
:The status of the over-the-air (OTA) task.
tags(Option<HashMap::<String, String>>)
:A set of key/value pairs that are used to manage the over-the-air (OTA) task.
- On failure, responds with
SdkError<GetOtaTaskError>
Source§impl Client
impl Client
Sourcepub fn get_ota_task_configuration(&self) -> GetOtaTaskConfigurationFluentBuilder
pub fn get_ota_task_configuration(&self) -> GetOtaTaskConfigurationFluentBuilder
Constructs a fluent builder for the GetOtaTaskConfiguration
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe over-the-air (OTA) task configuration id.
- On success, responds with
GetOtaTaskConfigurationOutput
with field(s):task_configuration_id(Option<String>)
:The over-the-air (OTA) task configuration id.
name(Option<String>)
:The name of the over-the-air (OTA) task configuration.
push_config(Option<PushConfig>)
:Describes the type of configuration used for the over-the-air (OTA) task.
description(Option<String>)
:A description of the over-the-air (OTA) task configuration.
created_at(Option<DateTime>)
:The timestamp value of when the over-the-air (OTA) task configuration was created at.
- On failure, responds with
SdkError<GetOtaTaskConfigurationError>
Source§impl Client
impl Client
Sourcepub fn get_provisioning_profile(&self) -> GetProvisioningProfileFluentBuilder
pub fn get_provisioning_profile(&self) -> GetProvisioningProfileFluentBuilder
Constructs a fluent builder for the GetProvisioningProfile
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe provisioning template the device uses for the provisioning process.
- On success, responds with
GetProvisioningProfileOutput
with field(s):arn(Option<String>)
:The Amazon Resource Name (ARN) of the provisioning template used in the provisioning profile.
name(Option<String>)
:The name of the provisioning template.
provisioning_type(Option<ProvisioningType>)
:The type of provisioning workflow the device uses for onboarding to IoT managed integrations.
id(Option<String>)
:The provisioning profile id..
claim_certificate(Option<String>)
:The id of the claim certificate.
tags(Option<HashMap::<String, String>>)
:A set of key/value pairs that are used to manage the provisioning profile.
- On failure, responds with
SdkError<GetProvisioningProfileError>
Source§impl Client
impl Client
Sourcepub fn get_runtime_log_configuration(
&self,
) -> GetRuntimeLogConfigurationFluentBuilder
pub fn get_runtime_log_configuration( &self, ) -> GetRuntimeLogConfigurationFluentBuilder
Constructs a fluent builder for the GetRuntimeLogConfiguration
operation.
- The fluent builder is configurable:
managed_thing_id(impl Into<String>)
/set_managed_thing_id(Option<String>)
:
required: trueThe id for a managed thing.
- On success, responds with
GetRuntimeLogConfigurationOutput
with field(s):managed_thing_id(Option<String>)
:The id for a managed thing.
runtime_log_configurations(Option<RuntimeLogConfigurations>)
:The runtime log configuration for a managed thing.
- On failure, responds with
SdkError<GetRuntimeLogConfigurationError>
Source§impl Client
impl Client
Sourcepub fn get_schema_version(&self) -> GetSchemaVersionFluentBuilder
pub fn get_schema_version(&self) -> GetSchemaVersionFluentBuilder
Constructs a fluent builder for the GetSchemaVersion
operation.
- The fluent builder is configurable:
r#type(SchemaVersionType)
/set_type(Option<SchemaVersionType>)
:
required: trueThe type of schema version.
schema_versioned_id(impl Into<String>)
/set_schema_versioned_id(Option<String>)
:
required: trueSchema id with a version specified. If the version is missing, it defaults to latest version.
format(SchemaVersionFormat)
/set_format(Option<SchemaVersionFormat>)
:
required: falseThe format of the schema version.
- On success, responds with
GetSchemaVersionOutput
with field(s):schema_id(Option<String>)
:The id of the schema version.
r#type(Option<SchemaVersionType>)
:The type of schema version.
description(Option<String>)
:The description of the schema version.
namespace(Option<String>)
:The name of the schema version.
semantic_version(Option<String>)
:The schema version. If this is left blank, it defaults to the latest version.
visibility(Option<SchemaVersionVisibility>)
:The visibility of the schema version.
schema(Option<Document>)
:The schema of the schema version.
- On failure, responds with
SdkError<GetSchemaVersionError>
Source§impl Client
impl Client
Sourcepub fn list_account_associations(&self) -> ListAccountAssociationsFluentBuilder
pub fn list_account_associations(&self) -> ListAccountAssociationsFluentBuilder
Constructs a fluent builder for the ListAccountAssociations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
connector_destination_id(impl Into<String>)
/set_connector_destination_id(Option<String>)
:
required: falseThe identifier of the connector destination to filter account associations by.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of account associations to return in a single response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token used for pagination of results.
- On success, responds with
ListAccountAssociationsOutput
with field(s):items(Option<Vec::<AccountAssociationItem>>)
:The list of account associations that match the specified criteria.
next_token(Option<String>)
:A token used for pagination of results when there are more account associations than can be returned in a single response.
- On failure, responds with
SdkError<ListAccountAssociationsError>
Source§impl Client
impl Client
Sourcepub fn list_cloud_connectors(&self) -> ListCloudConnectorsFluentBuilder
pub fn list_cloud_connectors(&self) -> ListCloudConnectorsFluentBuilder
Constructs a fluent builder for the ListCloudConnectors
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
r#type(CloudConnectorType)
/set_type(Option<CloudConnectorType>)
:
required: falseThe type of cloud connectors to filter by when listing available connectors.
lambda_arn(impl Into<String>)
/set_lambda_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the Lambda function to filter cloud connectors by.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
- On success, responds with
ListCloudConnectorsOutput
with field(s):items(Option<Vec::<ConnectorItem>>)
:The list of connectors.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListCloudConnectorsError>
Source§impl Client
impl Client
Sourcepub fn list_connector_destinations(
&self,
) -> ListConnectorDestinationsFluentBuilder
pub fn list_connector_destinations( &self, ) -> ListConnectorDestinationsFluentBuilder
Constructs a fluent builder for the ListConnectorDestinations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
cloud_connector_id(impl Into<String>)
/set_cloud_connector_id(Option<String>)
:
required: falseThe identifier of the cloud connector to filter connector destinations by.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token used for pagination of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of connector destinations to return in a single response.
- On success, responds with
ListConnectorDestinationsOutput
with field(s):connector_destination_list(Option<Vec::<ConnectorDestinationSummary>>)
:The list of connector destinations that match the specified criteria.
next_token(Option<String>)
:A token used for pagination of results when there are more connector destinations than can be returned in a single response.
- On failure, responds with
SdkError<ListConnectorDestinationsError>
Source§impl Client
impl Client
Sourcepub fn list_credential_lockers(&self) -> ListCredentialLockersFluentBuilder
pub fn list_credential_lockers(&self) -> ListCredentialLockersFluentBuilder
Constructs a fluent builder for the ListCredentialLockers
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListCredentialLockersOutput
with field(s):items(Option<Vec::<CredentialLockerSummary>>)
:The list of credential lockers.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListCredentialLockersError>
Source§impl Client
impl Client
Sourcepub fn list_destinations(&self) -> ListDestinationsFluentBuilder
pub fn list_destinations(&self) -> ListDestinationsFluentBuilder
Constructs a fluent builder for the ListDestinations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListDestinationsOutput
with field(s):destination_list(Option<Vec::<DestinationSummary>>)
:The list of destinations.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListDestinationsError>
Source§impl Client
impl Client
Sourcepub fn list_device_discoveries(&self) -> ListDeviceDiscoveriesFluentBuilder
pub fn list_device_discoveries(&self) -> ListDeviceDiscoveriesFluentBuilder
Constructs a fluent builder for the ListDeviceDiscoveries
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token used for pagination of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of device discovery jobs to return in a single response.
type_filter(DiscoveryType)
/set_type_filter(Option<DiscoveryType>)
:
required: falseThe discovery type to filter device discovery jobs by.
status_filter(DeviceDiscoveryStatus)
/set_status_filter(Option<DeviceDiscoveryStatus>)
:
required: falseThe status to filter device discovery jobs by.
- On success, responds with
ListDeviceDiscoveriesOutput
with field(s):items(Option<Vec::<DeviceDiscoverySummary>>)
:The list of device discovery jobs that match the specified criteria.
next_token(Option<String>)
:A token used for pagination of results when there are more device discovery jobs than can be returned in a single response.
- On failure, responds with
SdkError<ListDeviceDiscoveriesError>
Source§impl Client
impl Client
Sourcepub fn list_discovered_devices(&self) -> ListDiscoveredDevicesFluentBuilder
pub fn list_discovered_devices(&self) -> ListDiscoveredDevicesFluentBuilder
Constructs a fluent builder for the ListDiscoveredDevices
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe identifier of the device discovery job to list discovered devices for.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token used for pagination of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of discovered devices to return in a single response.
- On success, responds with
ListDiscoveredDevicesOutput
with field(s):items(Option<Vec::<DiscoveredDeviceSummary>>)
:The list of discovered devices that match the specified criteria.
next_token(Option<String>)
:A token used for pagination of results when there are more discovered devices than can be returned in a single response.
- On failure, responds with
SdkError<ListDiscoveredDevicesError>
Source§impl Client
impl Client
Sourcepub fn list_event_log_configurations(
&self,
) -> ListEventLogConfigurationsFluentBuilder
pub fn list_event_log_configurations( &self, ) -> ListEventLogConfigurationsFluentBuilder
Constructs a fluent builder for the ListEventLogConfigurations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListEventLogConfigurationsOutput
with field(s):event_log_configuration_list(Option<Vec::<EventLogConfigurationSummary>>)
:A list of each event log configuration and pertinent information.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListEventLogConfigurationsError>
Source§impl Client
impl Client
Sourcepub fn list_managed_thing_account_associations(
&self,
) -> ListManagedThingAccountAssociationsFluentBuilder
pub fn list_managed_thing_account_associations( &self, ) -> ListManagedThingAccountAssociationsFluentBuilder
Constructs a fluent builder for the ListManagedThingAccountAssociations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
managed_thing_id(impl Into<String>)
/set_managed_thing_id(Option<String>)
:
required: falseThe identifier of the managed thing to list account associations for.
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: falseThe identifier of the account association to filter results by. When specified, only associations with this account association ID will be returned.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of account associations to return in a single response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token used for pagination of results.
- On success, responds with
ListManagedThingAccountAssociationsOutput
with field(s):items(Option<Vec::<ManagedThingAssociation>>)
:The list of managed thing associations that match the specified criteria, including the managed thing ID and account association ID for each association.
next_token(Option<String>)
:A token used for pagination of results when there are more account associations than can be returned in a single response.
- On failure, responds with
SdkError<ListManagedThingAccountAssociationsError>
Source§impl Client
impl Client
Sourcepub fn list_managed_thing_schemas(&self) -> ListManagedThingSchemasFluentBuilder
pub fn list_managed_thing_schemas(&self) -> ListManagedThingSchemasFluentBuilder
Constructs a fluent builder for the ListManagedThingSchemas
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe managed thing id.
endpoint_id_filter(impl Into<String>)
/set_endpoint_id_filter(Option<String>)
:
required: falseFilter on an endpoint id.
capability_id_filter(impl Into<String>)
/set_capability_id_filter(Option<String>)
:
required: falseFilter on a capability id.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListManagedThingSchemasOutput
with field(s):items(Option<Vec::<ManagedThingSchemaListItem>>)
:The list of managed thing schemas.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListManagedThingSchemasError>
Source§impl Client
impl Client
Sourcepub fn list_managed_things(&self) -> ListManagedThingsFluentBuilder
pub fn list_managed_things(&self) -> ListManagedThingsFluentBuilder
Constructs a fluent builder for the ListManagedThings
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
owner_filter(impl Into<String>)
/set_owner_filter(Option<String>)
:
required: falseFilter on device owners when listing managed things.
credential_locker_filter(impl Into<String>)
/set_credential_locker_filter(Option<String>)
:
required: falseFilter on a credential locker for a managed thing.
role_filter(Role)
/set_role_filter(Option<Role>)
:
required: falseFilter on the type of device used. This will be the Amazon Web Services hub controller, cloud device, or IoT device.
parent_controller_identifier_filter(impl Into<String>)
/set_parent_controller_identifier_filter(Option<String>)
:
required: falseFilter on a parent controller id for a managed thing.
connector_policy_id_filter(impl Into<String>)
/set_connector_policy_id_filter(Option<String>)
:
required: falseFilter on a connector policy id for a managed thing.
connector_destination_id_filter(impl Into<String>)
/set_connector_destination_id_filter(Option<String>)
:
required: falseFilter managed things by the connector destination ID they are associated with.
connector_device_id_filter(impl Into<String>)
/set_connector_device_id_filter(Option<String>)
:
required: falseFilter managed things by the connector device ID they are associated with. When specified, only managed things with this connector device ID will be returned.
serial_number_filter(impl Into<String>)
/set_serial_number_filter(Option<String>)
:
required: falseFilter on the serial number of the device.
provisioning_status_filter(ProvisioningStatus)
/set_provisioning_status_filter(Option<ProvisioningStatus>)
:
required: falseFilter on the status of the device.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListManagedThingsOutput
with field(s):items(Option<Vec::<ManagedThingSummary>>)
:The list of managed things.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListManagedThingsError>
Source§impl Client
impl Client
Sourcepub fn list_notification_configurations(
&self,
) -> ListNotificationConfigurationsFluentBuilder
pub fn list_notification_configurations( &self, ) -> ListNotificationConfigurationsFluentBuilder
Constructs a fluent builder for the ListNotificationConfigurations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
- On success, responds with
ListNotificationConfigurationsOutput
with field(s):notification_configuration_list(Option<Vec::<NotificationConfigurationSummary>>)
:The list of notification configurations.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListNotificationConfigurationsError>
Source§impl Client
impl Client
Sourcepub fn list_ota_task_configurations(
&self,
) -> ListOtaTaskConfigurationsFluentBuilder
pub fn list_ota_task_configurations( &self, ) -> ListOtaTaskConfigurationsFluentBuilder
Constructs a fluent builder for the ListOtaTaskConfigurations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListOtaTaskConfigurationsOutput
with field(s):items(Option<Vec::<OtaTaskConfigurationSummary>>)
:The list of the over-the-air (OTA) task configurations.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListOtaTaskConfigurationsError>
Source§impl Client
impl Client
Sourcepub fn list_ota_task_executions(&self) -> ListOtaTaskExecutionsFluentBuilder
pub fn list_ota_task_executions(&self) -> ListOtaTaskExecutionsFluentBuilder
Constructs a fluent builder for the ListOtaTaskExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe over-the-air (OTA) task id.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListOtaTaskExecutionsOutput
with field(s):execution_summaries(Option<Vec::<OtaTaskExecutionSummaries>>)
:A list of all of the over-the-air (OTA) task executions.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListOtaTaskExecutionsError>
Source§impl Client
impl Client
Sourcepub fn list_ota_tasks(&self) -> ListOtaTasksFluentBuilder
pub fn list_ota_tasks(&self) -> ListOtaTasksFluentBuilder
Constructs a fluent builder for the ListOtaTasks
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListOtaTasksOutput
with field(s):tasks(Option<Vec::<OtaTaskSummary>>)
:A list of all of the over-the-air (OTA) tasks.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListOtaTasksError>
Source§impl Client
impl Client
Sourcepub fn list_provisioning_profiles(
&self,
) -> ListProvisioningProfilesFluentBuilder
pub fn list_provisioning_profiles( &self, ) -> ListProvisioningProfilesFluentBuilder
Constructs a fluent builder for the ListProvisioningProfiles
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
- On success, responds with
ListProvisioningProfilesOutput
with field(s):items(Option<Vec::<ProvisioningProfileSummary>>)
:The list of provisioning profiles.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListProvisioningProfilesError>
Source§impl Client
impl Client
Sourcepub fn list_schema_versions(&self) -> ListSchemaVersionsFluentBuilder
pub fn list_schema_versions(&self) -> ListSchemaVersionsFluentBuilder
Constructs a fluent builder for the ListSchemaVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
r#type(SchemaVersionType)
/set_type(Option<SchemaVersionType>)
:
required: trueFilter on the type of schema version.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return at one time.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that can be used to retrieve the next set of results.
schema_id(impl Into<String>)
/set_schema_id(Option<String>)
:
required: falseFilter on the id of the schema version.
namespace(impl Into<String>)
/set_namespace(Option<String>)
:
required: falseFilter on the name of the schema version.
visibility(SchemaVersionVisibility)
/set_visibility(Option<SchemaVersionVisibility>)
:
required: falseThe visibility of the schema version.
semantic_version(impl Into<String>)
/set_semantic_version(Option<String>)
:
required: falseThe schema version. If this is left blank, it defaults to the latest version.
- On success, responds with
ListSchemaVersionsOutput
with field(s):items(Option<Vec::<SchemaVersionListItem>>)
:The list of schema versions.
next_token(Option<String>)
:A token that can be used to retrieve the next set of results.
- On failure, responds with
SdkError<ListSchemaVersionsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: true
The ARN of the resource for which to list tags.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap::<String, String>>)
: A set of key/value pairs that are used to manage the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn put_default_encryption_configuration(
&self,
) -> PutDefaultEncryptionConfigurationFluentBuilder
pub fn put_default_encryption_configuration( &self, ) -> PutDefaultEncryptionConfigurationFluentBuilder
Constructs a fluent builder for the PutDefaultEncryptionConfiguration
operation.
- The fluent builder is configurable:
encryption_type(EncryptionType)
/set_encryption_type(Option<EncryptionType>)
:
required: trueThe type of encryption used for the encryption configuration.
kms_key_arn(impl Into<String>)
/set_kms_key_arn(Option<String>)
:
required: falseThe Key Amazon Resource Name (ARN) of the AWS KMS key used for KMS encryption if you use
KMS_BASED_ENCRYPTION
.
- On success, responds with
PutDefaultEncryptionConfigurationOutput
with field(s):configuration_status(Option<ConfigurationStatus>)
:Provides the status of the default encryption configuration for an Amazon Web Services account.
encryption_type(EncryptionType)
:The type of encryption used for the encryption configuration.
kms_key_arn(Option<String>)
:The Key Amazon Resource Name (ARN) of the AWS KMS key used for KMS encryption if you use
KMS_BASED_ENCRYPTION
.
- On failure, responds with
SdkError<PutDefaultEncryptionConfigurationError>
Source§impl Client
impl Client
Sourcepub fn put_hub_configuration(&self) -> PutHubConfigurationFluentBuilder
pub fn put_hub_configuration(&self) -> PutHubConfigurationFluentBuilder
Constructs a fluent builder for the PutHubConfiguration
operation.
- The fluent builder is configurable:
hub_token_timer_expiry_setting_in_seconds(i64)
/set_hub_token_timer_expiry_setting_in_seconds(Option<i64>)
:
required: trueA user-defined integer value that represents the hub token timer expiry setting in seconds.
- On success, responds with
PutHubConfigurationOutput
with field(s):hub_token_timer_expiry_setting_in_seconds(Option<i64>)
:A user-defined integer value that represents the hub token timer expiry setting in seconds.
- On failure, responds with
SdkError<PutHubConfigurationError>
Source§impl Client
impl Client
Sourcepub fn put_runtime_log_configuration(
&self,
) -> PutRuntimeLogConfigurationFluentBuilder
pub fn put_runtime_log_configuration( &self, ) -> PutRuntimeLogConfigurationFluentBuilder
Constructs a fluent builder for the PutRuntimeLogConfiguration
operation.
- The fluent builder is configurable:
managed_thing_id(impl Into<String>)
/set_managed_thing_id(Option<String>)
:
required: trueThe id for a managed thing.
runtime_log_configurations(RuntimeLogConfigurations)
/set_runtime_log_configurations(Option<RuntimeLogConfigurations>)
:
required: trueThe runtime log configuration for a managed thing.
- On success, responds with
PutRuntimeLogConfigurationOutput
- On failure, responds with
SdkError<PutRuntimeLogConfigurationError>
Source§impl Client
impl Client
Sourcepub fn register_account_association(
&self,
) -> RegisterAccountAssociationFluentBuilder
pub fn register_account_association( &self, ) -> RegisterAccountAssociationFluentBuilder
Constructs a fluent builder for the RegisterAccountAssociation
operation.
- The fluent builder is configurable:
managed_thing_id(impl Into<String>)
/set_managed_thing_id(Option<String>)
:
required: trueThe identifier of the managed thing to register with the account association.
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: trueThe identifier of the account association to register with the managed thing.
device_discovery_id(impl Into<String>)
/set_device_discovery_id(Option<String>)
:
required: trueThe identifier of the device discovery job associated with this registration.
- On success, responds with
RegisterAccountAssociationOutput
with field(s):account_association_id(Option<String>)
:The identifier of the account association that was registered.
device_discovery_id(Option<String>)
:The identifier of the device discovery job associated with this registration.
managed_thing_id(Option<String>)
:The identifier of the managed thing that was registered with the account association.
- On failure, responds with
SdkError<RegisterAccountAssociationError>
Source§impl Client
impl Client
Sourcepub fn register_custom_endpoint(&self) -> RegisterCustomEndpointFluentBuilder
pub fn register_custom_endpoint(&self) -> RegisterCustomEndpointFluentBuilder
Constructs a fluent builder for the RegisterCustomEndpoint
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
RegisterCustomEndpointOutput
with field(s):endpoint_address(String)
:The IoT managed integrations dedicated, custom endpoint for the device to route traffic through.
- On failure, responds with
SdkError<RegisterCustomEndpointError>
Source§impl Client
impl Client
Sourcepub fn reset_runtime_log_configuration(
&self,
) -> ResetRuntimeLogConfigurationFluentBuilder
pub fn reset_runtime_log_configuration( &self, ) -> ResetRuntimeLogConfigurationFluentBuilder
Constructs a fluent builder for the ResetRuntimeLogConfiguration
operation.
- The fluent builder is configurable:
managed_thing_id(impl Into<String>)
/set_managed_thing_id(Option<String>)
:
required: trueThe id of a managed thing.
- On success, responds with
ResetRuntimeLogConfigurationOutput
- On failure, responds with
SdkError<ResetRuntimeLogConfigurationError>
Source§impl Client
impl Client
Sourcepub fn send_connector_event(&self) -> SendConnectorEventFluentBuilder
pub fn send_connector_event(&self) -> SendConnectorEventFluentBuilder
Constructs a fluent builder for the SendConnectorEvent
operation.
- The fluent builder is configurable:
connector_id(impl Into<String>)
/set_connector_id(Option<String>)
:
required: trueThe id of the connector between the third-party cloud provider and IoT managed integrations.
user_id(impl Into<String>)
/set_user_id(Option<String>)
:
required: falseThe id of the third-party cloud provider.
operation(ConnectorEventOperation)
/set_operation(Option<ConnectorEventOperation>)
:
required: trueThe Open Connectivity Foundation (OCF) operation requested to be performed on the managed thing.
The field op can have a value of “I” or “U”. The field “cn” will contain the capability types.
operation_version(impl Into<String>)
/set_operation_version(Option<String>)
:
required: falseThe Open Connectivity Foundation (OCF) security specification version for the operation being requested on the managed thing. For more information, see OCF Security Specification.
status_code(i32)
/set_status_code(Option<i32>)
:
required: falseThe status code of the Open Connectivity Foundation (OCF) operation being performed on the managed thing.
message(impl Into<String>)
/set_message(Option<String>)
:
required: falseThe device state change event payload.
This parameter will include the following three fields:
-
uri
:schema auc://<PARTNER-DEVICE-ID>/ResourcePath
(TheResourcepath
corresponds to an OCF resource.) -
op
: For device state changes, this field must populate asn+d
. -
cn
: The content depends on the OCF resource referenced inResourcePath
.
-
device_discovery_id(impl Into<String>)
/set_device_discovery_id(Option<String>)
:
required: falseThe id for the device discovery job.
connector_device_id(impl Into<String>)
/set_connector_device_id(Option<String>)
:
required: falseThe third-party device id as defined by the connector. This device id must not contain personal identifiable information (PII).
This parameter is used for cloud-to-cloud devices only.
trace_id(impl Into<String>)
/set_trace_id(Option<String>)
:
required: falseThe trace request identifier used to correlate a command request and response. This is specified by the device owner, but will be generated by IoT managed integrations if not provided by the device owner.
devices(Device)
/set_devices(Option<Vec::<Device>>)
:
required: falseThe list of devices.
matter_endpoint(MatterEndpoint)
/set_matter_endpoint(Option<MatterEndpoint>)
:
required: falseThe device endpoint.
- On success, responds with
SendConnectorEventOutput
with field(s):connector_id(String)
:The id of the connector between the third-party cloud provider and IoT managed integrations.
- On failure, responds with
SdkError<SendConnectorEventError>
Source§impl Client
impl Client
Sourcepub fn send_managed_thing_command(&self) -> SendManagedThingCommandFluentBuilder
pub fn send_managed_thing_command(&self) -> SendManagedThingCommandFluentBuilder
Constructs a fluent builder for the SendManagedThingCommand
operation.
- The fluent builder is configurable:
managed_thing_id(impl Into<String>)
/set_managed_thing_id(Option<String>)
:
required: trueThe id of the device.
endpoints(CommandEndpoint)
/set_endpoints(Option<Vec::<CommandEndpoint>>)
:
required: trueThe device endpoint.
connector_association_id(impl Into<String>)
/set_connector_association_id(Option<String>)
:
required: falseThe ID tracking the current discovery process for one connector association.
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: falseThe identifier of the account association to use when sending a command to a managed thing.
- On success, responds with
SendManagedThingCommandOutput
with field(s):trace_id(Option<String>)
:The trace request identifier. This is specified by the device owner, but will be generated by IoT managed integrations if not provided by the device owner.
- On failure, responds with
SdkError<SendManagedThingCommandError>
Source§impl Client
impl Client
Sourcepub fn start_account_association_refresh(
&self,
) -> StartAccountAssociationRefreshFluentBuilder
pub fn start_account_association_refresh( &self, ) -> StartAccountAssociationRefreshFluentBuilder
Constructs a fluent builder for the StartAccountAssociationRefresh
operation.
- The fluent builder is configurable:
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: trueThe unique identifier of the account association to refresh.
- On success, responds with
StartAccountAssociationRefreshOutput
with field(s):o_auth_authorization_url(String)
:Third-party IoT platform OAuth authorization server URL with all required parameters to perform end-user authentication during the refresh process.
- On failure, responds with
SdkError<StartAccountAssociationRefreshError>
Source§impl Client
impl Client
Sourcepub fn start_device_discovery(&self) -> StartDeviceDiscoveryFluentBuilder
pub fn start_device_discovery(&self) -> StartDeviceDiscoveryFluentBuilder
Constructs a fluent builder for the StartDeviceDiscovery
operation.
- The fluent builder is configurable:
discovery_type(DiscoveryType)
/set_discovery_type(Option<DiscoveryType>)
:
required: trueThe discovery type supporting the type of device to be discovered in the device discovery task request.
custom_protocol_detail(impl Into<String>, impl Into<String>)
/set_custom_protocol_detail(Option<HashMap::<String, String>>)
:
required: falseAdditional protocol-specific details required for device discovery, which vary based on the discovery type.
For a
DiscoveryType
ofCUSTOM
, the string-to-string map must have a key value ofName
set to a non-empty-string.controller_identifier(impl Into<String>)
/set_controller_identifier(Option<String>)
:
required: falseThe id of the end-user’s IoT hub.
connector_association_identifier(impl Into<String>)
/set_connector_association_identifier(Option<String>)
:
required: falseThe id of the connector association.
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: falseThe identifier of the cloud-to-cloud account association to use for discovery of third-party devices.
authentication_material(impl Into<String>)
/set_authentication_material(Option<String>)
:
required: falseThe authentication material required to start the local device discovery job request.
authentication_material_type(DiscoveryAuthMaterialType)
/set_authentication_material_type(Option<DiscoveryAuthMaterialType>)
:
required: falseThe type of authentication material used for device discovery jobs.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseA set of key/value pairs that are used to manage the device discovery request.
- On success, responds with
StartDeviceDiscoveryOutput
with field(s):id(Option<String>)
:The id of the device discovery job request.
started_at(Option<DateTime>)
:The timestamp value for the start time of the device discovery.
- On failure, responds with
SdkError<StartDeviceDiscoveryError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: true
The ARN of the resource to which to add tags.tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: true
A set of key/value pairs that are used to manage the resource
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: true
The ARN of the resource to which to add tags.tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: true
A list of tag keys to remove from the resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_account_association(
&self,
) -> UpdateAccountAssociationFluentBuilder
pub fn update_account_association( &self, ) -> UpdateAccountAssociationFluentBuilder
Constructs a fluent builder for the UpdateAccountAssociation
operation.
- The fluent builder is configurable:
account_association_id(impl Into<String>)
/set_account_association_id(Option<String>)
:
required: trueThe unique identifier of the account association to update.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe new name to assign to the account association.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe new description to assign to the account association.
- On success, responds with
UpdateAccountAssociationOutput
- On failure, responds with
SdkError<UpdateAccountAssociationError>
Source§impl Client
impl Client
Sourcepub fn update_cloud_connector(&self) -> UpdateCloudConnectorFluentBuilder
pub fn update_cloud_connector(&self) -> UpdateCloudConnectorFluentBuilder
Constructs a fluent builder for the UpdateCloudConnector
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe unique identifier of the cloud connector to update.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe new display name to assign to the cloud connector.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe new description to assign to the cloud connector.
- On success, responds with
UpdateCloudConnectorOutput
- On failure, responds with
SdkError<UpdateCloudConnectorError>
Source§impl Client
impl Client
Sourcepub fn update_connector_destination(
&self,
) -> UpdateConnectorDestinationFluentBuilder
pub fn update_connector_destination( &self, ) -> UpdateConnectorDestinationFluentBuilder
Constructs a fluent builder for the UpdateConnectorDestination
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe unique identifier of the connector destination to update.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe new description to assign to the connector destination.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe new display name to assign to the connector destination.
auth_type(AuthType)
/set_auth_type(Option<AuthType>)
:
required: falseThe new authentication type to use for the connector destination.
auth_config(AuthConfigUpdate)
/set_auth_config(Option<AuthConfigUpdate>)
:
required: falseThe updated authentication configuration details for the connector destination.
secrets_manager(SecretsManager)
/set_secrets_manager(Option<SecretsManager>)
:
required: falseThe updated AWS Secrets Manager configuration for the connector destination.
- On success, responds with
UpdateConnectorDestinationOutput
- On failure, responds with
SdkError<UpdateConnectorDestinationError>
Source§impl Client
impl Client
Sourcepub fn update_destination(&self) -> UpdateDestinationFluentBuilder
pub fn update_destination(&self) -> UpdateDestinationFluentBuilder
Constructs a fluent builder for the UpdateDestination
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the customer-managed destination.
delivery_destination_arn(impl Into<String>)
/set_delivery_destination_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the customer-managed destination.
delivery_destination_type(DeliveryDestinationType)
/set_delivery_destination_type(Option<DeliveryDestinationType>)
:
required: falseThe destination type for the customer-managed destination.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the delivery destination role.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the customer-managed destination.
- On success, responds with
UpdateDestinationOutput
- On failure, responds with
SdkError<UpdateDestinationError>
Source§impl Client
impl Client
Sourcepub fn update_event_log_configuration(
&self,
) -> UpdateEventLogConfigurationFluentBuilder
pub fn update_event_log_configuration( &self, ) -> UpdateEventLogConfigurationFluentBuilder
Constructs a fluent builder for the UpdateEventLogConfiguration
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe log configuration id.
event_log_level(LogLevel)
/set_event_log_level(Option<LogLevel>)
:
required: trueThe log level for the event in terms of severity.
- On success, responds with
UpdateEventLogConfigurationOutput
- On failure, responds with
SdkError<UpdateEventLogConfigurationError>
Source§impl Client
impl Client
Sourcepub fn update_managed_thing(&self) -> UpdateManagedThingFluentBuilder
pub fn update_managed_thing(&self) -> UpdateManagedThingFluentBuilder
Constructs a fluent builder for the UpdateManagedThing
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe id of the managed thing.
owner(impl Into<String>)
/set_owner(Option<String>)
:
required: falseOwner of the device, usually an indication of whom the device belongs to. This value should not contain personal identifiable information.
credential_locker_id(impl Into<String>)
/set_credential_locker_id(Option<String>)
:
required: falseThe identifier of the credential for the managed thing.
serial_number(impl Into<String>)
/set_serial_number(Option<String>)
:
required: falseThe serial number of the device.
brand(impl Into<String>)
/set_brand(Option<String>)
:
required: falseThe brand of the device.
model(impl Into<String>)
/set_model(Option<String>)
:
required: falseThe model of the device.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the managed thing representing the physical device.
capability_report(CapabilityReport)
/set_capability_report(Option<CapabilityReport>)
:
required: falseA report of the capabilities for the managed thing.
capability_schemas(CapabilitySchemaItem)
/set_capability_schemas(Option<Vec::<CapabilitySchemaItem>>)
:
required: falseThe updated capability schemas that define the functionality and features supported by the managed thing.
capabilities(impl Into<String>)
/set_capabilities(Option<String>)
:
required: falseThe capabilities of the device such as light bulb.
classification(impl Into<String>)
/set_classification(Option<String>)
:
required: falseThe classification of the managed thing such as light bulb or thermostat.
hub_network_mode(HubNetworkMode)
/set_hub_network_mode(Option<HubNetworkMode>)
:
required: falseThe network mode for the hub-connected device.
meta_data(impl Into<String>, impl Into<String>)
/set_meta_data(Option<HashMap::<String, String>>)
:
required: falseThe metadata for the managed thing.
- On success, responds with
UpdateManagedThingOutput
- On failure, responds with
SdkError<UpdateManagedThingError>
Source§impl Client
impl Client
Sourcepub fn update_notification_configuration(
&self,
) -> UpdateNotificationConfigurationFluentBuilder
pub fn update_notification_configuration( &self, ) -> UpdateNotificationConfigurationFluentBuilder
Constructs a fluent builder for the UpdateNotificationConfiguration
operation.
- The fluent builder is configurable:
event_type(EventType)
/set_event_type(Option<EventType>)
:
required: trueThe type of event triggering a device notification to the customer-managed destination.
destination_name(impl Into<String>)
/set_destination_name(Option<String>)
:
required: trueThe name of the destination for the notification configuration.
- On success, responds with
UpdateNotificationConfigurationOutput
- On failure, responds with
SdkError<UpdateNotificationConfigurationError>
Source§impl Client
impl Client
Sourcepub fn update_ota_task(&self) -> UpdateOtaTaskFluentBuilder
pub fn update_ota_task(&self) -> UpdateOtaTaskFluentBuilder
Constructs a fluent builder for the UpdateOtaTask
operation.
- The fluent builder is configurable:
identifier(impl Into<String>)
/set_identifier(Option<String>)
:
required: trueThe over-the-air (OTA) task id.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the over-the-air (OTA) task.
task_configuration_id(impl Into<String>)
/set_task_configuration_id(Option<String>)
:
required: falseThe identifier for the over-the-air (OTA) task configuration.
- On success, responds with
UpdateOtaTaskOutput
- On failure, responds with
SdkError<UpdateOtaTaskError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);