All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.iot.AWSIot Maven / Gradle / Ivy

Go to download

The AWS Android SDK for AWS IoT module holds the client classes that are used for communicating with AWS IoT Service

There is a newer version: 2.79.0
Show newest version
/*
 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 * 
 *  http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.iot;

import com.amazonaws.*;
import com.amazonaws.regions.*;
import com.amazonaws.services.iot.model.*;

/**
 * Interface for accessing AWSIot.
 * AWS IoT 

* AWS IoT provides secure, bi-directional communication between * Internet-connected things (such as sensors, actuators, embedded * devices, or smart appliances) and the AWS cloud. You can discover your * custom IoT-Data endpoint to communicate with, configure rules for data * processing and integration with other services, organize resources * associated with each thing (Thing Registry), configure logging, and * create and manage policies and credentials to authenticate things. *

*

* For more information about how AWS IoT works, see the * Developer Guide * . *

*/ public interface AWSIot { /** * Overrides the default endpoint for this client ("https://iot.us-east-1.amazonaws.com"). * Callers can use this method to control which AWS region they want to work with. *

* Callers can pass in just the endpoint (ex: "iot.us-east-1.amazonaws.com") or a full * URL, including the protocol (ex: "https://iot.us-east-1.amazonaws.com"). If the * protocol is not specified here, the default protocol from this client's * {@link ClientConfiguration} will be used, which by default is HTTPS. *

* For more information on using AWS regions with the AWS SDK for Java, and * a complete list of all available endpoints for all AWS services, see: * * http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912 *

* This method is not threadsafe. An endpoint should be configured when the * client is created and before any service requests are made. Changing it * afterwards creates inevitable race conditions for any service requests in * transit or retrying. * * @param endpoint * The endpoint (ex: "iot.us-east-1.amazonaws.com") or a full URL, * including the protocol (ex: "https://iot.us-east-1.amazonaws.com") of * the region specific AWS endpoint this client will communicate * with. * * @throws IllegalArgumentException * If any problems are detected with the specified endpoint. */ public void setEndpoint(String endpoint) throws java.lang.IllegalArgumentException; /** * An alternative to {@link AWSIot#setEndpoint(String)}, sets the * regional endpoint for this client's service calls. Callers can use this * method to control which AWS region they want to work with. *

* By default, all service endpoints in all regions use the https protocol. * To use http instead, specify it in the {@link ClientConfiguration} * supplied at construction. *

* This method is not threadsafe. A region should be configured when the * client is created and before any service requests are made. Changing it * afterwards creates inevitable race conditions for any service requests in * transit or retrying. * * @param region * The region this client will communicate with. See * {@link Region#getRegion(com.amazonaws.regions.Regions)} for * accessing a given region. * @throws java.lang.IllegalArgumentException * If the given region is null, or if this service isn't * available in the given region. See * {@link Region#isServiceSupported(String)} * @see Region#getRegion(com.amazonaws.regions.Regions) * @see Region#createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration) */ public void setRegion(Region region) throws java.lang.IllegalArgumentException; /** *

* Creates a thing in the Thing Registry. *

* * @param createThingRequest Container for the necessary parameters to * execute the CreateThing service method on AWSIot. * * @return The response from the CreateThing service method, as returned * by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceAlreadyExistsException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public CreateThingResult createThing(CreateThingRequest createThingRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the things associated with the specified principal. *

* * @param listPrincipalThingsRequest Container for the necessary * parameters to execute the ListPrincipalThings service method on * AWSIot. * * @return The response from the ListPrincipalThings service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public ListPrincipalThingsResult listPrincipalThings(ListPrincipalThingsRequest listPrincipalThingsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Rejects a pending certificate transfer. After AWS IoT rejects a * certificate transfer, the certificate status changes from * PENDING_TRANFER to INACTIVE . *

*

* To check for pending certificate transfers, call ListCertificates to * enumerate your certificates. *

*

* This operation can only be called by the transfer destination. After * it is called, the certificate will be returned to the source's account * in the INACTIVE state. *

* * @param rejectCertificateTransferRequest Container for the necessary * parameters to execute the RejectCertificateTransfer service method on * AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws TransferAlreadyCompletedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void rejectCertificateTransfer(RejectCertificateTransferRequest rejectCertificateTransferRequest) throws AmazonServiceException, AmazonClientException; /** *

* Attaches the specified principal to the specified thing. *

* * @param attachThingPrincipalRequest Container for the necessary * parameters to execute the AttachThingPrincipal service method on * AWSIot. * * @return The response from the AttachThingPrincipal service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public AttachThingPrincipalResult attachThingPrincipal(AttachThingPrincipalRequest attachThingPrincipalRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets information about the specified policy with the policy document * of the default version. *

* * @param getPolicyRequest Container for the necessary parameters to * execute the GetPolicy service method on AWSIot. * * @return The response from the GetPolicy service method, as returned by * AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public GetPolicyResult getPolicy(GetPolicyRequest getPolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets information about the specified policy version. *

* * @param getPolicyVersionRequest Container for the necessary parameters * to execute the GetPolicyVersion service method on AWSIot. * * @return The response from the GetPolicyVersion service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public GetPolicyVersionResult getPolicyVersion(GetPolicyVersionRequest getPolicyVersionRequest) throws AmazonServiceException, AmazonClientException; /** *

* Removes the specified policy from the specified certificate. *

* * @param detachPrincipalPolicyRequest Container for the necessary * parameters to execute the DetachPrincipalPolicy service method on * AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void detachPrincipalPolicy(DetachPrincipalPolicyRequest detachPrincipalPolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns a unique endpoint specific to the AWS account making the * call. You specify the following URI when updating state information * for your thing: https:// endpoint /things/ thingName * /shadow. *

* * @param describeEndpointRequest Container for the necessary parameters * to execute the DescribeEndpoint service method on AWSIot. * * @return The response from the DescribeEndpoint service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws UnauthorizedException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public DescribeEndpointResult describeEndpoint(DescribeEndpointRequest describeEndpointRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a new version of the specified AWS IoT policy. To update a * policy, create a new policy version. A managed policy can have up to * five versions. If the policy has five versions, you must use * DeletePolicyVersion to delete an existing version before you create a * new one. *

*

* Optionally, you can set the new version as the policy's default * version. The default version is the operative version (that is, the * version that is in effect for the certificates to which the policy is * attached). *

* * @param createPolicyVersionRequest Container for the necessary * parameters to execute the CreatePolicyVersion service method on * AWSIot. * * @return The response from the CreatePolicyVersion service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws MalformedPolicyException * @throws UnauthorizedException * @throws VersionsLimitExceededException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public CreatePolicyVersionResult createPolicyVersion(CreatePolicyVersionRequest createPolicyVersionRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets information about the specified rule. *

* * @param getTopicRuleRequest Container for the necessary parameters to * execute the GetTopicRule service method on AWSIot. * * @return The response from the GetTopicRule service method, as returned * by AWSIot. * * @throws InvalidRequestException * @throws InternalException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public GetTopicRuleResult getTopicRule(GetTopicRuleRequest getTopicRuleRequest) throws AmazonServiceException, AmazonClientException; /** *

* Enables the specified rule. *

* * @param enableTopicRuleRequest Container for the necessary parameters * to execute the EnableTopicRule service method on AWSIot. * * * @throws InvalidRequestException * @throws InternalException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void enableTopicRule(EnableTopicRuleRequest enableTopicRuleRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets information about the specified certificate. *

* * @param describeCertificateRequest Container for the necessary * parameters to execute the DescribeCertificate service method on * AWSIot. * * @return The response from the DescribeCertificate service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public DescribeCertificateResult describeCertificate(DescribeCertificateRequest describeCertificateRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists your certificates. *

*

* The results are paginated with a default page size of 25. You can use * the returned marker to retrieve additional results. *

* * @param listCertificatesRequest Container for the necessary parameters * to execute the ListCertificates service method on AWSIot. * * @return The response from the ListCertificates service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public ListCertificatesResult listCertificates(ListCertificatesRequest listCertificatesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Sets the logging options. *

* * @param setLoggingOptionsRequest Container for the necessary parameters * to execute the SetLoggingOptions service method on AWSIot. * * * @throws InvalidRequestException * @throws InternalException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void setLoggingOptions(SetLoggingOptionsRequest setLoggingOptionsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes the specified certificate. *

*

* A certificate cannot be deleted if it has a policy attached to it or * if its status is set to ACTIVE. To delete a certificate, first use the * DetachPrincipalPolicy API to detach all policies. Next, use the * UpdateCertificate API to set the certificate to the INACTIVE status. *

* * @param deleteCertificateRequest Container for the necessary parameters * to execute the DeleteCertificate service method on AWSIot. * * * @throws CertificateStateException * @throws DeleteConflictException * @throws ResourceNotFoundException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void deleteCertificate(DeleteCertificateRequest deleteCertificateRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the rules for the specific topic. *

* * @param listTopicRulesRequest Container for the necessary parameters to * execute the ListTopicRules service method on AWSIot. * * @return The response from the ListTopicRules service method, as * returned by AWSIot. * * @throws InvalidRequestException * @throws InternalException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public ListTopicRulesResult listTopicRules(ListTopicRulesRequest listTopicRulesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes the specified thing from the Thing Registry. *

* * @param deleteThingRequest Container for the necessary parameters to * execute the DeleteThing service method on AWSIot. * * @return The response from the DeleteThing service method, as returned * by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public DeleteThingResult deleteThing(DeleteThingRequest deleteThingRequest) throws AmazonServiceException, AmazonClientException; /** *

* Accepts a pending certificate transfer. The default state of the * certificate is INACTIVE. *

*

* To check for pending certificate transfers, call ListCertificates to * enumerate your certificates. *

* * @param acceptCertificateTransferRequest Container for the necessary * parameters to execute the AcceptCertificateTransfer service method on * AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws TransferAlreadyCompletedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void acceptCertificateTransfer(AcceptCertificateTransferRequest acceptCertificateTransferRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes the specified version of the specified policy. You cannot * delete the default version of a policy using this API. To delete the * default version of a policy, use DeletePolicy. To find out which * version of a policy is marked as the default version, use * ListPolicyVersions. *

* * @param deletePolicyVersionRequest Container for the necessary * parameters to execute the DeletePolicyVersion service method on * AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws DeleteConflictException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void deletePolicyVersion(DeletePolicyVersionRequest deletePolicyVersionRequest) throws AmazonServiceException, AmazonClientException; /** *

* Replaces the specified rule. You must specify all parameters for the * new rule. Creating rules is an administrator-level action. Any user * who has permission to create rules will be able to access data * processed by the rule. *

* * @param replaceTopicRuleRequest Container for the necessary parameters * to execute the ReplaceTopicRule service method on AWSIot. * * * @throws SqlParseException * @throws InvalidRequestException * @throws InternalException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void replaceTopicRule(ReplaceTopicRuleRequest replaceTopicRuleRequest) throws AmazonServiceException, AmazonClientException; /** *

* Sets the specified version of the specified policy as the policy's * default (operative) version. This action affects all certificates to * which the policy is attached. To list the principals the policy is * attached to, use the ListPrincipalPolicy API. *

* * @param setDefaultPolicyVersionRequest Container for the necessary * parameters to execute the SetDefaultPolicyVersion service method on * AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void setDefaultPolicyVersion(SetDefaultPolicyVersionRequest setDefaultPolicyVersionRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the policies attached to the specified principal. If you use an * Cognito identity, the ID must be in * AmazonCognito Identity format * . *

* * @param listPrincipalPoliciesRequest Container for the necessary * parameters to execute the ListPrincipalPolicies service method on * AWSIot. * * @return The response from the ListPrincipalPolicies service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public ListPrincipalPoliciesResult listPrincipalPolicies(ListPrincipalPoliciesRequest listPrincipalPoliciesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Transfers the specified certificate to the specified AWS account. *

*

* You can cancel the transfer until it is acknowledged by the * recipient. *

*

* No notification is sent to the transfer destination's account. It is * up to the caller to notify the transfer target. *

*

* The certificate being transferred must not be in the ACTIVE state. * You can use the UpdateCertificate API to deactivate it. *

*

* The certificate must not have any policies attached to it. You can * use the DetachPrincipalPolicy API to detach them. *

* * @param transferCertificateRequest Container for the necessary * parameters to execute the TransferCertificate service method on * AWSIot. * * @return The response from the TransferCertificate service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws TransferConflictException * @throws CertificateStateException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public TransferCertificateResult transferCertificate(TransferCertificateRequest transferCertificateRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists your policies. *

* * @param listPoliciesRequest Container for the necessary parameters to * execute the ListPolicies service method on AWSIot. * * @return The response from the ListPolicies service method, as returned * by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public ListPoliciesResult listPolicies(ListPoliciesRequest listPoliciesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes the specified policy. *

*

* A policy cannot be deleted if it has non-default versions or it is * attached to any certificate. *

*

* To delete a policy, use the DeletePolicyVersion API to delete all * non-default versions of the policy; use the DetachPrincipalPolicy API * to detach the policy from any certificate; and then use the * DeletePolicy API to delete the policy. *

*

* When a policy is deleted using DeletePolicy, its default version is * deleted with it. *

* * @param deletePolicyRequest Container for the necessary parameters to * execute the DeletePolicy service method on AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws DeleteConflictException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void deletePolicy(DeletePolicyRequest deletePolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Detaches the specified principal from the specified thing. *

* * @param detachThingPrincipalRequest Container for the necessary * parameters to execute the DetachThingPrincipal service method on * AWSIot. * * @return The response from the DetachThingPrincipal service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public DetachThingPrincipalResult detachThingPrincipal(DetachThingPrincipalRequest detachThingPrincipalRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets information about the specified thing. *

* * @param describeThingRequest Container for the necessary parameters to * execute the DescribeThing service method on AWSIot. * * @return The response from the DescribeThing service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public DescribeThingResult describeThing(DescribeThingRequest describeThingRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a rule. Creating rules is an administrator-level action. Any * user who has permission to create rules will be able to access data * processed by the rule. *

* * @param createTopicRuleRequest Container for the necessary parameters * to execute the CreateTopicRule service method on AWSIot. * * * @throws SqlParseException * @throws InvalidRequestException * @throws InternalException * @throws ResourceAlreadyExistsException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void createTopicRule(CreateTopicRuleRequest createTopicRuleRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a 2048-bit RSA key pair and issues an X.509 certificate using * the issued public key. *

*

* Note This is the only time AWS IoT issues the private key for * this certificate, so it is important to keep it in a secure location. *

* * @param createKeysAndCertificateRequest Container for the necessary * parameters to execute the CreateKeysAndCertificate service method on * AWSIot. * * @return The response from the CreateKeysAndCertificate service method, * as returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public CreateKeysAndCertificateResult createKeysAndCertificate(CreateKeysAndCertificateRequest createKeysAndCertificateRequest) throws AmazonServiceException, AmazonClientException; /** *

* Attaches the specified policy to the specified principal (certificate * or other credential). *

* * @param attachPrincipalPolicyRequest Container for the necessary * parameters to execute the AttachPrincipalPolicy service method on * AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws LimitExceededException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void attachPrincipalPolicy(AttachPrincipalPolicyRequest attachPrincipalPolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Disables the specified rule. *

* * @param disableTopicRuleRequest Container for the necessary parameters * to execute the DisableTopicRule service method on AWSIot. * * * @throws InvalidRequestException * @throws InternalException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void disableTopicRule(DisableTopicRuleRequest disableTopicRuleRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the versions of the specified policy, and identifies the * default version. *

* * @param listPolicyVersionsRequest Container for the necessary * parameters to execute the ListPolicyVersions service method on AWSIot. * * @return The response from the ListPolicyVersions service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public ListPolicyVersionsResult listPolicyVersions(ListPolicyVersionsRequest listPolicyVersionsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Updates the status of the specified certificate. This operation is * idempotent. *

*

* Moving a certificate from the ACTIVE state (including REVOKED) will * not disconnect currently connected devices, but these devices will be * unable to reconnect. *

*

* The ACTIVE state is required to authenticate devices connecting to * AWS IoT using a certificate. *

* * @param updateCertificateRequest Container for the necessary parameters * to execute the UpdateCertificate service method on AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws CertificateStateException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void updateCertificate(UpdateCertificateRequest updateCertificateRequest) throws AmazonServiceException, AmazonClientException; /** *

* Cancels a pending transfer for the specified certificate. *

*

* Note Only the transfer source account can use this operation * to cancel a transfer. (Transfer destinations can use * RejectCertificateTransfer instead.) After transfer, AWS IoT returns * the certificate to the source account in the INACTIVE state. After the * destination account has accepted the transfer, the transfer cannot be * cancelled. *

*

* After a certificate transfer is cancelled, the status of the * certificate changes from PENDING_TRANSFER to INACTIVE. *

* * @param cancelCertificateTransferRequest Container for the necessary * parameters to execute the CancelCertificateTransfer service method on * AWSIot. * * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws TransferAlreadyCompletedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void cancelCertificateTransfer(CancelCertificateTransferRequest cancelCertificateTransferRequest) throws AmazonServiceException, AmazonClientException; /** *

* Updates the data for a thing. *

* * @param updateThingRequest Container for the necessary parameters to * execute the UpdateThing service method on AWSIot. * * @return The response from the UpdateThing service method, as returned * by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public UpdateThingResult updateThing(UpdateThingRequest updateThingRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists your things. You can pass an AttributeName or AttributeValue to * filter your things (for example, "ListThings where AttributeName=Color * and AttributeValue=Red"). *

* * @param listThingsRequest Container for the necessary parameters to * execute the ListThings service method on AWSIot. * * @return The response from the ListThings service method, as returned * by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public ListThingsResult listThings(ListThingsRequest listThingsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates an AWS IoT policy. *

*

* The created policy is the default version for the policy. This * operation creates a policy version with a version identifier of * 1 and sets 1 as the policy's default version. *

* * @param createPolicyRequest Container for the necessary parameters to * execute the CreatePolicy service method on AWSIot. * * @return The response from the CreatePolicy service method, as returned * by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws MalformedPolicyException * @throws UnauthorizedException * @throws ResourceAlreadyExistsException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public CreatePolicyResult createPolicy(CreatePolicyRequest createPolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the logging options. *

* * @param getLoggingOptionsRequest Container for the necessary parameters * to execute the GetLoggingOptions service method on AWSIot. * * @return The response from the GetLoggingOptions service method, as * returned by AWSIot. * * @throws InvalidRequestException * @throws InternalException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public GetLoggingOptionsResult getLoggingOptions(GetLoggingOptionsRequest getLoggingOptionsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists the principals associated with the specified thing. *

* * @param listThingPrincipalsRequest Container for the necessary * parameters to execute the ListThingPrincipals service method on * AWSIot. * * @return The response from the ListThingPrincipals service method, as * returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public ListThingPrincipalsResult listThingPrincipals(ListThingPrincipalsRequest listThingPrincipalsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates an X.509 certificate using the specified certificate signing * request. *

*

* Note Reusing the same certificate signing request (CSR) * results in a distinct certificate. *

*

* You can create multiple certificates in a batch by creating a * directory, copying multiple .csr files into that directory, and then * specifying that directory on the command line. The following commands * show how to create a batch of certificates given a batch of CSRs. *

*

* Assuming a set of CSRs are located inside of the directory * my-csr-directory: *

*

* > *

*

* On Linux and OS X, the command is: *

*

* $ ls my-csr-directory/ | xargs -I {} aws iot * create-certificate-from-csr --certificate-signing-request * file://my-csr-directory/{} *

*

* This command lists all of the CSRs in my-csr-directory and pipes each * CSR file name to the aws iot create-certificate-from-csr AWS CLI * command to create a certificate for the corresponding CSR. *

*

* The aws iot create-certificate-from-csr part of the command can also * be run in parallel to speed up the certificate creation process: *

*

* $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot * create-certificate-from-csr --certificate-signing-request * file://my-csr-directory/{} *

*

* On Windows PowerShell, the command to create certificates for all * CSRs in my-csr-directory is: *

*

* > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr * --certificate-signing-request file://my-csr-directory/$_} *

*

* On a Windows command prompt, the command to create certificates for * all CSRs in my-csr-directory is: *

*

* > forfiles /p my-csr-directory /c "cmd /c aws iot * create-certificate-from-csr --certificate-signing-request * file://@path" *

* * @param createCertificateFromCsrRequest Container for the necessary * parameters to execute the CreateCertificateFromCsr service method on * AWSIot. * * @return The response from the CreateCertificateFromCsr service method, * as returned by AWSIot. * * @throws ThrottlingException * @throws InternalFailureException * @throws InvalidRequestException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public CreateCertificateFromCsrResult createCertificateFromCsr(CreateCertificateFromCsrRequest createCertificateFromCsrRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes the specified rule. *

* * @param deleteTopicRuleRequest Container for the necessary parameters * to execute the DeleteTopicRule service method on AWSIot. * * * @throws InvalidRequestException * @throws InternalException * @throws UnauthorizedException * @throws ServiceUnavailableException * * @throws AmazonClientException * If any internal errors are encountered inside the client while * attempting to make the request or handle the response. For example * if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AWSIot indicating * either a problem with the data in the request, or a server side issue. */ public void deleteTopicRule(DeleteTopicRuleRequest deleteTopicRuleRequest) throws AmazonServiceException, AmazonClientException; /** * Shuts down this client object, releasing any resources that might be held * open. This is an optional method, and callers are not expected to call * it, but can if they want to explicitly release any open resources. Once a * client has been shutdown, it should not be used to make any more * requests. */ public void shutdown(); /** * Returns additional metadata for a previously executed successful request, typically used for * debugging issues where a service isn't acting as expected. This data isn't considered part * of the result data returned by an operation, so it's available through this separate, * diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access * this extra diagnostic information for an executed request, you should use this method * to retrieve it as soon as possible after executing a request. * * @param request * The originally executed request. * * @return The response metadata for the specified request, or null if none * is available. */ public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy