software.amazon.awssdk.services.iot.IotAsyncClient Maven / Gradle / Ivy
Show all versions of iot Show documentation
/*
* Copyright 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 software.amazon.awssdk.services.iot;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.services.iot.model.AcceptCertificateTransferRequest;
import software.amazon.awssdk.services.iot.model.AcceptCertificateTransferResponse;
import software.amazon.awssdk.services.iot.model.AddThingToBillingGroupRequest;
import software.amazon.awssdk.services.iot.model.AddThingToBillingGroupResponse;
import software.amazon.awssdk.services.iot.model.AddThingToThingGroupRequest;
import software.amazon.awssdk.services.iot.model.AddThingToThingGroupResponse;
import software.amazon.awssdk.services.iot.model.AssociateSbomWithPackageVersionRequest;
import software.amazon.awssdk.services.iot.model.AssociateSbomWithPackageVersionResponse;
import software.amazon.awssdk.services.iot.model.AssociateTargetsWithJobRequest;
import software.amazon.awssdk.services.iot.model.AssociateTargetsWithJobResponse;
import software.amazon.awssdk.services.iot.model.AttachPolicyRequest;
import software.amazon.awssdk.services.iot.model.AttachPolicyResponse;
import software.amazon.awssdk.services.iot.model.AttachSecurityProfileRequest;
import software.amazon.awssdk.services.iot.model.AttachSecurityProfileResponse;
import software.amazon.awssdk.services.iot.model.AttachThingPrincipalRequest;
import software.amazon.awssdk.services.iot.model.AttachThingPrincipalResponse;
import software.amazon.awssdk.services.iot.model.CancelAuditMitigationActionsTaskRequest;
import software.amazon.awssdk.services.iot.model.CancelAuditMitigationActionsTaskResponse;
import software.amazon.awssdk.services.iot.model.CancelAuditTaskRequest;
import software.amazon.awssdk.services.iot.model.CancelAuditTaskResponse;
import software.amazon.awssdk.services.iot.model.CancelCertificateTransferRequest;
import software.amazon.awssdk.services.iot.model.CancelCertificateTransferResponse;
import software.amazon.awssdk.services.iot.model.CancelDetectMitigationActionsTaskRequest;
import software.amazon.awssdk.services.iot.model.CancelDetectMitigationActionsTaskResponse;
import software.amazon.awssdk.services.iot.model.CancelJobExecutionRequest;
import software.amazon.awssdk.services.iot.model.CancelJobExecutionResponse;
import software.amazon.awssdk.services.iot.model.CancelJobRequest;
import software.amazon.awssdk.services.iot.model.CancelJobResponse;
import software.amazon.awssdk.services.iot.model.ClearDefaultAuthorizerRequest;
import software.amazon.awssdk.services.iot.model.ClearDefaultAuthorizerResponse;
import software.amazon.awssdk.services.iot.model.ConfirmTopicRuleDestinationRequest;
import software.amazon.awssdk.services.iot.model.ConfirmTopicRuleDestinationResponse;
import software.amazon.awssdk.services.iot.model.CreateAuditSuppressionRequest;
import software.amazon.awssdk.services.iot.model.CreateAuditSuppressionResponse;
import software.amazon.awssdk.services.iot.model.CreateAuthorizerRequest;
import software.amazon.awssdk.services.iot.model.CreateAuthorizerResponse;
import software.amazon.awssdk.services.iot.model.CreateBillingGroupRequest;
import software.amazon.awssdk.services.iot.model.CreateBillingGroupResponse;
import software.amazon.awssdk.services.iot.model.CreateCertificateFromCsrRequest;
import software.amazon.awssdk.services.iot.model.CreateCertificateFromCsrResponse;
import software.amazon.awssdk.services.iot.model.CreateCertificateProviderRequest;
import software.amazon.awssdk.services.iot.model.CreateCertificateProviderResponse;
import software.amazon.awssdk.services.iot.model.CreateCustomMetricRequest;
import software.amazon.awssdk.services.iot.model.CreateCustomMetricResponse;
import software.amazon.awssdk.services.iot.model.CreateDimensionRequest;
import software.amazon.awssdk.services.iot.model.CreateDimensionResponse;
import software.amazon.awssdk.services.iot.model.CreateDomainConfigurationRequest;
import software.amazon.awssdk.services.iot.model.CreateDomainConfigurationResponse;
import software.amazon.awssdk.services.iot.model.CreateDynamicThingGroupRequest;
import software.amazon.awssdk.services.iot.model.CreateDynamicThingGroupResponse;
import software.amazon.awssdk.services.iot.model.CreateFleetMetricRequest;
import software.amazon.awssdk.services.iot.model.CreateFleetMetricResponse;
import software.amazon.awssdk.services.iot.model.CreateJobRequest;
import software.amazon.awssdk.services.iot.model.CreateJobResponse;
import software.amazon.awssdk.services.iot.model.CreateJobTemplateRequest;
import software.amazon.awssdk.services.iot.model.CreateJobTemplateResponse;
import software.amazon.awssdk.services.iot.model.CreateKeysAndCertificateRequest;
import software.amazon.awssdk.services.iot.model.CreateKeysAndCertificateResponse;
import software.amazon.awssdk.services.iot.model.CreateMitigationActionRequest;
import software.amazon.awssdk.services.iot.model.CreateMitigationActionResponse;
import software.amazon.awssdk.services.iot.model.CreateOtaUpdateRequest;
import software.amazon.awssdk.services.iot.model.CreateOtaUpdateResponse;
import software.amazon.awssdk.services.iot.model.CreatePackageRequest;
import software.amazon.awssdk.services.iot.model.CreatePackageResponse;
import software.amazon.awssdk.services.iot.model.CreatePackageVersionRequest;
import software.amazon.awssdk.services.iot.model.CreatePackageVersionResponse;
import software.amazon.awssdk.services.iot.model.CreatePolicyRequest;
import software.amazon.awssdk.services.iot.model.CreatePolicyResponse;
import software.amazon.awssdk.services.iot.model.CreatePolicyVersionRequest;
import software.amazon.awssdk.services.iot.model.CreatePolicyVersionResponse;
import software.amazon.awssdk.services.iot.model.CreateProvisioningClaimRequest;
import software.amazon.awssdk.services.iot.model.CreateProvisioningClaimResponse;
import software.amazon.awssdk.services.iot.model.CreateProvisioningTemplateRequest;
import software.amazon.awssdk.services.iot.model.CreateProvisioningTemplateResponse;
import software.amazon.awssdk.services.iot.model.CreateProvisioningTemplateVersionRequest;
import software.amazon.awssdk.services.iot.model.CreateProvisioningTemplateVersionResponse;
import software.amazon.awssdk.services.iot.model.CreateRoleAliasRequest;
import software.amazon.awssdk.services.iot.model.CreateRoleAliasResponse;
import software.amazon.awssdk.services.iot.model.CreateScheduledAuditRequest;
import software.amazon.awssdk.services.iot.model.CreateScheduledAuditResponse;
import software.amazon.awssdk.services.iot.model.CreateSecurityProfileRequest;
import software.amazon.awssdk.services.iot.model.CreateSecurityProfileResponse;
import software.amazon.awssdk.services.iot.model.CreateStreamRequest;
import software.amazon.awssdk.services.iot.model.CreateStreamResponse;
import software.amazon.awssdk.services.iot.model.CreateThingGroupRequest;
import software.amazon.awssdk.services.iot.model.CreateThingGroupResponse;
import software.amazon.awssdk.services.iot.model.CreateThingRequest;
import software.amazon.awssdk.services.iot.model.CreateThingResponse;
import software.amazon.awssdk.services.iot.model.CreateThingTypeRequest;
import software.amazon.awssdk.services.iot.model.CreateThingTypeResponse;
import software.amazon.awssdk.services.iot.model.CreateTopicRuleDestinationRequest;
import software.amazon.awssdk.services.iot.model.CreateTopicRuleDestinationResponse;
import software.amazon.awssdk.services.iot.model.CreateTopicRuleRequest;
import software.amazon.awssdk.services.iot.model.CreateTopicRuleResponse;
import software.amazon.awssdk.services.iot.model.DeleteAccountAuditConfigurationRequest;
import software.amazon.awssdk.services.iot.model.DeleteAccountAuditConfigurationResponse;
import software.amazon.awssdk.services.iot.model.DeleteAuditSuppressionRequest;
import software.amazon.awssdk.services.iot.model.DeleteAuditSuppressionResponse;
import software.amazon.awssdk.services.iot.model.DeleteAuthorizerRequest;
import software.amazon.awssdk.services.iot.model.DeleteAuthorizerResponse;
import software.amazon.awssdk.services.iot.model.DeleteBillingGroupRequest;
import software.amazon.awssdk.services.iot.model.DeleteBillingGroupResponse;
import software.amazon.awssdk.services.iot.model.DeleteCaCertificateRequest;
import software.amazon.awssdk.services.iot.model.DeleteCaCertificateResponse;
import software.amazon.awssdk.services.iot.model.DeleteCertificateProviderRequest;
import software.amazon.awssdk.services.iot.model.DeleteCertificateProviderResponse;
import software.amazon.awssdk.services.iot.model.DeleteCertificateRequest;
import software.amazon.awssdk.services.iot.model.DeleteCertificateResponse;
import software.amazon.awssdk.services.iot.model.DeleteCustomMetricRequest;
import software.amazon.awssdk.services.iot.model.DeleteCustomMetricResponse;
import software.amazon.awssdk.services.iot.model.DeleteDimensionRequest;
import software.amazon.awssdk.services.iot.model.DeleteDimensionResponse;
import software.amazon.awssdk.services.iot.model.DeleteDomainConfigurationRequest;
import software.amazon.awssdk.services.iot.model.DeleteDomainConfigurationResponse;
import software.amazon.awssdk.services.iot.model.DeleteDynamicThingGroupRequest;
import software.amazon.awssdk.services.iot.model.DeleteDynamicThingGroupResponse;
import software.amazon.awssdk.services.iot.model.DeleteFleetMetricRequest;
import software.amazon.awssdk.services.iot.model.DeleteFleetMetricResponse;
import software.amazon.awssdk.services.iot.model.DeleteJobExecutionRequest;
import software.amazon.awssdk.services.iot.model.DeleteJobExecutionResponse;
import software.amazon.awssdk.services.iot.model.DeleteJobRequest;
import software.amazon.awssdk.services.iot.model.DeleteJobResponse;
import software.amazon.awssdk.services.iot.model.DeleteJobTemplateRequest;
import software.amazon.awssdk.services.iot.model.DeleteJobTemplateResponse;
import software.amazon.awssdk.services.iot.model.DeleteMitigationActionRequest;
import software.amazon.awssdk.services.iot.model.DeleteMitigationActionResponse;
import software.amazon.awssdk.services.iot.model.DeleteOtaUpdateRequest;
import software.amazon.awssdk.services.iot.model.DeleteOtaUpdateResponse;
import software.amazon.awssdk.services.iot.model.DeletePackageRequest;
import software.amazon.awssdk.services.iot.model.DeletePackageResponse;
import software.amazon.awssdk.services.iot.model.DeletePackageVersionRequest;
import software.amazon.awssdk.services.iot.model.DeletePackageVersionResponse;
import software.amazon.awssdk.services.iot.model.DeletePolicyRequest;
import software.amazon.awssdk.services.iot.model.DeletePolicyResponse;
import software.amazon.awssdk.services.iot.model.DeletePolicyVersionRequest;
import software.amazon.awssdk.services.iot.model.DeletePolicyVersionResponse;
import software.amazon.awssdk.services.iot.model.DeleteProvisioningTemplateRequest;
import software.amazon.awssdk.services.iot.model.DeleteProvisioningTemplateResponse;
import software.amazon.awssdk.services.iot.model.DeleteProvisioningTemplateVersionRequest;
import software.amazon.awssdk.services.iot.model.DeleteProvisioningTemplateVersionResponse;
import software.amazon.awssdk.services.iot.model.DeleteRegistrationCodeRequest;
import software.amazon.awssdk.services.iot.model.DeleteRegistrationCodeResponse;
import software.amazon.awssdk.services.iot.model.DeleteRoleAliasRequest;
import software.amazon.awssdk.services.iot.model.DeleteRoleAliasResponse;
import software.amazon.awssdk.services.iot.model.DeleteScheduledAuditRequest;
import software.amazon.awssdk.services.iot.model.DeleteScheduledAuditResponse;
import software.amazon.awssdk.services.iot.model.DeleteSecurityProfileRequest;
import software.amazon.awssdk.services.iot.model.DeleteSecurityProfileResponse;
import software.amazon.awssdk.services.iot.model.DeleteStreamRequest;
import software.amazon.awssdk.services.iot.model.DeleteStreamResponse;
import software.amazon.awssdk.services.iot.model.DeleteThingGroupRequest;
import software.amazon.awssdk.services.iot.model.DeleteThingGroupResponse;
import software.amazon.awssdk.services.iot.model.DeleteThingRequest;
import software.amazon.awssdk.services.iot.model.DeleteThingResponse;
import software.amazon.awssdk.services.iot.model.DeleteThingTypeRequest;
import software.amazon.awssdk.services.iot.model.DeleteThingTypeResponse;
import software.amazon.awssdk.services.iot.model.DeleteTopicRuleDestinationRequest;
import software.amazon.awssdk.services.iot.model.DeleteTopicRuleDestinationResponse;
import software.amazon.awssdk.services.iot.model.DeleteTopicRuleRequest;
import software.amazon.awssdk.services.iot.model.DeleteTopicRuleResponse;
import software.amazon.awssdk.services.iot.model.DeleteV2LoggingLevelRequest;
import software.amazon.awssdk.services.iot.model.DeleteV2LoggingLevelResponse;
import software.amazon.awssdk.services.iot.model.DeprecateThingTypeRequest;
import software.amazon.awssdk.services.iot.model.DeprecateThingTypeResponse;
import software.amazon.awssdk.services.iot.model.DescribeAccountAuditConfigurationRequest;
import software.amazon.awssdk.services.iot.model.DescribeAccountAuditConfigurationResponse;
import software.amazon.awssdk.services.iot.model.DescribeAuditFindingRequest;
import software.amazon.awssdk.services.iot.model.DescribeAuditFindingResponse;
import software.amazon.awssdk.services.iot.model.DescribeAuditMitigationActionsTaskRequest;
import software.amazon.awssdk.services.iot.model.DescribeAuditMitigationActionsTaskResponse;
import software.amazon.awssdk.services.iot.model.DescribeAuditSuppressionRequest;
import software.amazon.awssdk.services.iot.model.DescribeAuditSuppressionResponse;
import software.amazon.awssdk.services.iot.model.DescribeAuditTaskRequest;
import software.amazon.awssdk.services.iot.model.DescribeAuditTaskResponse;
import software.amazon.awssdk.services.iot.model.DescribeAuthorizerRequest;
import software.amazon.awssdk.services.iot.model.DescribeAuthorizerResponse;
import software.amazon.awssdk.services.iot.model.DescribeBillingGroupRequest;
import software.amazon.awssdk.services.iot.model.DescribeBillingGroupResponse;
import software.amazon.awssdk.services.iot.model.DescribeCaCertificateRequest;
import software.amazon.awssdk.services.iot.model.DescribeCaCertificateResponse;
import software.amazon.awssdk.services.iot.model.DescribeCertificateProviderRequest;
import software.amazon.awssdk.services.iot.model.DescribeCertificateProviderResponse;
import software.amazon.awssdk.services.iot.model.DescribeCertificateRequest;
import software.amazon.awssdk.services.iot.model.DescribeCertificateResponse;
import software.amazon.awssdk.services.iot.model.DescribeCustomMetricRequest;
import software.amazon.awssdk.services.iot.model.DescribeCustomMetricResponse;
import software.amazon.awssdk.services.iot.model.DescribeDefaultAuthorizerRequest;
import software.amazon.awssdk.services.iot.model.DescribeDefaultAuthorizerResponse;
import software.amazon.awssdk.services.iot.model.DescribeDetectMitigationActionsTaskRequest;
import software.amazon.awssdk.services.iot.model.DescribeDetectMitigationActionsTaskResponse;
import software.amazon.awssdk.services.iot.model.DescribeDimensionRequest;
import software.amazon.awssdk.services.iot.model.DescribeDimensionResponse;
import software.amazon.awssdk.services.iot.model.DescribeDomainConfigurationRequest;
import software.amazon.awssdk.services.iot.model.DescribeDomainConfigurationResponse;
import software.amazon.awssdk.services.iot.model.DescribeEndpointRequest;
import software.amazon.awssdk.services.iot.model.DescribeEndpointResponse;
import software.amazon.awssdk.services.iot.model.DescribeEventConfigurationsRequest;
import software.amazon.awssdk.services.iot.model.DescribeEventConfigurationsResponse;
import software.amazon.awssdk.services.iot.model.DescribeFleetMetricRequest;
import software.amazon.awssdk.services.iot.model.DescribeFleetMetricResponse;
import software.amazon.awssdk.services.iot.model.DescribeIndexRequest;
import software.amazon.awssdk.services.iot.model.DescribeIndexResponse;
import software.amazon.awssdk.services.iot.model.DescribeJobExecutionRequest;
import software.amazon.awssdk.services.iot.model.DescribeJobExecutionResponse;
import software.amazon.awssdk.services.iot.model.DescribeJobRequest;
import software.amazon.awssdk.services.iot.model.DescribeJobResponse;
import software.amazon.awssdk.services.iot.model.DescribeJobTemplateRequest;
import software.amazon.awssdk.services.iot.model.DescribeJobTemplateResponse;
import software.amazon.awssdk.services.iot.model.DescribeManagedJobTemplateRequest;
import software.amazon.awssdk.services.iot.model.DescribeManagedJobTemplateResponse;
import software.amazon.awssdk.services.iot.model.DescribeMitigationActionRequest;
import software.amazon.awssdk.services.iot.model.DescribeMitigationActionResponse;
import software.amazon.awssdk.services.iot.model.DescribeProvisioningTemplateRequest;
import software.amazon.awssdk.services.iot.model.DescribeProvisioningTemplateResponse;
import software.amazon.awssdk.services.iot.model.DescribeProvisioningTemplateVersionRequest;
import software.amazon.awssdk.services.iot.model.DescribeProvisioningTemplateVersionResponse;
import software.amazon.awssdk.services.iot.model.DescribeRoleAliasRequest;
import software.amazon.awssdk.services.iot.model.DescribeRoleAliasResponse;
import software.amazon.awssdk.services.iot.model.DescribeScheduledAuditRequest;
import software.amazon.awssdk.services.iot.model.DescribeScheduledAuditResponse;
import software.amazon.awssdk.services.iot.model.DescribeSecurityProfileRequest;
import software.amazon.awssdk.services.iot.model.DescribeSecurityProfileResponse;
import software.amazon.awssdk.services.iot.model.DescribeStreamRequest;
import software.amazon.awssdk.services.iot.model.DescribeStreamResponse;
import software.amazon.awssdk.services.iot.model.DescribeThingGroupRequest;
import software.amazon.awssdk.services.iot.model.DescribeThingGroupResponse;
import software.amazon.awssdk.services.iot.model.DescribeThingRegistrationTaskRequest;
import software.amazon.awssdk.services.iot.model.DescribeThingRegistrationTaskResponse;
import software.amazon.awssdk.services.iot.model.DescribeThingRequest;
import software.amazon.awssdk.services.iot.model.DescribeThingResponse;
import software.amazon.awssdk.services.iot.model.DescribeThingTypeRequest;
import software.amazon.awssdk.services.iot.model.DescribeThingTypeResponse;
import software.amazon.awssdk.services.iot.model.DetachPolicyRequest;
import software.amazon.awssdk.services.iot.model.DetachPolicyResponse;
import software.amazon.awssdk.services.iot.model.DetachSecurityProfileRequest;
import software.amazon.awssdk.services.iot.model.DetachSecurityProfileResponse;
import software.amazon.awssdk.services.iot.model.DetachThingPrincipalRequest;
import software.amazon.awssdk.services.iot.model.DetachThingPrincipalResponse;
import software.amazon.awssdk.services.iot.model.DisableTopicRuleRequest;
import software.amazon.awssdk.services.iot.model.DisableTopicRuleResponse;
import software.amazon.awssdk.services.iot.model.DisassociateSbomFromPackageVersionRequest;
import software.amazon.awssdk.services.iot.model.DisassociateSbomFromPackageVersionResponse;
import software.amazon.awssdk.services.iot.model.EnableTopicRuleRequest;
import software.amazon.awssdk.services.iot.model.EnableTopicRuleResponse;
import software.amazon.awssdk.services.iot.model.GetBehaviorModelTrainingSummariesRequest;
import software.amazon.awssdk.services.iot.model.GetBehaviorModelTrainingSummariesResponse;
import software.amazon.awssdk.services.iot.model.GetBucketsAggregationRequest;
import software.amazon.awssdk.services.iot.model.GetBucketsAggregationResponse;
import software.amazon.awssdk.services.iot.model.GetCardinalityRequest;
import software.amazon.awssdk.services.iot.model.GetCardinalityResponse;
import software.amazon.awssdk.services.iot.model.GetEffectivePoliciesRequest;
import software.amazon.awssdk.services.iot.model.GetEffectivePoliciesResponse;
import software.amazon.awssdk.services.iot.model.GetIndexingConfigurationRequest;
import software.amazon.awssdk.services.iot.model.GetIndexingConfigurationResponse;
import software.amazon.awssdk.services.iot.model.GetJobDocumentRequest;
import software.amazon.awssdk.services.iot.model.GetJobDocumentResponse;
import software.amazon.awssdk.services.iot.model.GetLoggingOptionsRequest;
import software.amazon.awssdk.services.iot.model.GetLoggingOptionsResponse;
import software.amazon.awssdk.services.iot.model.GetOtaUpdateRequest;
import software.amazon.awssdk.services.iot.model.GetOtaUpdateResponse;
import software.amazon.awssdk.services.iot.model.GetPackageConfigurationRequest;
import software.amazon.awssdk.services.iot.model.GetPackageConfigurationResponse;
import software.amazon.awssdk.services.iot.model.GetPackageRequest;
import software.amazon.awssdk.services.iot.model.GetPackageResponse;
import software.amazon.awssdk.services.iot.model.GetPackageVersionRequest;
import software.amazon.awssdk.services.iot.model.GetPackageVersionResponse;
import software.amazon.awssdk.services.iot.model.GetPercentilesRequest;
import software.amazon.awssdk.services.iot.model.GetPercentilesResponse;
import software.amazon.awssdk.services.iot.model.GetPolicyRequest;
import software.amazon.awssdk.services.iot.model.GetPolicyResponse;
import software.amazon.awssdk.services.iot.model.GetPolicyVersionRequest;
import software.amazon.awssdk.services.iot.model.GetPolicyVersionResponse;
import software.amazon.awssdk.services.iot.model.GetRegistrationCodeRequest;
import software.amazon.awssdk.services.iot.model.GetRegistrationCodeResponse;
import software.amazon.awssdk.services.iot.model.GetStatisticsRequest;
import software.amazon.awssdk.services.iot.model.GetStatisticsResponse;
import software.amazon.awssdk.services.iot.model.GetTopicRuleDestinationRequest;
import software.amazon.awssdk.services.iot.model.GetTopicRuleDestinationResponse;
import software.amazon.awssdk.services.iot.model.GetTopicRuleRequest;
import software.amazon.awssdk.services.iot.model.GetTopicRuleResponse;
import software.amazon.awssdk.services.iot.model.GetV2LoggingOptionsRequest;
import software.amazon.awssdk.services.iot.model.GetV2LoggingOptionsResponse;
import software.amazon.awssdk.services.iot.model.ListActiveViolationsRequest;
import software.amazon.awssdk.services.iot.model.ListActiveViolationsResponse;
import software.amazon.awssdk.services.iot.model.ListAttachedPoliciesRequest;
import software.amazon.awssdk.services.iot.model.ListAttachedPoliciesResponse;
import software.amazon.awssdk.services.iot.model.ListAuditFindingsRequest;
import software.amazon.awssdk.services.iot.model.ListAuditFindingsResponse;
import software.amazon.awssdk.services.iot.model.ListAuditMitigationActionsExecutionsRequest;
import software.amazon.awssdk.services.iot.model.ListAuditMitigationActionsExecutionsResponse;
import software.amazon.awssdk.services.iot.model.ListAuditMitigationActionsTasksRequest;
import software.amazon.awssdk.services.iot.model.ListAuditMitigationActionsTasksResponse;
import software.amazon.awssdk.services.iot.model.ListAuditSuppressionsRequest;
import software.amazon.awssdk.services.iot.model.ListAuditSuppressionsResponse;
import software.amazon.awssdk.services.iot.model.ListAuditTasksRequest;
import software.amazon.awssdk.services.iot.model.ListAuditTasksResponse;
import software.amazon.awssdk.services.iot.model.ListAuthorizersRequest;
import software.amazon.awssdk.services.iot.model.ListAuthorizersResponse;
import software.amazon.awssdk.services.iot.model.ListBillingGroupsRequest;
import software.amazon.awssdk.services.iot.model.ListBillingGroupsResponse;
import software.amazon.awssdk.services.iot.model.ListCaCertificatesRequest;
import software.amazon.awssdk.services.iot.model.ListCaCertificatesResponse;
import software.amazon.awssdk.services.iot.model.ListCertificateProvidersRequest;
import software.amazon.awssdk.services.iot.model.ListCertificateProvidersResponse;
import software.amazon.awssdk.services.iot.model.ListCertificatesByCaRequest;
import software.amazon.awssdk.services.iot.model.ListCertificatesByCaResponse;
import software.amazon.awssdk.services.iot.model.ListCertificatesRequest;
import software.amazon.awssdk.services.iot.model.ListCertificatesResponse;
import software.amazon.awssdk.services.iot.model.ListCustomMetricsRequest;
import software.amazon.awssdk.services.iot.model.ListCustomMetricsResponse;
import software.amazon.awssdk.services.iot.model.ListDetectMitigationActionsExecutionsRequest;
import software.amazon.awssdk.services.iot.model.ListDetectMitigationActionsExecutionsResponse;
import software.amazon.awssdk.services.iot.model.ListDetectMitigationActionsTasksRequest;
import software.amazon.awssdk.services.iot.model.ListDetectMitigationActionsTasksResponse;
import software.amazon.awssdk.services.iot.model.ListDimensionsRequest;
import software.amazon.awssdk.services.iot.model.ListDimensionsResponse;
import software.amazon.awssdk.services.iot.model.ListDomainConfigurationsRequest;
import software.amazon.awssdk.services.iot.model.ListDomainConfigurationsResponse;
import software.amazon.awssdk.services.iot.model.ListFleetMetricsRequest;
import software.amazon.awssdk.services.iot.model.ListFleetMetricsResponse;
import software.amazon.awssdk.services.iot.model.ListIndicesRequest;
import software.amazon.awssdk.services.iot.model.ListIndicesResponse;
import software.amazon.awssdk.services.iot.model.ListJobExecutionsForJobRequest;
import software.amazon.awssdk.services.iot.model.ListJobExecutionsForJobResponse;
import software.amazon.awssdk.services.iot.model.ListJobExecutionsForThingRequest;
import software.amazon.awssdk.services.iot.model.ListJobExecutionsForThingResponse;
import software.amazon.awssdk.services.iot.model.ListJobTemplatesRequest;
import software.amazon.awssdk.services.iot.model.ListJobTemplatesResponse;
import software.amazon.awssdk.services.iot.model.ListJobsRequest;
import software.amazon.awssdk.services.iot.model.ListJobsResponse;
import software.amazon.awssdk.services.iot.model.ListManagedJobTemplatesRequest;
import software.amazon.awssdk.services.iot.model.ListManagedJobTemplatesResponse;
import software.amazon.awssdk.services.iot.model.ListMetricValuesRequest;
import software.amazon.awssdk.services.iot.model.ListMetricValuesResponse;
import software.amazon.awssdk.services.iot.model.ListMitigationActionsRequest;
import software.amazon.awssdk.services.iot.model.ListMitigationActionsResponse;
import software.amazon.awssdk.services.iot.model.ListOtaUpdatesRequest;
import software.amazon.awssdk.services.iot.model.ListOtaUpdatesResponse;
import software.amazon.awssdk.services.iot.model.ListOutgoingCertificatesRequest;
import software.amazon.awssdk.services.iot.model.ListOutgoingCertificatesResponse;
import software.amazon.awssdk.services.iot.model.ListPackageVersionsRequest;
import software.amazon.awssdk.services.iot.model.ListPackageVersionsResponse;
import software.amazon.awssdk.services.iot.model.ListPackagesRequest;
import software.amazon.awssdk.services.iot.model.ListPackagesResponse;
import software.amazon.awssdk.services.iot.model.ListPoliciesRequest;
import software.amazon.awssdk.services.iot.model.ListPoliciesResponse;
import software.amazon.awssdk.services.iot.model.ListPolicyVersionsRequest;
import software.amazon.awssdk.services.iot.model.ListPolicyVersionsResponse;
import software.amazon.awssdk.services.iot.model.ListPrincipalThingsRequest;
import software.amazon.awssdk.services.iot.model.ListPrincipalThingsResponse;
import software.amazon.awssdk.services.iot.model.ListProvisioningTemplateVersionsRequest;
import software.amazon.awssdk.services.iot.model.ListProvisioningTemplateVersionsResponse;
import software.amazon.awssdk.services.iot.model.ListProvisioningTemplatesRequest;
import software.amazon.awssdk.services.iot.model.ListProvisioningTemplatesResponse;
import software.amazon.awssdk.services.iot.model.ListRelatedResourcesForAuditFindingRequest;
import software.amazon.awssdk.services.iot.model.ListRelatedResourcesForAuditFindingResponse;
import software.amazon.awssdk.services.iot.model.ListRoleAliasesRequest;
import software.amazon.awssdk.services.iot.model.ListRoleAliasesResponse;
import software.amazon.awssdk.services.iot.model.ListSbomValidationResultsRequest;
import software.amazon.awssdk.services.iot.model.ListSbomValidationResultsResponse;
import software.amazon.awssdk.services.iot.model.ListScheduledAuditsRequest;
import software.amazon.awssdk.services.iot.model.ListScheduledAuditsResponse;
import software.amazon.awssdk.services.iot.model.ListSecurityProfilesForTargetRequest;
import software.amazon.awssdk.services.iot.model.ListSecurityProfilesForTargetResponse;
import software.amazon.awssdk.services.iot.model.ListSecurityProfilesRequest;
import software.amazon.awssdk.services.iot.model.ListSecurityProfilesResponse;
import software.amazon.awssdk.services.iot.model.ListStreamsRequest;
import software.amazon.awssdk.services.iot.model.ListStreamsResponse;
import software.amazon.awssdk.services.iot.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.iot.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.iot.model.ListTargetsForPolicyRequest;
import software.amazon.awssdk.services.iot.model.ListTargetsForPolicyResponse;
import software.amazon.awssdk.services.iot.model.ListTargetsForSecurityProfileRequest;
import software.amazon.awssdk.services.iot.model.ListTargetsForSecurityProfileResponse;
import software.amazon.awssdk.services.iot.model.ListThingGroupsForThingRequest;
import software.amazon.awssdk.services.iot.model.ListThingGroupsForThingResponse;
import software.amazon.awssdk.services.iot.model.ListThingGroupsRequest;
import software.amazon.awssdk.services.iot.model.ListThingGroupsResponse;
import software.amazon.awssdk.services.iot.model.ListThingPrincipalsRequest;
import software.amazon.awssdk.services.iot.model.ListThingPrincipalsResponse;
import software.amazon.awssdk.services.iot.model.ListThingRegistrationTaskReportsRequest;
import software.amazon.awssdk.services.iot.model.ListThingRegistrationTaskReportsResponse;
import software.amazon.awssdk.services.iot.model.ListThingRegistrationTasksRequest;
import software.amazon.awssdk.services.iot.model.ListThingRegistrationTasksResponse;
import software.amazon.awssdk.services.iot.model.ListThingTypesRequest;
import software.amazon.awssdk.services.iot.model.ListThingTypesResponse;
import software.amazon.awssdk.services.iot.model.ListThingsInBillingGroupRequest;
import software.amazon.awssdk.services.iot.model.ListThingsInBillingGroupResponse;
import software.amazon.awssdk.services.iot.model.ListThingsInThingGroupRequest;
import software.amazon.awssdk.services.iot.model.ListThingsInThingGroupResponse;
import software.amazon.awssdk.services.iot.model.ListThingsRequest;
import software.amazon.awssdk.services.iot.model.ListThingsResponse;
import software.amazon.awssdk.services.iot.model.ListTopicRuleDestinationsRequest;
import software.amazon.awssdk.services.iot.model.ListTopicRuleDestinationsResponse;
import software.amazon.awssdk.services.iot.model.ListTopicRulesRequest;
import software.amazon.awssdk.services.iot.model.ListTopicRulesResponse;
import software.amazon.awssdk.services.iot.model.ListV2LoggingLevelsRequest;
import software.amazon.awssdk.services.iot.model.ListV2LoggingLevelsResponse;
import software.amazon.awssdk.services.iot.model.ListViolationEventsRequest;
import software.amazon.awssdk.services.iot.model.ListViolationEventsResponse;
import software.amazon.awssdk.services.iot.model.PutVerificationStateOnViolationRequest;
import software.amazon.awssdk.services.iot.model.PutVerificationStateOnViolationResponse;
import software.amazon.awssdk.services.iot.model.RegisterCaCertificateRequest;
import software.amazon.awssdk.services.iot.model.RegisterCaCertificateResponse;
import software.amazon.awssdk.services.iot.model.RegisterCertificateRequest;
import software.amazon.awssdk.services.iot.model.RegisterCertificateResponse;
import software.amazon.awssdk.services.iot.model.RegisterCertificateWithoutCaRequest;
import software.amazon.awssdk.services.iot.model.RegisterCertificateWithoutCaResponse;
import software.amazon.awssdk.services.iot.model.RegisterThingRequest;
import software.amazon.awssdk.services.iot.model.RegisterThingResponse;
import software.amazon.awssdk.services.iot.model.RejectCertificateTransferRequest;
import software.amazon.awssdk.services.iot.model.RejectCertificateTransferResponse;
import software.amazon.awssdk.services.iot.model.RemoveThingFromBillingGroupRequest;
import software.amazon.awssdk.services.iot.model.RemoveThingFromBillingGroupResponse;
import software.amazon.awssdk.services.iot.model.RemoveThingFromThingGroupRequest;
import software.amazon.awssdk.services.iot.model.RemoveThingFromThingGroupResponse;
import software.amazon.awssdk.services.iot.model.ReplaceTopicRuleRequest;
import software.amazon.awssdk.services.iot.model.ReplaceTopicRuleResponse;
import software.amazon.awssdk.services.iot.model.SearchIndexRequest;
import software.amazon.awssdk.services.iot.model.SearchIndexResponse;
import software.amazon.awssdk.services.iot.model.SetDefaultAuthorizerRequest;
import software.amazon.awssdk.services.iot.model.SetDefaultAuthorizerResponse;
import software.amazon.awssdk.services.iot.model.SetDefaultPolicyVersionRequest;
import software.amazon.awssdk.services.iot.model.SetDefaultPolicyVersionResponse;
import software.amazon.awssdk.services.iot.model.SetLoggingOptionsRequest;
import software.amazon.awssdk.services.iot.model.SetLoggingOptionsResponse;
import software.amazon.awssdk.services.iot.model.SetV2LoggingLevelRequest;
import software.amazon.awssdk.services.iot.model.SetV2LoggingLevelResponse;
import software.amazon.awssdk.services.iot.model.SetV2LoggingOptionsRequest;
import software.amazon.awssdk.services.iot.model.SetV2LoggingOptionsResponse;
import software.amazon.awssdk.services.iot.model.StartAuditMitigationActionsTaskRequest;
import software.amazon.awssdk.services.iot.model.StartAuditMitigationActionsTaskResponse;
import software.amazon.awssdk.services.iot.model.StartDetectMitigationActionsTaskRequest;
import software.amazon.awssdk.services.iot.model.StartDetectMitigationActionsTaskResponse;
import software.amazon.awssdk.services.iot.model.StartOnDemandAuditTaskRequest;
import software.amazon.awssdk.services.iot.model.StartOnDemandAuditTaskResponse;
import software.amazon.awssdk.services.iot.model.StartThingRegistrationTaskRequest;
import software.amazon.awssdk.services.iot.model.StartThingRegistrationTaskResponse;
import software.amazon.awssdk.services.iot.model.StopThingRegistrationTaskRequest;
import software.amazon.awssdk.services.iot.model.StopThingRegistrationTaskResponse;
import software.amazon.awssdk.services.iot.model.TagResourceRequest;
import software.amazon.awssdk.services.iot.model.TagResourceResponse;
import software.amazon.awssdk.services.iot.model.TestAuthorizationRequest;
import software.amazon.awssdk.services.iot.model.TestAuthorizationResponse;
import software.amazon.awssdk.services.iot.model.TestInvokeAuthorizerRequest;
import software.amazon.awssdk.services.iot.model.TestInvokeAuthorizerResponse;
import software.amazon.awssdk.services.iot.model.TransferCertificateRequest;
import software.amazon.awssdk.services.iot.model.TransferCertificateResponse;
import software.amazon.awssdk.services.iot.model.UntagResourceRequest;
import software.amazon.awssdk.services.iot.model.UntagResourceResponse;
import software.amazon.awssdk.services.iot.model.UpdateAccountAuditConfigurationRequest;
import software.amazon.awssdk.services.iot.model.UpdateAccountAuditConfigurationResponse;
import software.amazon.awssdk.services.iot.model.UpdateAuditSuppressionRequest;
import software.amazon.awssdk.services.iot.model.UpdateAuditSuppressionResponse;
import software.amazon.awssdk.services.iot.model.UpdateAuthorizerRequest;
import software.amazon.awssdk.services.iot.model.UpdateAuthorizerResponse;
import software.amazon.awssdk.services.iot.model.UpdateBillingGroupRequest;
import software.amazon.awssdk.services.iot.model.UpdateBillingGroupResponse;
import software.amazon.awssdk.services.iot.model.UpdateCaCertificateRequest;
import software.amazon.awssdk.services.iot.model.UpdateCaCertificateResponse;
import software.amazon.awssdk.services.iot.model.UpdateCertificateProviderRequest;
import software.amazon.awssdk.services.iot.model.UpdateCertificateProviderResponse;
import software.amazon.awssdk.services.iot.model.UpdateCertificateRequest;
import software.amazon.awssdk.services.iot.model.UpdateCertificateResponse;
import software.amazon.awssdk.services.iot.model.UpdateCustomMetricRequest;
import software.amazon.awssdk.services.iot.model.UpdateCustomMetricResponse;
import software.amazon.awssdk.services.iot.model.UpdateDimensionRequest;
import software.amazon.awssdk.services.iot.model.UpdateDimensionResponse;
import software.amazon.awssdk.services.iot.model.UpdateDomainConfigurationRequest;
import software.amazon.awssdk.services.iot.model.UpdateDomainConfigurationResponse;
import software.amazon.awssdk.services.iot.model.UpdateDynamicThingGroupRequest;
import software.amazon.awssdk.services.iot.model.UpdateDynamicThingGroupResponse;
import software.amazon.awssdk.services.iot.model.UpdateEventConfigurationsRequest;
import software.amazon.awssdk.services.iot.model.UpdateEventConfigurationsResponse;
import software.amazon.awssdk.services.iot.model.UpdateFleetMetricRequest;
import software.amazon.awssdk.services.iot.model.UpdateFleetMetricResponse;
import software.amazon.awssdk.services.iot.model.UpdateIndexingConfigurationRequest;
import software.amazon.awssdk.services.iot.model.UpdateIndexingConfigurationResponse;
import software.amazon.awssdk.services.iot.model.UpdateJobRequest;
import software.amazon.awssdk.services.iot.model.UpdateJobResponse;
import software.amazon.awssdk.services.iot.model.UpdateMitigationActionRequest;
import software.amazon.awssdk.services.iot.model.UpdateMitigationActionResponse;
import software.amazon.awssdk.services.iot.model.UpdatePackageConfigurationRequest;
import software.amazon.awssdk.services.iot.model.UpdatePackageConfigurationResponse;
import software.amazon.awssdk.services.iot.model.UpdatePackageRequest;
import software.amazon.awssdk.services.iot.model.UpdatePackageResponse;
import software.amazon.awssdk.services.iot.model.UpdatePackageVersionRequest;
import software.amazon.awssdk.services.iot.model.UpdatePackageVersionResponse;
import software.amazon.awssdk.services.iot.model.UpdateProvisioningTemplateRequest;
import software.amazon.awssdk.services.iot.model.UpdateProvisioningTemplateResponse;
import software.amazon.awssdk.services.iot.model.UpdateRoleAliasRequest;
import software.amazon.awssdk.services.iot.model.UpdateRoleAliasResponse;
import software.amazon.awssdk.services.iot.model.UpdateScheduledAuditRequest;
import software.amazon.awssdk.services.iot.model.UpdateScheduledAuditResponse;
import software.amazon.awssdk.services.iot.model.UpdateSecurityProfileRequest;
import software.amazon.awssdk.services.iot.model.UpdateSecurityProfileResponse;
import software.amazon.awssdk.services.iot.model.UpdateStreamRequest;
import software.amazon.awssdk.services.iot.model.UpdateStreamResponse;
import software.amazon.awssdk.services.iot.model.UpdateThingGroupRequest;
import software.amazon.awssdk.services.iot.model.UpdateThingGroupResponse;
import software.amazon.awssdk.services.iot.model.UpdateThingGroupsForThingRequest;
import software.amazon.awssdk.services.iot.model.UpdateThingGroupsForThingResponse;
import software.amazon.awssdk.services.iot.model.UpdateThingRequest;
import software.amazon.awssdk.services.iot.model.UpdateThingResponse;
import software.amazon.awssdk.services.iot.model.UpdateTopicRuleDestinationRequest;
import software.amazon.awssdk.services.iot.model.UpdateTopicRuleDestinationResponse;
import software.amazon.awssdk.services.iot.model.ValidateSecurityProfileBehaviorsRequest;
import software.amazon.awssdk.services.iot.model.ValidateSecurityProfileBehaviorsResponse;
import software.amazon.awssdk.services.iot.paginators.GetBehaviorModelTrainingSummariesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListActiveViolationsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListAttachedPoliciesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListAuditFindingsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListAuditMitigationActionsExecutionsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListAuditMitigationActionsTasksPublisher;
import software.amazon.awssdk.services.iot.paginators.ListAuditSuppressionsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListAuditTasksPublisher;
import software.amazon.awssdk.services.iot.paginators.ListAuthorizersPublisher;
import software.amazon.awssdk.services.iot.paginators.ListBillingGroupsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListCACertificatesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListCertificatesByCAPublisher;
import software.amazon.awssdk.services.iot.paginators.ListCertificatesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListCustomMetricsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListDetectMitigationActionsExecutionsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListDetectMitigationActionsTasksPublisher;
import software.amazon.awssdk.services.iot.paginators.ListDimensionsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListDomainConfigurationsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListFleetMetricsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListIndicesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListJobExecutionsForJobPublisher;
import software.amazon.awssdk.services.iot.paginators.ListJobExecutionsForThingPublisher;
import software.amazon.awssdk.services.iot.paginators.ListJobTemplatesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListJobsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListManagedJobTemplatesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListMetricValuesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListMitigationActionsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListOTAUpdatesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListOutgoingCertificatesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListPackageVersionsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListPackagesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListPoliciesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListPrincipalThingsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListProvisioningTemplateVersionsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListProvisioningTemplatesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListRelatedResourcesForAuditFindingPublisher;
import software.amazon.awssdk.services.iot.paginators.ListRoleAliasesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListSbomValidationResultsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListScheduledAuditsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListSecurityProfilesForTargetPublisher;
import software.amazon.awssdk.services.iot.paginators.ListSecurityProfilesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListStreamsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListTagsForResourcePublisher;
import software.amazon.awssdk.services.iot.paginators.ListTargetsForPolicyPublisher;
import software.amazon.awssdk.services.iot.paginators.ListTargetsForSecurityProfilePublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingGroupsForThingPublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingGroupsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingPrincipalsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingRegistrationTaskReportsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingRegistrationTasksPublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingTypesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingsInBillingGroupPublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingsInThingGroupPublisher;
import software.amazon.awssdk.services.iot.paginators.ListThingsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListTopicRuleDestinationsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListTopicRulesPublisher;
import software.amazon.awssdk.services.iot.paginators.ListV2LoggingLevelsPublisher;
import software.amazon.awssdk.services.iot.paginators.ListViolationEventsPublisher;
/**
* Service client for accessing AWS IoT asynchronously. This can be created using the static {@link #builder()}
* method.The asynchronous client performs non-blocking I/O when configured with any {@code SdkAsyncHttpClient}
* supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
* some cases such as credentials retrieval and endpoint discovery as part of the async API call.
*
* IoT
*
* IoT provides secure, bi-directional communication between Internet-connected devices (such as sensors, actuators,
* embedded devices, or smart appliances) and the Amazon Web Services 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 device (Registry), configure logging, and create and manage policies and credentials
* to authenticate devices.
*
*
* The service endpoints that expose this API are listed in Amazon Web Services IoT Core Endpoints and
* Quotas. You must use the endpoint for the region that has the resources you want to access.
*
*
* The service name used by Amazon Web
* Services Signature Version 4 to sign the request is: execute-api.
*
*
* For more information about how IoT works, see the Developer Guide.
*
*
* For information about how to use the credentials provider for IoT, see Authorizing Direct Calls to
* Amazon Web Services Services.
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface IotAsyncClient extends AwsClient {
String SERVICE_NAME = "iot";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "iot";
/**
*
* 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.
*
*
* Requires permission to access the AcceptCertificateTransfer action.
*
*
* @param acceptCertificateTransferRequest
* The input for the AcceptCertificateTransfer operation.
* @return A Java Future containing the result of the AcceptCertificateTransfer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - TransferAlreadyCompletedException You can't revert the certificate transfer because the transfer is
* already complete.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AcceptCertificateTransfer
*/
default CompletableFuture acceptCertificateTransfer(
AcceptCertificateTransferRequest acceptCertificateTransferRequest) {
throw new UnsupportedOperationException();
}
/**
*
* 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.
*
*
* Requires permission to access the AcceptCertificateTransfer action.
*
*
*
* This is a convenience which creates an instance of the {@link AcceptCertificateTransferRequest.Builder} avoiding
* the need to create one manually via {@link AcceptCertificateTransferRequest#builder()}
*
*
* @param acceptCertificateTransferRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.AcceptCertificateTransferRequest.Builder} to create a
* request. The input for the AcceptCertificateTransfer operation.
* @return A Java Future containing the result of the AcceptCertificateTransfer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - TransferAlreadyCompletedException You can't revert the certificate transfer because the transfer is
* already complete.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AcceptCertificateTransfer
*/
default CompletableFuture acceptCertificateTransfer(
Consumer acceptCertificateTransferRequest) {
return acceptCertificateTransfer(AcceptCertificateTransferRequest.builder()
.applyMutation(acceptCertificateTransferRequest).build());
}
/**
*
* Adds a thing to a billing group.
*
*
* Requires permission to access the AddThingToBillingGroup action.
*
*
* @param addThingToBillingGroupRequest
* @return A Java Future containing the result of the AddThingToBillingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AddThingToBillingGroup
*/
default CompletableFuture addThingToBillingGroup(
AddThingToBillingGroupRequest addThingToBillingGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Adds a thing to a billing group.
*
*
* Requires permission to access the AddThingToBillingGroup action.
*
*
*
* This is a convenience which creates an instance of the {@link AddThingToBillingGroupRequest.Builder} avoiding the
* need to create one manually via {@link AddThingToBillingGroupRequest#builder()}
*
*
* @param addThingToBillingGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.AddThingToBillingGroupRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the AddThingToBillingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AddThingToBillingGroup
*/
default CompletableFuture addThingToBillingGroup(
Consumer addThingToBillingGroupRequest) {
return addThingToBillingGroup(AddThingToBillingGroupRequest.builder().applyMutation(addThingToBillingGroupRequest)
.build());
}
/**
*
* Adds a thing to a thing group.
*
*
* Requires permission to access the AddThingToThingGroup action.
*
*
* @param addThingToThingGroupRequest
* @return A Java Future containing the result of the AddThingToThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AddThingToThingGroup
*/
default CompletableFuture addThingToThingGroup(
AddThingToThingGroupRequest addThingToThingGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Adds a thing to a thing group.
*
*
* Requires permission to access the AddThingToThingGroup action.
*
*
*
* This is a convenience which creates an instance of the {@link AddThingToThingGroupRequest.Builder} avoiding the
* need to create one manually via {@link AddThingToThingGroupRequest#builder()}
*
*
* @param addThingToThingGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.AddThingToThingGroupRequest.Builder} to create a request.
* @return A Java Future containing the result of the AddThingToThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AddThingToThingGroup
*/
default CompletableFuture addThingToThingGroup(
Consumer addThingToThingGroupRequest) {
return addThingToThingGroup(AddThingToThingGroupRequest.builder().applyMutation(addThingToThingGroupRequest).build());
}
/**
*
* Associates a software bill of materials (SBOM) with a specific software package version.
*
*
* Requires permission to access the AssociateSbomWithPackageVersion action.
*
*
* @param associateSbomWithPackageVersionRequest
* @return A Java Future containing the result of the AssociateSbomWithPackageVersion operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ConflictException A resource with the same name already exists.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - ServiceQuotaExceededException A limit has been exceeded.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AssociateSbomWithPackageVersion
*/
default CompletableFuture associateSbomWithPackageVersion(
AssociateSbomWithPackageVersionRequest associateSbomWithPackageVersionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Associates a software bill of materials (SBOM) with a specific software package version.
*
*
* Requires permission to access the AssociateSbomWithPackageVersion action.
*
*
*
* This is a convenience which creates an instance of the {@link AssociateSbomWithPackageVersionRequest.Builder}
* avoiding the need to create one manually via {@link AssociateSbomWithPackageVersionRequest#builder()}
*
*
* @param associateSbomWithPackageVersionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.AssociateSbomWithPackageVersionRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the AssociateSbomWithPackageVersion operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ConflictException A resource with the same name already exists.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - ServiceQuotaExceededException A limit has been exceeded.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AssociateSbomWithPackageVersion
*/
default CompletableFuture associateSbomWithPackageVersion(
Consumer associateSbomWithPackageVersionRequest) {
return associateSbomWithPackageVersion(AssociateSbomWithPackageVersionRequest.builder()
.applyMutation(associateSbomWithPackageVersionRequest).build());
}
/**
*
* Associates a group with a continuous job. The following criteria must be met:
*
*
* -
*
* The job must have been created with the targetSelection
field set to "CONTINUOUS".
*
*
* -
*
* The job status must currently be "IN_PROGRESS".
*
*
* -
*
* The total number of targets associated with a job must not exceed 100.
*
*
*
*
* Requires permission to access the AssociateTargetsWithJob action.
*
*
* @param associateTargetsWithJobRequest
* @return A Java Future containing the result of the AssociateTargetsWithJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AssociateTargetsWithJob
*/
default CompletableFuture associateTargetsWithJob(
AssociateTargetsWithJobRequest associateTargetsWithJobRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Associates a group with a continuous job. The following criteria must be met:
*
*
* -
*
* The job must have been created with the targetSelection
field set to "CONTINUOUS".
*
*
* -
*
* The job status must currently be "IN_PROGRESS".
*
*
* -
*
* The total number of targets associated with a job must not exceed 100.
*
*
*
*
* Requires permission to access the AssociateTargetsWithJob action.
*
*
*
* This is a convenience which creates an instance of the {@link AssociateTargetsWithJobRequest.Builder} avoiding
* the need to create one manually via {@link AssociateTargetsWithJobRequest#builder()}
*
*
* @param associateTargetsWithJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.AssociateTargetsWithJobRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the AssociateTargetsWithJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AssociateTargetsWithJob
*/
default CompletableFuture associateTargetsWithJob(
Consumer associateTargetsWithJobRequest) {
return associateTargetsWithJob(AssociateTargetsWithJobRequest.builder().applyMutation(associateTargetsWithJobRequest)
.build());
}
/**
*
* Attaches the specified policy to the specified principal (certificate or other credential).
*
*
* Requires permission to access the AttachPolicy action.
*
*
* @param attachPolicyRequest
* @return A Java Future containing the result of the AttachPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AttachPolicy
*/
default CompletableFuture attachPolicy(AttachPolicyRequest attachPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Attaches the specified policy to the specified principal (certificate or other credential).
*
*
* Requires permission to access the AttachPolicy action.
*
*
*
* This is a convenience which creates an instance of the {@link AttachPolicyRequest.Builder} avoiding the need to
* create one manually via {@link AttachPolicyRequest#builder()}
*
*
* @param attachPolicyRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.AttachPolicyRequest.Builder} to create a request.
* @return A Java Future containing the result of the AttachPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AttachPolicy
*/
default CompletableFuture attachPolicy(Consumer attachPolicyRequest) {
return attachPolicy(AttachPolicyRequest.builder().applyMutation(attachPolicyRequest).build());
}
/**
*
* Associates a Device Defender security profile with a thing group or this account. Each thing group or account can
* have up to five security profiles associated with it.
*
*
* Requires permission to access the AttachSecurityProfile action.
*
*
* @param attachSecurityProfileRequest
* @return A Java Future containing the result of the AttachSecurityProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - LimitExceededException A limit has been exceeded.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AttachSecurityProfile
*/
default CompletableFuture attachSecurityProfile(
AttachSecurityProfileRequest attachSecurityProfileRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Associates a Device Defender security profile with a thing group or this account. Each thing group or account can
* have up to five security profiles associated with it.
*
*
* Requires permission to access the AttachSecurityProfile action.
*
*
*
* This is a convenience which creates an instance of the {@link AttachSecurityProfileRequest.Builder} avoiding the
* need to create one manually via {@link AttachSecurityProfileRequest#builder()}
*
*
* @param attachSecurityProfileRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.AttachSecurityProfileRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the AttachSecurityProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - LimitExceededException A limit has been exceeded.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AttachSecurityProfile
*/
default CompletableFuture attachSecurityProfile(
Consumer attachSecurityProfileRequest) {
return attachSecurityProfile(AttachSecurityProfileRequest.builder().applyMutation(attachSecurityProfileRequest).build());
}
/**
*
* Attaches the specified principal to the specified thing. A principal can be X.509 certificates, Amazon Cognito
* identities or federated identities.
*
*
* Requires permission to access the AttachThingPrincipal action.
*
*
* @param attachThingPrincipalRequest
* The input for the AttachThingPrincipal operation.
* @return A Java Future containing the result of the AttachThingPrincipal operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AttachThingPrincipal
*/
default CompletableFuture attachThingPrincipal(
AttachThingPrincipalRequest attachThingPrincipalRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Attaches the specified principal to the specified thing. A principal can be X.509 certificates, Amazon Cognito
* identities or federated identities.
*
*
* Requires permission to access the AttachThingPrincipal action.
*
*
*
* This is a convenience which creates an instance of the {@link AttachThingPrincipalRequest.Builder} avoiding the
* need to create one manually via {@link AttachThingPrincipalRequest#builder()}
*
*
* @param attachThingPrincipalRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.AttachThingPrincipalRequest.Builder} to create a request.
* The input for the AttachThingPrincipal operation.
* @return A Java Future containing the result of the AttachThingPrincipal operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.AttachThingPrincipal
*/
default CompletableFuture attachThingPrincipal(
Consumer attachThingPrincipalRequest) {
return attachThingPrincipal(AttachThingPrincipalRequest.builder().applyMutation(attachThingPrincipalRequest).build());
}
/**
*
* Cancels a mitigation action task that is in progress. If the task is not in progress, an InvalidRequestException
* occurs.
*
*
* Requires permission to access the CancelAuditMitigationActionsTask action.
*
*
* @param cancelAuditMitigationActionsTaskRequest
* @return A Java Future containing the result of the CancelAuditMitigationActionsTask operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelAuditMitigationActionsTask
*/
default CompletableFuture cancelAuditMitigationActionsTask(
CancelAuditMitigationActionsTaskRequest cancelAuditMitigationActionsTaskRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Cancels a mitigation action task that is in progress. If the task is not in progress, an InvalidRequestException
* occurs.
*
*
* Requires permission to access the CancelAuditMitigationActionsTask action.
*
*
*
* This is a convenience which creates an instance of the {@link CancelAuditMitigationActionsTaskRequest.Builder}
* avoiding the need to create one manually via {@link CancelAuditMitigationActionsTaskRequest#builder()}
*
*
* @param cancelAuditMitigationActionsTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CancelAuditMitigationActionsTaskRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the CancelAuditMitigationActionsTask operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelAuditMitigationActionsTask
*/
default CompletableFuture cancelAuditMitigationActionsTask(
Consumer cancelAuditMitigationActionsTaskRequest) {
return cancelAuditMitigationActionsTask(CancelAuditMitigationActionsTaskRequest.builder()
.applyMutation(cancelAuditMitigationActionsTaskRequest).build());
}
/**
*
* Cancels an audit that is in progress. The audit can be either scheduled or on demand. If the audit isn't in
* progress, an "InvalidRequestException" occurs.
*
*
* Requires permission to access the CancelAuditTask action.
*
*
* @param cancelAuditTaskRequest
* @return A Java Future containing the result of the CancelAuditTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelAuditTask
*/
default CompletableFuture cancelAuditTask(CancelAuditTaskRequest cancelAuditTaskRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Cancels an audit that is in progress. The audit can be either scheduled or on demand. If the audit isn't in
* progress, an "InvalidRequestException" occurs.
*
*
* Requires permission to access the CancelAuditTask action.
*
*
*
* This is a convenience which creates an instance of the {@link CancelAuditTaskRequest.Builder} avoiding the need
* to create one manually via {@link CancelAuditTaskRequest#builder()}
*
*
* @param cancelAuditTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CancelAuditTaskRequest.Builder} to create a request.
* @return A Java Future containing the result of the CancelAuditTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelAuditTask
*/
default CompletableFuture cancelAuditTask(
Consumer cancelAuditTaskRequest) {
return cancelAuditTask(CancelAuditTaskRequest.builder().applyMutation(cancelAuditTaskRequest).build());
}
/**
*
* 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, 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.
*
*
* Requires permission to access the CancelCertificateTransfer action.
*
*
* @param cancelCertificateTransferRequest
* The input for the CancelCertificateTransfer operation.
* @return A Java Future containing the result of the CancelCertificateTransfer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - TransferAlreadyCompletedException You can't revert the certificate transfer because the transfer is
* already complete.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelCertificateTransfer
*/
default CompletableFuture cancelCertificateTransfer(
CancelCertificateTransferRequest cancelCertificateTransferRequest) {
throw new UnsupportedOperationException();
}
/**
*
* 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, 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.
*
*
* Requires permission to access the CancelCertificateTransfer action.
*
*
*
* This is a convenience which creates an instance of the {@link CancelCertificateTransferRequest.Builder} avoiding
* the need to create one manually via {@link CancelCertificateTransferRequest#builder()}
*
*
* @param cancelCertificateTransferRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CancelCertificateTransferRequest.Builder} to create a
* request. The input for the CancelCertificateTransfer operation.
* @return A Java Future containing the result of the CancelCertificateTransfer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - TransferAlreadyCompletedException You can't revert the certificate transfer because the transfer is
* already complete.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelCertificateTransfer
*/
default CompletableFuture cancelCertificateTransfer(
Consumer cancelCertificateTransferRequest) {
return cancelCertificateTransfer(CancelCertificateTransferRequest.builder()
.applyMutation(cancelCertificateTransferRequest).build());
}
/**
*
* Cancels a Device Defender ML Detect mitigation action.
*
*
* Requires permission to access the CancelDetectMitigationActionsTask action.
*
*
* @param cancelDetectMitigationActionsTaskRequest
* @return A Java Future containing the result of the CancelDetectMitigationActionsTask operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelDetectMitigationActionsTask
*/
default CompletableFuture cancelDetectMitigationActionsTask(
CancelDetectMitigationActionsTaskRequest cancelDetectMitigationActionsTaskRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Cancels a Device Defender ML Detect mitigation action.
*
*
* Requires permission to access the CancelDetectMitigationActionsTask action.
*
*
*
* This is a convenience which creates an instance of the {@link CancelDetectMitigationActionsTaskRequest.Builder}
* avoiding the need to create one manually via {@link CancelDetectMitigationActionsTaskRequest#builder()}
*
*
* @param cancelDetectMitigationActionsTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CancelDetectMitigationActionsTaskRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the CancelDetectMitigationActionsTask operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelDetectMitigationActionsTask
*/
default CompletableFuture cancelDetectMitigationActionsTask(
Consumer cancelDetectMitigationActionsTaskRequest) {
return cancelDetectMitigationActionsTask(CancelDetectMitigationActionsTaskRequest.builder()
.applyMutation(cancelDetectMitigationActionsTaskRequest).build());
}
/**
*
* Cancels a job.
*
*
* Requires permission to access the CancelJob action.
*
*
* @param cancelJobRequest
* @return A Java Future containing the result of the CancelJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelJob
*/
default CompletableFuture cancelJob(CancelJobRequest cancelJobRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Cancels a job.
*
*
* Requires permission to access the CancelJob action.
*
*
*
* This is a convenience which creates an instance of the {@link CancelJobRequest.Builder} avoiding the need to
* create one manually via {@link CancelJobRequest#builder()}
*
*
* @param cancelJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CancelJobRequest.Builder} to create a request.
* @return A Java Future containing the result of the CancelJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelJob
*/
default CompletableFuture cancelJob(Consumer cancelJobRequest) {
return cancelJob(CancelJobRequest.builder().applyMutation(cancelJobRequest).build());
}
/**
*
* Cancels the execution of a job for a given thing.
*
*
* Requires permission to access the CancelJobExecution action.
*
*
* @param cancelJobExecutionRequest
* @return A Java Future containing the result of the CancelJobExecution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - InvalidStateTransitionException An attempt was made to change to an invalid state, for example by
* deleting a job or a job execution which is "IN_PROGRESS" without setting the
force
* parameter.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelJobExecution
*/
default CompletableFuture cancelJobExecution(CancelJobExecutionRequest cancelJobExecutionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Cancels the execution of a job for a given thing.
*
*
* Requires permission to access the CancelJobExecution action.
*
*
*
* This is a convenience which creates an instance of the {@link CancelJobExecutionRequest.Builder} avoiding the
* need to create one manually via {@link CancelJobExecutionRequest#builder()}
*
*
* @param cancelJobExecutionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CancelJobExecutionRequest.Builder} to create a request.
* @return A Java Future containing the result of the CancelJobExecution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - InvalidStateTransitionException An attempt was made to change to an invalid state, for example by
* deleting a job or a job execution which is "IN_PROGRESS" without setting the
force
* parameter.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CancelJobExecution
*/
default CompletableFuture cancelJobExecution(
Consumer cancelJobExecutionRequest) {
return cancelJobExecution(CancelJobExecutionRequest.builder().applyMutation(cancelJobExecutionRequest).build());
}
/**
*
* Clears the default authorizer.
*
*
* Requires permission to access the ClearDefaultAuthorizer action.
*
*
* @param clearDefaultAuthorizerRequest
* @return A Java Future containing the result of the ClearDefaultAuthorizer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.ClearDefaultAuthorizer
*/
default CompletableFuture clearDefaultAuthorizer(
ClearDefaultAuthorizerRequest clearDefaultAuthorizerRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Clears the default authorizer.
*
*
* Requires permission to access the ClearDefaultAuthorizer action.
*
*
*
* This is a convenience which creates an instance of the {@link ClearDefaultAuthorizerRequest.Builder} avoiding the
* need to create one manually via {@link ClearDefaultAuthorizerRequest#builder()}
*
*
* @param clearDefaultAuthorizerRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.ClearDefaultAuthorizerRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ClearDefaultAuthorizer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.ClearDefaultAuthorizer
*/
default CompletableFuture clearDefaultAuthorizer(
Consumer clearDefaultAuthorizerRequest) {
return clearDefaultAuthorizer(ClearDefaultAuthorizerRequest.builder().applyMutation(clearDefaultAuthorizerRequest)
.build());
}
/**
*
* Clears the default authorizer.
*
*
* Requires permission to access the ClearDefaultAuthorizer action.
*
*
* @return A Java Future containing the result of the ClearDefaultAuthorizer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.ClearDefaultAuthorizer
*/
default CompletableFuture clearDefaultAuthorizer() {
return clearDefaultAuthorizer(ClearDefaultAuthorizerRequest.builder().build());
}
/**
*
* Confirms a topic rule destination. When you create a rule requiring a destination, IoT sends a confirmation
* message to the endpoint or base address you specify. The message includes a token which you pass back when
* calling ConfirmTopicRuleDestination
to confirm that you own or have access to the endpoint.
*
*
* Requires permission to access the ConfirmTopicRuleDestination action.
*
*
* @param confirmTopicRuleDestinationRequest
* @return A Java Future containing the result of the ConfirmTopicRuleDestination operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ServiceUnavailableException The service is temporarily unavailable.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.ConfirmTopicRuleDestination
*/
default CompletableFuture confirmTopicRuleDestination(
ConfirmTopicRuleDestinationRequest confirmTopicRuleDestinationRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Confirms a topic rule destination. When you create a rule requiring a destination, IoT sends a confirmation
* message to the endpoint or base address you specify. The message includes a token which you pass back when
* calling ConfirmTopicRuleDestination
to confirm that you own or have access to the endpoint.
*
*
* Requires permission to access the ConfirmTopicRuleDestination action.
*
*
*
* This is a convenience which creates an instance of the {@link ConfirmTopicRuleDestinationRequest.Builder}
* avoiding the need to create one manually via {@link ConfirmTopicRuleDestinationRequest#builder()}
*
*
* @param confirmTopicRuleDestinationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.ConfirmTopicRuleDestinationRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ConfirmTopicRuleDestination operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ServiceUnavailableException The service is temporarily unavailable.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.ConfirmTopicRuleDestination
*/
default CompletableFuture confirmTopicRuleDestination(
Consumer confirmTopicRuleDestinationRequest) {
return confirmTopicRuleDestination(ConfirmTopicRuleDestinationRequest.builder()
.applyMutation(confirmTopicRuleDestinationRequest).build());
}
/**
*
* Creates a Device Defender audit suppression.
*
*
* Requires permission to access the CreateAuditSuppression action.
*
*
* @param createAuditSuppressionRequest
* @return A Java Future containing the result of the CreateAuditSuppression operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateAuditSuppression
*/
default CompletableFuture createAuditSuppression(
CreateAuditSuppressionRequest createAuditSuppressionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a Device Defender audit suppression.
*
*
* Requires permission to access the CreateAuditSuppression action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateAuditSuppressionRequest.Builder} avoiding the
* need to create one manually via {@link CreateAuditSuppressionRequest#builder()}
*
*
* @param createAuditSuppressionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateAuditSuppressionRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateAuditSuppression operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateAuditSuppression
*/
default CompletableFuture createAuditSuppression(
Consumer createAuditSuppressionRequest) {
return createAuditSuppression(CreateAuditSuppressionRequest.builder().applyMutation(createAuditSuppressionRequest)
.build());
}
/**
*
* Creates an authorizer.
*
*
* Requires permission to access the CreateAuthorizer action.
*
*
* @param createAuthorizerRequest
* @return A Java Future containing the result of the CreateAuthorizer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceAlreadyExistsException The resource already exists.
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateAuthorizer
*/
default CompletableFuture createAuthorizer(CreateAuthorizerRequest createAuthorizerRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an authorizer.
*
*
* Requires permission to access the CreateAuthorizer action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateAuthorizerRequest.Builder} avoiding the need
* to create one manually via {@link CreateAuthorizerRequest#builder()}
*
*
* @param createAuthorizerRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateAuthorizerRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateAuthorizer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceAlreadyExistsException The resource already exists.
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateAuthorizer
*/
default CompletableFuture createAuthorizer(
Consumer createAuthorizerRequest) {
return createAuthorizer(CreateAuthorizerRequest.builder().applyMutation(createAuthorizerRequest).build());
}
/**
*
* Creates a billing group.
*
*
* Requires permission to access the CreateBillingGroup action.
*
*
* @param createBillingGroupRequest
* @return A Java Future containing the result of the CreateBillingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateBillingGroup
*/
default CompletableFuture createBillingGroup(CreateBillingGroupRequest createBillingGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a billing group.
*
*
* Requires permission to access the CreateBillingGroup action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateBillingGroupRequest.Builder} avoiding the
* need to create one manually via {@link CreateBillingGroupRequest#builder()}
*
*
* @param createBillingGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateBillingGroupRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateBillingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateBillingGroup
*/
default CompletableFuture createBillingGroup(
Consumer createBillingGroupRequest) {
return createBillingGroup(CreateBillingGroupRequest.builder().applyMutation(createBillingGroupRequest).build());
}
/**
*
* Creates an X.509 certificate using the specified certificate signing request.
*
*
* Requires permission to access the CreateCertificateFromCsr action.
*
*
*
* The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key
* from NIST P-256, NIST P-384, or NIST P-521 curves. For supported certificates, consult
* Certificate signing algorithms supported by IoT.
*
*
*
* 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. In the following commands, we assume that 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
Amazon Web Services CLI command to create a certificate for the
* corresponding CSR.
*
*
* You can also run the aws iot create-certificate-from-csr
part of the command 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
* The input for the CreateCertificateFromCsr operation.
* @return A Java Future containing the result of the CreateCertificateFromCsr operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateCertificateFromCsr
*/
default CompletableFuture createCertificateFromCsr(
CreateCertificateFromCsrRequest createCertificateFromCsrRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an X.509 certificate using the specified certificate signing request.
*
*
* Requires permission to access the CreateCertificateFromCsr action.
*
*
*
* The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key
* from NIST P-256, NIST P-384, or NIST P-521 curves. For supported certificates, consult
* Certificate signing algorithms supported by IoT.
*
*
*
* 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. In the following commands, we assume that 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
Amazon Web Services CLI command to create a certificate for the
* corresponding CSR.
*
*
* You can also run the aws iot create-certificate-from-csr
part of the command 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"
*
*
*
* This is a convenience which creates an instance of the {@link CreateCertificateFromCsrRequest.Builder} avoiding
* the need to create one manually via {@link CreateCertificateFromCsrRequest#builder()}
*
*
* @param createCertificateFromCsrRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateCertificateFromCsrRequest.Builder} to create a
* request. The input for the CreateCertificateFromCsr operation.
* @return A Java Future containing the result of the CreateCertificateFromCsr operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateCertificateFromCsr
*/
default CompletableFuture createCertificateFromCsr(
Consumer createCertificateFromCsrRequest) {
return createCertificateFromCsr(CreateCertificateFromCsrRequest.builder().applyMutation(createCertificateFromCsrRequest)
.build());
}
/**
*
* Creates an Amazon Web Services IoT Core certificate provider. You can use Amazon Web Services IoT Core
* certificate provider to customize how to sign a certificate signing request (CSR) in IoT fleet provisioning. For
* more information, see Customizing
* certificate signing using Amazon Web Services IoT Core certificate provider from Amazon Web Services IoT
* Core Developer Guide.
*
*
* Requires permission to access the CreateCertificateProvider action.
*
*
*
* After you create a certificate provider, the behavior of
* CreateCertificateFromCsr
API for fleet provisioning will change and all API calls to
* CreateCertificateFromCsr
will invoke the certificate provider to create the certificates. It can
* take up to a few minutes for this behavior to change after a certificate provider is created.
*
*
*
* @param createCertificateProviderRequest
* @return A Java Future containing the result of the CreateCertificateProvider operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - LimitExceededException A limit has been exceeded.
* - ResourceAlreadyExistsException The resource already exists.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateCertificateProvider
*/
default CompletableFuture createCertificateProvider(
CreateCertificateProviderRequest createCertificateProviderRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an Amazon Web Services IoT Core certificate provider. You can use Amazon Web Services IoT Core
* certificate provider to customize how to sign a certificate signing request (CSR) in IoT fleet provisioning. For
* more information, see Customizing
* certificate signing using Amazon Web Services IoT Core certificate provider from Amazon Web Services IoT
* Core Developer Guide.
*
*
* Requires permission to access the CreateCertificateProvider action.
*
*
*
* After you create a certificate provider, the behavior of
* CreateCertificateFromCsr
API for fleet provisioning will change and all API calls to
* CreateCertificateFromCsr
will invoke the certificate provider to create the certificates. It can
* take up to a few minutes for this behavior to change after a certificate provider is created.
*
*
*
* This is a convenience which creates an instance of the {@link CreateCertificateProviderRequest.Builder} avoiding
* the need to create one manually via {@link CreateCertificateProviderRequest#builder()}
*
*
* @param createCertificateProviderRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateCertificateProviderRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateCertificateProvider operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - LimitExceededException A limit has been exceeded.
* - ResourceAlreadyExistsException The resource already exists.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateCertificateProvider
*/
default CompletableFuture createCertificateProvider(
Consumer createCertificateProviderRequest) {
return createCertificateProvider(CreateCertificateProviderRequest.builder()
.applyMutation(createCertificateProviderRequest).build());
}
/**
*
* Use this API to define a Custom Metric published by your devices to Device Defender.
*
*
* Requires permission to access the CreateCustomMetric action.
*
*
* @param createCustomMetricRequest
* @return A Java Future containing the result of the CreateCustomMetric operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateCustomMetric
*/
default CompletableFuture createCustomMetric(CreateCustomMetricRequest createCustomMetricRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Use this API to define a Custom Metric published by your devices to Device Defender.
*
*
* Requires permission to access the CreateCustomMetric action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateCustomMetricRequest.Builder} avoiding the
* need to create one manually via {@link CreateCustomMetricRequest#builder()}
*
*
* @param createCustomMetricRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateCustomMetricRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateCustomMetric operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateCustomMetric
*/
default CompletableFuture createCustomMetric(
Consumer createCustomMetricRequest) {
return createCustomMetric(CreateCustomMetricRequest.builder().applyMutation(createCustomMetricRequest).build());
}
/**
*
* Create a dimension that you can use to limit the scope of a metric used in a security profile for IoT Device
* Defender. For example, using a TOPIC_FILTER
dimension, you can narrow down the scope of the metric
* only to MQTT topics whose name match the pattern specified in the dimension.
*
*
* Requires permission to access the CreateDimension action.
*
*
* @param createDimensionRequest
* @return A Java Future containing the result of the CreateDimension operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateDimension
*/
default CompletableFuture createDimension(CreateDimensionRequest createDimensionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Create a dimension that you can use to limit the scope of a metric used in a security profile for IoT Device
* Defender. For example, using a TOPIC_FILTER
dimension, you can narrow down the scope of the metric
* only to MQTT topics whose name match the pattern specified in the dimension.
*
*
* Requires permission to access the CreateDimension action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateDimensionRequest.Builder} avoiding the need
* to create one manually via {@link CreateDimensionRequest#builder()}
*
*
* @param createDimensionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateDimensionRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateDimension operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateDimension
*/
default CompletableFuture createDimension(
Consumer createDimensionRequest) {
return createDimension(CreateDimensionRequest.builder().applyMutation(createDimensionRequest).build());
}
/**
*
* Creates a domain configuration.
*
*
* Requires permission to access the CreateDomainConfiguration action.
*
*
* @param createDomainConfigurationRequest
* @return A Java Future containing the result of the CreateDomainConfiguration operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - LimitExceededException A limit has been exceeded.
* - CertificateValidationException The certificate is invalid.
* - ResourceAlreadyExistsException The resource already exists.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - UnauthorizedException You are not authorized to perform this operation.
* - ThrottlingException The rate exceeds the limit.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateDomainConfiguration
*/
default CompletableFuture createDomainConfiguration(
CreateDomainConfigurationRequest createDomainConfigurationRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a domain configuration.
*
*
* Requires permission to access the CreateDomainConfiguration action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateDomainConfigurationRequest.Builder} avoiding
* the need to create one manually via {@link CreateDomainConfigurationRequest#builder()}
*
*
* @param createDomainConfigurationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateDomainConfigurationRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateDomainConfiguration operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - LimitExceededException A limit has been exceeded.
* - CertificateValidationException The certificate is invalid.
* - ResourceAlreadyExistsException The resource already exists.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - UnauthorizedException You are not authorized to perform this operation.
* - ThrottlingException The rate exceeds the limit.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateDomainConfiguration
*/
default CompletableFuture createDomainConfiguration(
Consumer createDomainConfigurationRequest) {
return createDomainConfiguration(CreateDomainConfigurationRequest.builder()
.applyMutation(createDomainConfigurationRequest).build());
}
/**
*
* Creates a dynamic thing group.
*
*
* Requires permission to access the CreateDynamicThingGroup action.
*
*
* @param createDynamicThingGroupRequest
* @return A Java Future containing the result of the CreateDynamicThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - InvalidQueryException The query is invalid.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateDynamicThingGroup
*/
default CompletableFuture createDynamicThingGroup(
CreateDynamicThingGroupRequest createDynamicThingGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a dynamic thing group.
*
*
* Requires permission to access the CreateDynamicThingGroup action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateDynamicThingGroupRequest.Builder} avoiding
* the need to create one manually via {@link CreateDynamicThingGroupRequest#builder()}
*
*
* @param createDynamicThingGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateDynamicThingGroupRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateDynamicThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - InvalidQueryException The query is invalid.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateDynamicThingGroup
*/
default CompletableFuture createDynamicThingGroup(
Consumer createDynamicThingGroupRequest) {
return createDynamicThingGroup(CreateDynamicThingGroupRequest.builder().applyMutation(createDynamicThingGroupRequest)
.build());
}
/**
*
* Creates a fleet metric.
*
*
* Requires permission to access the CreateFleetMetric action.
*
*
* @param createFleetMetricRequest
* @return A Java Future containing the result of the CreateFleetMetric operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - LimitExceededException A limit has been exceeded.
* - ResourceAlreadyExistsException The resource already exists.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidQueryException The query is invalid.
* - InvalidAggregationException The aggregation is invalid.
* - IndexNotReadyException The index is not ready.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateFleetMetric
*/
default CompletableFuture createFleetMetric(CreateFleetMetricRequest createFleetMetricRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a fleet metric.
*
*
* Requires permission to access the CreateFleetMetric action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateFleetMetricRequest.Builder} avoiding the need
* to create one manually via {@link CreateFleetMetricRequest#builder()}
*
*
* @param createFleetMetricRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateFleetMetricRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateFleetMetric operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - LimitExceededException A limit has been exceeded.
* - ResourceAlreadyExistsException The resource already exists.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidQueryException The query is invalid.
* - InvalidAggregationException The aggregation is invalid.
* - IndexNotReadyException The index is not ready.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateFleetMetric
*/
default CompletableFuture createFleetMetric(
Consumer createFleetMetricRequest) {
return createFleetMetric(CreateFleetMetricRequest.builder().applyMutation(createFleetMetricRequest).build());
}
/**
*
* Creates a job.
*
*
* Requires permission to access the CreateJob action.
*
*
* @param createJobRequest
* @return A Java Future containing the result of the CreateJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ResourceAlreadyExistsException The resource already exists.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateJob
*/
default CompletableFuture createJob(CreateJobRequest createJobRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a job.
*
*
* Requires permission to access the CreateJob action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateJobRequest.Builder} avoiding the need to
* create one manually via {@link CreateJobRequest#builder()}
*
*
* @param createJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateJobRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ResourceAlreadyExistsException The resource already exists.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateJob
*/
default CompletableFuture createJob(Consumer createJobRequest) {
return createJob(CreateJobRequest.builder().applyMutation(createJobRequest).build());
}
/**
*
* Creates a job template.
*
*
* Requires permission to access the CreateJobTemplate action.
*
*
* @param createJobTemplateRequest
* @return A Java Future containing the result of the CreateJobTemplate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ConflictException A resource with the same name already exists.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateJobTemplate
*/
default CompletableFuture createJobTemplate(CreateJobTemplateRequest createJobTemplateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a job template.
*
*
* Requires permission to access the CreateJobTemplate action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateJobTemplateRequest.Builder} avoiding the need
* to create one manually via {@link CreateJobTemplateRequest#builder()}
*
*
* @param createJobTemplateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateJobTemplateRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateJobTemplate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ConflictException A resource with the same name already exists.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateJobTemplate
*/
default CompletableFuture createJobTemplate(
Consumer createJobTemplateRequest) {
return createJobTemplate(CreateJobTemplateRequest.builder().applyMutation(createJobTemplateRequest).build());
}
/**
*
* Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key. You can also call
* CreateKeysAndCertificate
over MQTT from a device, for more information, see Provisioning MQTT API.
*
*
* Note This is the only time IoT issues the private key for this certificate, so it is important to keep it
* in a secure location.
*
*
* Requires permission to access the CreateKeysAndCertificate action.
*
*
* @param createKeysAndCertificateRequest
* The input for the CreateKeysAndCertificate operation.
*
* Requires permission to access the CreateKeysAndCertificateRequest action.
* @return A Java Future containing the result of the CreateKeysAndCertificate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
- ThrottlingException The rate exceeds the
* limit.
- UnauthorizedException You are not authorized to perform this operation.
-
* ServiceUnavailableException The service is temporarily unavailable.
- InternalFailureException An
* unexpected error has occurred.
- SdkException Base class for all exceptions that can be thrown by
* the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If
* any client side error occurs such as an IO related failure, failure to get credentials, etc.
-
* IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of
* this type.
*
* @sample IotAsyncClient.CreateKeysAndCertificate
*/
default CompletableFuture createKeysAndCertificate(
CreateKeysAndCertificateRequest createKeysAndCertificateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key. You can also call
* CreateKeysAndCertificate
over MQTT from a device, for more information, see Provisioning MQTT API.
*
*
* Note This is the only time IoT issues the private key for this certificate, so it is important to keep it
* in a secure location.
*
*
* Requires permission to access the CreateKeysAndCertificate action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateKeysAndCertificateRequest.Builder} avoiding
* the need to create one manually via {@link CreateKeysAndCertificateRequest#builder()}
*
*
* @param createKeysAndCertificateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateKeysAndCertificateRequest.Builder} to create a
* request. The input for the CreateKeysAndCertificate operation.
*
* Requires permission to access the CreateKeysAndCertificateRequest action.
* @return A Java Future containing the result of the CreateKeysAndCertificate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
- ThrottlingException The rate exceeds the
* limit.
- UnauthorizedException You are not authorized to perform this operation.
-
* ServiceUnavailableException The service is temporarily unavailable.
- InternalFailureException An
* unexpected error has occurred.
- SdkException Base class for all exceptions that can be thrown by
* the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If
* any client side error occurs such as an IO related failure, failure to get credentials, etc.
-
* IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of
* this type.
*
* @sample IotAsyncClient.CreateKeysAndCertificate
*/
default CompletableFuture createKeysAndCertificate(
Consumer createKeysAndCertificateRequest) {
return createKeysAndCertificate(CreateKeysAndCertificateRequest.builder().applyMutation(createKeysAndCertificateRequest)
.build());
}
/**
*
* Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key. You can also call
* CreateKeysAndCertificate
over MQTT from a device, for more information, see Provisioning MQTT API.
*
*
* Note This is the only time IoT issues the private key for this certificate, so it is important to keep it
* in a secure location.
*
*
* Requires permission to access the CreateKeysAndCertificate action.
*
*
* @return A Java Future containing the result of the CreateKeysAndCertificate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateKeysAndCertificate
*/
default CompletableFuture createKeysAndCertificate() {
return createKeysAndCertificate(CreateKeysAndCertificateRequest.builder().build());
}
/**
*
* Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. Only certain
* types of mitigation actions can be applied to specific check names. For more information, see Mitigation
* actions. Each mitigation action can apply only one type of change.
*
*
* Requires permission to access the CreateMitigationAction action.
*
*
* @param createMitigationActionRequest
* @return A Java Future containing the result of the CreateMitigationAction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateMitigationAction
*/
default CompletableFuture createMitigationAction(
CreateMitigationActionRequest createMitigationActionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. Only certain
* types of mitigation actions can be applied to specific check names. For more information, see Mitigation
* actions. Each mitigation action can apply only one type of change.
*
*
* Requires permission to access the CreateMitigationAction action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateMitigationActionRequest.Builder} avoiding the
* need to create one manually via {@link CreateMitigationActionRequest#builder()}
*
*
* @param createMitigationActionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateMitigationActionRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateMitigationAction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateMitigationAction
*/
default CompletableFuture createMitigationAction(
Consumer createMitigationActionRequest) {
return createMitigationAction(CreateMitigationActionRequest.builder().applyMutation(createMitigationActionRequest)
.build());
}
/**
*
* Creates an IoT OTA update on a target group of things or groups.
*
*
* Requires permission to access the CreateOTAUpdate action.
*
*
* @param createOtaUpdateRequest
* @return A Java Future containing the result of the CreateOTAUpdate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ResourceNotFoundException The specified resource does not exist.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - InternalFailureException An unexpected error has occurred.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateOTAUpdate
*/
default CompletableFuture createOTAUpdate(CreateOtaUpdateRequest createOtaUpdateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an IoT OTA update on a target group of things or groups.
*
*
* Requires permission to access the CreateOTAUpdate action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateOtaUpdateRequest.Builder} avoiding the need
* to create one manually via {@link CreateOtaUpdateRequest#builder()}
*
*
* @param createOtaUpdateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateOtaUpdateRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateOTAUpdate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ResourceNotFoundException The specified resource does not exist.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - InternalFailureException An unexpected error has occurred.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateOTAUpdate
*/
default CompletableFuture createOTAUpdate(
Consumer createOtaUpdateRequest) {
return createOTAUpdate(CreateOtaUpdateRequest.builder().applyMutation(createOtaUpdateRequest).build());
}
/**
*
* Creates an IoT software package that can be deployed to your fleet.
*
*
* Requires permission to access the CreatePackage and GetIndexingConfiguration actions.
*
*
* @param createPackageRequest
* @return A Java Future containing the result of the CreatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ConflictException A resource with the same name already exists.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - ServiceQuotaExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreatePackage
*/
default CompletableFuture createPackage(CreatePackageRequest createPackageRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an IoT software package that can be deployed to your fleet.
*
*
* Requires permission to access the CreatePackage and GetIndexingConfiguration actions.
*
*
*
* This is a convenience which creates an instance of the {@link CreatePackageRequest.Builder} avoiding the need to
* create one manually via {@link CreatePackageRequest#builder()}
*
*
* @param createPackageRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreatePackageRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreatePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ConflictException A resource with the same name already exists.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - ServiceQuotaExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreatePackage
*/
default CompletableFuture createPackage(Consumer createPackageRequest) {
return createPackage(CreatePackageRequest.builder().applyMutation(createPackageRequest).build());
}
/**
*
* Creates a new version for an existing IoT software package.
*
*
* Requires permission to access the CreatePackageVersion and GetIndexingConfiguration actions.
*
*
* @param createPackageVersionRequest
* @return A Java Future containing the result of the CreatePackageVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ConflictException A resource with the same name already exists.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - ServiceQuotaExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreatePackageVersion
*/
default CompletableFuture createPackageVersion(
CreatePackageVersionRequest createPackageVersionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new version for an existing IoT software package.
*
*
* Requires permission to access the CreatePackageVersion and GetIndexingConfiguration actions.
*
*
*
* This is a convenience which creates an instance of the {@link CreatePackageVersionRequest.Builder} avoiding the
* need to create one manually via {@link CreatePackageVersionRequest#builder()}
*
*
* @param createPackageVersionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreatePackageVersionRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreatePackageVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ConflictException A resource with the same name already exists.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - ServiceQuotaExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreatePackageVersion
*/
default CompletableFuture createPackageVersion(
Consumer createPackageVersionRequest) {
return createPackageVersion(CreatePackageVersionRequest.builder().applyMutation(createPackageVersionRequest).build());
}
/**
*
* Creates an 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.
*
*
* Requires permission to access the CreatePolicy action.
*
*
* @param createPolicyRequest
* The input for the CreatePolicy operation.
* @return A Java Future containing the result of the CreatePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceAlreadyExistsException The resource already exists.
* - MalformedPolicyException The policy documentation is not valid.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreatePolicy
*/
default CompletableFuture createPolicy(CreatePolicyRequest createPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an 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.
*
*
* Requires permission to access the CreatePolicy action.
*
*
*
* This is a convenience which creates an instance of the {@link CreatePolicyRequest.Builder} avoiding the need to
* create one manually via {@link CreatePolicyRequest#builder()}
*
*
* @param createPolicyRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreatePolicyRequest.Builder} to create a request. The
* input for the CreatePolicy operation.
* @return A Java Future containing the result of the CreatePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceAlreadyExistsException The resource already exists.
* - MalformedPolicyException The policy documentation is not valid.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreatePolicy
*/
default CompletableFuture createPolicy(Consumer createPolicyRequest) {
return createPolicy(CreatePolicyRequest.builder().applyMutation(createPolicyRequest).build());
}
/**
*
* Creates a new version of the specified 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).
*
*
* Requires permission to access the CreatePolicyVersion action.
*
*
* @param createPolicyVersionRequest
* The input for the CreatePolicyVersion operation.
* @return A Java Future containing the result of the CreatePolicyVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - MalformedPolicyException The policy documentation is not valid.
* - VersionsLimitExceededException The number of policy versions exceeds the limit.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreatePolicyVersion
*/
default CompletableFuture createPolicyVersion(
CreatePolicyVersionRequest createPolicyVersionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new version of the specified 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).
*
*
* Requires permission to access the CreatePolicyVersion action.
*
*
*
* This is a convenience which creates an instance of the {@link CreatePolicyVersionRequest.Builder} avoiding the
* need to create one manually via {@link CreatePolicyVersionRequest#builder()}
*
*
* @param createPolicyVersionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreatePolicyVersionRequest.Builder} to create a request.
* The input for the CreatePolicyVersion operation.
* @return A Java Future containing the result of the CreatePolicyVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - MalformedPolicyException The policy documentation is not valid.
* - VersionsLimitExceededException The number of policy versions exceeds the limit.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreatePolicyVersion
*/
default CompletableFuture createPolicyVersion(
Consumer createPolicyVersionRequest) {
return createPolicyVersion(CreatePolicyVersionRequest.builder().applyMutation(createPolicyVersionRequest).build());
}
/**
*
* Creates a provisioning claim.
*
*
* Requires permission to access the CreateProvisioningClaim action.
*
*
* @param createProvisioningClaimRequest
* @return A Java Future containing the result of the CreateProvisioningClaim operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateProvisioningClaim
*/
default CompletableFuture createProvisioningClaim(
CreateProvisioningClaimRequest createProvisioningClaimRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a provisioning claim.
*
*
* Requires permission to access the CreateProvisioningClaim action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateProvisioningClaimRequest.Builder} avoiding
* the need to create one manually via {@link CreateProvisioningClaimRequest#builder()}
*
*
* @param createProvisioningClaimRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateProvisioningClaimRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateProvisioningClaim operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateProvisioningClaim
*/
default CompletableFuture createProvisioningClaim(
Consumer createProvisioningClaimRequest) {
return createProvisioningClaim(CreateProvisioningClaimRequest.builder().applyMutation(createProvisioningClaimRequest)
.build());
}
/**
*
* Creates a provisioning template.
*
*
* Requires permission to access the CreateProvisioningTemplate action.
*
*
* @param createProvisioningTemplateRequest
* @return A Java Future containing the result of the CreateProvisioningTemplate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ResourceAlreadyExistsException The resource already exists.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateProvisioningTemplate
*/
default CompletableFuture createProvisioningTemplate(
CreateProvisioningTemplateRequest createProvisioningTemplateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a provisioning template.
*
*
* Requires permission to access the CreateProvisioningTemplate action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateProvisioningTemplateRequest.Builder} avoiding
* the need to create one manually via {@link CreateProvisioningTemplateRequest#builder()}
*
*
* @param createProvisioningTemplateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateProvisioningTemplateRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateProvisioningTemplate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ResourceAlreadyExistsException The resource already exists.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateProvisioningTemplate
*/
default CompletableFuture createProvisioningTemplate(
Consumer createProvisioningTemplateRequest) {
return createProvisioningTemplate(CreateProvisioningTemplateRequest.builder()
.applyMutation(createProvisioningTemplateRequest).build());
}
/**
*
* Creates a new version of a provisioning template.
*
*
* Requires permission to access the CreateProvisioningTemplateVersion action.
*
*
* @param createProvisioningTemplateVersionRequest
* @return A Java Future containing the result of the CreateProvisioningTemplateVersion operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - VersionsLimitExceededException The number of policy versions exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - ResourceNotFoundException The specified resource does not exist.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateProvisioningTemplateVersion
*/
default CompletableFuture createProvisioningTemplateVersion(
CreateProvisioningTemplateVersionRequest createProvisioningTemplateVersionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new version of a provisioning template.
*
*
* Requires permission to access the CreateProvisioningTemplateVersion action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateProvisioningTemplateVersionRequest.Builder}
* avoiding the need to create one manually via {@link CreateProvisioningTemplateVersionRequest#builder()}
*
*
* @param createProvisioningTemplateVersionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateProvisioningTemplateVersionRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the CreateProvisioningTemplateVersion operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - VersionsLimitExceededException The number of policy versions exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - ResourceNotFoundException The specified resource does not exist.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateProvisioningTemplateVersion
*/
default CompletableFuture createProvisioningTemplateVersion(
Consumer createProvisioningTemplateVersionRequest) {
return createProvisioningTemplateVersion(CreateProvisioningTemplateVersionRequest.builder()
.applyMutation(createProvisioningTemplateVersionRequest).build());
}
/**
*
* Creates a role alias.
*
*
* Requires permission to access the CreateRoleAlias action.
*
*
* @param createRoleAliasRequest
* @return A Java Future containing the result of the CreateRoleAlias operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceAlreadyExistsException The resource already exists.
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateRoleAlias
*/
default CompletableFuture createRoleAlias(CreateRoleAliasRequest createRoleAliasRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a role alias.
*
*
* Requires permission to access the CreateRoleAlias action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateRoleAliasRequest.Builder} avoiding the need
* to create one manually via {@link CreateRoleAliasRequest#builder()}
*
*
* @param createRoleAliasRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateRoleAliasRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateRoleAlias operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceAlreadyExistsException The resource already exists.
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateRoleAlias
*/
default CompletableFuture createRoleAlias(
Consumer createRoleAliasRequest) {
return createRoleAlias(CreateRoleAliasRequest.builder().applyMutation(createRoleAliasRequest).build());
}
/**
*
* Creates a scheduled audit that is run at a specified time interval.
*
*
* Requires permission to access the CreateScheduledAudit action.
*
*
* @param createScheduledAuditRequest
* @return A Java Future containing the result of the CreateScheduledAudit operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateScheduledAudit
*/
default CompletableFuture createScheduledAudit(
CreateScheduledAuditRequest createScheduledAuditRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a scheduled audit that is run at a specified time interval.
*
*
* Requires permission to access the CreateScheduledAudit action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateScheduledAuditRequest.Builder} avoiding the
* need to create one manually via {@link CreateScheduledAuditRequest#builder()}
*
*
* @param createScheduledAuditRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateScheduledAuditRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateScheduledAudit operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - LimitExceededException A limit has been exceeded.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateScheduledAudit
*/
default CompletableFuture createScheduledAudit(
Consumer createScheduledAuditRequest) {
return createScheduledAudit(CreateScheduledAuditRequest.builder().applyMutation(createScheduledAuditRequest).build());
}
/**
*
* Creates a Device Defender security profile.
*
*
* Requires permission to access the CreateSecurityProfile action.
*
*
* @param createSecurityProfileRequest
* @return A Java Future containing the result of the CreateSecurityProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateSecurityProfile
*/
default CompletableFuture createSecurityProfile(
CreateSecurityProfileRequest createSecurityProfileRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a Device Defender security profile.
*
*
* Requires permission to access the CreateSecurityProfile action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateSecurityProfileRequest.Builder} avoiding the
* need to create one manually via {@link CreateSecurityProfileRequest#builder()}
*
*
* @param createSecurityProfileRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateSecurityProfileRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateSecurityProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateSecurityProfile
*/
default CompletableFuture createSecurityProfile(
Consumer createSecurityProfileRequest) {
return createSecurityProfile(CreateSecurityProfileRequest.builder().applyMutation(createSecurityProfileRequest).build());
}
/**
*
* Creates a stream for delivering one or more large files in chunks over MQTT. A stream transports data bytes in
* chunks or blocks packaged as MQTT messages from a source like S3. You can have one or more files associated with
* a stream.
*
*
* Requires permission to access the CreateStream action.
*
*
* @param createStreamRequest
* @return A Java Future containing the result of the CreateStream operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ResourceNotFoundException The specified resource does not exist.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateStream
*/
default CompletableFuture createStream(CreateStreamRequest createStreamRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a stream for delivering one or more large files in chunks over MQTT. A stream transports data bytes in
* chunks or blocks packaged as MQTT messages from a source like S3. You can have one or more files associated with
* a stream.
*
*
* Requires permission to access the CreateStream action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateStreamRequest.Builder} avoiding the need to
* create one manually via {@link CreateStreamRequest#builder()}
*
*
* @param createStreamRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateStreamRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateStream operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - LimitExceededException A limit has been exceeded.
* - ResourceNotFoundException The specified resource does not exist.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateStream
*/
default CompletableFuture createStream(Consumer createStreamRequest) {
return createStream(CreateStreamRequest.builder().applyMutation(createStreamRequest).build());
}
/**
*
* Creates a thing record in the registry. If this call is made multiple times using the same thing name and
* configuration, the call will succeed. If this call is made with the same thing name but different configuration a
* ResourceAlreadyExistsException
is thrown.
*
*
*
* This is a control plane operation. See Authorization for
* information about authorizing control plane actions.
*
*
*
* Requires permission to access the CreateThing action.
*
*
* @param createThingRequest
* The input for the CreateThing operation.
* @return A Java Future containing the result of the CreateThing operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceAlreadyExistsException The resource already exists.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateThing
*/
default CompletableFuture createThing(CreateThingRequest createThingRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a thing record in the registry. If this call is made multiple times using the same thing name and
* configuration, the call will succeed. If this call is made with the same thing name but different configuration a
* ResourceAlreadyExistsException
is thrown.
*
*
*
* This is a control plane operation. See Authorization for
* information about authorizing control plane actions.
*
*
*
* Requires permission to access the CreateThing action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateThingRequest.Builder} avoiding the need to
* create one manually via {@link CreateThingRequest#builder()}
*
*
* @param createThingRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateThingRequest.Builder} to create a request. The
* input for the CreateThing operation.
* @return A Java Future containing the result of the CreateThing operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceAlreadyExistsException The resource already exists.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateThing
*/
default CompletableFuture createThing(Consumer createThingRequest) {
return createThing(CreateThingRequest.builder().applyMutation(createThingRequest).build());
}
/**
*
* Create a thing group.
*
*
*
* This is a control plane operation. See Authorization for
* information about authorizing control plane actions.
*
*
* If the ThingGroup
that you create has the exact same attributes as an existing
* ThingGroup
, you will get a 200 success response.
*
*
*
* Requires permission to access the CreateThingGroup action.
*
*
* @param createThingGroupRequest
* @return A Java Future containing the result of the CreateThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateThingGroup
*/
default CompletableFuture createThingGroup(CreateThingGroupRequest createThingGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Create a thing group.
*
*
*
* This is a control plane operation. See Authorization for
* information about authorizing control plane actions.
*
*
* If the ThingGroup
that you create has the exact same attributes as an existing
* ThingGroup
, you will get a 200 success response.
*
*
*
* Requires permission to access the CreateThingGroup action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateThingGroupRequest.Builder} avoiding the need
* to create one manually via {@link CreateThingGroupRequest#builder()}
*
*
* @param createThingGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateThingGroupRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateThingGroup
*/
default CompletableFuture createThingGroup(
Consumer createThingGroupRequest) {
return createThingGroup(CreateThingGroupRequest.builder().applyMutation(createThingGroupRequest).build());
}
/**
*
* Creates a new thing type.
*
*
* Requires permission to access the CreateThingType action.
*
*
* @param createThingTypeRequest
* The input for the CreateThingType operation.
* @return A Java Future containing the result of the CreateThingType operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceAlreadyExistsException The resource already exists.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateThingType
*/
default CompletableFuture createThingType(CreateThingTypeRequest createThingTypeRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new thing type.
*
*
* Requires permission to access the CreateThingType action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateThingTypeRequest.Builder} avoiding the need
* to create one manually via {@link CreateThingTypeRequest#builder()}
*
*
* @param createThingTypeRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateThingTypeRequest.Builder} to create a request. The
* input for the CreateThingType operation.
* @return A Java Future containing the result of the CreateThingType operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceAlreadyExistsException The resource already exists.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateThingType
*/
default CompletableFuture createThingType(
Consumer createThingTypeRequest) {
return createThingType(CreateThingTypeRequest.builder().applyMutation(createThingTypeRequest).build());
}
/**
*
* 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.
*
*
* Requires permission to access the CreateTopicRule action.
*
*
* @param createTopicRuleRequest
* The input for the CreateTopicRule operation.
* @return A Java Future containing the result of the CreateTopicRule operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - SqlParseException The Rule-SQL expression can't be parsed correctly.
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ServiceUnavailableException The service is temporarily unavailable.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateTopicRule
*/
default CompletableFuture createTopicRule(CreateTopicRuleRequest createTopicRuleRequest) {
throw new UnsupportedOperationException();
}
/**
*
* 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.
*
*
* Requires permission to access the CreateTopicRule action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateTopicRuleRequest.Builder} avoiding the need
* to create one manually via {@link CreateTopicRuleRequest#builder()}
*
*
* @param createTopicRuleRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateTopicRuleRequest.Builder} to create a request. The
* input for the CreateTopicRule operation.
* @return A Java Future containing the result of the CreateTopicRule operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - SqlParseException The Rule-SQL expression can't be parsed correctly.
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ServiceUnavailableException The service is temporarily unavailable.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateTopicRule
*/
default CompletableFuture createTopicRule(
Consumer createTopicRuleRequest) {
return createTopicRule(CreateTopicRuleRequest.builder().applyMutation(createTopicRuleRequest).build());
}
/**
*
* Creates a topic rule destination. The destination must be confirmed prior to use.
*
*
* Requires permission to access the CreateTopicRuleDestination action.
*
*
* @param createTopicRuleDestinationRequest
* @return A Java Future containing the result of the CreateTopicRuleDestination operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ServiceUnavailableException The service is temporarily unavailable.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateTopicRuleDestination
*/
default CompletableFuture createTopicRuleDestination(
CreateTopicRuleDestinationRequest createTopicRuleDestinationRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a topic rule destination. The destination must be confirmed prior to use.
*
*
* Requires permission to access the CreateTopicRuleDestination action.
*
*
*
* This is a convenience which creates an instance of the {@link CreateTopicRuleDestinationRequest.Builder} avoiding
* the need to create one manually via {@link CreateTopicRuleDestinationRequest#builder()}
*
*
* @param createTopicRuleDestinationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.CreateTopicRuleDestinationRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateTopicRuleDestination operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ResourceAlreadyExistsException The resource already exists.
* - ServiceUnavailableException The service is temporarily unavailable.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.CreateTopicRuleDestination
*/
default CompletableFuture createTopicRuleDestination(
Consumer createTopicRuleDestinationRequest) {
return createTopicRuleDestination(CreateTopicRuleDestinationRequest.builder()
.applyMutation(createTopicRuleDestinationRequest).build());
}
/**
*
* Restores the default settings for Device Defender audits for this account. Any configuration data you entered is
* deleted and all audit checks are reset to disabled.
*
*
* Requires permission to access the DeleteAccountAuditConfiguration action.
*
*
* @param deleteAccountAuditConfigurationRequest
* @return A Java Future containing the result of the DeleteAccountAuditConfiguration operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteAccountAuditConfiguration
*/
default CompletableFuture deleteAccountAuditConfiguration(
DeleteAccountAuditConfigurationRequest deleteAccountAuditConfigurationRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Restores the default settings for Device Defender audits for this account. Any configuration data you entered is
* deleted and all audit checks are reset to disabled.
*
*
* Requires permission to access the DeleteAccountAuditConfiguration action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteAccountAuditConfigurationRequest.Builder}
* avoiding the need to create one manually via {@link DeleteAccountAuditConfigurationRequest#builder()}
*
*
* @param deleteAccountAuditConfigurationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteAccountAuditConfigurationRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the DeleteAccountAuditConfiguration operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteAccountAuditConfiguration
*/
default CompletableFuture deleteAccountAuditConfiguration(
Consumer deleteAccountAuditConfigurationRequest) {
return deleteAccountAuditConfiguration(DeleteAccountAuditConfigurationRequest.builder()
.applyMutation(deleteAccountAuditConfigurationRequest).build());
}
/**
*
* Restores the default settings for Device Defender audits for this account. Any configuration data you entered is
* deleted and all audit checks are reset to disabled.
*
*
* Requires permission to access the DeleteAccountAuditConfiguration action.
*
*
* @return A Java Future containing the result of the DeleteAccountAuditConfiguration operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteAccountAuditConfiguration
*/
default CompletableFuture deleteAccountAuditConfiguration() {
return deleteAccountAuditConfiguration(DeleteAccountAuditConfigurationRequest.builder().build());
}
/**
*
* Deletes a Device Defender audit suppression.
*
*
* Requires permission to access the DeleteAuditSuppression action.
*
*
* @param deleteAuditSuppressionRequest
* @return A Java Future containing the result of the DeleteAuditSuppression operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteAuditSuppression
*/
default CompletableFuture deleteAuditSuppression(
DeleteAuditSuppressionRequest deleteAuditSuppressionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a Device Defender audit suppression.
*
*
* Requires permission to access the DeleteAuditSuppression action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteAuditSuppressionRequest.Builder} avoiding the
* need to create one manually via {@link DeleteAuditSuppressionRequest#builder()}
*
*
* @param deleteAuditSuppressionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteAuditSuppressionRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteAuditSuppression operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteAuditSuppression
*/
default CompletableFuture deleteAuditSuppression(
Consumer deleteAuditSuppressionRequest) {
return deleteAuditSuppression(DeleteAuditSuppressionRequest.builder().applyMutation(deleteAuditSuppressionRequest)
.build());
}
/**
*
* Deletes an authorizer.
*
*
* Requires permission to access the DeleteAuthorizer action.
*
*
* @param deleteAuthorizerRequest
* @return A Java Future containing the result of the DeleteAuthorizer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteAuthorizer
*/
default CompletableFuture deleteAuthorizer(DeleteAuthorizerRequest deleteAuthorizerRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes an authorizer.
*
*
* Requires permission to access the DeleteAuthorizer action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteAuthorizerRequest.Builder} avoiding the need
* to create one manually via {@link DeleteAuthorizerRequest#builder()}
*
*
* @param deleteAuthorizerRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteAuthorizerRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteAuthorizer operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteAuthorizer
*/
default CompletableFuture deleteAuthorizer(
Consumer deleteAuthorizerRequest) {
return deleteAuthorizer(DeleteAuthorizerRequest.builder().applyMutation(deleteAuthorizerRequest).build());
}
/**
*
* Deletes the billing group.
*
*
* Requires permission to access the DeleteBillingGroup action.
*
*
* @param deleteBillingGroupRequest
* @return A Java Future containing the result of the DeleteBillingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteBillingGroup
*/
default CompletableFuture deleteBillingGroup(DeleteBillingGroupRequest deleteBillingGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the billing group.
*
*
* Requires permission to access the DeleteBillingGroup action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteBillingGroupRequest.Builder} avoiding the
* need to create one manually via {@link DeleteBillingGroupRequest#builder()}
*
*
* @param deleteBillingGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteBillingGroupRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteBillingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteBillingGroup
*/
default CompletableFuture deleteBillingGroup(
Consumer deleteBillingGroupRequest) {
return deleteBillingGroup(DeleteBillingGroupRequest.builder().applyMutation(deleteBillingGroupRequest).build());
}
/**
*
* Deletes a registered CA certificate.
*
*
* Requires permission to access the DeleteCACertificate action.
*
*
* @param deleteCaCertificateRequest
* Input for the DeleteCACertificate operation.
* @return A Java Future containing the result of the DeleteCACertificate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - CertificateStateException The certificate operation is not allowed.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteCACertificate
*/
default CompletableFuture deleteCACertificate(
DeleteCaCertificateRequest deleteCaCertificateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a registered CA certificate.
*
*
* Requires permission to access the DeleteCACertificate action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteCaCertificateRequest.Builder} avoiding the
* need to create one manually via {@link DeleteCaCertificateRequest#builder()}
*
*
* @param deleteCaCertificateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteCaCertificateRequest.Builder} to create a request.
* Input for the DeleteCACertificate operation.
* @return A Java Future containing the result of the DeleteCACertificate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - CertificateStateException The certificate operation is not allowed.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteCACertificate
*/
default CompletableFuture deleteCACertificate(
Consumer deleteCaCertificateRequest) {
return deleteCACertificate(DeleteCaCertificateRequest.builder().applyMutation(deleteCaCertificateRequest).build());
}
/**
*
* Deletes the specified certificate.
*
*
* A certificate cannot be deleted if it has a policy or IoT thing attached to it or if its status is set to ACTIVE.
* To delete a certificate, first use the DetachPolicy action to detach all policies. Next, use the
* UpdateCertificate action to set the certificate to the INACTIVE status.
*
*
* Requires permission to access the DeleteCertificate action.
*
*
* @param deleteCertificateRequest
* The input for the DeleteCertificate operation.
* @return A Java Future containing the result of the DeleteCertificate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - CertificateStateException The certificate operation is not allowed.
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteCertificate
*/
default CompletableFuture deleteCertificate(DeleteCertificateRequest deleteCertificateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the specified certificate.
*
*
* A certificate cannot be deleted if it has a policy or IoT thing attached to it or if its status is set to ACTIVE.
* To delete a certificate, first use the DetachPolicy action to detach all policies. Next, use the
* UpdateCertificate action to set the certificate to the INACTIVE status.
*
*
* Requires permission to access the DeleteCertificate action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteCertificateRequest.Builder} avoiding the need
* to create one manually via {@link DeleteCertificateRequest#builder()}
*
*
* @param deleteCertificateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteCertificateRequest.Builder} to create a request.
* The input for the DeleteCertificate operation.
* @return A Java Future containing the result of the DeleteCertificate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - CertificateStateException The certificate operation is not allowed.
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteCertificate
*/
default CompletableFuture deleteCertificate(
Consumer deleteCertificateRequest) {
return deleteCertificate(DeleteCertificateRequest.builder().applyMutation(deleteCertificateRequest).build());
}
/**
*
* Deletes a certificate provider.
*
*
* Requires permission to access the DeleteCertificateProvider action.
*
*
* If you delete the certificate provider resource, the behavior of CreateCertificateFromCsr
will
* resume, and IoT will create certificates signed by IoT from a certificate signing request (CSR).
*
*
* @param deleteCertificateProviderRequest
* @return A Java Future containing the result of the DeleteCertificateProvider operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteCertificateProvider
*/
default CompletableFuture deleteCertificateProvider(
DeleteCertificateProviderRequest deleteCertificateProviderRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a certificate provider.
*
*
* Requires permission to access the DeleteCertificateProvider action.
*
*
* If you delete the certificate provider resource, the behavior of CreateCertificateFromCsr
will
* resume, and IoT will create certificates signed by IoT from a certificate signing request (CSR).
*
*
*
* This is a convenience which creates an instance of the {@link DeleteCertificateProviderRequest.Builder} avoiding
* the need to create one manually via {@link DeleteCertificateProviderRequest#builder()}
*
*
* @param deleteCertificateProviderRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteCertificateProviderRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteCertificateProvider operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteCertificateProvider
*/
default CompletableFuture deleteCertificateProvider(
Consumer deleteCertificateProviderRequest) {
return deleteCertificateProvider(DeleteCertificateProviderRequest.builder()
.applyMutation(deleteCertificateProviderRequest).build());
}
/**
*
* Deletes a Device Defender detect custom metric.
*
*
* Requires permission to access the DeleteCustomMetric action.
*
*
*
* Before you can delete a custom metric, you must first remove the custom metric from all security profiles it's a
* part of. The security profile associated with the custom metric can be found using the ListSecurityProfiles
* API with metricName
set to your custom metric name.
*
*
*
* @param deleteCustomMetricRequest
* @return A Java Future containing the result of the DeleteCustomMetric operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteCustomMetric
*/
default CompletableFuture deleteCustomMetric(DeleteCustomMetricRequest deleteCustomMetricRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a Device Defender detect custom metric.
*
*
* Requires permission to access the DeleteCustomMetric action.
*
*
*
* Before you can delete a custom metric, you must first remove the custom metric from all security profiles it's a
* part of. The security profile associated with the custom metric can be found using the ListSecurityProfiles
* API with metricName
set to your custom metric name.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteCustomMetricRequest.Builder} avoiding the
* need to create one manually via {@link DeleteCustomMetricRequest#builder()}
*
*
* @param deleteCustomMetricRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteCustomMetricRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteCustomMetric operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteCustomMetric
*/
default CompletableFuture deleteCustomMetric(
Consumer deleteCustomMetricRequest) {
return deleteCustomMetric(DeleteCustomMetricRequest.builder().applyMutation(deleteCustomMetricRequest).build());
}
/**
*
* Removes the specified dimension from your Amazon Web Services accounts.
*
*
* Requires permission to access the DeleteDimension action.
*
*
* @param deleteDimensionRequest
* @return A Java Future containing the result of the DeleteDimension operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteDimension
*/
default CompletableFuture deleteDimension(DeleteDimensionRequest deleteDimensionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Removes the specified dimension from your Amazon Web Services accounts.
*
*
* Requires permission to access the DeleteDimension action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteDimensionRequest.Builder} avoiding the need
* to create one manually via {@link DeleteDimensionRequest#builder()}
*
*
* @param deleteDimensionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteDimensionRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteDimension operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteDimension
*/
default CompletableFuture deleteDimension(
Consumer deleteDimensionRequest) {
return deleteDimension(DeleteDimensionRequest.builder().applyMutation(deleteDimensionRequest).build());
}
/**
*
* Deletes the specified domain configuration.
*
*
* Requires permission to access the DeleteDomainConfiguration action.
*
*
* @param deleteDomainConfigurationRequest
* @return A Java Future containing the result of the DeleteDomainConfiguration operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteDomainConfiguration
*/
default CompletableFuture deleteDomainConfiguration(
DeleteDomainConfigurationRequest deleteDomainConfigurationRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the specified domain configuration.
*
*
* Requires permission to access the DeleteDomainConfiguration action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteDomainConfigurationRequest.Builder} avoiding
* the need to create one manually via {@link DeleteDomainConfigurationRequest#builder()}
*
*
* @param deleteDomainConfigurationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteDomainConfigurationRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteDomainConfiguration operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteDomainConfiguration
*/
default CompletableFuture deleteDomainConfiguration(
Consumer deleteDomainConfigurationRequest) {
return deleteDomainConfiguration(DeleteDomainConfigurationRequest.builder()
.applyMutation(deleteDomainConfigurationRequest).build());
}
/**
*
* Deletes a dynamic thing group.
*
*
* Requires permission to access the DeleteDynamicThingGroup action.
*
*
* @param deleteDynamicThingGroupRequest
* @return A Java Future containing the result of the DeleteDynamicThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteDynamicThingGroup
*/
default CompletableFuture deleteDynamicThingGroup(
DeleteDynamicThingGroupRequest deleteDynamicThingGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a dynamic thing group.
*
*
* Requires permission to access the DeleteDynamicThingGroup action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteDynamicThingGroupRequest.Builder} avoiding
* the need to create one manually via {@link DeleteDynamicThingGroupRequest#builder()}
*
*
* @param deleteDynamicThingGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteDynamicThingGroupRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteDynamicThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteDynamicThingGroup
*/
default CompletableFuture deleteDynamicThingGroup(
Consumer deleteDynamicThingGroupRequest) {
return deleteDynamicThingGroup(DeleteDynamicThingGroupRequest.builder().applyMutation(deleteDynamicThingGroupRequest)
.build());
}
/**
*
* Deletes the specified fleet metric. Returns successfully with no error if the deletion is successful or you
* specify a fleet metric that doesn't exist.
*
*
* Requires permission to access the DeleteFleetMetric action.
*
*
* @param deleteFleetMetricRequest
* @return A Java Future containing the result of the DeleteFleetMetric operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteFleetMetric
*/
default CompletableFuture deleteFleetMetric(DeleteFleetMetricRequest deleteFleetMetricRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the specified fleet metric. Returns successfully with no error if the deletion is successful or you
* specify a fleet metric that doesn't exist.
*
*
* Requires permission to access the DeleteFleetMetric action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteFleetMetricRequest.Builder} avoiding the need
* to create one manually via {@link DeleteFleetMetricRequest#builder()}
*
*
* @param deleteFleetMetricRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteFleetMetricRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteFleetMetric operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteFleetMetric
*/
default CompletableFuture deleteFleetMetric(
Consumer deleteFleetMetricRequest) {
return deleteFleetMetric(DeleteFleetMetricRequest.builder().applyMutation(deleteFleetMetricRequest).build());
}
/**
*
* Deletes a job and its related job executions.
*
*
* Deleting a job may take time, depending on the number of job executions created for the job and various other
* factors. While the job is being deleted, the status of the job will be shown as "DELETION_IN_PROGRESS".
* Attempting to delete or cancel a job whose status is already "DELETION_IN_PROGRESS" will result in an error.
*
*
* Only 10 jobs may have status "DELETION_IN_PROGRESS" at the same time, or a LimitExceededException will occur.
*
*
* Requires permission to access the DeleteJob action.
*
*
* @param deleteJobRequest
* @return A Java Future containing the result of the DeleteJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - InvalidStateTransitionException An attempt was made to change to an invalid state, for example by
* deleting a job or a job execution which is "IN_PROGRESS" without setting the
force
* parameter.
* - ResourceNotFoundException The specified resource does not exist.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteJob
*/
default CompletableFuture deleteJob(DeleteJobRequest deleteJobRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a job and its related job executions.
*
*
* Deleting a job may take time, depending on the number of job executions created for the job and various other
* factors. While the job is being deleted, the status of the job will be shown as "DELETION_IN_PROGRESS".
* Attempting to delete or cancel a job whose status is already "DELETION_IN_PROGRESS" will result in an error.
*
*
* Only 10 jobs may have status "DELETION_IN_PROGRESS" at the same time, or a LimitExceededException will occur.
*
*
* Requires permission to access the DeleteJob action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteJobRequest.Builder} avoiding the need to
* create one manually via {@link DeleteJobRequest#builder()}
*
*
* @param deleteJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteJobRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteJob operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - InvalidStateTransitionException An attempt was made to change to an invalid state, for example by
* deleting a job or a job execution which is "IN_PROGRESS" without setting the
force
* parameter.
* - ResourceNotFoundException The specified resource does not exist.
* - LimitExceededException A limit has been exceeded.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteJob
*/
default CompletableFuture deleteJob(Consumer deleteJobRequest) {
return deleteJob(DeleteJobRequest.builder().applyMutation(deleteJobRequest).build());
}
/**
*
* Deletes a job execution.
*
*
* Requires permission to access the DeleteJobExecution action.
*
*
* @param deleteJobExecutionRequest
* @return A Java Future containing the result of the DeleteJobExecution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - InvalidStateTransitionException An attempt was made to change to an invalid state, for example by
* deleting a job or a job execution which is "IN_PROGRESS" without setting the
force
* parameter.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteJobExecution
*/
default CompletableFuture deleteJobExecution(DeleteJobExecutionRequest deleteJobExecutionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a job execution.
*
*
* Requires permission to access the DeleteJobExecution action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteJobExecutionRequest.Builder} avoiding the
* need to create one manually via {@link DeleteJobExecutionRequest#builder()}
*
*
* @param deleteJobExecutionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteJobExecutionRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteJobExecution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - InvalidStateTransitionException An attempt was made to change to an invalid state, for example by
* deleting a job or a job execution which is "IN_PROGRESS" without setting the
force
* parameter.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteJobExecution
*/
default CompletableFuture deleteJobExecution(
Consumer deleteJobExecutionRequest) {
return deleteJobExecution(DeleteJobExecutionRequest.builder().applyMutation(deleteJobExecutionRequest).build());
}
/**
*
* Deletes the specified job template.
*
*
* @param deleteJobTemplateRequest
* @return A Java Future containing the result of the DeleteJobTemplate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteJobTemplate
*/
default CompletableFuture deleteJobTemplate(DeleteJobTemplateRequest deleteJobTemplateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the specified job template.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteJobTemplateRequest.Builder} avoiding the need
* to create one manually via {@link DeleteJobTemplateRequest#builder()}
*
*
* @param deleteJobTemplateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteJobTemplateRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteJobTemplate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteJobTemplate
*/
default CompletableFuture deleteJobTemplate(
Consumer deleteJobTemplateRequest) {
return deleteJobTemplate(DeleteJobTemplateRequest.builder().applyMutation(deleteJobTemplateRequest).build());
}
/**
*
* Deletes a defined mitigation action from your Amazon Web Services accounts.
*
*
* Requires permission to access the DeleteMitigationAction action.
*
*
* @param deleteMitigationActionRequest
* @return A Java Future containing the result of the DeleteMitigationAction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteMitigationAction
*/
default CompletableFuture deleteMitigationAction(
DeleteMitigationActionRequest deleteMitigationActionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a defined mitigation action from your Amazon Web Services accounts.
*
*
* Requires permission to access the DeleteMitigationAction action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteMitigationActionRequest.Builder} avoiding the
* need to create one manually via {@link DeleteMitigationActionRequest#builder()}
*
*
* @param deleteMitigationActionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteMitigationActionRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteMitigationAction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteMitigationAction
*/
default CompletableFuture deleteMitigationAction(
Consumer deleteMitigationActionRequest) {
return deleteMitigationAction(DeleteMitigationActionRequest.builder().applyMutation(deleteMitigationActionRequest)
.build());
}
/**
*
* Delete an OTA update.
*
*
* Requires permission to access the DeleteOTAUpdate action.
*
*
* @param deleteOtaUpdateRequest
* @return A Java Future containing the result of the DeleteOTAUpdate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - InternalFailureException An unexpected error has occurred.
* - ServiceUnavailableException The service is temporarily unavailable.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteOTAUpdate
*/
default CompletableFuture deleteOTAUpdate(DeleteOtaUpdateRequest deleteOtaUpdateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Delete an OTA update.
*
*
* Requires permission to access the DeleteOTAUpdate action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteOtaUpdateRequest.Builder} avoiding the need
* to create one manually via {@link DeleteOtaUpdateRequest#builder()}
*
*
* @param deleteOtaUpdateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteOtaUpdateRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteOTAUpdate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - InternalFailureException An unexpected error has occurred.
* - ServiceUnavailableException The service is temporarily unavailable.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteOTAUpdate
*/
default CompletableFuture deleteOTAUpdate(
Consumer deleteOtaUpdateRequest) {
return deleteOTAUpdate(DeleteOtaUpdateRequest.builder().applyMutation(deleteOtaUpdateRequest).build());
}
/**
*
* Deletes a specific version from a software package.
*
*
* Note: All package versions must be deleted before deleting the software package.
*
*
* Requires permission to access the DeletePackageVersion action.
*
*
* @param deletePackageRequest
* @return A Java Future containing the result of the DeletePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeletePackage
*/
default CompletableFuture deletePackage(DeletePackageRequest deletePackageRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a specific version from a software package.
*
*
* Note: All package versions must be deleted before deleting the software package.
*
*
* Requires permission to access the DeletePackageVersion action.
*
*
*
* This is a convenience which creates an instance of the {@link DeletePackageRequest.Builder} avoiding the need to
* create one manually via {@link DeletePackageRequest#builder()}
*
*
* @param deletePackageRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeletePackageRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeletePackage operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeletePackage
*/
default CompletableFuture deletePackage(Consumer deletePackageRequest) {
return deletePackage(DeletePackageRequest.builder().applyMutation(deletePackageRequest).build());
}
/**
*
* Deletes a specific version from a software package.
*
*
* Note: If a package version is designated as default, you must remove the designation from the software
* package using the UpdatePackage action.
*
*
* @param deletePackageVersionRequest
* @return A Java Future containing the result of the DeletePackageVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeletePackageVersion
*/
default CompletableFuture deletePackageVersion(
DeletePackageVersionRequest deletePackageVersionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a specific version from a software package.
*
*
* Note: If a package version is designated as default, you must remove the designation from the software
* package using the UpdatePackage action.
*
*
*
* This is a convenience which creates an instance of the {@link DeletePackageVersionRequest.Builder} avoiding the
* need to create one manually via {@link DeletePackageVersionRequest#builder()}
*
*
* @param deletePackageVersionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeletePackageVersionRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeletePackageVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - InternalServerException Internal error from the service that indicates an unexpected error or that
* the service is unavailable.
* - ValidationException The request is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeletePackageVersion
*/
default CompletableFuture deletePackageVersion(
Consumer deletePackageVersionRequest) {
return deletePackageVersion(DeletePackageVersionRequest.builder().applyMutation(deletePackageVersionRequest).build());
}
/**
*
* 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 action to delete all non-default versions of the policy;
* use the DetachPolicy action to detach the policy from any certificate; and then use the DeletePolicy
* action to delete the policy.
*
*
* When a policy is deleted using DeletePolicy, its default version is deleted with it.
*
*
*
* Because of the distributed nature of Amazon Web Services, it can take up to five minutes after a policy is
* detached before it's ready to be deleted.
*
*
*
* Requires permission to access the DeletePolicy action.
*
*
* @param deletePolicyRequest
* The input for the DeletePolicy operation.
* @return A Java Future containing the result of the DeletePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeletePolicy
*/
default CompletableFuture deletePolicy(DeletePolicyRequest deletePolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* 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 action to delete all non-default versions of the policy;
* use the DetachPolicy action to detach the policy from any certificate; and then use the DeletePolicy
* action to delete the policy.
*
*
* When a policy is deleted using DeletePolicy, its default version is deleted with it.
*
*
*
* Because of the distributed nature of Amazon Web Services, it can take up to five minutes after a policy is
* detached before it's ready to be deleted.
*
*
*
* Requires permission to access the DeletePolicy action.
*
*
*
* This is a convenience which creates an instance of the {@link DeletePolicyRequest.Builder} avoiding the need to
* create one manually via {@link DeletePolicyRequest#builder()}
*
*
* @param deletePolicyRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeletePolicyRequest.Builder} to create a request. The
* input for the DeletePolicy operation.
* @return A Java Future containing the result of the DeletePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeletePolicy
*/
default CompletableFuture deletePolicy(Consumer deletePolicyRequest) {
return deletePolicy(DeletePolicyRequest.builder().applyMutation(deletePolicyRequest).build());
}
/**
*
* Deletes the specified version of the specified policy. You cannot delete the default version of a policy using
* this action. 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.
*
*
* Requires permission to access the DeletePolicyVersion action.
*
*
* @param deletePolicyVersionRequest
* The input for the DeletePolicyVersion operation.
* @return A Java Future containing the result of the DeletePolicyVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeletePolicyVersion
*/
default CompletableFuture deletePolicyVersion(
DeletePolicyVersionRequest deletePolicyVersionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the specified version of the specified policy. You cannot delete the default version of a policy using
* this action. 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.
*
*
* Requires permission to access the DeletePolicyVersion action.
*
*
*
* This is a convenience which creates an instance of the {@link DeletePolicyVersionRequest.Builder} avoiding the
* need to create one manually via {@link DeletePolicyVersionRequest#builder()}
*
*
* @param deletePolicyVersionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeletePolicyVersionRequest.Builder} to create a request.
* The input for the DeletePolicyVersion operation.
* @return A Java Future containing the result of the DeletePolicyVersion operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeletePolicyVersion
*/
default CompletableFuture deletePolicyVersion(
Consumer deletePolicyVersionRequest) {
return deletePolicyVersion(DeletePolicyVersionRequest.builder().applyMutation(deletePolicyVersionRequest).build());
}
/**
*
* Deletes a provisioning template.
*
*
* Requires permission to access the DeleteProvisioningTemplate action.
*
*
* @param deleteProvisioningTemplateRequest
* @return A Java Future containing the result of the DeleteProvisioningTemplate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ThrottlingException The rate exceeds the limit.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - UnauthorizedException You are not authorized to perform this operation.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteProvisioningTemplate
*/
default CompletableFuture deleteProvisioningTemplate(
DeleteProvisioningTemplateRequest deleteProvisioningTemplateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a provisioning template.
*
*
* Requires permission to access the DeleteProvisioningTemplate action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteProvisioningTemplateRequest.Builder} avoiding
* the need to create one manually via {@link DeleteProvisioningTemplateRequest#builder()}
*
*
* @param deleteProvisioningTemplateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteProvisioningTemplateRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteProvisioningTemplate operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - ThrottlingException The rate exceeds the limit.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - UnauthorizedException You are not authorized to perform this operation.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteProvisioningTemplate
*/
default CompletableFuture deleteProvisioningTemplate(
Consumer deleteProvisioningTemplateRequest) {
return deleteProvisioningTemplate(DeleteProvisioningTemplateRequest.builder()
.applyMutation(deleteProvisioningTemplateRequest).build());
}
/**
*
* Deletes a provisioning template version.
*
*
* Requires permission to access the DeleteProvisioningTemplateVersion action.
*
*
* @param deleteProvisioningTemplateVersionRequest
* @return A Java Future containing the result of the DeleteProvisioningTemplateVersion operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - ResourceNotFoundException The specified resource does not exist.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteProvisioningTemplateVersion
*/
default CompletableFuture deleteProvisioningTemplateVersion(
DeleteProvisioningTemplateVersionRequest deleteProvisioningTemplateVersionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a provisioning template version.
*
*
* Requires permission to access the DeleteProvisioningTemplateVersion action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteProvisioningTemplateVersionRequest.Builder}
* avoiding the need to create one manually via {@link DeleteProvisioningTemplateVersionRequest#builder()}
*
*
* @param deleteProvisioningTemplateVersionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteProvisioningTemplateVersionRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DeleteProvisioningTemplateVersion operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalFailureException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - ResourceNotFoundException The specified resource does not exist.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteProvisioningTemplateVersion
*/
default CompletableFuture deleteProvisioningTemplateVersion(
Consumer deleteProvisioningTemplateVersionRequest) {
return deleteProvisioningTemplateVersion(DeleteProvisioningTemplateVersionRequest.builder()
.applyMutation(deleteProvisioningTemplateVersionRequest).build());
}
/**
*
* Deletes a CA certificate registration code.
*
*
* Requires permission to access the DeleteRegistrationCode action.
*
*
* @param deleteRegistrationCodeRequest
* The input for the DeleteRegistrationCode operation.
* @return A Java Future containing the result of the DeleteRegistrationCode operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ResourceNotFoundException The specified resource does not exist.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteRegistrationCode
*/
default CompletableFuture deleteRegistrationCode(
DeleteRegistrationCodeRequest deleteRegistrationCodeRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a CA certificate registration code.
*
*
* Requires permission to access the DeleteRegistrationCode action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteRegistrationCodeRequest.Builder} avoiding the
* need to create one manually via {@link DeleteRegistrationCodeRequest#builder()}
*
*
* @param deleteRegistrationCodeRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteRegistrationCodeRequest.Builder} to create a
* request. The input for the DeleteRegistrationCode operation.
* @return A Java Future containing the result of the DeleteRegistrationCode operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ResourceNotFoundException The specified resource does not exist.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteRegistrationCode
*/
default CompletableFuture deleteRegistrationCode(
Consumer deleteRegistrationCodeRequest) {
return deleteRegistrationCode(DeleteRegistrationCodeRequest.builder().applyMutation(deleteRegistrationCodeRequest)
.build());
}
/**
*
* Deletes a CA certificate registration code.
*
*
* Requires permission to access the DeleteRegistrationCode action.
*
*
* @return A Java Future containing the result of the DeleteRegistrationCode operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ThrottlingException The rate exceeds the limit.
* - ResourceNotFoundException The specified resource does not exist.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteRegistrationCode
*/
default CompletableFuture deleteRegistrationCode() {
return deleteRegistrationCode(DeleteRegistrationCodeRequest.builder().build());
}
/**
*
* Deletes a role alias
*
*
* Requires permission to access the DeleteRoleAlias action.
*
*
* @param deleteRoleAliasRequest
* @return A Java Future containing the result of the DeleteRoleAlias operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteRoleAlias
*/
default CompletableFuture deleteRoleAlias(DeleteRoleAliasRequest deleteRoleAliasRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a role alias
*
*
* Requires permission to access the DeleteRoleAlias action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteRoleAliasRequest.Builder} avoiding the need
* to create one manually via {@link DeleteRoleAliasRequest#builder()}
*
*
* @param deleteRoleAliasRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteRoleAliasRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteRoleAlias operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - ResourceNotFoundException The specified resource does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteRoleAlias
*/
default CompletableFuture deleteRoleAlias(
Consumer deleteRoleAliasRequest) {
return deleteRoleAlias(DeleteRoleAliasRequest.builder().applyMutation(deleteRoleAliasRequest).build());
}
/**
*
* Deletes a scheduled audit.
*
*
* Requires permission to access the DeleteScheduledAudit action.
*
*
* @param deleteScheduledAuditRequest
* @return A Java Future containing the result of the DeleteScheduledAudit operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteScheduledAudit
*/
default CompletableFuture deleteScheduledAudit(
DeleteScheduledAuditRequest deleteScheduledAuditRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a scheduled audit.
*
*
* Requires permission to access the DeleteScheduledAudit action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteScheduledAuditRequest.Builder} avoiding the
* need to create one manually via {@link DeleteScheduledAuditRequest#builder()}
*
*
* @param deleteScheduledAuditRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteScheduledAuditRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteScheduledAudit operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ResourceNotFoundException The specified resource does not exist.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteScheduledAudit
*/
default CompletableFuture deleteScheduledAudit(
Consumer deleteScheduledAuditRequest) {
return deleteScheduledAudit(DeleteScheduledAuditRequest.builder().applyMutation(deleteScheduledAuditRequest).build());
}
/**
*
* Deletes a Device Defender security profile.
*
*
* Requires permission to access the DeleteSecurityProfile action.
*
*
* @param deleteSecurityProfileRequest
* @return A Java Future containing the result of the DeleteSecurityProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteSecurityProfile
*/
default CompletableFuture deleteSecurityProfile(
DeleteSecurityProfileRequest deleteSecurityProfileRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a Device Defender security profile.
*
*
* Requires permission to access the DeleteSecurityProfile action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteSecurityProfileRequest.Builder} avoiding the
* need to create one manually via {@link DeleteSecurityProfileRequest#builder()}
*
*
* @param deleteSecurityProfileRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteSecurityProfileRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteSecurityProfile operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteSecurityProfile
*/
default CompletableFuture deleteSecurityProfile(
Consumer deleteSecurityProfileRequest) {
return deleteSecurityProfile(DeleteSecurityProfileRequest.builder().applyMutation(deleteSecurityProfileRequest).build());
}
/**
*
* Deletes a stream.
*
*
* Requires permission to access the DeleteStream action.
*
*
* @param deleteStreamRequest
* @return A Java Future containing the result of the DeleteStream operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteStream
*/
default CompletableFuture deleteStream(DeleteStreamRequest deleteStreamRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a stream.
*
*
* Requires permission to access the DeleteStream action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteStreamRequest.Builder} avoiding the need to
* create one manually via {@link DeleteStreamRequest#builder()}
*
*
* @param deleteStreamRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteStreamRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteStream operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - DeleteConflictException You can't delete the resource because it is attached to one or more
* resources.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteStream
*/
default CompletableFuture deleteStream(Consumer deleteStreamRequest) {
return deleteStream(DeleteStreamRequest.builder().applyMutation(deleteStreamRequest).build());
}
/**
*
* Deletes the specified thing. Returns successfully with no error if the deletion is successful or you specify a
* thing that doesn't exist.
*
*
* Requires permission to access the DeleteThing action.
*
*
* @param deleteThingRequest
* The input for the DeleteThing operation.
* @return A Java Future containing the result of the DeleteThing operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteThing
*/
default CompletableFuture deleteThing(DeleteThingRequest deleteThingRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the specified thing. Returns successfully with no error if the deletion is successful or you specify a
* thing that doesn't exist.
*
*
* Requires permission to access the DeleteThing action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteThingRequest.Builder} avoiding the need to
* create one manually via {@link DeleteThingRequest#builder()}
*
*
* @param deleteThingRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteThingRequest.Builder} to create a request. The
* input for the DeleteThing operation.
* @return A Java Future containing the result of the DeleteThing operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteThing
*/
default CompletableFuture deleteThing(Consumer deleteThingRequest) {
return deleteThing(DeleteThingRequest.builder().applyMutation(deleteThingRequest).build());
}
/**
*
* Deletes a thing group.
*
*
* Requires permission to access the DeleteThingGroup action.
*
*
* @param deleteThingGroupRequest
* @return A Java Future containing the result of the DeleteThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteThingGroup
*/
default CompletableFuture deleteThingGroup(DeleteThingGroupRequest deleteThingGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a thing group.
*
*
* Requires permission to access the DeleteThingGroup action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteThingGroupRequest.Builder} avoiding the need
* to create one manually via {@link DeleteThingGroupRequest#builder()}
*
*
* @param deleteThingGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteThingGroupRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteThingGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InvalidRequestException The request is not valid.
* - VersionConflictException An exception thrown when the version of an entity specified with the
*
expectedVersion
parameter does not match the latest version in the system.
* - ThrottlingException The rate exceeds the limit.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteThingGroup
*/
default CompletableFuture deleteThingGroup(
Consumer deleteThingGroupRequest) {
return deleteThingGroup(DeleteThingGroupRequest.builder().applyMutation(deleteThingGroupRequest).build());
}
/**
*
* Deletes the specified thing type. You cannot delete a thing type if it has things associated with it. To delete a
* thing type, first mark it as deprecated by calling DeprecateThingType, then remove any associated things
* by calling UpdateThing to change the thing type on any associated thing, and finally use
* DeleteThingType to delete the thing type.
*
*
* Requires permission to access the DeleteThingType action.
*
*
* @param deleteThingTypeRequest
* The input for the DeleteThingType operation.
* @return A Java Future containing the result of the DeleteThingType operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteThingType
*/
default CompletableFuture deleteThingType(DeleteThingTypeRequest deleteThingTypeRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the specified thing type. You cannot delete a thing type if it has things associated with it. To delete a
* thing type, first mark it as deprecated by calling DeprecateThingType, then remove any associated things
* by calling UpdateThing to change the thing type on any associated thing, and finally use
* DeleteThingType to delete the thing type.
*
*
* Requires permission to access the DeleteThingType action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteThingTypeRequest.Builder} avoiding the need
* to create one manually via {@link DeleteThingTypeRequest#builder()}
*
*
* @param deleteThingTypeRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteThingTypeRequest.Builder} to create a request. The
* input for the DeleteThingType operation.
* @return A Java Future containing the result of the DeleteThingType operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteThingType
*/
default CompletableFuture deleteThingType(
Consumer deleteThingTypeRequest) {
return deleteThingType(DeleteThingTypeRequest.builder().applyMutation(deleteThingTypeRequest).build());
}
/**
*
* Deletes the rule.
*
*
* Requires permission to access the DeleteTopicRule action.
*
*
* @param deleteTopicRuleRequest
* The input for the DeleteTopicRule operation.
* @return A Java Future containing the result of the DeleteTopicRule operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ServiceUnavailableException The service is temporarily unavailable.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteTopicRule
*/
default CompletableFuture deleteTopicRule(DeleteTopicRuleRequest deleteTopicRuleRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes the rule.
*
*
* Requires permission to access the DeleteTopicRule action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteTopicRuleRequest.Builder} avoiding the need
* to create one manually via {@link DeleteTopicRuleRequest#builder()}
*
*
* @param deleteTopicRuleRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteTopicRuleRequest.Builder} to create a request. The
* input for the DeleteTopicRule operation.
* @return A Java Future containing the result of the DeleteTopicRule operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ServiceUnavailableException The service is temporarily unavailable.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteTopicRule
*/
default CompletableFuture deleteTopicRule(
Consumer deleteTopicRuleRequest) {
return deleteTopicRule(DeleteTopicRuleRequest.builder().applyMutation(deleteTopicRuleRequest).build());
}
/**
*
* Deletes a topic rule destination.
*
*
* Requires permission to access the DeleteTopicRuleDestination action.
*
*
* @param deleteTopicRuleDestinationRequest
* @return A Java Future containing the result of the DeleteTopicRuleDestination operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ServiceUnavailableException The service is temporarily unavailable.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteTopicRuleDestination
*/
default CompletableFuture deleteTopicRuleDestination(
DeleteTopicRuleDestinationRequest deleteTopicRuleDestinationRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a topic rule destination.
*
*
* Requires permission to access the DeleteTopicRuleDestination action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteTopicRuleDestinationRequest.Builder} avoiding
* the need to create one manually via {@link DeleteTopicRuleDestinationRequest#builder()}
*
*
* @param deleteTopicRuleDestinationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteTopicRuleDestinationRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteTopicRuleDestination operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ServiceUnavailableException The service is temporarily unavailable.
* - UnauthorizedException You are not authorized to perform this operation.
* - ConflictingResourceUpdateException A conflicting resource update exception. This exception is thrown
* when two pending updates cause a conflict.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteTopicRuleDestination
*/
default CompletableFuture deleteTopicRuleDestination(
Consumer deleteTopicRuleDestinationRequest) {
return deleteTopicRuleDestination(DeleteTopicRuleDestinationRequest.builder()
.applyMutation(deleteTopicRuleDestinationRequest).build());
}
/**
*
* Deletes a logging level.
*
*
* Requires permission to access the DeleteV2LoggingLevel action.
*
*
* @param deleteV2LoggingLevelRequest
* @return A Java Future containing the result of the DeleteV2LoggingLevel operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteV2LoggingLevel
*/
default CompletableFuture deleteV2LoggingLevel(
DeleteV2LoggingLevelRequest deleteV2LoggingLevelRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a logging level.
*
*
* Requires permission to access the DeleteV2LoggingLevel action.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteV2LoggingLevelRequest.Builder} avoiding the
* need to create one manually via {@link DeleteV2LoggingLevelRequest#builder()}
*
*
* @param deleteV2LoggingLevelRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeleteV2LoggingLevelRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteV2LoggingLevel operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalException An unexpected error has occurred.
* - InvalidRequestException The request is not valid.
* - ServiceUnavailableException The service is temporarily unavailable.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeleteV2LoggingLevel
*/
default CompletableFuture deleteV2LoggingLevel(
Consumer deleteV2LoggingLevelRequest) {
return deleteV2LoggingLevel(DeleteV2LoggingLevelRequest.builder().applyMutation(deleteV2LoggingLevelRequest).build());
}
/**
*
* Deprecates a thing type. You can not associate new things with deprecated thing type.
*
*
* Requires permission to access the DeprecateThingType action.
*
*
* @param deprecateThingTypeRequest
* The input for the DeprecateThingType operation.
* @return A Java Future containing the result of the DeprecateThingType operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeprecateThingType
*/
default CompletableFuture deprecateThingType(DeprecateThingTypeRequest deprecateThingTypeRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deprecates a thing type. You can not associate new things with deprecated thing type.
*
*
* Requires permission to access the DeprecateThingType action.
*
*
*
* This is a convenience which creates an instance of the {@link DeprecateThingTypeRequest.Builder} avoiding the
* need to create one manually via {@link DeprecateThingTypeRequest#builder()}
*
*
* @param deprecateThingTypeRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.iot.model.DeprecateThingTypeRequest.Builder} to create a request.
* The input for the DeprecateThingType operation.
* @return A Java Future containing the result of the DeprecateThingType operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource does not exist.
* - InvalidRequestException The request is not valid.
* - ThrottlingException The rate exceeds the limit.
* - UnauthorizedException You are not authorized to perform this operation.
* - ServiceUnavailableException The service is temporarily unavailable.
* - InternalFailureException An unexpected error has occurred.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - IotException Base class for all service exceptions. Unknown exceptions will be thrown as an instance
* of this type.
*
* @sample IotAsyncClient.DeprecateThingType
*/
default CompletableFuture deprecateThingType(
Consumer deprecateThingTypeRequest) {
return deprecateThingType(DeprecateThingTypeRequest.builder().applyMutation(deprecateThingTypeRequest).build());
}
/**
*
* Gets information about the Device Defender audit settings for this account. Settings include how audit
* notifications are sent and which audit checks are enabled or disabled.
*
*
* Requires permission to access the