Class AWSIotDataClient

  • All Implemented Interfaces:
    AWSIotData
    Direct Known Subclasses:
    AWSIotDataAsyncClient

    @ThreadSafe
    public class AWSIotDataClient
    extends AmazonWebServiceClient
    implements AWSIotData
    Client for accessing AWS IoT Data Plane. All service calls made using this client are blocking, and will not return until the service call completes.

    AWS IoT

    AWS IoT-Data enables secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. It implements a broker for applications and things to publish messages over HTTP (Publish) and retrieve, update, and delete thing shadows. A thing shadow is a persistent representation of your things and their state in the AWS cloud.

    • Field Detail

      • configFactory

        protected static final ClientConfigurationFactory configFactory
        Client configuration factory providing ClientConfigurations tailored to this client
    • Constructor Detail

      • AWSIotDataClient

        public AWSIotDataClient()
        Constructs a new client to invoke service methods on AWS IoT Data Plane. A credentials provider chain will be used that searches for credentials in this order:
        • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
        • Java System Properties - aws.accessKeyId and aws.secretKey
        • Instance profile credentials delivered through the Amazon EC2 metadata service

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        See Also:
        DefaultAWSCredentialsProviderChain
      • AWSIotDataClient

        public AWSIotDataClient​(ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on AWS IoT Data Plane. A credentials provider chain will be used that searches for credentials in this order:
        • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
        • Java System Properties - aws.accessKeyId and aws.secretKey
        • Instance profile credentials delivered through the Amazon EC2 metadata service

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        clientConfiguration - The client configuration options controlling how this client connects to AWS IoT Data Plane (ex: proxy settings, retry counts, etc.).
        See Also:
        DefaultAWSCredentialsProviderChain
      • AWSIotDataClient

        public AWSIotDataClient​(AWSCredentials awsCredentials)
        Constructs a new client to invoke service methods on AWS IoT Data Plane using the specified AWS account credentials.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
      • AWSIotDataClient

        public AWSIotDataClient​(AWSCredentials awsCredentials,
                                ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on AWS IoT Data Plane using the specified AWS account credentials and client configuration options.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
        clientConfiguration - The client configuration options controlling how this client connects to AWS IoT Data Plane (ex: proxy settings, retry counts, etc.).
      • AWSIotDataClient

        public AWSIotDataClient​(AWSCredentialsProvider awsCredentialsProvider)
        Constructs a new client to invoke service methods on AWS IoT Data Plane using the specified AWS account credentials provider.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
      • AWSIotDataClient

        public AWSIotDataClient​(AWSCredentialsProvider awsCredentialsProvider,
                                ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on AWS IoT Data Plane using the specified AWS account credentials provider and client configuration options.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        clientConfiguration - The client configuration options controlling how this client connects to AWS IoT Data Plane (ex: proxy settings, retry counts, etc.).
      • AWSIotDataClient

        public AWSIotDataClient​(AWSCredentialsProvider awsCredentialsProvider,
                                ClientConfiguration clientConfiguration,
                                RequestMetricCollector requestMetricCollector)
        Constructs a new client to invoke service methods on AWS IoT Data Plane using the specified AWS account credentials provider, client configuration options, and request metric collector.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        clientConfiguration - The client configuration options controlling how this client connects to AWS IoT Data Plane (ex: proxy settings, retry counts, etc.).
        requestMetricCollector - optional request metric collector