// // Copyright 2010-2023 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. // #import #import #import "AWSIoTModel.h" #import "AWSIoTResources.h" NS_ASSUME_NONNULL_BEGIN //! SDK version for AWSIoT FOUNDATION_EXPORT NSString *const AWSIoTSDKVersion; /** 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.

*/ @interface AWSIoT : AWSService /** The service configuration used to instantiate this service client. @warning Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors. */ @property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration; /** Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with `defaultServiceConfiguration` from `[AWSServiceManager defaultServiceManager]`. The reference to this object is maintained by the SDK, and you do not need to retain it manually. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider) AWSServiceManager.default().defaultServiceConfiguration = configuration return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:credentialsProvider]; [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration; return YES; } Then call the following to get the default service client: *Swift* let IoT = AWSIoT.default() *Objective-C* AWSIoT *IoT = [AWSIoT defaultIoT]; @return The default service client. */ + (instancetype)defaultIoT; /** Creates a service client with the given service configuration and registers it for the key. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSIoT.register(with: configuration!, forKey: "USWest2IoT") return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSIoT registerIoTWithConfiguration:configuration forKey:@"USWest2IoT"]; return YES; } Then call the following to get the service client: *Swift* let IoT = AWSIoT(forKey: "USWest2IoT") *Objective-C* AWSIoT *IoT = [AWSIoT IoTForKey:@"USWest2IoT"]; @warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors. @param configuration A service configuration object. @param key A string to identify the service client. */ + (void)registerIoTWithConfiguration:(AWSServiceConfiguration *)configuration forKey:(NSString *)key; /** Retrieves the service client associated with the key. You need to call `+ registerIoTWithConfiguration:forKey:` before invoking this method. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSIoT.register(with: configuration!, forKey: "USWest2IoT") return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSIoT registerIoTWithConfiguration:configuration forKey:@"USWest2IoT"]; return YES; } Then call the following to get the service client: *Swift* let IoT = AWSIoT(forKey: "USWest2IoT") *Objective-C* AWSIoT *IoT = [AWSIoT IoTForKey:@"USWest2IoT"]; @param key A string to identify the service client. @return An instance of the service client. */ + (instancetype)IoTForKey:(NSString *)key; /** Removes the service client associated with the key and release it. @warning Before calling this method, make sure no method is running on this client. @param key A string to identify the service client. */ + (void)removeIoTForKey:(NSString *)key; /**

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 request A container for the necessary parameters to execute the AcceptCertificateTransfer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorTransferAlreadyCompleted`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTAcceptCertificateTransferRequest */ - (AWSTask *)acceptCertificateTransfer:(AWSIoTAcceptCertificateTransferRequest *)request; /**

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 request A container for the necessary parameters to execute the AcceptCertificateTransfer service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorTransferAlreadyCompleted`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTAcceptCertificateTransferRequest */ - (void)acceptCertificateTransfer:(AWSIoTAcceptCertificateTransferRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Adds a thing to a billing group.

Requires permission to access the AddThingToBillingGroup action.

@param request A container for the necessary parameters to execute the AddThingToBillingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTAddThingToBillingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTAddThingToBillingGroupRequest @see AWSIoTAddThingToBillingGroupResponse */ - (AWSTask *)addThingToBillingGroup:(AWSIoTAddThingToBillingGroupRequest *)request; /**

Adds a thing to a billing group.

Requires permission to access the AddThingToBillingGroup action.

@param request A container for the necessary parameters to execute the AddThingToBillingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTAddThingToBillingGroupRequest @see AWSIoTAddThingToBillingGroupResponse */ - (void)addThingToBillingGroup:(AWSIoTAddThingToBillingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTAddThingToBillingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Adds a thing to a thing group.

Requires permission to access the AddThingToThingGroup action.

@param request A container for the necessary parameters to execute the AddThingToThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTAddThingToThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTAddThingToThingGroupRequest @see AWSIoTAddThingToThingGroupResponse */ - (AWSTask *)addThingToThingGroup:(AWSIoTAddThingToThingGroupRequest *)request; /**

Adds a thing to a thing group.

Requires permission to access the AddThingToThingGroup action.

@param request A container for the necessary parameters to execute the AddThingToThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTAddThingToThingGroupRequest @see AWSIoTAddThingToThingGroupResponse */ - (void)addThingToThingGroup:(AWSIoTAddThingToThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTAddThingToThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the AssociateTargetsWithJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTAssociateTargetsWithJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTAssociateTargetsWithJobRequest @see AWSIoTAssociateTargetsWithJobResponse */ - (AWSTask *)associateTargetsWithJob:(AWSIoTAssociateTargetsWithJobRequest *)request; /**

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 request A container for the necessary parameters to execute the AssociateTargetsWithJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTAssociateTargetsWithJobRequest @see AWSIoTAssociateTargetsWithJobResponse */ - (void)associateTargetsWithJob:(AWSIoTAssociateTargetsWithJobRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTAssociateTargetsWithJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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

Requires permission to access the AttachPolicy action.

@param request A container for the necessary parameters to execute the AttachPolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTAttachPolicyRequest */ - (AWSTask *)attachPolicy:(AWSIoTAttachPolicyRequest *)request; /**

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

Requires permission to access the AttachPolicy action.

@param request A container for the necessary parameters to execute the AttachPolicy service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTAttachPolicyRequest */ - (void)attachPolicy:(AWSIoTAttachPolicyRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

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

Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use AttachPolicy instead.

Requires permission to access the AttachPrincipalPolicy action.

@param request A container for the necessary parameters to execute the AttachPrincipalPolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTAttachPrincipalPolicyRequest */ - (AWSTask *)attachPrincipalPolicy:(AWSIoTAttachPrincipalPolicyRequest *)request; /**

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

Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use AttachPolicy instead.

Requires permission to access the AttachPrincipalPolicy action.

@param request A container for the necessary parameters to execute the AttachPrincipalPolicy service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTAttachPrincipalPolicyRequest */ - (void)attachPrincipalPolicy:(AWSIoTAttachPrincipalPolicyRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the AttachSecurityProfile service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTAttachSecurityProfileResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTAttachSecurityProfileRequest @see AWSIoTAttachSecurityProfileResponse */ - (AWSTask *)attachSecurityProfile:(AWSIoTAttachSecurityProfileRequest *)request; /**

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 request A container for the necessary parameters to execute the AttachSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTAttachSecurityProfileRequest @see AWSIoTAttachSecurityProfileResponse */ - (void)attachSecurityProfile:(AWSIoTAttachSecurityProfileRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTAttachSecurityProfileResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the AttachThingPrincipal service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTAttachThingPrincipalResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTAttachThingPrincipalRequest @see AWSIoTAttachThingPrincipalResponse */ - (AWSTask *)attachThingPrincipal:(AWSIoTAttachThingPrincipalRequest *)request; /**

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 request A container for the necessary parameters to execute the AttachThingPrincipal service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTAttachThingPrincipalRequest @see AWSIoTAttachThingPrincipalResponse */ - (void)attachThingPrincipal:(AWSIoTAttachThingPrincipalRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTAttachThingPrincipalResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CancelAuditMitigationActionsTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCancelAuditMitigationActionsTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCancelAuditMitigationActionsTaskRequest @see AWSIoTCancelAuditMitigationActionsTaskResponse */ - (AWSTask *)cancelAuditMitigationActionsTask:(AWSIoTCancelAuditMitigationActionsTaskRequest *)request; /**

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 request A container for the necessary parameters to execute the CancelAuditMitigationActionsTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCancelAuditMitigationActionsTaskRequest @see AWSIoTCancelAuditMitigationActionsTaskResponse */ - (void)cancelAuditMitigationActionsTask:(AWSIoTCancelAuditMitigationActionsTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCancelAuditMitigationActionsTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CancelAuditTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCancelAuditTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCancelAuditTaskRequest @see AWSIoTCancelAuditTaskResponse */ - (AWSTask *)cancelAuditTask:(AWSIoTCancelAuditTaskRequest *)request; /**

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 request A container for the necessary parameters to execute the CancelAuditTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCancelAuditTaskRequest @see AWSIoTCancelAuditTaskResponse */ - (void)cancelAuditTask:(AWSIoTCancelAuditTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCancelAuditTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CancelCertificateTransfer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorTransferAlreadyCompleted`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCancelCertificateTransferRequest */ - (AWSTask *)cancelCertificateTransfer:(AWSIoTCancelCertificateTransferRequest *)request; /**

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 request A container for the necessary parameters to execute the CancelCertificateTransfer service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorTransferAlreadyCompleted`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCancelCertificateTransferRequest */ - (void)cancelCertificateTransfer:(AWSIoTCancelCertificateTransferRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Cancels a Device Defender ML Detect mitigation action.

Requires permission to access the CancelDetectMitigationActionsTask action.

@param request A container for the necessary parameters to execute the CancelDetectMitigationActionsTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCancelDetectMitigationActionsTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCancelDetectMitigationActionsTaskRequest @see AWSIoTCancelDetectMitigationActionsTaskResponse */ - (AWSTask *)cancelDetectMitigationActionsTask:(AWSIoTCancelDetectMitigationActionsTaskRequest *)request; /**

Cancels a Device Defender ML Detect mitigation action.

Requires permission to access the CancelDetectMitigationActionsTask action.

@param request A container for the necessary parameters to execute the CancelDetectMitigationActionsTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCancelDetectMitigationActionsTaskRequest @see AWSIoTCancelDetectMitigationActionsTaskResponse */ - (void)cancelDetectMitigationActionsTask:(AWSIoTCancelDetectMitigationActionsTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCancelDetectMitigationActionsTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Cancels a job.

Requires permission to access the CancelJob action.

@param request A container for the necessary parameters to execute the CancelJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCancelJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorLimitExceeded`. @see AWSIoTCancelJobRequest @see AWSIoTCancelJobResponse */ - (AWSTask *)cancelJob:(AWSIoTCancelJobRequest *)request; /**

Cancels a job.

Requires permission to access the CancelJob action.

@param request A container for the necessary parameters to execute the CancelJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorLimitExceeded`. @see AWSIoTCancelJobRequest @see AWSIoTCancelJobResponse */ - (void)cancelJob:(AWSIoTCancelJobRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCancelJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Cancels the execution of a job for a given thing.

Requires permission to access the CancelJobExecution action.

@param request A container for the necessary parameters to execute the CancelJobExecution service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInvalidStateTransition`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorVersionConflict`. @see AWSIoTCancelJobExecutionRequest */ - (AWSTask *)cancelJobExecution:(AWSIoTCancelJobExecutionRequest *)request; /**

Cancels the execution of a job for a given thing.

Requires permission to access the CancelJobExecution action.

@param request A container for the necessary parameters to execute the CancelJobExecution service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInvalidStateTransition`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorVersionConflict`. @see AWSIoTCancelJobExecutionRequest */ - (void)cancelJobExecution:(AWSIoTCancelJobExecutionRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Clears the default authorizer.

Requires permission to access the ClearDefaultAuthorizer action.

@param request A container for the necessary parameters to execute the ClearDefaultAuthorizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTClearDefaultAuthorizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTClearDefaultAuthorizerRequest @see AWSIoTClearDefaultAuthorizerResponse */ - (AWSTask *)clearDefaultAuthorizer:(AWSIoTClearDefaultAuthorizerRequest *)request; /**

Clears the default authorizer.

Requires permission to access the ClearDefaultAuthorizer action.

@param request A container for the necessary parameters to execute the ClearDefaultAuthorizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTClearDefaultAuthorizerRequest @see AWSIoTClearDefaultAuthorizerResponse */ - (void)clearDefaultAuthorizer:(AWSIoTClearDefaultAuthorizerRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTClearDefaultAuthorizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the ConfirmTopicRuleDestination service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTConfirmTopicRuleDestinationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTConfirmTopicRuleDestinationRequest @see AWSIoTConfirmTopicRuleDestinationResponse */ - (AWSTask *)confirmTopicRuleDestination:(AWSIoTConfirmTopicRuleDestinationRequest *)request; /**

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 request A container for the necessary parameters to execute the ConfirmTopicRuleDestination service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTConfirmTopicRuleDestinationRequest @see AWSIoTConfirmTopicRuleDestinationResponse */ - (void)confirmTopicRuleDestination:(AWSIoTConfirmTopicRuleDestinationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTConfirmTopicRuleDestinationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a Device Defender audit suppression.

Requires permission to access the CreateAuditSuppression action.

@param request A container for the necessary parameters to execute the CreateAuditSuppression service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateAuditSuppressionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTCreateAuditSuppressionRequest @see AWSIoTCreateAuditSuppressionResponse */ - (AWSTask *)createAuditSuppression:(AWSIoTCreateAuditSuppressionRequest *)request; /**

Creates a Device Defender audit suppression.

Requires permission to access the CreateAuditSuppression action.

@param request A container for the necessary parameters to execute the CreateAuditSuppression service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTCreateAuditSuppressionRequest @see AWSIoTCreateAuditSuppressionResponse */ - (void)createAuditSuppression:(AWSIoTCreateAuditSuppressionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateAuditSuppressionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates an authorizer.

Requires permission to access the CreateAuthorizer action.

@param request A container for the necessary parameters to execute the CreateAuthorizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateAuthorizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateAuthorizerRequest @see AWSIoTCreateAuthorizerResponse */ - (AWSTask *)createAuthorizer:(AWSIoTCreateAuthorizerRequest *)request; /**

Creates an authorizer.

Requires permission to access the CreateAuthorizer action.

@param request A container for the necessary parameters to execute the CreateAuthorizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateAuthorizerRequest @see AWSIoTCreateAuthorizerResponse */ - (void)createAuthorizer:(AWSIoTCreateAuthorizerRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateAuthorizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a billing group.

Requires permission to access the CreateBillingGroup action.

@param request A container for the necessary parameters to execute the CreateBillingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateBillingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateBillingGroupRequest @see AWSIoTCreateBillingGroupResponse */ - (AWSTask *)createBillingGroup:(AWSIoTCreateBillingGroupRequest *)request; /**

Creates a billing group.

Requires permission to access the CreateBillingGroup action.

@param request A container for the necessary parameters to execute the CreateBillingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateBillingGroupRequest @see AWSIoTCreateBillingGroupResponse */ - (void)createBillingGroup:(AWSIoTCreateBillingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateBillingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 or NIST P-384 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 request A container for the necessary parameters to execute the CreateCertificateFromCsr service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateCertificateFromCsrResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateCertificateFromCsrRequest @see AWSIoTCreateCertificateFromCsrResponse */ - (AWSTask *)createCertificateFromCsr:(AWSIoTCreateCertificateFromCsrRequest *)request; /**

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 or NIST P-384 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 request A container for the necessary parameters to execute the CreateCertificateFromCsr service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateCertificateFromCsrRequest @see AWSIoTCreateCertificateFromCsrResponse */ - (void)createCertificateFromCsr:(AWSIoTCreateCertificateFromCsrRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateCertificateFromCsrResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Use this API to define a Custom Metric published by your devices to Device Defender.

Requires permission to access the CreateCustomMetric action.

@param request A container for the necessary parameters to execute the CreateCustomMetric service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateCustomMetricResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateCustomMetricRequest @see AWSIoTCreateCustomMetricResponse */ - (AWSTask *)createCustomMetric:(AWSIoTCreateCustomMetricRequest *)request; /**

Use this API to define a Custom Metric published by your devices to Device Defender.

Requires permission to access the CreateCustomMetric action.

@param request A container for the necessary parameters to execute the CreateCustomMetric service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateCustomMetricRequest @see AWSIoTCreateCustomMetricResponse */ - (void)createCustomMetric:(AWSIoTCreateCustomMetricRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateCustomMetricResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CreateDimension service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateDimensionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`. @see AWSIoTCreateDimensionRequest @see AWSIoTCreateDimensionResponse */ - (AWSTask *)createDimension:(AWSIoTCreateDimensionRequest *)request; /**

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 request A container for the necessary parameters to execute the CreateDimension service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`. @see AWSIoTCreateDimensionRequest @see AWSIoTCreateDimensionResponse */ - (void)createDimension:(AWSIoTCreateDimensionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateDimensionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a domain configuration.

Requires permission to access the CreateDomainConfiguration action.

@param request A container for the necessary parameters to execute the CreateDomainConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateDomainConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorLimitExceeded`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorThrottling`. @see AWSIoTCreateDomainConfigurationRequest @see AWSIoTCreateDomainConfigurationResponse */ - (AWSTask *)createDomainConfiguration:(AWSIoTCreateDomainConfigurationRequest *)request; /**

Creates a domain configuration.

Requires permission to access the CreateDomainConfiguration action.

@param request A container for the necessary parameters to execute the CreateDomainConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorLimitExceeded`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorThrottling`. @see AWSIoTCreateDomainConfigurationRequest @see AWSIoTCreateDomainConfigurationResponse */ - (void)createDomainConfiguration:(AWSIoTCreateDomainConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateDomainConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a dynamic thing group.

Requires permission to access the CreateDynamicThingGroup action.

@param request A container for the necessary parameters to execute the CreateDynamicThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateDynamicThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorLimitExceeded`. @see AWSIoTCreateDynamicThingGroupRequest @see AWSIoTCreateDynamicThingGroupResponse */ - (AWSTask *)createDynamicThingGroup:(AWSIoTCreateDynamicThingGroupRequest *)request; /**

Creates a dynamic thing group.

Requires permission to access the CreateDynamicThingGroup action.

@param request A container for the necessary parameters to execute the CreateDynamicThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorLimitExceeded`. @see AWSIoTCreateDynamicThingGroupRequest @see AWSIoTCreateDynamicThingGroupResponse */ - (void)createDynamicThingGroup:(AWSIoTCreateDynamicThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateDynamicThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a fleet metric.

Requires permission to access the CreateFleetMetric action.

@param request A container for the necessary parameters to execute the CreateFleetMetric service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateFleetMetricResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTCreateFleetMetricRequest @see AWSIoTCreateFleetMetricResponse */ - (AWSTask *)createFleetMetric:(AWSIoTCreateFleetMetricRequest *)request; /**

Creates a fleet metric.

Requires permission to access the CreateFleetMetric action.

@param request A container for the necessary parameters to execute the CreateFleetMetric service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTCreateFleetMetricRequest @see AWSIoTCreateFleetMetricResponse */ - (void)createFleetMetric:(AWSIoTCreateFleetMetricRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateFleetMetricResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a job.

Requires permission to access the CreateJob action.

@param request A container for the necessary parameters to execute the CreateJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTCreateJobRequest @see AWSIoTCreateJobResponse */ - (AWSTask *)createJob:(AWSIoTCreateJobRequest *)request; /**

Creates a job.

Requires permission to access the CreateJob action.

@param request A container for the necessary parameters to execute the CreateJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTCreateJobRequest @see AWSIoTCreateJobResponse */ - (void)createJob:(AWSIoTCreateJobRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a job template.

Requires permission to access the CreateJobTemplate action.

@param request A container for the necessary parameters to execute the CreateJobTemplate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateJobTemplateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorConflict`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateJobTemplateRequest @see AWSIoTCreateJobTemplateResponse */ - (AWSTask *)createJobTemplate:(AWSIoTCreateJobTemplateRequest *)request; /**

Creates a job template.

Requires permission to access the CreateJobTemplate action.

@param request A container for the necessary parameters to execute the CreateJobTemplate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorConflict`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateJobTemplateRequest @see AWSIoTCreateJobTemplateResponse */ - (void)createJobTemplate:(AWSIoTCreateJobTemplateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateJobTemplateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CreateKeysAndCertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateKeysAndCertificateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateKeysAndCertificateRequest @see AWSIoTCreateKeysAndCertificateResponse */ - (AWSTask *)createKeysAndCertificate:(AWSIoTCreateKeysAndCertificateRequest *)request; /**

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 request A container for the necessary parameters to execute the CreateKeysAndCertificate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateKeysAndCertificateRequest @see AWSIoTCreateKeysAndCertificateResponse */ - (void)createKeysAndCertificate:(AWSIoTCreateKeysAndCertificateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateKeysAndCertificateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CreateMitigationAction service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateMitigationActionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateMitigationActionRequest @see AWSIoTCreateMitigationActionResponse */ - (AWSTask *)createMitigationAction:(AWSIoTCreateMitigationActionRequest *)request; /**

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 request A container for the necessary parameters to execute the CreateMitigationAction service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateMitigationActionRequest @see AWSIoTCreateMitigationActionResponse */ - (void)createMitigationAction:(AWSIoTCreateMitigationActionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateMitigationActionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates an IoT OTA update on a target group of things or groups.

Requires permission to access the CreateOTAUpdate action.

@param request A container for the necessary parameters to execute the CreateOTAUpdate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateOTAUpdateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTCreateOTAUpdateRequest @see AWSIoTCreateOTAUpdateResponse */ - (AWSTask *)createOTAUpdate:(AWSIoTCreateOTAUpdateRequest *)request; /**

Creates an IoT OTA update on a target group of things or groups.

Requires permission to access the CreateOTAUpdate action.

@param request A container for the necessary parameters to execute the CreateOTAUpdate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTCreateOTAUpdateRequest @see AWSIoTCreateOTAUpdateResponse */ - (void)createOTAUpdate:(AWSIoTCreateOTAUpdateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateOTAUpdateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates an IoT software package that can be deployed to your fleet.

Requires permission to access the CreatePackage and GetIndexingConfiguration actions.

@param request A container for the necessary parameters to execute the CreatePackage service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreatePackageResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorConflict`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorServiceQuotaExceeded`. @see AWSIoTCreatePackageRequest @see AWSIoTCreatePackageResponse */ - (AWSTask *)createPackage:(AWSIoTCreatePackageRequest *)request; /**

Creates an IoT software package that can be deployed to your fleet.

Requires permission to access the CreatePackage and GetIndexingConfiguration actions.

@param request A container for the necessary parameters to execute the CreatePackage service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorConflict`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorServiceQuotaExceeded`. @see AWSIoTCreatePackageRequest @see AWSIoTCreatePackageResponse */ - (void)createPackage:(AWSIoTCreatePackageRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreatePackageResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a new version for an existing IoT software package.

Requires permission to access the CreatePackageVersion and GetIndexingConfiguration actions.

@param request A container for the necessary parameters to execute the CreatePackageVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreatePackageVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorConflict`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorServiceQuotaExceeded`. @see AWSIoTCreatePackageVersionRequest @see AWSIoTCreatePackageVersionResponse */ - (AWSTask *)createPackageVersion:(AWSIoTCreatePackageVersionRequest *)request; /**

Creates a new version for an existing IoT software package.

Requires permission to access the CreatePackageVersion and GetIndexingConfiguration actions.

@param request A container for the necessary parameters to execute the CreatePackageVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorConflict`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorServiceQuotaExceeded`. @see AWSIoTCreatePackageVersionRequest @see AWSIoTCreatePackageVersionResponse */ - (void)createPackageVersion:(AWSIoTCreatePackageVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreatePackageVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CreatePolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreatePolicyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorMalformedPolicy`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreatePolicyRequest @see AWSIoTCreatePolicyResponse */ - (AWSTask *)createPolicy:(AWSIoTCreatePolicyRequest *)request; /**

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 request A container for the necessary parameters to execute the CreatePolicy service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorMalformedPolicy`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreatePolicyRequest @see AWSIoTCreatePolicyResponse */ - (void)createPolicy:(AWSIoTCreatePolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreatePolicyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CreatePolicyVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreatePolicyVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorMalformedPolicy`, `AWSIoTErrorVersionsLimitExceeded`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreatePolicyVersionRequest @see AWSIoTCreatePolicyVersionResponse */ - (AWSTask *)createPolicyVersion:(AWSIoTCreatePolicyVersionRequest *)request; /**

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 request A container for the necessary parameters to execute the CreatePolicyVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorMalformedPolicy`, `AWSIoTErrorVersionsLimitExceeded`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreatePolicyVersionRequest @see AWSIoTCreatePolicyVersionResponse */ - (void)createPolicyVersion:(AWSIoTCreatePolicyVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreatePolicyVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a provisioning claim.

Requires permission to access the CreateProvisioningClaim action.

@param request A container for the necessary parameters to execute the CreateProvisioningClaim service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateProvisioningClaimResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateProvisioningClaimRequest @see AWSIoTCreateProvisioningClaimResponse */ - (AWSTask *)createProvisioningClaim:(AWSIoTCreateProvisioningClaimRequest *)request; /**

Creates a provisioning claim.

Requires permission to access the CreateProvisioningClaim action.

@param request A container for the necessary parameters to execute the CreateProvisioningClaim service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateProvisioningClaimRequest @see AWSIoTCreateProvisioningClaimResponse */ - (void)createProvisioningClaim:(AWSIoTCreateProvisioningClaimRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateProvisioningClaimResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a provisioning template.

Requires permission to access the CreateProvisioningTemplate action.

@param request A container for the necessary parameters to execute the CreateProvisioningTemplate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateProvisioningTemplateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorResourceAlreadyExists`. @see AWSIoTCreateProvisioningTemplateRequest @see AWSIoTCreateProvisioningTemplateResponse */ - (AWSTask *)createProvisioningTemplate:(AWSIoTCreateProvisioningTemplateRequest *)request; /**

Creates a provisioning template.

Requires permission to access the CreateProvisioningTemplate action.

@param request A container for the necessary parameters to execute the CreateProvisioningTemplate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorResourceAlreadyExists`. @see AWSIoTCreateProvisioningTemplateRequest @see AWSIoTCreateProvisioningTemplateResponse */ - (void)createProvisioningTemplate:(AWSIoTCreateProvisioningTemplateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateProvisioningTemplateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a new version of a provisioning template.

Requires permission to access the CreateProvisioningTemplateVersion action.

@param request A container for the necessary parameters to execute the CreateProvisioningTemplateVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateProvisioningTemplateVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorVersionsLimitExceeded`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTCreateProvisioningTemplateVersionRequest @see AWSIoTCreateProvisioningTemplateVersionResponse */ - (AWSTask *)createProvisioningTemplateVersion:(AWSIoTCreateProvisioningTemplateVersionRequest *)request; /**

Creates a new version of a provisioning template.

Requires permission to access the CreateProvisioningTemplateVersion action.

@param request A container for the necessary parameters to execute the CreateProvisioningTemplateVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorVersionsLimitExceeded`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTCreateProvisioningTemplateVersionRequest @see AWSIoTCreateProvisioningTemplateVersionResponse */ - (void)createProvisioningTemplateVersion:(AWSIoTCreateProvisioningTemplateVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateProvisioningTemplateVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a role alias.

Requires permission to access the CreateRoleAlias action.

@param request A container for the necessary parameters to execute the CreateRoleAlias service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateRoleAliasResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateRoleAliasRequest @see AWSIoTCreateRoleAliasResponse */ - (AWSTask *)createRoleAlias:(AWSIoTCreateRoleAliasRequest *)request; /**

Creates a role alias.

Requires permission to access the CreateRoleAlias action.

@param request A container for the necessary parameters to execute the CreateRoleAlias service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateRoleAliasRequest @see AWSIoTCreateRoleAliasResponse */ - (void)createRoleAlias:(AWSIoTCreateRoleAliasRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateRoleAliasResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a scheduled audit that is run at a specified time interval.

Requires permission to access the CreateScheduledAudit action.

@param request A container for the necessary parameters to execute the CreateScheduledAudit service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateScheduledAuditResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTCreateScheduledAuditRequest @see AWSIoTCreateScheduledAuditResponse */ - (AWSTask *)createScheduledAudit:(AWSIoTCreateScheduledAuditRequest *)request; /**

Creates a scheduled audit that is run at a specified time interval.

Requires permission to access the CreateScheduledAudit action.

@param request A container for the necessary parameters to execute the CreateScheduledAudit service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTCreateScheduledAuditRequest @see AWSIoTCreateScheduledAuditResponse */ - (void)createScheduledAudit:(AWSIoTCreateScheduledAuditRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateScheduledAuditResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a Device Defender security profile.

Requires permission to access the CreateSecurityProfile action.

@param request A container for the necessary parameters to execute the CreateSecurityProfile service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateSecurityProfileResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateSecurityProfileRequest @see AWSIoTCreateSecurityProfileResponse */ - (AWSTask *)createSecurityProfile:(AWSIoTCreateSecurityProfileRequest *)request; /**

Creates a Device Defender security profile.

Requires permission to access the CreateSecurityProfile action.

@param request A container for the necessary parameters to execute the CreateSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateSecurityProfileRequest @see AWSIoTCreateSecurityProfileResponse */ - (void)createSecurityProfile:(AWSIoTCreateSecurityProfileRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateSecurityProfileResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CreateStream service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateStreamResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateStreamRequest @see AWSIoTCreateStreamResponse */ - (AWSTask *)createStream:(AWSIoTCreateStreamRequest *)request; /**

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 request A container for the necessary parameters to execute the CreateStream service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateStreamRequest @see AWSIoTCreateStreamResponse */ - (void)createStream:(AWSIoTCreateStreamRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateStreamResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CreateThing service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateThingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorResourceNotFound`. @see AWSIoTCreateThingRequest @see AWSIoTCreateThingResponse */ - (AWSTask *)createThing:(AWSIoTCreateThingRequest *)request; /**

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 request A container for the necessary parameters to execute the CreateThing service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorResourceNotFound`. @see AWSIoTCreateThingRequest @see AWSIoTCreateThingResponse */ - (void)createThing:(AWSIoTCreateThingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateThingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Create a thing group.

This is a control plane operation. See Authorization for information about authorizing control plane actions.

Requires permission to access the CreateThingGroup action.

@param request A container for the necessary parameters to execute the CreateThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateThingGroupRequest @see AWSIoTCreateThingGroupResponse */ - (AWSTask *)createThingGroup:(AWSIoTCreateThingGroupRequest *)request; /**

Create a thing group.

This is a control plane operation. See Authorization for information about authorizing control plane actions.

Requires permission to access the CreateThingGroup action.

@param request A container for the necessary parameters to execute the CreateThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTCreateThingGroupRequest @see AWSIoTCreateThingGroupResponse */ - (void)createThingGroup:(AWSIoTCreateThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a new thing type.

Requires permission to access the CreateThingType action.

@param request A container for the necessary parameters to execute the CreateThingType service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateThingTypeResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceAlreadyExists`. @see AWSIoTCreateThingTypeRequest @see AWSIoTCreateThingTypeResponse */ - (AWSTask *)createThingType:(AWSIoTCreateThingTypeRequest *)request; /**

Creates a new thing type.

Requires permission to access the CreateThingType action.

@param request A container for the necessary parameters to execute the CreateThingType service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceAlreadyExists`. @see AWSIoTCreateThingTypeRequest @see AWSIoTCreateThingTypeResponse */ - (void)createThingType:(AWSIoTCreateThingTypeRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateThingTypeResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the CreateTopicRule service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorSqlParse`, `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTCreateTopicRuleRequest */ - (AWSTask *)createTopicRule:(AWSIoTCreateTopicRuleRequest *)request; /**

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 request A container for the necessary parameters to execute the CreateTopicRule service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorSqlParse`, `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTCreateTopicRuleRequest */ - (void)createTopicRule:(AWSIoTCreateTopicRuleRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Creates a topic rule destination. The destination must be confirmed prior to use.

Requires permission to access the CreateTopicRuleDestination action.

@param request A container for the necessary parameters to execute the CreateTopicRuleDestination service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateTopicRuleDestinationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTCreateTopicRuleDestinationRequest @see AWSIoTCreateTopicRuleDestinationResponse */ - (AWSTask *)createTopicRuleDestination:(AWSIoTCreateTopicRuleDestinationRequest *)request; /**

Creates a topic rule destination. The destination must be confirmed prior to use.

Requires permission to access the CreateTopicRuleDestination action.

@param request A container for the necessary parameters to execute the CreateTopicRuleDestination service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTCreateTopicRuleDestinationRequest @see AWSIoTCreateTopicRuleDestinationResponse */ - (void)createTopicRuleDestination:(AWSIoTCreateTopicRuleDestinationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateTopicRuleDestinationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeleteAccountAuditConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteAccountAuditConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteAccountAuditConfigurationRequest @see AWSIoTDeleteAccountAuditConfigurationResponse */ - (AWSTask *)deleteAccountAuditConfiguration:(AWSIoTDeleteAccountAuditConfigurationRequest *)request; /**

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 request A container for the necessary parameters to execute the DeleteAccountAuditConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteAccountAuditConfigurationRequest @see AWSIoTDeleteAccountAuditConfigurationResponse */ - (void)deleteAccountAuditConfiguration:(AWSIoTDeleteAccountAuditConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteAccountAuditConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a Device Defender audit suppression.

Requires permission to access the DeleteAuditSuppression action.

@param request A container for the necessary parameters to execute the DeleteAuditSuppression service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteAuditSuppressionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteAuditSuppressionRequest @see AWSIoTDeleteAuditSuppressionResponse */ - (AWSTask *)deleteAuditSuppression:(AWSIoTDeleteAuditSuppressionRequest *)request; /**

Deletes a Device Defender audit suppression.

Requires permission to access the DeleteAuditSuppression action.

@param request A container for the necessary parameters to execute the DeleteAuditSuppression service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteAuditSuppressionRequest @see AWSIoTDeleteAuditSuppressionResponse */ - (void)deleteAuditSuppression:(AWSIoTDeleteAuditSuppressionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteAuditSuppressionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes an authorizer.

Requires permission to access the DeleteAuthorizer action.

@param request A container for the necessary parameters to execute the DeleteAuthorizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteAuthorizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteAuthorizerRequest @see AWSIoTDeleteAuthorizerResponse */ - (AWSTask *)deleteAuthorizer:(AWSIoTDeleteAuthorizerRequest *)request; /**

Deletes an authorizer.

Requires permission to access the DeleteAuthorizer action.

@param request A container for the necessary parameters to execute the DeleteAuthorizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteAuthorizerRequest @see AWSIoTDeleteAuthorizerResponse */ - (void)deleteAuthorizer:(AWSIoTDeleteAuthorizerRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteAuthorizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes the billing group.

Requires permission to access the DeleteBillingGroup action.

@param request A container for the necessary parameters to execute the DeleteBillingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteBillingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteBillingGroupRequest @see AWSIoTDeleteBillingGroupResponse */ - (AWSTask *)deleteBillingGroup:(AWSIoTDeleteBillingGroupRequest *)request; /**

Deletes the billing group.

Requires permission to access the DeleteBillingGroup action.

@param request A container for the necessary parameters to execute the DeleteBillingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteBillingGroupRequest @see AWSIoTDeleteBillingGroupResponse */ - (void)deleteBillingGroup:(AWSIoTDeleteBillingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteBillingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a registered CA certificate.

Requires permission to access the DeleteCACertificate action.

@param request A container for the necessary parameters to execute the DeleteCACertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteCACertificateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorCertificateState`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDeleteCACertificateRequest @see AWSIoTDeleteCACertificateResponse */ - (AWSTask *)deleteCACertificate:(AWSIoTDeleteCACertificateRequest *)request; /**

Deletes a registered CA certificate.

Requires permission to access the DeleteCACertificate action.

@param request A container for the necessary parameters to execute the DeleteCACertificate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorCertificateState`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDeleteCACertificateRequest @see AWSIoTDeleteCACertificateResponse */ - (void)deleteCACertificate:(AWSIoTDeleteCACertificateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteCACertificateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeleteCertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorCertificateState`, `AWSIoTErrorDeleteConflict`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDeleteCertificateRequest */ - (AWSTask *)deleteCertificate:(AWSIoTDeleteCertificateRequest *)request; /**

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 request A container for the necessary parameters to execute the DeleteCertificate service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorCertificateState`, `AWSIoTErrorDeleteConflict`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDeleteCertificateRequest */ - (void)deleteCertificate:(AWSIoTDeleteCertificateRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeleteCustomMetric service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteCustomMetricResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteCustomMetricRequest @see AWSIoTDeleteCustomMetricResponse */ - (AWSTask *)deleteCustomMetric:(AWSIoTDeleteCustomMetricRequest *)request; /**

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 request A container for the necessary parameters to execute the DeleteCustomMetric service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteCustomMetricRequest @see AWSIoTDeleteCustomMetricResponse */ - (void)deleteCustomMetric:(AWSIoTDeleteCustomMetricRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteCustomMetricResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Removes the specified dimension from your Amazon Web Services accounts.

Requires permission to access the DeleteDimension action.

@param request A container for the necessary parameters to execute the DeleteDimension service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteDimensionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`. @see AWSIoTDeleteDimensionRequest @see AWSIoTDeleteDimensionResponse */ - (AWSTask *)deleteDimension:(AWSIoTDeleteDimensionRequest *)request; /**

Removes the specified dimension from your Amazon Web Services accounts.

Requires permission to access the DeleteDimension action.

@param request A container for the necessary parameters to execute the DeleteDimension service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`. @see AWSIoTDeleteDimensionRequest @see AWSIoTDeleteDimensionResponse */ - (void)deleteDimension:(AWSIoTDeleteDimensionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteDimensionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes the specified domain configuration.

Requires permission to access the DeleteDomainConfiguration action.

@param request A container for the necessary parameters to execute the DeleteDomainConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteDomainConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`. @see AWSIoTDeleteDomainConfigurationRequest @see AWSIoTDeleteDomainConfigurationResponse */ - (AWSTask *)deleteDomainConfiguration:(AWSIoTDeleteDomainConfigurationRequest *)request; /**

Deletes the specified domain configuration.

Requires permission to access the DeleteDomainConfiguration action.

@param request A container for the necessary parameters to execute the DeleteDomainConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`. @see AWSIoTDeleteDomainConfigurationRequest @see AWSIoTDeleteDomainConfigurationResponse */ - (void)deleteDomainConfiguration:(AWSIoTDeleteDomainConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteDomainConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a dynamic thing group.

Requires permission to access the DeleteDynamicThingGroup action.

@param request A container for the necessary parameters to execute the DeleteDynamicThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteDynamicThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteDynamicThingGroupRequest @see AWSIoTDeleteDynamicThingGroupResponse */ - (AWSTask *)deleteDynamicThingGroup:(AWSIoTDeleteDynamicThingGroupRequest *)request; /**

Deletes a dynamic thing group.

Requires permission to access the DeleteDynamicThingGroup action.

@param request A container for the necessary parameters to execute the DeleteDynamicThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteDynamicThingGroupRequest @see AWSIoTDeleteDynamicThingGroupResponse */ - (void)deleteDynamicThingGroup:(AWSIoTDeleteDynamicThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteDynamicThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeleteFleetMetric service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorVersionConflict`. @see AWSIoTDeleteFleetMetricRequest */ - (AWSTask *)deleteFleetMetric:(AWSIoTDeleteFleetMetricRequest *)request; /**

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 request A container for the necessary parameters to execute the DeleteFleetMetric service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorVersionConflict`. @see AWSIoTDeleteFleetMetricRequest */ - (void)deleteFleetMetric:(AWSIoTDeleteFleetMetricRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeleteJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInvalidStateTransition`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDeleteJobRequest */ - (AWSTask *)deleteJob:(AWSIoTDeleteJobRequest *)request; /**

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 request A container for the necessary parameters to execute the DeleteJob service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInvalidStateTransition`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDeleteJobRequest */ - (void)deleteJob:(AWSIoTDeleteJobRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Deletes a job execution.

Requires permission to access the DeleteJobExecution action.

@param request A container for the necessary parameters to execute the DeleteJobExecution service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInvalidStateTransition`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDeleteJobExecutionRequest */ - (AWSTask *)deleteJobExecution:(AWSIoTDeleteJobExecutionRequest *)request; /**

Deletes a job execution.

Requires permission to access the DeleteJobExecution action.

@param request A container for the necessary parameters to execute the DeleteJobExecution service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInvalidStateTransition`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDeleteJobExecutionRequest */ - (void)deleteJobExecution:(AWSIoTDeleteJobExecutionRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Deletes the specified job template.

@param request A container for the necessary parameters to execute the DeleteJobTemplate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteJobTemplateRequest */ - (AWSTask *)deleteJobTemplate:(AWSIoTDeleteJobTemplateRequest *)request; /**

Deletes the specified job template.

@param request A container for the necessary parameters to execute the DeleteJobTemplate service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteJobTemplateRequest */ - (void)deleteJobTemplate:(AWSIoTDeleteJobTemplateRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Deletes a defined mitigation action from your Amazon Web Services accounts.

Requires permission to access the DeleteMitigationAction action.

@param request A container for the necessary parameters to execute the DeleteMitigationAction service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteMitigationActionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteMitigationActionRequest @see AWSIoTDeleteMitigationActionResponse */ - (AWSTask *)deleteMitigationAction:(AWSIoTDeleteMitigationActionRequest *)request; /**

Deletes a defined mitigation action from your Amazon Web Services accounts.

Requires permission to access the DeleteMitigationAction action.

@param request A container for the necessary parameters to execute the DeleteMitigationAction service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteMitigationActionRequest @see AWSIoTDeleteMitigationActionResponse */ - (void)deleteMitigationAction:(AWSIoTDeleteMitigationActionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteMitigationActionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Delete an OTA update.

Requires permission to access the DeleteOTAUpdate action.

@param request A container for the necessary parameters to execute the DeleteOTAUpdate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteOTAUpdateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorVersionConflict`. @see AWSIoTDeleteOTAUpdateRequest @see AWSIoTDeleteOTAUpdateResponse */ - (AWSTask *)deleteOTAUpdate:(AWSIoTDeleteOTAUpdateRequest *)request; /**

Delete an OTA update.

Requires permission to access the DeleteOTAUpdate action.

@param request A container for the necessary parameters to execute the DeleteOTAUpdate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorVersionConflict`. @see AWSIoTDeleteOTAUpdateRequest @see AWSIoTDeleteOTAUpdateResponse */ - (void)deleteOTAUpdate:(AWSIoTDeleteOTAUpdateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteOTAUpdateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeletePackage service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeletePackageResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTDeletePackageRequest @see AWSIoTDeletePackageResponse */ - (AWSTask *)deletePackage:(AWSIoTDeletePackageRequest *)request; /**

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 request A container for the necessary parameters to execute the DeletePackage service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTDeletePackageRequest @see AWSIoTDeletePackageResponse */ - (void)deletePackage:(AWSIoTDeletePackageRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeletePackageResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a specific version from a software package.

Note: If a package version is designated as default, you must remove the designation from the package using the UpdatePackage action.

@param request A container for the necessary parameters to execute the DeletePackageVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeletePackageVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTDeletePackageVersionRequest @see AWSIoTDeletePackageVersionResponse */ - (AWSTask *)deletePackageVersion:(AWSIoTDeletePackageVersionRequest *)request; /**

Deletes a specific version from a software package.

Note: If a package version is designated as default, you must remove the designation from the package using the UpdatePackage action.

@param request A container for the necessary parameters to execute the DeletePackageVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTDeletePackageVersionRequest @see AWSIoTDeletePackageVersionResponse */ - (void)deletePackageVersion:(AWSIoTDeletePackageVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeletePackageVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeletePolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeletePolicyRequest */ - (AWSTask *)deletePolicy:(AWSIoTDeletePolicyRequest *)request; /**

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 request A container for the necessary parameters to execute the DeletePolicy service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeletePolicyRequest */ - (void)deletePolicy:(AWSIoTDeletePolicyRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeletePolicyVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeletePolicyVersionRequest */ - (AWSTask *)deletePolicyVersion:(AWSIoTDeletePolicyVersionRequest *)request; /**

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 request A container for the necessary parameters to execute the DeletePolicyVersion service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeletePolicyVersionRequest */ - (void)deletePolicyVersion:(AWSIoTDeletePolicyVersionRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Deletes a provisioning template.

Requires permission to access the DeleteProvisioningTemplate action.

@param request A container for the necessary parameters to execute the DeleteProvisioningTemplate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteProvisioningTemplateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorDeleteConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorConflictingResourceUpdate`, `AWSIoTErrorUnauthorized`. @see AWSIoTDeleteProvisioningTemplateRequest @see AWSIoTDeleteProvisioningTemplateResponse */ - (AWSTask *)deleteProvisioningTemplate:(AWSIoTDeleteProvisioningTemplateRequest *)request; /**

Deletes a provisioning template.

Requires permission to access the DeleteProvisioningTemplate action.

@param request A container for the necessary parameters to execute the DeleteProvisioningTemplate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorDeleteConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorConflictingResourceUpdate`, `AWSIoTErrorUnauthorized`. @see AWSIoTDeleteProvisioningTemplateRequest @see AWSIoTDeleteProvisioningTemplateResponse */ - (void)deleteProvisioningTemplate:(AWSIoTDeleteProvisioningTemplateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteProvisioningTemplateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a provisioning template version.

Requires permission to access the DeleteProvisioningTemplateVersion action.

@param request A container for the necessary parameters to execute the DeleteProvisioningTemplateVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteProvisioningTemplateVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`, `AWSIoTErrorDeleteConflict`. @see AWSIoTDeleteProvisioningTemplateVersionRequest @see AWSIoTDeleteProvisioningTemplateVersionResponse */ - (AWSTask *)deleteProvisioningTemplateVersion:(AWSIoTDeleteProvisioningTemplateVersionRequest *)request; /**

Deletes a provisioning template version.

Requires permission to access the DeleteProvisioningTemplateVersion action.

@param request A container for the necessary parameters to execute the DeleteProvisioningTemplateVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`, `AWSIoTErrorDeleteConflict`. @see AWSIoTDeleteProvisioningTemplateVersionRequest @see AWSIoTDeleteProvisioningTemplateVersionResponse */ - (void)deleteProvisioningTemplateVersion:(AWSIoTDeleteProvisioningTemplateVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteProvisioningTemplateVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a CA certificate registration code.

Requires permission to access the DeleteRegistrationCode action.

@param request A container for the necessary parameters to execute the DeleteRegistrationCode service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteRegistrationCodeResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteRegistrationCodeRequest @see AWSIoTDeleteRegistrationCodeResponse */ - (AWSTask *)deleteRegistrationCode:(AWSIoTDeleteRegistrationCodeRequest *)request; /**

Deletes a CA certificate registration code.

Requires permission to access the DeleteRegistrationCode action.

@param request A container for the necessary parameters to execute the DeleteRegistrationCode service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteRegistrationCodeRequest @see AWSIoTDeleteRegistrationCodeResponse */ - (void)deleteRegistrationCode:(AWSIoTDeleteRegistrationCodeRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteRegistrationCodeResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a role alias

Requires permission to access the DeleteRoleAlias action.

@param request A container for the necessary parameters to execute the DeleteRoleAlias service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteRoleAliasResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDeleteRoleAliasRequest @see AWSIoTDeleteRoleAliasResponse */ - (AWSTask *)deleteRoleAlias:(AWSIoTDeleteRoleAliasRequest *)request; /**

Deletes a role alias

Requires permission to access the DeleteRoleAlias action.

@param request A container for the necessary parameters to execute the DeleteRoleAlias service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDeleteRoleAliasRequest @see AWSIoTDeleteRoleAliasResponse */ - (void)deleteRoleAlias:(AWSIoTDeleteRoleAliasRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteRoleAliasResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a scheduled audit.

Requires permission to access the DeleteScheduledAudit action.

@param request A container for the necessary parameters to execute the DeleteScheduledAudit service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteScheduledAuditResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteScheduledAuditRequest @see AWSIoTDeleteScheduledAuditResponse */ - (AWSTask *)deleteScheduledAudit:(AWSIoTDeleteScheduledAuditRequest *)request; /**

Deletes a scheduled audit.

Requires permission to access the DeleteScheduledAudit action.

@param request A container for the necessary parameters to execute the DeleteScheduledAudit service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteScheduledAuditRequest @see AWSIoTDeleteScheduledAuditResponse */ - (void)deleteScheduledAudit:(AWSIoTDeleteScheduledAuditRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteScheduledAuditResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a Device Defender security profile.

Requires permission to access the DeleteSecurityProfile action.

@param request A container for the necessary parameters to execute the DeleteSecurityProfile service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteSecurityProfileResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorVersionConflict`. @see AWSIoTDeleteSecurityProfileRequest @see AWSIoTDeleteSecurityProfileResponse */ - (AWSTask *)deleteSecurityProfile:(AWSIoTDeleteSecurityProfileRequest *)request; /**

Deletes a Device Defender security profile.

Requires permission to access the DeleteSecurityProfile action.

@param request A container for the necessary parameters to execute the DeleteSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorVersionConflict`. @see AWSIoTDeleteSecurityProfileRequest @see AWSIoTDeleteSecurityProfileResponse */ - (void)deleteSecurityProfile:(AWSIoTDeleteSecurityProfileRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteSecurityProfileResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a stream.

Requires permission to access the DeleteStream action.

@param request A container for the necessary parameters to execute the DeleteStream service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteStreamResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorDeleteConflict`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteStreamRequest @see AWSIoTDeleteStreamResponse */ - (AWSTask *)deleteStream:(AWSIoTDeleteStreamRequest *)request; /**

Deletes a stream.

Requires permission to access the DeleteStream action.

@param request A container for the necessary parameters to execute the DeleteStream service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorDeleteConflict`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteStreamRequest @see AWSIoTDeleteStreamResponse */ - (void)deleteStream:(AWSIoTDeleteStreamRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteStreamResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeleteThing service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteThingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteThingRequest @see AWSIoTDeleteThingResponse */ - (AWSTask *)deleteThing:(AWSIoTDeleteThingRequest *)request; /**

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 request A container for the necessary parameters to execute the DeleteThing service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteThingRequest @see AWSIoTDeleteThingResponse */ - (void)deleteThing:(AWSIoTDeleteThingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteThingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a thing group.

Requires permission to access the DeleteThingGroup action.

@param request A container for the necessary parameters to execute the DeleteThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteThingGroupRequest @see AWSIoTDeleteThingGroupResponse */ - (AWSTask *)deleteThingGroup:(AWSIoTDeleteThingGroupRequest *)request; /**

Deletes a thing group.

Requires permission to access the DeleteThingGroup action.

@param request A container for the necessary parameters to execute the DeleteThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteThingGroupRequest @see AWSIoTDeleteThingGroupResponse */ - (void)deleteThingGroup:(AWSIoTDeleteThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 request A container for the necessary parameters to execute the DeleteThingType service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteThingTypeResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteThingTypeRequest @see AWSIoTDeleteThingTypeResponse */ - (AWSTask *)deleteThingType:(AWSIoTDeleteThingTypeRequest *)request; /**

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 request A container for the necessary parameters to execute the DeleteThingType service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeleteThingTypeRequest @see AWSIoTDeleteThingTypeResponse */ - (void)deleteThingType:(AWSIoTDeleteThingTypeRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteThingTypeResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes the rule.

Requires permission to access the DeleteTopicRule action.

@param request A container for the necessary parameters to execute the DeleteTopicRule service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTDeleteTopicRuleRequest */ - (AWSTask *)deleteTopicRule:(AWSIoTDeleteTopicRuleRequest *)request; /**

Deletes the rule.

Requires permission to access the DeleteTopicRule action.

@param request A container for the necessary parameters to execute the DeleteTopicRule service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTDeleteTopicRuleRequest */ - (void)deleteTopicRule:(AWSIoTDeleteTopicRuleRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Deletes a topic rule destination.

Requires permission to access the DeleteTopicRuleDestination action.

@param request A container for the necessary parameters to execute the DeleteTopicRuleDestination service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteTopicRuleDestinationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTDeleteTopicRuleDestinationRequest @see AWSIoTDeleteTopicRuleDestinationResponse */ - (AWSTask *)deleteTopicRuleDestination:(AWSIoTDeleteTopicRuleDestinationRequest *)request; /**

Deletes a topic rule destination.

Requires permission to access the DeleteTopicRuleDestination action.

@param request A container for the necessary parameters to execute the DeleteTopicRuleDestination service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTDeleteTopicRuleDestinationRequest @see AWSIoTDeleteTopicRuleDestinationResponse */ - (void)deleteTopicRuleDestination:(AWSIoTDeleteTopicRuleDestinationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteTopicRuleDestinationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a logging level.

Requires permission to access the DeleteV2LoggingLevel action.

@param request A container for the necessary parameters to execute the DeleteV2LoggingLevel service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDeleteV2LoggingLevelRequest */ - (AWSTask *)deleteV2LoggingLevel:(AWSIoTDeleteV2LoggingLevelRequest *)request; /**

Deletes a logging level.

Requires permission to access the DeleteV2LoggingLevel action.

@param request A container for the necessary parameters to execute the DeleteV2LoggingLevel service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDeleteV2LoggingLevelRequest */ - (void)deleteV2LoggingLevel:(AWSIoTDeleteV2LoggingLevelRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Deprecates a thing type. You can not associate new things with deprecated thing type.

Requires permission to access the DeprecateThingType action.

@param request A container for the necessary parameters to execute the DeprecateThingType service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeprecateThingTypeResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeprecateThingTypeRequest @see AWSIoTDeprecateThingTypeResponse */ - (AWSTask *)deprecateThingType:(AWSIoTDeprecateThingTypeRequest *)request; /**

Deprecates a thing type. You can not associate new things with deprecated thing type.

Requires permission to access the DeprecateThingType action.

@param request A container for the necessary parameters to execute the DeprecateThingType service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDeprecateThingTypeRequest @see AWSIoTDeprecateThingTypeResponse */ - (void)deprecateThingType:(AWSIoTDeprecateThingTypeRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeprecateThingTypeResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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 DescribeAccountAuditConfiguration action.

@param request A container for the necessary parameters to execute the DescribeAccountAuditConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeAccountAuditConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAccountAuditConfigurationRequest @see AWSIoTDescribeAccountAuditConfigurationResponse */ - (AWSTask *)describeAccountAuditConfiguration:(AWSIoTDescribeAccountAuditConfigurationRequest *)request; /**

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 DescribeAccountAuditConfiguration action.

@param request A container for the necessary parameters to execute the DescribeAccountAuditConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAccountAuditConfigurationRequest @see AWSIoTDescribeAccountAuditConfigurationResponse */ - (void)describeAccountAuditConfiguration:(AWSIoTDescribeAccountAuditConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeAccountAuditConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a single audit finding. Properties include the reason for noncompliance, the severity of the issue, and the start time when the audit that returned the finding.

Requires permission to access the DescribeAuditFinding action.

@param request A container for the necessary parameters to execute the DescribeAuditFinding service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeAuditFindingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuditFindingRequest @see AWSIoTDescribeAuditFindingResponse */ - (AWSTask *)describeAuditFinding:(AWSIoTDescribeAuditFindingRequest *)request; /**

Gets information about a single audit finding. Properties include the reason for noncompliance, the severity of the issue, and the start time when the audit that returned the finding.

Requires permission to access the DescribeAuditFinding action.

@param request A container for the necessary parameters to execute the DescribeAuditFinding service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuditFindingRequest @see AWSIoTDescribeAuditFindingResponse */ - (void)describeAuditFinding:(AWSIoTDescribeAuditFindingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeAuditFindingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about an audit mitigation task that is used to apply mitigation actions to a set of audit findings. Properties include the actions being applied, the audit checks to which they're being applied, the task status, and aggregated task statistics.

@param request A container for the necessary parameters to execute the DescribeAuditMitigationActionsTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeAuditMitigationActionsTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuditMitigationActionsTaskRequest @see AWSIoTDescribeAuditMitigationActionsTaskResponse */ - (AWSTask *)describeAuditMitigationActionsTask:(AWSIoTDescribeAuditMitigationActionsTaskRequest *)request; /**

Gets information about an audit mitigation task that is used to apply mitigation actions to a set of audit findings. Properties include the actions being applied, the audit checks to which they're being applied, the task status, and aggregated task statistics.

@param request A container for the necessary parameters to execute the DescribeAuditMitigationActionsTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuditMitigationActionsTaskRequest @see AWSIoTDescribeAuditMitigationActionsTaskResponse */ - (void)describeAuditMitigationActionsTask:(AWSIoTDescribeAuditMitigationActionsTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeAuditMitigationActionsTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a Device Defender audit suppression.

@param request A container for the necessary parameters to execute the DescribeAuditSuppression service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeAuditSuppressionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuditSuppressionRequest @see AWSIoTDescribeAuditSuppressionResponse */ - (AWSTask *)describeAuditSuppression:(AWSIoTDescribeAuditSuppressionRequest *)request; /**

Gets information about a Device Defender audit suppression.

@param request A container for the necessary parameters to execute the DescribeAuditSuppression service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuditSuppressionRequest @see AWSIoTDescribeAuditSuppressionResponse */ - (void)describeAuditSuppression:(AWSIoTDescribeAuditSuppressionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeAuditSuppressionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a Device Defender audit.

Requires permission to access the DescribeAuditTask action.

@param request A container for the necessary parameters to execute the DescribeAuditTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeAuditTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuditTaskRequest @see AWSIoTDescribeAuditTaskResponse */ - (AWSTask *)describeAuditTask:(AWSIoTDescribeAuditTaskRequest *)request; /**

Gets information about a Device Defender audit.

Requires permission to access the DescribeAuditTask action.

@param request A container for the necessary parameters to execute the DescribeAuditTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuditTaskRequest @see AWSIoTDescribeAuditTaskResponse */ - (void)describeAuditTask:(AWSIoTDescribeAuditTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeAuditTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes an authorizer.

Requires permission to access the DescribeAuthorizer action.

@param request A container for the necessary parameters to execute the DescribeAuthorizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeAuthorizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuthorizerRequest @see AWSIoTDescribeAuthorizerResponse */ - (AWSTask *)describeAuthorizer:(AWSIoTDescribeAuthorizerRequest *)request; /**

Describes an authorizer.

Requires permission to access the DescribeAuthorizer action.

@param request A container for the necessary parameters to execute the DescribeAuthorizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeAuthorizerRequest @see AWSIoTDescribeAuthorizerResponse */ - (void)describeAuthorizer:(AWSIoTDescribeAuthorizerRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeAuthorizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns information about a billing group.

Requires permission to access the DescribeBillingGroup action.

@param request A container for the necessary parameters to execute the DescribeBillingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeBillingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeBillingGroupRequest @see AWSIoTDescribeBillingGroupResponse */ - (AWSTask *)describeBillingGroup:(AWSIoTDescribeBillingGroupRequest *)request; /**

Returns information about a billing group.

Requires permission to access the DescribeBillingGroup action.

@param request A container for the necessary parameters to execute the DescribeBillingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeBillingGroupRequest @see AWSIoTDescribeBillingGroupResponse */ - (void)describeBillingGroup:(AWSIoTDescribeBillingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeBillingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes a registered CA certificate.

Requires permission to access the DescribeCACertificate action.

@param request A container for the necessary parameters to execute the DescribeCACertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeCACertificateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeCACertificateRequest @see AWSIoTDescribeCACertificateResponse */ - (AWSTask *)describeCACertificate:(AWSIoTDescribeCACertificateRequest *)request; /**

Describes a registered CA certificate.

Requires permission to access the DescribeCACertificate action.

@param request A container for the necessary parameters to execute the DescribeCACertificate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeCACertificateRequest @see AWSIoTDescribeCACertificateResponse */ - (void)describeCACertificate:(AWSIoTDescribeCACertificateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeCACertificateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the specified certificate.

Requires permission to access the DescribeCertificate action.

@param request A container for the necessary parameters to execute the DescribeCertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeCertificateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeCertificateRequest @see AWSIoTDescribeCertificateResponse */ - (AWSTask *)describeCertificate:(AWSIoTDescribeCertificateRequest *)request; /**

Gets information about the specified certificate.

Requires permission to access the DescribeCertificate action.

@param request A container for the necessary parameters to execute the DescribeCertificate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeCertificateRequest @see AWSIoTDescribeCertificateResponse */ - (void)describeCertificate:(AWSIoTDescribeCertificateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeCertificateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a Device Defender detect custom metric.

Requires permission to access the DescribeCustomMetric action.

@param request A container for the necessary parameters to execute the DescribeCustomMetric service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeCustomMetricResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeCustomMetricRequest @see AWSIoTDescribeCustomMetricResponse */ - (AWSTask *)describeCustomMetric:(AWSIoTDescribeCustomMetricRequest *)request; /**

Gets information about a Device Defender detect custom metric.

Requires permission to access the DescribeCustomMetric action.

@param request A container for the necessary parameters to execute the DescribeCustomMetric service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeCustomMetricRequest @see AWSIoTDescribeCustomMetricResponse */ - (void)describeCustomMetric:(AWSIoTDescribeCustomMetricRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeCustomMetricResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes the default authorizer.

Requires permission to access the DescribeDefaultAuthorizer action.

@param request A container for the necessary parameters to execute the DescribeDefaultAuthorizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeDefaultAuthorizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeDefaultAuthorizerRequest @see AWSIoTDescribeDefaultAuthorizerResponse */ - (AWSTask *)describeDefaultAuthorizer:(AWSIoTDescribeDefaultAuthorizerRequest *)request; /**

Describes the default authorizer.

Requires permission to access the DescribeDefaultAuthorizer action.

@param request A container for the necessary parameters to execute the DescribeDefaultAuthorizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeDefaultAuthorizerRequest @see AWSIoTDescribeDefaultAuthorizerResponse */ - (void)describeDefaultAuthorizer:(AWSIoTDescribeDefaultAuthorizerRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeDefaultAuthorizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a Device Defender ML Detect mitigation action.

Requires permission to access the DescribeDetectMitigationActionsTask action.

@param request A container for the necessary parameters to execute the DescribeDetectMitigationActionsTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeDetectMitigationActionsTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeDetectMitigationActionsTaskRequest @see AWSIoTDescribeDetectMitigationActionsTaskResponse */ - (AWSTask *)describeDetectMitigationActionsTask:(AWSIoTDescribeDetectMitigationActionsTaskRequest *)request; /**

Gets information about a Device Defender ML Detect mitigation action.

Requires permission to access the DescribeDetectMitigationActionsTask action.

@param request A container for the necessary parameters to execute the DescribeDetectMitigationActionsTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeDetectMitigationActionsTaskRequest @see AWSIoTDescribeDetectMitigationActionsTaskResponse */ - (void)describeDetectMitigationActionsTask:(AWSIoTDescribeDetectMitigationActionsTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeDetectMitigationActionsTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Provides details about a dimension that is defined in your Amazon Web Services accounts.

Requires permission to access the DescribeDimension action.

@param request A container for the necessary parameters to execute the DescribeDimension service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeDimensionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTDescribeDimensionRequest @see AWSIoTDescribeDimensionResponse */ - (AWSTask *)describeDimension:(AWSIoTDescribeDimensionRequest *)request; /**

Provides details about a dimension that is defined in your Amazon Web Services accounts.

Requires permission to access the DescribeDimension action.

@param request A container for the necessary parameters to execute the DescribeDimension service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTDescribeDimensionRequest @see AWSIoTDescribeDimensionResponse */ - (void)describeDimension:(AWSIoTDescribeDimensionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeDimensionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets summary information about a domain configuration.

Requires permission to access the DescribeDomainConfiguration action.

@param request A container for the necessary parameters to execute the DescribeDomainConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeDomainConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeDomainConfigurationRequest @see AWSIoTDescribeDomainConfigurationResponse */ - (AWSTask *)describeDomainConfiguration:(AWSIoTDescribeDomainConfigurationRequest *)request; /**

Gets summary information about a domain configuration.

Requires permission to access the DescribeDomainConfiguration action.

@param request A container for the necessary parameters to execute the DescribeDomainConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeDomainConfigurationRequest @see AWSIoTDescribeDomainConfigurationResponse */ - (void)describeDomainConfiguration:(AWSIoTDescribeDomainConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeDomainConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns a unique endpoint specific to the Amazon Web Services account making the call.

Requires permission to access the DescribeEndpoint action.

@param request A container for the necessary parameters to execute the DescribeEndpoint service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeEndpointResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorThrottling`. @see AWSIoTDescribeEndpointRequest @see AWSIoTDescribeEndpointResponse */ - (AWSTask *)describeEndpoint:(AWSIoTDescribeEndpointRequest *)request; /**

Returns a unique endpoint specific to the Amazon Web Services account making the call.

Requires permission to access the DescribeEndpoint action.

@param request A container for the necessary parameters to execute the DescribeEndpoint service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorThrottling`. @see AWSIoTDescribeEndpointRequest @see AWSIoTDescribeEndpointResponse */ - (void)describeEndpoint:(AWSIoTDescribeEndpointRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeEndpointResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes event configurations.

Requires permission to access the DescribeEventConfigurations action.

@param request A container for the necessary parameters to execute the DescribeEventConfigurations service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeEventConfigurationsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorThrottling`. @see AWSIoTDescribeEventConfigurationsRequest @see AWSIoTDescribeEventConfigurationsResponse */ - (AWSTask *)describeEventConfigurations:(AWSIoTDescribeEventConfigurationsRequest *)request; /**

Describes event configurations.

Requires permission to access the DescribeEventConfigurations action.

@param request A container for the necessary parameters to execute the DescribeEventConfigurations service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorThrottling`. @see AWSIoTDescribeEventConfigurationsRequest @see AWSIoTDescribeEventConfigurationsResponse */ - (void)describeEventConfigurations:(AWSIoTDescribeEventConfigurationsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeEventConfigurationsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the specified fleet metric.

Requires permission to access the DescribeFleetMetric action.

@param request A container for the necessary parameters to execute the DescribeFleetMetric service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeFleetMetricResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeFleetMetricRequest @see AWSIoTDescribeFleetMetricResponse */ - (AWSTask *)describeFleetMetric:(AWSIoTDescribeFleetMetricRequest *)request; /**

Gets information about the specified fleet metric.

Requires permission to access the DescribeFleetMetric action.

@param request A container for the necessary parameters to execute the DescribeFleetMetric service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeFleetMetricRequest @see AWSIoTDescribeFleetMetricResponse */ - (void)describeFleetMetric:(AWSIoTDescribeFleetMetricRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeFleetMetricResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes a search index.

Requires permission to access the DescribeIndex action.

@param request A container for the necessary parameters to execute the DescribeIndex service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeIndexResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeIndexRequest @see AWSIoTDescribeIndexResponse */ - (AWSTask *)describeIndex:(AWSIoTDescribeIndexRequest *)request; /**

Describes a search index.

Requires permission to access the DescribeIndex action.

@param request A container for the necessary parameters to execute the DescribeIndex service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeIndexRequest @see AWSIoTDescribeIndexResponse */ - (void)describeIndex:(AWSIoTDescribeIndexRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeIndexResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes a job.

Requires permission to access the DescribeJob action.

@param request A container for the necessary parameters to execute the DescribeJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDescribeJobRequest @see AWSIoTDescribeJobResponse */ - (AWSTask *)describeJob:(AWSIoTDescribeJobRequest *)request; /**

Describes a job.

Requires permission to access the DescribeJob action.

@param request A container for the necessary parameters to execute the DescribeJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDescribeJobRequest @see AWSIoTDescribeJobResponse */ - (void)describeJob:(AWSIoTDescribeJobRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes a job execution.

Requires permission to access the DescribeJobExecution action.

@param request A container for the necessary parameters to execute the DescribeJobExecution service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeJobExecutionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDescribeJobExecutionRequest @see AWSIoTDescribeJobExecutionResponse */ - (AWSTask *)describeJobExecution:(AWSIoTDescribeJobExecutionRequest *)request; /**

Describes a job execution.

Requires permission to access the DescribeJobExecution action.

@param request A container for the necessary parameters to execute the DescribeJobExecution service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTDescribeJobExecutionRequest @see AWSIoTDescribeJobExecutionResponse */ - (void)describeJobExecution:(AWSIoTDescribeJobExecutionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeJobExecutionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns information about a job template.

@param request A container for the necessary parameters to execute the DescribeJobTemplate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeJobTemplateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeJobTemplateRequest @see AWSIoTDescribeJobTemplateResponse */ - (AWSTask *)describeJobTemplate:(AWSIoTDescribeJobTemplateRequest *)request; /**

Returns information about a job template.

@param request A container for the necessary parameters to execute the DescribeJobTemplate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeJobTemplateRequest @see AWSIoTDescribeJobTemplateResponse */ - (void)describeJobTemplate:(AWSIoTDescribeJobTemplateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeJobTemplateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

View details of a managed job template.

@param request A container for the necessary parameters to execute the DescribeManagedJobTemplate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeManagedJobTemplateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`. @see AWSIoTDescribeManagedJobTemplateRequest @see AWSIoTDescribeManagedJobTemplateResponse */ - (AWSTask *)describeManagedJobTemplate:(AWSIoTDescribeManagedJobTemplateRequest *)request; /**

View details of a managed job template.

@param request A container for the necessary parameters to execute the DescribeManagedJobTemplate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`. @see AWSIoTDescribeManagedJobTemplateRequest @see AWSIoTDescribeManagedJobTemplateResponse */ - (void)describeManagedJobTemplate:(AWSIoTDescribeManagedJobTemplateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeManagedJobTemplateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a mitigation action.

Requires permission to access the DescribeMitigationAction action.

@param request A container for the necessary parameters to execute the DescribeMitigationAction service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeMitigationActionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeMitigationActionRequest @see AWSIoTDescribeMitigationActionResponse */ - (AWSTask *)describeMitigationAction:(AWSIoTDescribeMitigationActionRequest *)request; /**

Gets information about a mitigation action.

Requires permission to access the DescribeMitigationAction action.

@param request A container for the necessary parameters to execute the DescribeMitigationAction service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeMitigationActionRequest @see AWSIoTDescribeMitigationActionResponse */ - (void)describeMitigationAction:(AWSIoTDescribeMitigationActionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeMitigationActionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns information about a provisioning template.

Requires permission to access the DescribeProvisioningTemplate action.

@param request A container for the necessary parameters to execute the DescribeProvisioningTemplate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeProvisioningTemplateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`. @see AWSIoTDescribeProvisioningTemplateRequest @see AWSIoTDescribeProvisioningTemplateResponse */ - (AWSTask *)describeProvisioningTemplate:(AWSIoTDescribeProvisioningTemplateRequest *)request; /**

Returns information about a provisioning template.

Requires permission to access the DescribeProvisioningTemplate action.

@param request A container for the necessary parameters to execute the DescribeProvisioningTemplate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`. @see AWSIoTDescribeProvisioningTemplateRequest @see AWSIoTDescribeProvisioningTemplateResponse */ - (void)describeProvisioningTemplate:(AWSIoTDescribeProvisioningTemplateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeProvisioningTemplateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns information about a provisioning template version.

Requires permission to access the DescribeProvisioningTemplateVersion action.

@param request A container for the necessary parameters to execute the DescribeProvisioningTemplateVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeProvisioningTemplateVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`. @see AWSIoTDescribeProvisioningTemplateVersionRequest @see AWSIoTDescribeProvisioningTemplateVersionResponse */ - (AWSTask *)describeProvisioningTemplateVersion:(AWSIoTDescribeProvisioningTemplateVersionRequest *)request; /**

Returns information about a provisioning template version.

Requires permission to access the DescribeProvisioningTemplateVersion action.

@param request A container for the necessary parameters to execute the DescribeProvisioningTemplateVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`. @see AWSIoTDescribeProvisioningTemplateVersionRequest @see AWSIoTDescribeProvisioningTemplateVersionResponse */ - (void)describeProvisioningTemplateVersion:(AWSIoTDescribeProvisioningTemplateVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeProvisioningTemplateVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes a role alias.

Requires permission to access the DescribeRoleAlias action.

@param request A container for the necessary parameters to execute the DescribeRoleAlias service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeRoleAliasResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeRoleAliasRequest @see AWSIoTDescribeRoleAliasResponse */ - (AWSTask *)describeRoleAlias:(AWSIoTDescribeRoleAliasRequest *)request; /**

Describes a role alias.

Requires permission to access the DescribeRoleAlias action.

@param request A container for the necessary parameters to execute the DescribeRoleAlias service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeRoleAliasRequest @see AWSIoTDescribeRoleAliasResponse */ - (void)describeRoleAlias:(AWSIoTDescribeRoleAliasRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeRoleAliasResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a scheduled audit.

Requires permission to access the DescribeScheduledAudit action.

@param request A container for the necessary parameters to execute the DescribeScheduledAudit service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeScheduledAuditResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeScheduledAuditRequest @see AWSIoTDescribeScheduledAuditResponse */ - (AWSTask *)describeScheduledAudit:(AWSIoTDescribeScheduledAuditRequest *)request; /**

Gets information about a scheduled audit.

Requires permission to access the DescribeScheduledAudit action.

@param request A container for the necessary parameters to execute the DescribeScheduledAudit service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeScheduledAuditRequest @see AWSIoTDescribeScheduledAuditResponse */ - (void)describeScheduledAudit:(AWSIoTDescribeScheduledAuditRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeScheduledAuditResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a Device Defender security profile.

Requires permission to access the DescribeSecurityProfile action.

@param request A container for the necessary parameters to execute the DescribeSecurityProfile service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeSecurityProfileResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeSecurityProfileRequest @see AWSIoTDescribeSecurityProfileResponse */ - (AWSTask *)describeSecurityProfile:(AWSIoTDescribeSecurityProfileRequest *)request; /**

Gets information about a Device Defender security profile.

Requires permission to access the DescribeSecurityProfile action.

@param request A container for the necessary parameters to execute the DescribeSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeSecurityProfileRequest @see AWSIoTDescribeSecurityProfileResponse */ - (void)describeSecurityProfile:(AWSIoTDescribeSecurityProfileRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeSecurityProfileResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a stream.

Requires permission to access the DescribeStream action.

@param request A container for the necessary parameters to execute the DescribeStream service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeStreamResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeStreamRequest @see AWSIoTDescribeStreamResponse */ - (AWSTask *)describeStream:(AWSIoTDescribeStreamRequest *)request; /**

Gets information about a stream.

Requires permission to access the DescribeStream action.

@param request A container for the necessary parameters to execute the DescribeStream service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeStreamRequest @see AWSIoTDescribeStreamResponse */ - (void)describeStream:(AWSIoTDescribeStreamRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeStreamResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the specified thing.

Requires permission to access the DescribeThing action.

@param request A container for the necessary parameters to execute the DescribeThing service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeThingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeThingRequest @see AWSIoTDescribeThingResponse */ - (AWSTask *)describeThing:(AWSIoTDescribeThingRequest *)request; /**

Gets information about the specified thing.

Requires permission to access the DescribeThing action.

@param request A container for the necessary parameters to execute the DescribeThing service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeThingRequest @see AWSIoTDescribeThingResponse */ - (void)describeThing:(AWSIoTDescribeThingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeThingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describe a thing group.

Requires permission to access the DescribeThingGroup action.

@param request A container for the necessary parameters to execute the DescribeThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeThingGroupRequest @see AWSIoTDescribeThingGroupResponse */ - (AWSTask *)describeThingGroup:(AWSIoTDescribeThingGroupRequest *)request; /**

Describe a thing group.

Requires permission to access the DescribeThingGroup action.

@param request A container for the necessary parameters to execute the DescribeThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeThingGroupRequest @see AWSIoTDescribeThingGroupResponse */ - (void)describeThingGroup:(AWSIoTDescribeThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Describes a bulk thing provisioning task.

Requires permission to access the DescribeThingRegistrationTask action.

@param request A container for the necessary parameters to execute the DescribeThingRegistrationTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeThingRegistrationTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeThingRegistrationTaskRequest @see AWSIoTDescribeThingRegistrationTaskResponse */ - (AWSTask *)describeThingRegistrationTask:(AWSIoTDescribeThingRegistrationTaskRequest *)request; /**

Describes a bulk thing provisioning task.

Requires permission to access the DescribeThingRegistrationTask action.

@param request A container for the necessary parameters to execute the DescribeThingRegistrationTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTDescribeThingRegistrationTaskRequest @see AWSIoTDescribeThingRegistrationTaskResponse */ - (void)describeThingRegistrationTask:(AWSIoTDescribeThingRegistrationTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeThingRegistrationTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the specified thing type.

Requires permission to access the DescribeThingType action.

@param request A container for the necessary parameters to execute the DescribeThingType service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeThingTypeResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeThingTypeRequest @see AWSIoTDescribeThingTypeResponse */ - (AWSTask *)describeThingType:(AWSIoTDescribeThingTypeRequest *)request; /**

Gets information about the specified thing type.

Requires permission to access the DescribeThingType action.

@param request A container for the necessary parameters to execute the DescribeThingType service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDescribeThingTypeRequest @see AWSIoTDescribeThingTypeResponse */ - (void)describeThingType:(AWSIoTDescribeThingTypeRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeThingTypeResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Detaches a policy from the specified target.

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 DetachPolicy action.

@param request A container for the necessary parameters to execute the DetachPolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTDetachPolicyRequest */ - (AWSTask *)detachPolicy:(AWSIoTDetachPolicyRequest *)request; /**

Detaches a policy from the specified target.

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 DetachPolicy action.

@param request A container for the necessary parameters to execute the DetachPolicy service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTDetachPolicyRequest */ - (void)detachPolicy:(AWSIoTDetachPolicyRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Removes the specified policy from the specified certificate.

Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use DetachPolicy instead.

Requires permission to access the DetachPrincipalPolicy action.

@param request A container for the necessary parameters to execute the DetachPrincipalPolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDetachPrincipalPolicyRequest */ - (AWSTask *)detachPrincipalPolicy:(AWSIoTDetachPrincipalPolicyRequest *)request; /**

Removes the specified policy from the specified certificate.

Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use DetachPolicy instead.

Requires permission to access the DetachPrincipalPolicy action.

@param request A container for the necessary parameters to execute the DetachPrincipalPolicy service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDetachPrincipalPolicyRequest */ - (void)detachPrincipalPolicy:(AWSIoTDetachPrincipalPolicyRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Disassociates a Device Defender security profile from a thing group or from this account.

Requires permission to access the DetachSecurityProfile action.

@param request A container for the necessary parameters to execute the DetachSecurityProfile service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDetachSecurityProfileResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDetachSecurityProfileRequest @see AWSIoTDetachSecurityProfileResponse */ - (AWSTask *)detachSecurityProfile:(AWSIoTDetachSecurityProfileRequest *)request; /**

Disassociates a Device Defender security profile from a thing group or from this account.

Requires permission to access the DetachSecurityProfile action.

@param request A container for the necessary parameters to execute the DetachSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTDetachSecurityProfileRequest @see AWSIoTDetachSecurityProfileResponse */ - (void)detachSecurityProfile:(AWSIoTDetachSecurityProfileRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDetachSecurityProfileResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Detaches the specified principal from the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

This call is asynchronous. It might take several seconds for the detachment to propagate.

Requires permission to access the DetachThingPrincipal action.

@param request A container for the necessary parameters to execute the DetachThingPrincipal service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDetachThingPrincipalResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDetachThingPrincipalRequest @see AWSIoTDetachThingPrincipalResponse */ - (AWSTask *)detachThingPrincipal:(AWSIoTDetachThingPrincipalRequest *)request; /**

Detaches the specified principal from the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

This call is asynchronous. It might take several seconds for the detachment to propagate.

Requires permission to access the DetachThingPrincipal action.

@param request A container for the necessary parameters to execute the DetachThingPrincipal service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTDetachThingPrincipalRequest @see AWSIoTDetachThingPrincipalResponse */ - (void)detachThingPrincipal:(AWSIoTDetachThingPrincipalRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDetachThingPrincipalResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Disables the rule.

Requires permission to access the DisableTopicRule action.

@param request A container for the necessary parameters to execute the DisableTopicRule service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTDisableTopicRuleRequest */ - (AWSTask *)disableTopicRule:(AWSIoTDisableTopicRuleRequest *)request; /**

Disables the rule.

Requires permission to access the DisableTopicRule action.

@param request A container for the necessary parameters to execute the DisableTopicRule service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTDisableTopicRuleRequest */ - (void)disableTopicRule:(AWSIoTDisableTopicRuleRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Enables the rule.

Requires permission to access the EnableTopicRule action.

@param request A container for the necessary parameters to execute the EnableTopicRule service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTEnableTopicRuleRequest */ - (AWSTask *)enableTopicRule:(AWSIoTEnableTopicRuleRequest *)request; /**

Enables the rule.

Requires permission to access the EnableTopicRule action.

@param request A container for the necessary parameters to execute the EnableTopicRule service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTEnableTopicRuleRequest */ - (void)enableTopicRule:(AWSIoTEnableTopicRuleRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Returns a Device Defender's ML Detect Security Profile training model's status.

Requires permission to access the GetBehaviorModelTrainingSummaries action.

@param request A container for the necessary parameters to execute the GetBehaviorModelTrainingSummaries service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetBehaviorModelTrainingSummariesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTGetBehaviorModelTrainingSummariesRequest @see AWSIoTGetBehaviorModelTrainingSummariesResponse */ - (AWSTask *)getBehaviorModelTrainingSummaries:(AWSIoTGetBehaviorModelTrainingSummariesRequest *)request; /**

Returns a Device Defender's ML Detect Security Profile training model's status.

Requires permission to access the GetBehaviorModelTrainingSummaries action.

@param request A container for the necessary parameters to execute the GetBehaviorModelTrainingSummaries service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTGetBehaviorModelTrainingSummariesRequest @see AWSIoTGetBehaviorModelTrainingSummariesResponse */ - (void)getBehaviorModelTrainingSummaries:(AWSIoTGetBehaviorModelTrainingSummariesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetBehaviorModelTrainingSummariesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Aggregates on indexed data with search queries pertaining to particular fields.

Requires permission to access the GetBucketsAggregation action.

@param request A container for the necessary parameters to execute the GetBucketsAggregation service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetBucketsAggregationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTGetBucketsAggregationRequest @see AWSIoTGetBucketsAggregationResponse */ - (AWSTask *)getBucketsAggregation:(AWSIoTGetBucketsAggregationRequest *)request; /**

Aggregates on indexed data with search queries pertaining to particular fields.

Requires permission to access the GetBucketsAggregation action.

@param request A container for the necessary parameters to execute the GetBucketsAggregation service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTGetBucketsAggregationRequest @see AWSIoTGetBucketsAggregationResponse */ - (void)getBucketsAggregation:(AWSIoTGetBucketsAggregationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetBucketsAggregationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns the approximate count of unique values that match the query.

Requires permission to access the GetCardinality action.

@param request A container for the necessary parameters to execute the GetCardinality service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetCardinalityResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTGetCardinalityRequest @see AWSIoTGetCardinalityResponse */ - (AWSTask *)getCardinality:(AWSIoTGetCardinalityRequest *)request; /**

Returns the approximate count of unique values that match the query.

Requires permission to access the GetCardinality action.

@param request A container for the necessary parameters to execute the GetCardinality service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTGetCardinalityRequest @see AWSIoTGetCardinalityResponse */ - (void)getCardinality:(AWSIoTGetCardinalityRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetCardinalityResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the policies that have an effect on the authorization behavior of the specified device when it connects to the IoT device gateway.

Requires permission to access the GetEffectivePolicies action.

@param request A container for the necessary parameters to execute the GetEffectivePolicies service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetEffectivePoliciesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTGetEffectivePoliciesRequest @see AWSIoTGetEffectivePoliciesResponse */ - (AWSTask *)getEffectivePolicies:(AWSIoTGetEffectivePoliciesRequest *)request; /**

Gets a list of the policies that have an effect on the authorization behavior of the specified device when it connects to the IoT device gateway.

Requires permission to access the GetEffectivePolicies action.

@param request A container for the necessary parameters to execute the GetEffectivePolicies service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTGetEffectivePoliciesRequest @see AWSIoTGetEffectivePoliciesResponse */ - (void)getEffectivePolicies:(AWSIoTGetEffectivePoliciesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetEffectivePoliciesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the indexing configuration.

Requires permission to access the GetIndexingConfiguration action.

@param request A container for the necessary parameters to execute the GetIndexingConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetIndexingConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTGetIndexingConfigurationRequest @see AWSIoTGetIndexingConfigurationResponse */ - (AWSTask *)getIndexingConfiguration:(AWSIoTGetIndexingConfigurationRequest *)request; /**

Gets the indexing configuration.

Requires permission to access the GetIndexingConfiguration action.

@param request A container for the necessary parameters to execute the GetIndexingConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTGetIndexingConfigurationRequest @see AWSIoTGetIndexingConfigurationResponse */ - (void)getIndexingConfiguration:(AWSIoTGetIndexingConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetIndexingConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a job document.

Requires permission to access the GetJobDocument action.

@param request A container for the necessary parameters to execute the GetJobDocument service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetJobDocumentResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTGetJobDocumentRequest @see AWSIoTGetJobDocumentResponse */ - (AWSTask *)getJobDocument:(AWSIoTGetJobDocumentRequest *)request; /**

Gets a job document.

Requires permission to access the GetJobDocument action.

@param request A container for the necessary parameters to execute the GetJobDocument service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTGetJobDocumentRequest @see AWSIoTGetJobDocumentResponse */ - (void)getJobDocument:(AWSIoTGetJobDocumentRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetJobDocumentResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the logging options.

NOTE: use of this command is not recommended. Use GetV2LoggingOptions instead.

Requires permission to access the GetLoggingOptions action.

@param request A container for the necessary parameters to execute the GetLoggingOptions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetLoggingOptionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTGetLoggingOptionsRequest @see AWSIoTGetLoggingOptionsResponse */ - (AWSTask *)getLoggingOptions:(AWSIoTGetLoggingOptionsRequest *)request; /**

Gets the logging options.

NOTE: use of this command is not recommended. Use GetV2LoggingOptions instead.

Requires permission to access the GetLoggingOptions action.

@param request A container for the necessary parameters to execute the GetLoggingOptions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTGetLoggingOptionsRequest @see AWSIoTGetLoggingOptionsResponse */ - (void)getLoggingOptions:(AWSIoTGetLoggingOptionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetLoggingOptionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets an OTA update.

Requires permission to access the GetOTAUpdate action.

@param request A container for the necessary parameters to execute the GetOTAUpdate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetOTAUpdateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorResourceNotFound`. @see AWSIoTGetOTAUpdateRequest @see AWSIoTGetOTAUpdateResponse */ - (AWSTask *)getOTAUpdate:(AWSIoTGetOTAUpdateRequest *)request; /**

Gets an OTA update.

Requires permission to access the GetOTAUpdate action.

@param request A container for the necessary parameters to execute the GetOTAUpdate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorResourceNotFound`. @see AWSIoTGetOTAUpdateRequest @see AWSIoTGetOTAUpdateResponse */ - (void)getOTAUpdate:(AWSIoTGetOTAUpdateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetOTAUpdateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the specified software package.

Requires permission to access the GetPackage action.

@param request A container for the necessary parameters to execute the GetPackage service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetPackageResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorResourceNotFound`. @see AWSIoTGetPackageRequest @see AWSIoTGetPackageResponse */ - (AWSTask *)getPackage:(AWSIoTGetPackageRequest *)request; /**

Gets information about the specified software package.

Requires permission to access the GetPackage action.

@param request A container for the necessary parameters to execute the GetPackage service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorResourceNotFound`. @see AWSIoTGetPackageRequest @see AWSIoTGetPackageResponse */ - (void)getPackage:(AWSIoTGetPackageRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetPackageResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the specified software package's configuration.

Requires permission to access the GetPackageConfiguration action.

@param request A container for the necessary parameters to execute the GetPackageConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetPackageConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`. @see AWSIoTGetPackageConfigurationRequest @see AWSIoTGetPackageConfigurationResponse */ - (AWSTask *)getPackageConfiguration:(AWSIoTGetPackageConfigurationRequest *)request; /**

Gets information about the specified software package's configuration.

Requires permission to access the GetPackageConfiguration action.

@param request A container for the necessary parameters to execute the GetPackageConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`. @see AWSIoTGetPackageConfigurationRequest @see AWSIoTGetPackageConfigurationResponse */ - (void)getPackageConfiguration:(AWSIoTGetPackageConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetPackageConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the specified package version.

Requires permission to access the GetPackageVersion action.

@param request A container for the necessary parameters to execute the GetPackageVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetPackageVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorResourceNotFound`. @see AWSIoTGetPackageVersionRequest @see AWSIoTGetPackageVersionResponse */ - (AWSTask *)getPackageVersion:(AWSIoTGetPackageVersionRequest *)request; /**

Gets information about the specified package version.

Requires permission to access the GetPackageVersion action.

@param request A container for the necessary parameters to execute the GetPackageVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorResourceNotFound`. @see AWSIoTGetPackageVersionRequest @see AWSIoTGetPackageVersionResponse */ - (void)getPackageVersion:(AWSIoTGetPackageVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetPackageVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Groups the aggregated values that match the query into percentile groupings. The default percentile groupings are: 1,5,25,50,75,95,99, although you can specify your own when you call GetPercentiles. This function returns a value for each percentile group specified (or the default percentile groupings). The percentile group "1" contains the aggregated field value that occurs in approximately one percent of the values that match the query. The percentile group "5" contains the aggregated field value that occurs in approximately five percent of the values that match the query, and so on. The result is an approximation, the more values that match the query, the more accurate the percentile values.

Requires permission to access the GetPercentiles action.

@param request A container for the necessary parameters to execute the GetPercentiles service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetPercentilesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTGetPercentilesRequest @see AWSIoTGetPercentilesResponse */ - (AWSTask *)getPercentiles:(AWSIoTGetPercentilesRequest *)request; /**

Groups the aggregated values that match the query into percentile groupings. The default percentile groupings are: 1,5,25,50,75,95,99, although you can specify your own when you call GetPercentiles. This function returns a value for each percentile group specified (or the default percentile groupings). The percentile group "1" contains the aggregated field value that occurs in approximately one percent of the values that match the query. The percentile group "5" contains the aggregated field value that occurs in approximately five percent of the values that match the query, and so on. The result is an approximation, the more values that match the query, the more accurate the percentile values.

Requires permission to access the GetPercentiles action.

@param request A container for the necessary parameters to execute the GetPercentiles service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTGetPercentilesRequest @see AWSIoTGetPercentilesResponse */ - (void)getPercentiles:(AWSIoTGetPercentilesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetPercentilesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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

Requires permission to access the GetPolicy action.

@param request A container for the necessary parameters to execute the GetPolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetPolicyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTGetPolicyRequest @see AWSIoTGetPolicyResponse */ - (AWSTask *)getPolicy:(AWSIoTGetPolicyRequest *)request; /**

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

Requires permission to access the GetPolicy action.

@param request A container for the necessary parameters to execute the GetPolicy service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTGetPolicyRequest @see AWSIoTGetPolicyResponse */ - (void)getPolicy:(AWSIoTGetPolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetPolicyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the specified policy version.

Requires permission to access the GetPolicyVersion action.

@param request A container for the necessary parameters to execute the GetPolicyVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetPolicyVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTGetPolicyVersionRequest @see AWSIoTGetPolicyVersionResponse */ - (AWSTask *)getPolicyVersion:(AWSIoTGetPolicyVersionRequest *)request; /**

Gets information about the specified policy version.

Requires permission to access the GetPolicyVersion action.

@param request A container for the necessary parameters to execute the GetPolicyVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTGetPolicyVersionRequest @see AWSIoTGetPolicyVersionResponse */ - (void)getPolicyVersion:(AWSIoTGetPolicyVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetPolicyVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a registration code used to register a CA certificate with IoT.

Requires permission to access the GetRegistrationCode action.

@param request A container for the necessary parameters to execute the GetRegistrationCode service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetRegistrationCodeResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`. @see AWSIoTGetRegistrationCodeRequest @see AWSIoTGetRegistrationCodeResponse */ - (AWSTask *)getRegistrationCode:(AWSIoTGetRegistrationCodeRequest *)request; /**

Gets a registration code used to register a CA certificate with IoT.

Requires permission to access the GetRegistrationCode action.

@param request A container for the necessary parameters to execute the GetRegistrationCode service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`. @see AWSIoTGetRegistrationCodeRequest @see AWSIoTGetRegistrationCodeResponse */ - (void)getRegistrationCode:(AWSIoTGetRegistrationCodeRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetRegistrationCodeResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns the count, average, sum, minimum, maximum, sum of squares, variance, and standard deviation for the specified aggregated field. If the aggregation field is of type String, only the count statistic is returned.

Requires permission to access the GetStatistics action.

@param request A container for the necessary parameters to execute the GetStatistics service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetStatisticsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTGetStatisticsRequest @see AWSIoTGetStatisticsResponse */ - (AWSTask *)getStatistics:(AWSIoTGetStatisticsRequest *)request; /**

Returns the count, average, sum, minimum, maximum, sum of squares, variance, and standard deviation for the specified aggregated field. If the aggregation field is of type String, only the count statistic is returned.

Requires permission to access the GetStatistics action.

@param request A container for the necessary parameters to execute the GetStatistics service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorIndexNotReady`. @see AWSIoTGetStatisticsRequest @see AWSIoTGetStatisticsResponse */ - (void)getStatistics:(AWSIoTGetStatisticsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetStatisticsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about the rule.

Requires permission to access the GetTopicRule action.

@param request A container for the necessary parameters to execute the GetTopicRule service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetTopicRuleResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`. @see AWSIoTGetTopicRuleRequest @see AWSIoTGetTopicRuleResponse */ - (AWSTask *)getTopicRule:(AWSIoTGetTopicRuleRequest *)request; /**

Gets information about the rule.

Requires permission to access the GetTopicRule action.

@param request A container for the necessary parameters to execute the GetTopicRule service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`. @see AWSIoTGetTopicRuleRequest @see AWSIoTGetTopicRuleResponse */ - (void)getTopicRule:(AWSIoTGetTopicRuleRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetTopicRuleResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets information about a topic rule destination.

Requires permission to access the GetTopicRuleDestination action.

@param request A container for the necessary parameters to execute the GetTopicRuleDestination service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetTopicRuleDestinationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`. @see AWSIoTGetTopicRuleDestinationRequest @see AWSIoTGetTopicRuleDestinationResponse */ - (AWSTask *)getTopicRuleDestination:(AWSIoTGetTopicRuleDestinationRequest *)request; /**

Gets information about a topic rule destination.

Requires permission to access the GetTopicRuleDestination action.

@param request A container for the necessary parameters to execute the GetTopicRuleDestination service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`. @see AWSIoTGetTopicRuleDestinationRequest @see AWSIoTGetTopicRuleDestinationResponse */ - (void)getTopicRuleDestination:(AWSIoTGetTopicRuleDestinationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetTopicRuleDestinationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the fine grained logging options.

Requires permission to access the GetV2LoggingOptions action.

@param request A container for the necessary parameters to execute the GetV2LoggingOptions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTGetV2LoggingOptionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorNotConfigured`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTGetV2LoggingOptionsRequest @see AWSIoTGetV2LoggingOptionsResponse */ - (AWSTask *)getV2LoggingOptions:(AWSIoTGetV2LoggingOptionsRequest *)request; /**

Gets the fine grained logging options.

Requires permission to access the GetV2LoggingOptions action.

@param request A container for the necessary parameters to execute the GetV2LoggingOptions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorNotConfigured`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTGetV2LoggingOptionsRequest @see AWSIoTGetV2LoggingOptionsResponse */ - (void)getV2LoggingOptions:(AWSIoTGetV2LoggingOptionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTGetV2LoggingOptionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the active violations for a given Device Defender security profile.

Requires permission to access the ListActiveViolations action.

@param request A container for the necessary parameters to execute the ListActiveViolations service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListActiveViolationsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListActiveViolationsRequest @see AWSIoTListActiveViolationsResponse */ - (AWSTask *)listActiveViolations:(AWSIoTListActiveViolationsRequest *)request; /**

Lists the active violations for a given Device Defender security profile.

Requires permission to access the ListActiveViolations action.

@param request A container for the necessary parameters to execute the ListActiveViolations service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListActiveViolationsRequest @see AWSIoTListActiveViolationsResponse */ - (void)listActiveViolations:(AWSIoTListActiveViolationsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListActiveViolationsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the policies attached to the specified thing group.

Requires permission to access the ListAttachedPolicies action.

@param request A container for the necessary parameters to execute the ListAttachedPolicies service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListAttachedPoliciesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTListAttachedPoliciesRequest @see AWSIoTListAttachedPoliciesResponse */ - (AWSTask *)listAttachedPolicies:(AWSIoTListAttachedPoliciesRequest *)request; /**

Lists the policies attached to the specified thing group.

Requires permission to access the ListAttachedPolicies action.

@param request A container for the necessary parameters to execute the ListAttachedPolicies service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTListAttachedPoliciesRequest @see AWSIoTListAttachedPoliciesResponse */ - (void)listAttachedPolicies:(AWSIoTListAttachedPoliciesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListAttachedPoliciesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the findings (results) of a Device Defender audit or of the audits performed during a specified time period. (Findings are retained for 90 days.)

Requires permission to access the ListAuditFindings action.

@param request A container for the necessary parameters to execute the ListAuditFindings service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListAuditFindingsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditFindingsRequest @see AWSIoTListAuditFindingsResponse */ - (AWSTask *)listAuditFindings:(AWSIoTListAuditFindingsRequest *)request; /**

Lists the findings (results) of a Device Defender audit or of the audits performed during a specified time period. (Findings are retained for 90 days.)

Requires permission to access the ListAuditFindings action.

@param request A container for the necessary parameters to execute the ListAuditFindings service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditFindingsRequest @see AWSIoTListAuditFindingsResponse */ - (void)listAuditFindings:(AWSIoTListAuditFindingsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListAuditFindingsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the status of audit mitigation action tasks that were executed.

Requires permission to access the ListAuditMitigationActionsExecutions action.

@param request A container for the necessary parameters to execute the ListAuditMitigationActionsExecutions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListAuditMitigationActionsExecutionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditMitigationActionsExecutionsRequest @see AWSIoTListAuditMitigationActionsExecutionsResponse */ - (AWSTask *)listAuditMitigationActionsExecutions:(AWSIoTListAuditMitigationActionsExecutionsRequest *)request; /**

Gets the status of audit mitigation action tasks that were executed.

Requires permission to access the ListAuditMitigationActionsExecutions action.

@param request A container for the necessary parameters to execute the ListAuditMitigationActionsExecutions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditMitigationActionsExecutionsRequest @see AWSIoTListAuditMitigationActionsExecutionsResponse */ - (void)listAuditMitigationActionsExecutions:(AWSIoTListAuditMitigationActionsExecutionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListAuditMitigationActionsExecutionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of audit mitigation action tasks that match the specified filters.

Requires permission to access the ListAuditMitigationActionsTasks action.

@param request A container for the necessary parameters to execute the ListAuditMitigationActionsTasks service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListAuditMitigationActionsTasksResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditMitigationActionsTasksRequest @see AWSIoTListAuditMitigationActionsTasksResponse */ - (AWSTask *)listAuditMitigationActionsTasks:(AWSIoTListAuditMitigationActionsTasksRequest *)request; /**

Gets a list of audit mitigation action tasks that match the specified filters.

Requires permission to access the ListAuditMitigationActionsTasks action.

@param request A container for the necessary parameters to execute the ListAuditMitigationActionsTasks service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditMitigationActionsTasksRequest @see AWSIoTListAuditMitigationActionsTasksResponse */ - (void)listAuditMitigationActionsTasks:(AWSIoTListAuditMitigationActionsTasksRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListAuditMitigationActionsTasksResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists your Device Defender audit listings.

Requires permission to access the ListAuditSuppressions action.

@param request A container for the necessary parameters to execute the ListAuditSuppressions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListAuditSuppressionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditSuppressionsRequest @see AWSIoTListAuditSuppressionsResponse */ - (AWSTask *)listAuditSuppressions:(AWSIoTListAuditSuppressionsRequest *)request; /**

Lists your Device Defender audit listings.

Requires permission to access the ListAuditSuppressions action.

@param request A container for the necessary parameters to execute the ListAuditSuppressions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditSuppressionsRequest @see AWSIoTListAuditSuppressionsResponse */ - (void)listAuditSuppressions:(AWSIoTListAuditSuppressionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListAuditSuppressionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the Device Defender audits that have been performed during a given time period.

Requires permission to access the ListAuditTasks action.

@param request A container for the necessary parameters to execute the ListAuditTasks service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListAuditTasksResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditTasksRequest @see AWSIoTListAuditTasksResponse */ - (AWSTask *)listAuditTasks:(AWSIoTListAuditTasksRequest *)request; /**

Lists the Device Defender audits that have been performed during a given time period.

Requires permission to access the ListAuditTasks action.

@param request A container for the necessary parameters to execute the ListAuditTasks service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuditTasksRequest @see AWSIoTListAuditTasksResponse */ - (void)listAuditTasks:(AWSIoTListAuditTasksRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListAuditTasksResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the authorizers registered in your account.

Requires permission to access the ListAuthorizers action.

@param request A container for the necessary parameters to execute the ListAuthorizers service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListAuthorizersResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuthorizersRequest @see AWSIoTListAuthorizersResponse */ - (AWSTask *)listAuthorizers:(AWSIoTListAuthorizersRequest *)request; /**

Lists the authorizers registered in your account.

Requires permission to access the ListAuthorizers action.

@param request A container for the necessary parameters to execute the ListAuthorizers service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListAuthorizersRequest @see AWSIoTListAuthorizersResponse */ - (void)listAuthorizers:(AWSIoTListAuthorizersRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListAuthorizersResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the billing groups you have created.

Requires permission to access the ListBillingGroups action.

@param request A container for the necessary parameters to execute the ListBillingGroups service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListBillingGroupsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListBillingGroupsRequest @see AWSIoTListBillingGroupsResponse */ - (AWSTask *)listBillingGroups:(AWSIoTListBillingGroupsRequest *)request; /**

Lists the billing groups you have created.

Requires permission to access the ListBillingGroups action.

@param request A container for the necessary parameters to execute the ListBillingGroups service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListBillingGroupsRequest @see AWSIoTListBillingGroupsResponse */ - (void)listBillingGroups:(AWSIoTListBillingGroupsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListBillingGroupsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the CA certificates registered for your Amazon Web Services account.

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

Requires permission to access the ListCACertificates action.

@param request A container for the necessary parameters to execute the ListCACertificates service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListCACertificatesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListCACertificatesRequest @see AWSIoTListCACertificatesResponse */ - (AWSTask *)listCACertificates:(AWSIoTListCACertificatesRequest *)request; /**

Lists the CA certificates registered for your Amazon Web Services account.

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

Requires permission to access the ListCACertificates action.

@param request A container for the necessary parameters to execute the ListCACertificates service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListCACertificatesRequest @see AWSIoTListCACertificatesResponse */ - (void)listCACertificates:(AWSIoTListCACertificatesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListCACertificatesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the certificates registered in your Amazon Web Services account.

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

Requires permission to access the ListCertificates action.

@param request A container for the necessary parameters to execute the ListCertificates service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListCertificatesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListCertificatesRequest @see AWSIoTListCertificatesResponse */ - (AWSTask *)listCertificates:(AWSIoTListCertificatesRequest *)request; /**

Lists the certificates registered in your Amazon Web Services account.

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

Requires permission to access the ListCertificates action.

@param request A container for the necessary parameters to execute the ListCertificates service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListCertificatesRequest @see AWSIoTListCertificatesResponse */ - (void)listCertificates:(AWSIoTListCertificatesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListCertificatesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

List the device certificates signed by the specified CA certificate.

Requires permission to access the ListCertificatesByCA action.

@param request A container for the necessary parameters to execute the ListCertificatesByCA service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListCertificatesByCAResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListCertificatesByCARequest @see AWSIoTListCertificatesByCAResponse */ - (AWSTask *)listCertificatesByCA:(AWSIoTListCertificatesByCARequest *)request; /**

List the device certificates signed by the specified CA certificate.

Requires permission to access the ListCertificatesByCA action.

@param request A container for the necessary parameters to execute the ListCertificatesByCA service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListCertificatesByCARequest @see AWSIoTListCertificatesByCAResponse */ - (void)listCertificatesByCA:(AWSIoTListCertificatesByCARequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListCertificatesByCAResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists your Device Defender detect custom metrics.

Requires permission to access the ListCustomMetrics action.

@param request A container for the necessary parameters to execute the ListCustomMetrics service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListCustomMetricsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListCustomMetricsRequest @see AWSIoTListCustomMetricsResponse */ - (AWSTask *)listCustomMetrics:(AWSIoTListCustomMetricsRequest *)request; /**

Lists your Device Defender detect custom metrics.

Requires permission to access the ListCustomMetrics action.

@param request A container for the necessary parameters to execute the ListCustomMetrics service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListCustomMetricsRequest @see AWSIoTListCustomMetricsResponse */ - (void)listCustomMetrics:(AWSIoTListCustomMetricsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListCustomMetricsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists mitigation actions executions for a Device Defender ML Detect Security Profile.

Requires permission to access the ListDetectMitigationActionsExecutions action.

@param request A container for the necessary parameters to execute the ListDetectMitigationActionsExecutions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListDetectMitigationActionsExecutionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListDetectMitigationActionsExecutionsRequest @see AWSIoTListDetectMitigationActionsExecutionsResponse */ - (AWSTask *)listDetectMitigationActionsExecutions:(AWSIoTListDetectMitigationActionsExecutionsRequest *)request; /**

Lists mitigation actions executions for a Device Defender ML Detect Security Profile.

Requires permission to access the ListDetectMitigationActionsExecutions action.

@param request A container for the necessary parameters to execute the ListDetectMitigationActionsExecutions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListDetectMitigationActionsExecutionsRequest @see AWSIoTListDetectMitigationActionsExecutionsResponse */ - (void)listDetectMitigationActionsExecutions:(AWSIoTListDetectMitigationActionsExecutionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListDetectMitigationActionsExecutionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

List of Device Defender ML Detect mitigation actions tasks.

Requires permission to access the ListDetectMitigationActionsTasks action.

@param request A container for the necessary parameters to execute the ListDetectMitigationActionsTasks service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListDetectMitigationActionsTasksResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListDetectMitigationActionsTasksRequest @see AWSIoTListDetectMitigationActionsTasksResponse */ - (AWSTask *)listDetectMitigationActionsTasks:(AWSIoTListDetectMitigationActionsTasksRequest *)request; /**

List of Device Defender ML Detect mitigation actions tasks.

Requires permission to access the ListDetectMitigationActionsTasks action.

@param request A container for the necessary parameters to execute the ListDetectMitigationActionsTasks service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListDetectMitigationActionsTasksRequest @see AWSIoTListDetectMitigationActionsTasksResponse */ - (void)listDetectMitigationActionsTasks:(AWSIoTListDetectMitigationActionsTasksRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListDetectMitigationActionsTasksResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

List the set of dimensions that are defined for your Amazon Web Services accounts.

Requires permission to access the ListDimensions action.

@param request A container for the necessary parameters to execute the ListDimensions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListDimensionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`. @see AWSIoTListDimensionsRequest @see AWSIoTListDimensionsResponse */ - (AWSTask *)listDimensions:(AWSIoTListDimensionsRequest *)request; /**

List the set of dimensions that are defined for your Amazon Web Services accounts.

Requires permission to access the ListDimensions action.

@param request A container for the necessary parameters to execute the ListDimensions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`. @see AWSIoTListDimensionsRequest @see AWSIoTListDimensionsResponse */ - (void)listDimensions:(AWSIoTListDimensionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListDimensionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of domain configurations for the user. This list is sorted alphabetically by domain configuration name.

Requires permission to access the ListDomainConfigurations action.

@param request A container for the necessary parameters to execute the ListDomainConfigurations service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListDomainConfigurationsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListDomainConfigurationsRequest @see AWSIoTListDomainConfigurationsResponse */ - (AWSTask *)listDomainConfigurations:(AWSIoTListDomainConfigurationsRequest *)request; /**

Gets a list of domain configurations for the user. This list is sorted alphabetically by domain configuration name.

Requires permission to access the ListDomainConfigurations action.

@param request A container for the necessary parameters to execute the ListDomainConfigurations service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListDomainConfigurationsRequest @see AWSIoTListDomainConfigurationsResponse */ - (void)listDomainConfigurations:(AWSIoTListDomainConfigurationsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListDomainConfigurationsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists all your fleet metrics.

Requires permission to access the ListFleetMetrics action.

@param request A container for the necessary parameters to execute the ListFleetMetrics service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListFleetMetricsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListFleetMetricsRequest @see AWSIoTListFleetMetricsResponse */ - (AWSTask *)listFleetMetrics:(AWSIoTListFleetMetricsRequest *)request; /**

Lists all your fleet metrics.

Requires permission to access the ListFleetMetrics action.

@param request A container for the necessary parameters to execute the ListFleetMetrics service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListFleetMetricsRequest @see AWSIoTListFleetMetricsResponse */ - (void)listFleetMetrics:(AWSIoTListFleetMetricsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListFleetMetricsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the search indices.

Requires permission to access the ListIndices action.

@param request A container for the necessary parameters to execute the ListIndices service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListIndicesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListIndicesRequest @see AWSIoTListIndicesResponse */ - (AWSTask *)listIndices:(AWSIoTListIndicesRequest *)request; /**

Lists the search indices.

Requires permission to access the ListIndices action.

@param request A container for the necessary parameters to execute the ListIndices service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListIndicesRequest @see AWSIoTListIndicesResponse */ - (void)listIndices:(AWSIoTListIndicesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListIndicesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the job executions for a job.

Requires permission to access the ListJobExecutionsForJob action.

@param request A container for the necessary parameters to execute the ListJobExecutionsForJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListJobExecutionsForJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListJobExecutionsForJobRequest @see AWSIoTListJobExecutionsForJobResponse */ - (AWSTask *)listJobExecutionsForJob:(AWSIoTListJobExecutionsForJobRequest *)request; /**

Lists the job executions for a job.

Requires permission to access the ListJobExecutionsForJob action.

@param request A container for the necessary parameters to execute the ListJobExecutionsForJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListJobExecutionsForJobRequest @see AWSIoTListJobExecutionsForJobResponse */ - (void)listJobExecutionsForJob:(AWSIoTListJobExecutionsForJobRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListJobExecutionsForJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the job executions for the specified thing.

Requires permission to access the ListJobExecutionsForThing action.

@param request A container for the necessary parameters to execute the ListJobExecutionsForThing service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListJobExecutionsForThingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListJobExecutionsForThingRequest @see AWSIoTListJobExecutionsForThingResponse */ - (AWSTask *)listJobExecutionsForThing:(AWSIoTListJobExecutionsForThingRequest *)request; /**

Lists the job executions for the specified thing.

Requires permission to access the ListJobExecutionsForThing action.

@param request A container for the necessary parameters to execute the ListJobExecutionsForThing service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListJobExecutionsForThingRequest @see AWSIoTListJobExecutionsForThingResponse */ - (void)listJobExecutionsForThing:(AWSIoTListJobExecutionsForThingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListJobExecutionsForThingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns a list of job templates.

Requires permission to access the ListJobTemplates action.

@param request A container for the necessary parameters to execute the ListJobTemplates service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListJobTemplatesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListJobTemplatesRequest @see AWSIoTListJobTemplatesResponse */ - (AWSTask *)listJobTemplates:(AWSIoTListJobTemplatesRequest *)request; /**

Returns a list of job templates.

Requires permission to access the ListJobTemplates action.

@param request A container for the necessary parameters to execute the ListJobTemplates service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListJobTemplatesRequest @see AWSIoTListJobTemplatesResponse */ - (void)listJobTemplates:(AWSIoTListJobTemplatesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListJobTemplatesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists jobs.

Requires permission to access the ListJobs action.

@param request A container for the necessary parameters to execute the ListJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListJobsRequest @see AWSIoTListJobsResponse */ - (AWSTask *)listJobs:(AWSIoTListJobsRequest *)request; /**

Lists jobs.

Requires permission to access the ListJobs action.

@param request A container for the necessary parameters to execute the ListJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListJobsRequest @see AWSIoTListJobsResponse */ - (void)listJobs:(AWSIoTListJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns a list of managed job templates.

@param request A container for the necessary parameters to execute the ListManagedJobTemplates service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListManagedJobTemplatesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`. @see AWSIoTListManagedJobTemplatesRequest @see AWSIoTListManagedJobTemplatesResponse */ - (AWSTask *)listManagedJobTemplates:(AWSIoTListManagedJobTemplatesRequest *)request; /**

Returns a list of managed job templates.

@param request A container for the necessary parameters to execute the ListManagedJobTemplates service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`. @see AWSIoTListManagedJobTemplatesRequest @see AWSIoTListManagedJobTemplatesResponse */ - (void)listManagedJobTemplates:(AWSIoTListManagedJobTemplatesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListManagedJobTemplatesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the values reported for an IoT Device Defender metric (device-side metric, cloud-side metric, or custom metric) by the given thing during the specified time period.

@param request A container for the necessary parameters to execute the ListMetricValues service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListMetricValuesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListMetricValuesRequest @see AWSIoTListMetricValuesResponse */ - (AWSTask *)listMetricValues:(AWSIoTListMetricValuesRequest *)request; /**

Lists the values reported for an IoT Device Defender metric (device-side metric, cloud-side metric, or custom metric) by the given thing during the specified time period.

@param request A container for the necessary parameters to execute the ListMetricValues service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListMetricValuesRequest @see AWSIoTListMetricValuesResponse */ - (void)listMetricValues:(AWSIoTListMetricValuesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListMetricValuesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of all mitigation actions that match the specified filter criteria.

Requires permission to access the ListMitigationActions action.

@param request A container for the necessary parameters to execute the ListMitigationActions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListMitigationActionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListMitigationActionsRequest @see AWSIoTListMitigationActionsResponse */ - (AWSTask *)listMitigationActions:(AWSIoTListMitigationActionsRequest *)request; /**

Gets a list of all mitigation actions that match the specified filter criteria.

Requires permission to access the ListMitigationActions action.

@param request A container for the necessary parameters to execute the ListMitigationActions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListMitigationActionsRequest @see AWSIoTListMitigationActionsResponse */ - (void)listMitigationActions:(AWSIoTListMitigationActionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListMitigationActionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists OTA updates.

Requires permission to access the ListOTAUpdates action.

@param request A container for the necessary parameters to execute the ListOTAUpdates service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListOTAUpdatesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListOTAUpdatesRequest @see AWSIoTListOTAUpdatesResponse */ - (AWSTask *)listOTAUpdates:(AWSIoTListOTAUpdatesRequest *)request; /**

Lists OTA updates.

Requires permission to access the ListOTAUpdates action.

@param request A container for the necessary parameters to execute the ListOTAUpdates service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListOTAUpdatesRequest @see AWSIoTListOTAUpdatesResponse */ - (void)listOTAUpdates:(AWSIoTListOTAUpdatesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListOTAUpdatesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists certificates that are being transferred but not yet accepted.

Requires permission to access the ListOutgoingCertificates action.

@param request A container for the necessary parameters to execute the ListOutgoingCertificates service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListOutgoingCertificatesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListOutgoingCertificatesRequest @see AWSIoTListOutgoingCertificatesResponse */ - (AWSTask *)listOutgoingCertificates:(AWSIoTListOutgoingCertificatesRequest *)request; /**

Lists certificates that are being transferred but not yet accepted.

Requires permission to access the ListOutgoingCertificates action.

@param request A container for the necessary parameters to execute the ListOutgoingCertificates service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListOutgoingCertificatesRequest @see AWSIoTListOutgoingCertificatesResponse */ - (void)listOutgoingCertificates:(AWSIoTListOutgoingCertificatesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListOutgoingCertificatesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the software package versions associated to the account.

Requires permission to access the ListPackageVersions action.

@param request A container for the necessary parameters to execute the ListPackageVersions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListPackageVersionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTListPackageVersionsRequest @see AWSIoTListPackageVersionsResponse */ - (AWSTask *)listPackageVersions:(AWSIoTListPackageVersionsRequest *)request; /**

Lists the software package versions associated to the account.

Requires permission to access the ListPackageVersions action.

@param request A container for the necessary parameters to execute the ListPackageVersions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTListPackageVersionsRequest @see AWSIoTListPackageVersionsResponse */ - (void)listPackageVersions:(AWSIoTListPackageVersionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListPackageVersionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the software packages associated to the account.

Requires permission to access the ListPackages action.

@param request A container for the necessary parameters to execute the ListPackages service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListPackagesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTListPackagesRequest @see AWSIoTListPackagesResponse */ - (AWSTask *)listPackages:(AWSIoTListPackagesRequest *)request; /**

Lists the software packages associated to the account.

Requires permission to access the ListPackages action.

@param request A container for the necessary parameters to execute the ListPackages service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTListPackagesRequest @see AWSIoTListPackagesResponse */ - (void)listPackages:(AWSIoTListPackagesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListPackagesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists your policies.

Requires permission to access the ListPolicies action.

@param request A container for the necessary parameters to execute the ListPolicies service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListPoliciesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListPoliciesRequest @see AWSIoTListPoliciesResponse */ - (AWSTask *)listPolicies:(AWSIoTListPoliciesRequest *)request; /**

Lists your policies.

Requires permission to access the ListPolicies action.

@param request A container for the necessary parameters to execute the ListPolicies service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListPoliciesRequest @see AWSIoTListPoliciesResponse */ - (void)listPolicies:(AWSIoTListPoliciesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListPoliciesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the principals associated with the specified policy.

Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListTargetsForPolicy instead.

Requires permission to access the ListPolicyPrincipals action.

@param request A container for the necessary parameters to execute the ListPolicyPrincipals service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListPolicyPrincipalsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListPolicyPrincipalsRequest @see AWSIoTListPolicyPrincipalsResponse */ - (AWSTask *)listPolicyPrincipals:(AWSIoTListPolicyPrincipalsRequest *)request; /**

Lists the principals associated with the specified policy.

Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListTargetsForPolicy instead.

Requires permission to access the ListPolicyPrincipals action.

@param request A container for the necessary parameters to execute the ListPolicyPrincipals service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListPolicyPrincipalsRequest @see AWSIoTListPolicyPrincipalsResponse */ - (void)listPolicyPrincipals:(AWSIoTListPolicyPrincipalsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListPolicyPrincipalsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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

Requires permission to access the ListPolicyVersions action.

@param request A container for the necessary parameters to execute the ListPolicyVersions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListPolicyVersionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListPolicyVersionsRequest @see AWSIoTListPolicyVersionsResponse */ - (AWSTask *)listPolicyVersions:(AWSIoTListPolicyVersionsRequest *)request; /**

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

Requires permission to access the ListPolicyVersions action.

@param request A container for the necessary parameters to execute the ListPolicyVersions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListPolicyVersionsRequest @see AWSIoTListPolicyVersionsResponse */ - (void)listPolicyVersions:(AWSIoTListPolicyVersionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListPolicyVersionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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

Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListAttachedPolicies instead.

Requires permission to access the ListPrincipalPolicies action.

@param request A container for the necessary parameters to execute the ListPrincipalPolicies service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListPrincipalPoliciesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListPrincipalPoliciesRequest @see AWSIoTListPrincipalPoliciesResponse */ - (AWSTask *)listPrincipalPolicies:(AWSIoTListPrincipalPoliciesRequest *)request; /**

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

Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListAttachedPolicies instead.

Requires permission to access the ListPrincipalPolicies action.

@param request A container for the necessary parameters to execute the ListPrincipalPolicies service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListPrincipalPoliciesRequest @see AWSIoTListPrincipalPoliciesResponse */ - (void)listPrincipalPolicies:(AWSIoTListPrincipalPoliciesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListPrincipalPoliciesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the things associated with the specified principal. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

Requires permission to access the ListPrincipalThings action.

@param request A container for the necessary parameters to execute the ListPrincipalThings service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListPrincipalThingsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListPrincipalThingsRequest @see AWSIoTListPrincipalThingsResponse */ - (AWSTask *)listPrincipalThings:(AWSIoTListPrincipalThingsRequest *)request; /**

Lists the things associated with the specified principal. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

Requires permission to access the ListPrincipalThings action.

@param request A container for the necessary parameters to execute the ListPrincipalThings service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListPrincipalThingsRequest @see AWSIoTListPrincipalThingsResponse */ - (void)listPrincipalThings:(AWSIoTListPrincipalThingsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListPrincipalThingsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

A list of provisioning template versions.

Requires permission to access the ListProvisioningTemplateVersions action.

@param request A container for the necessary parameters to execute the ListProvisioningTemplateVersions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListProvisioningTemplateVersionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`. @see AWSIoTListProvisioningTemplateVersionsRequest @see AWSIoTListProvisioningTemplateVersionsResponse */ - (AWSTask *)listProvisioningTemplateVersions:(AWSIoTListProvisioningTemplateVersionsRequest *)request; /**

A list of provisioning template versions.

Requires permission to access the ListProvisioningTemplateVersions action.

@param request A container for the necessary parameters to execute the ListProvisioningTemplateVersions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`. @see AWSIoTListProvisioningTemplateVersionsRequest @see AWSIoTListProvisioningTemplateVersionsResponse */ - (void)listProvisioningTemplateVersions:(AWSIoTListProvisioningTemplateVersionsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListProvisioningTemplateVersionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the provisioning templates in your Amazon Web Services account.

Requires permission to access the ListProvisioningTemplates action.

@param request A container for the necessary parameters to execute the ListProvisioningTemplates service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListProvisioningTemplatesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`. @see AWSIoTListProvisioningTemplatesRequest @see AWSIoTListProvisioningTemplatesResponse */ - (AWSTask *)listProvisioningTemplates:(AWSIoTListProvisioningTemplatesRequest *)request; /**

Lists the provisioning templates in your Amazon Web Services account.

Requires permission to access the ListProvisioningTemplates action.

@param request A container for the necessary parameters to execute the ListProvisioningTemplates service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`. @see AWSIoTListProvisioningTemplatesRequest @see AWSIoTListProvisioningTemplatesResponse */ - (void)listProvisioningTemplates:(AWSIoTListProvisioningTemplatesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListProvisioningTemplatesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

The related resources of an Audit finding. The following resources can be returned from calling this API:

  • DEVICE_CERTIFICATE

  • CA_CERTIFICATE

  • IOT_POLICY

  • COGNITO_IDENTITY_POOL

  • CLIENT_ID

  • ACCOUNT_SETTINGS

  • ROLE_ALIAS

  • IAM_ROLE

  • ISSUER_CERTIFICATE

This API is similar to DescribeAuditFinding's RelatedResources but provides pagination and is not limited to 10 resources. When calling DescribeAuditFinding for the intermediate CA revoked for active device certificates check, RelatedResources will not be populated. You must use this API, ListRelatedResourcesForAuditFinding, to list the certificates.

@param request A container for the necessary parameters to execute the ListRelatedResourcesForAuditFinding service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListRelatedResourcesForAuditFindingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListRelatedResourcesForAuditFindingRequest @see AWSIoTListRelatedResourcesForAuditFindingResponse */ - (AWSTask *)listRelatedResourcesForAuditFinding:(AWSIoTListRelatedResourcesForAuditFindingRequest *)request; /**

The related resources of an Audit finding. The following resources can be returned from calling this API:

  • DEVICE_CERTIFICATE

  • CA_CERTIFICATE

  • IOT_POLICY

  • COGNITO_IDENTITY_POOL

  • CLIENT_ID

  • ACCOUNT_SETTINGS

  • ROLE_ALIAS

  • IAM_ROLE

  • ISSUER_CERTIFICATE

This API is similar to DescribeAuditFinding's RelatedResources but provides pagination and is not limited to 10 resources. When calling DescribeAuditFinding for the intermediate CA revoked for active device certificates check, RelatedResources will not be populated. You must use this API, ListRelatedResourcesForAuditFinding, to list the certificates.

@param request A container for the necessary parameters to execute the ListRelatedResourcesForAuditFinding service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListRelatedResourcesForAuditFindingRequest @see AWSIoTListRelatedResourcesForAuditFindingResponse */ - (void)listRelatedResourcesForAuditFinding:(AWSIoTListRelatedResourcesForAuditFindingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListRelatedResourcesForAuditFindingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the role aliases registered in your account.

Requires permission to access the ListRoleAliases action.

@param request A container for the necessary parameters to execute the ListRoleAliases service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListRoleAliasesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListRoleAliasesRequest @see AWSIoTListRoleAliasesResponse */ - (AWSTask *)listRoleAliases:(AWSIoTListRoleAliasesRequest *)request; /**

Lists the role aliases registered in your account.

Requires permission to access the ListRoleAliases action.

@param request A container for the necessary parameters to execute the ListRoleAliases service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListRoleAliasesRequest @see AWSIoTListRoleAliasesResponse */ - (void)listRoleAliases:(AWSIoTListRoleAliasesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListRoleAliasesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists all of your scheduled audits.

Requires permission to access the ListScheduledAudits action.

@param request A container for the necessary parameters to execute the ListScheduledAudits service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListScheduledAuditsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListScheduledAuditsRequest @see AWSIoTListScheduledAuditsResponse */ - (AWSTask *)listScheduledAudits:(AWSIoTListScheduledAuditsRequest *)request; /**

Lists all of your scheduled audits.

Requires permission to access the ListScheduledAudits action.

@param request A container for the necessary parameters to execute the ListScheduledAudits service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListScheduledAuditsRequest @see AWSIoTListScheduledAuditsResponse */ - (void)listScheduledAudits:(AWSIoTListScheduledAuditsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListScheduledAuditsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the Device Defender security profiles you've created. You can filter security profiles by dimension or custom metric.

Requires permission to access the ListSecurityProfiles action.

dimensionName and metricName cannot be used in the same request.

@param request A container for the necessary parameters to execute the ListSecurityProfiles service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListSecurityProfilesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListSecurityProfilesRequest @see AWSIoTListSecurityProfilesResponse */ - (AWSTask *)listSecurityProfiles:(AWSIoTListSecurityProfilesRequest *)request; /**

Lists the Device Defender security profiles you've created. You can filter security profiles by dimension or custom metric.

Requires permission to access the ListSecurityProfiles action.

dimensionName and metricName cannot be used in the same request.

@param request A container for the necessary parameters to execute the ListSecurityProfiles service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListSecurityProfilesRequest @see AWSIoTListSecurityProfilesResponse */ - (void)listSecurityProfiles:(AWSIoTListSecurityProfilesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListSecurityProfilesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the Device Defender security profiles attached to a target (thing group).

Requires permission to access the ListSecurityProfilesForTarget action.

@param request A container for the necessary parameters to execute the ListSecurityProfilesForTarget service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListSecurityProfilesForTargetResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListSecurityProfilesForTargetRequest @see AWSIoTListSecurityProfilesForTargetResponse */ - (AWSTask *)listSecurityProfilesForTarget:(AWSIoTListSecurityProfilesForTargetRequest *)request; /**

Lists the Device Defender security profiles attached to a target (thing group).

Requires permission to access the ListSecurityProfilesForTarget action.

@param request A container for the necessary parameters to execute the ListSecurityProfilesForTarget service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListSecurityProfilesForTargetRequest @see AWSIoTListSecurityProfilesForTargetResponse */ - (void)listSecurityProfilesForTarget:(AWSIoTListSecurityProfilesForTargetRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListSecurityProfilesForTargetResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists all of the streams in your Amazon Web Services account.

Requires permission to access the ListStreams action.

@param request A container for the necessary parameters to execute the ListStreams service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListStreamsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListStreamsRequest @see AWSIoTListStreamsResponse */ - (AWSTask *)listStreams:(AWSIoTListStreamsRequest *)request; /**

Lists all of the streams in your Amazon Web Services account.

Requires permission to access the ListStreams action.

@param request A container for the necessary parameters to execute the ListStreams service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListStreamsRequest @see AWSIoTListStreamsResponse */ - (void)listStreams:(AWSIoTListStreamsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListStreamsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the tags (metadata) you have assigned to the resource.

Requires permission to access the ListTagsForResource action.

@param request A container for the necessary parameters to execute the ListTagsForResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListTagsForResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListTagsForResourceRequest @see AWSIoTListTagsForResourceResponse */ - (AWSTask *)listTagsForResource:(AWSIoTListTagsForResourceRequest *)request; /**

Lists the tags (metadata) you have assigned to the resource.

Requires permission to access the ListTagsForResource action.

@param request A container for the necessary parameters to execute the ListTagsForResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListTagsForResourceRequest @see AWSIoTListTagsForResourceResponse */ - (void)listTagsForResource:(AWSIoTListTagsForResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListTagsForResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

List targets for the specified policy.

Requires permission to access the ListTargetsForPolicy action.

@param request A container for the necessary parameters to execute the ListTargetsForPolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListTargetsForPolicyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTListTargetsForPolicyRequest @see AWSIoTListTargetsForPolicyResponse */ - (AWSTask *)listTargetsForPolicy:(AWSIoTListTargetsForPolicyRequest *)request; /**

List targets for the specified policy.

Requires permission to access the ListTargetsForPolicy action.

@param request A container for the necessary parameters to execute the ListTargetsForPolicy service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTListTargetsForPolicyRequest @see AWSIoTListTargetsForPolicyResponse */ - (void)listTargetsForPolicy:(AWSIoTListTargetsForPolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListTargetsForPolicyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the targets (thing groups) associated with a given Device Defender security profile.

Requires permission to access the ListTargetsForSecurityProfile action.

@param request A container for the necessary parameters to execute the ListTargetsForSecurityProfile service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListTargetsForSecurityProfileResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListTargetsForSecurityProfileRequest @see AWSIoTListTargetsForSecurityProfileResponse */ - (AWSTask *)listTargetsForSecurityProfile:(AWSIoTListTargetsForSecurityProfileRequest *)request; /**

Lists the targets (thing groups) associated with a given Device Defender security profile.

Requires permission to access the ListTargetsForSecurityProfile action.

@param request A container for the necessary parameters to execute the ListTargetsForSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListTargetsForSecurityProfileRequest @see AWSIoTListTargetsForSecurityProfileResponse */ - (void)listTargetsForSecurityProfile:(AWSIoTListTargetsForSecurityProfileRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListTargetsForSecurityProfileResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

List the thing groups in your account.

Requires permission to access the ListThingGroups action.

@param request A container for the necessary parameters to execute the ListThingGroups service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingGroupsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListThingGroupsRequest @see AWSIoTListThingGroupsResponse */ - (AWSTask *)listThingGroups:(AWSIoTListThingGroupsRequest *)request; /**

List the thing groups in your account.

Requires permission to access the ListThingGroups action.

@param request A container for the necessary parameters to execute the ListThingGroups service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListThingGroupsRequest @see AWSIoTListThingGroupsResponse */ - (void)listThingGroups:(AWSIoTListThingGroupsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingGroupsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

List the thing groups to which the specified thing belongs.

Requires permission to access the ListThingGroupsForThing action.

@param request A container for the necessary parameters to execute the ListThingGroupsForThing service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingGroupsForThingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListThingGroupsForThingRequest @see AWSIoTListThingGroupsForThingResponse */ - (AWSTask *)listThingGroupsForThing:(AWSIoTListThingGroupsForThingRequest *)request; /**

List the thing groups to which the specified thing belongs.

Requires permission to access the ListThingGroupsForThing action.

@param request A container for the necessary parameters to execute the ListThingGroupsForThing service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListThingGroupsForThingRequest @see AWSIoTListThingGroupsForThingResponse */ - (void)listThingGroupsForThing:(AWSIoTListThingGroupsForThingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingGroupsForThingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the principals associated with the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

Requires permission to access the ListThingPrincipals action.

@param request A container for the necessary parameters to execute the ListThingPrincipals service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingPrincipalsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListThingPrincipalsRequest @see AWSIoTListThingPrincipalsResponse */ - (AWSTask *)listThingPrincipals:(AWSIoTListThingPrincipalsRequest *)request; /**

Lists the principals associated with the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

Requires permission to access the ListThingPrincipals action.

@param request A container for the necessary parameters to execute the ListThingPrincipals service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTListThingPrincipalsRequest @see AWSIoTListThingPrincipalsResponse */ - (void)listThingPrincipals:(AWSIoTListThingPrincipalsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingPrincipalsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Information about the thing registration tasks.

@param request A container for the necessary parameters to execute the ListThingRegistrationTaskReports service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingRegistrationTaskReportsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`. @see AWSIoTListThingRegistrationTaskReportsRequest @see AWSIoTListThingRegistrationTaskReportsResponse */ - (AWSTask *)listThingRegistrationTaskReports:(AWSIoTListThingRegistrationTaskReportsRequest *)request; /**

Information about the thing registration tasks.

@param request A container for the necessary parameters to execute the ListThingRegistrationTaskReports service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`. @see AWSIoTListThingRegistrationTaskReportsRequest @see AWSIoTListThingRegistrationTaskReportsResponse */ - (void)listThingRegistrationTaskReports:(AWSIoTListThingRegistrationTaskReportsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingRegistrationTaskReportsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

List bulk thing provisioning tasks.

Requires permission to access the ListThingRegistrationTasks action.

@param request A container for the necessary parameters to execute the ListThingRegistrationTasks service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingRegistrationTasksResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`. @see AWSIoTListThingRegistrationTasksRequest @see AWSIoTListThingRegistrationTasksResponse */ - (AWSTask *)listThingRegistrationTasks:(AWSIoTListThingRegistrationTasksRequest *)request; /**

List bulk thing provisioning tasks.

Requires permission to access the ListThingRegistrationTasks action.

@param request A container for the necessary parameters to execute the ListThingRegistrationTasks service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`. @see AWSIoTListThingRegistrationTasksRequest @see AWSIoTListThingRegistrationTasksResponse */ - (void)listThingRegistrationTasks:(AWSIoTListThingRegistrationTasksRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingRegistrationTasksResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the existing thing types.

Requires permission to access the ListThingTypes action.

@param request A container for the necessary parameters to execute the ListThingTypes service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingTypesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListThingTypesRequest @see AWSIoTListThingTypesResponse */ - (AWSTask *)listThingTypes:(AWSIoTListThingTypesRequest *)request; /**

Lists the existing thing types.

Requires permission to access the ListThingTypes action.

@param request A container for the necessary parameters to execute the ListThingTypes service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListThingTypesRequest @see AWSIoTListThingTypesResponse */ - (void)listThingTypes:(AWSIoTListThingTypesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingTypesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists your things. Use the attributeName and attributeValue parameters to filter your things. For example, calling ListThings with attributeName=Color and attributeValue=Red retrieves all things in the registry that contain an attribute Color with the value Red. For more information, see List Things from the Amazon Web Services IoT Core Developer Guide.

Requires permission to access the ListThings action.

You will not be charged for calling this API if an Access denied error is returned. You will also not be charged if no attributes or pagination token was provided in request and no pagination token and no results were returned.

@param request A container for the necessary parameters to execute the ListThings service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListThingsRequest @see AWSIoTListThingsResponse */ - (AWSTask *)listThings:(AWSIoTListThingsRequest *)request; /**

Lists your things. Use the attributeName and attributeValue parameters to filter your things. For example, calling ListThings with attributeName=Color and attributeValue=Red retrieves all things in the registry that contain an attribute Color with the value Red. For more information, see List Things from the Amazon Web Services IoT Core Developer Guide.

Requires permission to access the ListThings action.

You will not be charged for calling this API if an Access denied error is returned. You will also not be charged if no attributes or pagination token was provided in request and no pagination token and no results were returned.

@param request A container for the necessary parameters to execute the ListThings service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTListThingsRequest @see AWSIoTListThingsResponse */ - (void)listThings:(AWSIoTListThingsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the things you have added to the given billing group.

Requires permission to access the ListThingsInBillingGroup action.

@param request A container for the necessary parameters to execute the ListThingsInBillingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingsInBillingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListThingsInBillingGroupRequest @see AWSIoTListThingsInBillingGroupResponse */ - (AWSTask *)listThingsInBillingGroup:(AWSIoTListThingsInBillingGroupRequest *)request; /**

Lists the things you have added to the given billing group.

Requires permission to access the ListThingsInBillingGroup action.

@param request A container for the necessary parameters to execute the ListThingsInBillingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListThingsInBillingGroupRequest @see AWSIoTListThingsInBillingGroupResponse */ - (void)listThingsInBillingGroup:(AWSIoTListThingsInBillingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingsInBillingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the things in the specified group.

Requires permission to access the ListThingsInThingGroup action.

@param request A container for the necessary parameters to execute the ListThingsInThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListThingsInThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListThingsInThingGroupRequest @see AWSIoTListThingsInThingGroupResponse */ - (AWSTask *)listThingsInThingGroup:(AWSIoTListThingsInThingGroupRequest *)request; /**

Lists the things in the specified group.

Requires permission to access the ListThingsInThingGroup action.

@param request A container for the necessary parameters to execute the ListThingsInThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTListThingsInThingGroupRequest @see AWSIoTListThingsInThingGroupResponse */ - (void)listThingsInThingGroup:(AWSIoTListThingsInThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListThingsInThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists all the topic rule destinations in your Amazon Web Services account.

Requires permission to access the ListTopicRuleDestinations action.

@param request A container for the necessary parameters to execute the ListTopicRuleDestinations service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListTopicRuleDestinationsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`. @see AWSIoTListTopicRuleDestinationsRequest @see AWSIoTListTopicRuleDestinationsResponse */ - (AWSTask *)listTopicRuleDestinations:(AWSIoTListTopicRuleDestinationsRequest *)request; /**

Lists all the topic rule destinations in your Amazon Web Services account.

Requires permission to access the ListTopicRuleDestinations action.

@param request A container for the necessary parameters to execute the ListTopicRuleDestinations service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`. @see AWSIoTListTopicRuleDestinationsRequest @see AWSIoTListTopicRuleDestinationsResponse */ - (void)listTopicRuleDestinations:(AWSIoTListTopicRuleDestinationsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListTopicRuleDestinationsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the rules for the specific topic.

Requires permission to access the ListTopicRules action.

@param request A container for the necessary parameters to execute the ListTopicRules service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListTopicRulesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListTopicRulesRequest @see AWSIoTListTopicRulesResponse */ - (AWSTask *)listTopicRules:(AWSIoTListTopicRulesRequest *)request; /**

Lists the rules for the specific topic.

Requires permission to access the ListTopicRules action.

@param request A container for the necessary parameters to execute the ListTopicRules service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListTopicRulesRequest @see AWSIoTListTopicRulesResponse */ - (void)listTopicRules:(AWSIoTListTopicRulesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListTopicRulesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists logging levels.

Requires permission to access the ListV2LoggingLevels action.

@param request A container for the necessary parameters to execute the ListV2LoggingLevels service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListV2LoggingLevelsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorNotConfigured`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListV2LoggingLevelsRequest @see AWSIoTListV2LoggingLevelsResponse */ - (AWSTask *)listV2LoggingLevels:(AWSIoTListV2LoggingLevelsRequest *)request; /**

Lists logging levels.

Requires permission to access the ListV2LoggingLevels action.

@param request A container for the necessary parameters to execute the ListV2LoggingLevels service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorNotConfigured`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTListV2LoggingLevelsRequest @see AWSIoTListV2LoggingLevelsResponse */ - (void)listV2LoggingLevels:(AWSIoTListV2LoggingLevelsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListV2LoggingLevelsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the Device Defender security profile violations discovered during the given time period. You can use filters to limit the results to those alerts issued for a particular security profile, behavior, or thing (device).

Requires permission to access the ListViolationEvents action.

@param request A container for the necessary parameters to execute the ListViolationEvents service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListViolationEventsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListViolationEventsRequest @see AWSIoTListViolationEventsResponse */ - (AWSTask *)listViolationEvents:(AWSIoTListViolationEventsRequest *)request; /**

Lists the Device Defender security profile violations discovered during the given time period. You can use filters to limit the results to those alerts issued for a particular security profile, behavior, or thing (device).

Requires permission to access the ListViolationEvents action.

@param request A container for the necessary parameters to execute the ListViolationEvents service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTListViolationEventsRequest @see AWSIoTListViolationEventsResponse */ - (void)listViolationEvents:(AWSIoTListViolationEventsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListViolationEventsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Set a verification state and provide a description of that verification state on a violation (detect alarm).

@param request A container for the necessary parameters to execute the PutVerificationStateOnViolation service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTPutVerificationStateOnViolationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTPutVerificationStateOnViolationRequest @see AWSIoTPutVerificationStateOnViolationResponse */ - (AWSTask *)putVerificationStateOnViolation:(AWSIoTPutVerificationStateOnViolationRequest *)request; /**

Set a verification state and provide a description of that verification state on a violation (detect alarm).

@param request A container for the necessary parameters to execute the PutVerificationStateOnViolation service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTPutVerificationStateOnViolationRequest @see AWSIoTPutVerificationStateOnViolationResponse */ - (void)putVerificationStateOnViolation:(AWSIoTPutVerificationStateOnViolationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTPutVerificationStateOnViolationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Registers a CA certificate with Amazon Web Services IoT Core. There is no limit to the number of CA certificates you can register in your Amazon Web Services account. You can register up to 10 CA certificates with the same CA subject field per Amazon Web Services account.

Requires permission to access the RegisterCACertificate action.

@param request A container for the necessary parameters to execute the RegisterCACertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTRegisterCACertificateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorRegistrationCodeValidation`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorThrottling`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTRegisterCACertificateRequest @see AWSIoTRegisterCACertificateResponse */ - (AWSTask *)registerCACertificate:(AWSIoTRegisterCACertificateRequest *)request; /**

Registers a CA certificate with Amazon Web Services IoT Core. There is no limit to the number of CA certificates you can register in your Amazon Web Services account. You can register up to 10 CA certificates with the same CA subject field per Amazon Web Services account.

Requires permission to access the RegisterCACertificate action.

@param request A container for the necessary parameters to execute the RegisterCACertificate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorRegistrationCodeValidation`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorThrottling`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTRegisterCACertificateRequest @see AWSIoTRegisterCACertificateResponse */ - (void)registerCACertificate:(AWSIoTRegisterCACertificateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTRegisterCACertificateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Registers a device certificate with IoT in the same certificate mode as the signing CA. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.

Requires permission to access the RegisterCertificate action.

@param request A container for the necessary parameters to execute the RegisterCertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTRegisterCertificateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorCertificateState`, `AWSIoTErrorCertificateConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTRegisterCertificateRequest @see AWSIoTRegisterCertificateResponse */ - (AWSTask *)registerCertificate:(AWSIoTRegisterCertificateRequest *)request; /**

Registers a device certificate with IoT in the same certificate mode as the signing CA. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.

Requires permission to access the RegisterCertificate action.

@param request A container for the necessary parameters to execute the RegisterCertificate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorCertificateState`, `AWSIoTErrorCertificateConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTRegisterCertificateRequest @see AWSIoTRegisterCertificateResponse */ - (void)registerCertificate:(AWSIoTRegisterCertificateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTRegisterCertificateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Register a certificate that does not have a certificate authority (CA). For supported certificates, consult Certificate signing algorithms supported by IoT.

@param request A container for the necessary parameters to execute the RegisterCertificateWithoutCA service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTRegisterCertificateWithoutCAResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorCertificateState`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTRegisterCertificateWithoutCARequest @see AWSIoTRegisterCertificateWithoutCAResponse */ - (AWSTask *)registerCertificateWithoutCA:(AWSIoTRegisterCertificateWithoutCARequest *)request; /**

Register a certificate that does not have a certificate authority (CA). For supported certificates, consult Certificate signing algorithms supported by IoT.

@param request A container for the necessary parameters to execute the RegisterCertificateWithoutCA service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorCertificateState`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTRegisterCertificateWithoutCARequest @see AWSIoTRegisterCertificateWithoutCAResponse */ - (void)registerCertificateWithoutCA:(AWSIoTRegisterCertificateWithoutCARequest *)request completionHandler:(void (^ _Nullable)(AWSIoTRegisterCertificateWithoutCAResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Provisions a thing in the device registry. RegisterThing calls other IoT control plane APIs. These calls might exceed your account level IoT Throttling Limits and cause throttle errors. Please contact Amazon Web Services Customer Support to raise your throttling limits if necessary.

Requires permission to access the RegisterThing action.

@param request A container for the necessary parameters to execute the RegisterThing service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTRegisterThingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorThrottling`, `AWSIoTErrorConflictingResourceUpdate`, `AWSIoTErrorResourceRegistrationFailure`. @see AWSIoTRegisterThingRequest @see AWSIoTRegisterThingResponse */ - (AWSTask *)registerThing:(AWSIoTRegisterThingRequest *)request; /**

Provisions a thing in the device registry. RegisterThing calls other IoT control plane APIs. These calls might exceed your account level IoT Throttling Limits and cause throttle errors. Please contact Amazon Web Services Customer Support to raise your throttling limits if necessary.

Requires permission to access the RegisterThing action.

@param request A container for the necessary parameters to execute the RegisterThing service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorThrottling`, `AWSIoTErrorConflictingResourceUpdate`, `AWSIoTErrorResourceRegistrationFailure`. @see AWSIoTRegisterThingRequest @see AWSIoTRegisterThingResponse */ - (void)registerThing:(AWSIoTRegisterThingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTRegisterThingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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

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

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

Requires permission to access the RejectCertificateTransfer action.

@param request A container for the necessary parameters to execute the RejectCertificateTransfer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorTransferAlreadyCompleted`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTRejectCertificateTransferRequest */ - (AWSTask *)rejectCertificateTransfer:(AWSIoTRejectCertificateTransferRequest *)request; /**

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

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

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

Requires permission to access the RejectCertificateTransfer action.

@param request A container for the necessary parameters to execute the RejectCertificateTransfer service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorTransferAlreadyCompleted`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTRejectCertificateTransferRequest */ - (void)rejectCertificateTransfer:(AWSIoTRejectCertificateTransferRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Removes the given thing from the billing group.

Requires permission to access the RemoveThingFromBillingGroup action.

This call is asynchronous. It might take several seconds for the detachment to propagate.

@param request A container for the necessary parameters to execute the RemoveThingFromBillingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTRemoveThingFromBillingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTRemoveThingFromBillingGroupRequest @see AWSIoTRemoveThingFromBillingGroupResponse */ - (AWSTask *)removeThingFromBillingGroup:(AWSIoTRemoveThingFromBillingGroupRequest *)request; /**

Removes the given thing from the billing group.

Requires permission to access the RemoveThingFromBillingGroup action.

This call is asynchronous. It might take several seconds for the detachment to propagate.

@param request A container for the necessary parameters to execute the RemoveThingFromBillingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTRemoveThingFromBillingGroupRequest @see AWSIoTRemoveThingFromBillingGroupResponse */ - (void)removeThingFromBillingGroup:(AWSIoTRemoveThingFromBillingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTRemoveThingFromBillingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Remove the specified thing from the specified group.

You must specify either a thingGroupArn or a thingGroupName to identify the thing group and either a thingArn or a thingName to identify the thing to remove from the thing group.

Requires permission to access the RemoveThingFromThingGroup action.

@param request A container for the necessary parameters to execute the RemoveThingFromThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTRemoveThingFromThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTRemoveThingFromThingGroupRequest @see AWSIoTRemoveThingFromThingGroupResponse */ - (AWSTask *)removeThingFromThingGroup:(AWSIoTRemoveThingFromThingGroupRequest *)request; /**

Remove the specified thing from the specified group.

You must specify either a thingGroupArn or a thingGroupName to identify the thing group and either a thingArn or a thingName to identify the thing to remove from the thing group.

Requires permission to access the RemoveThingFromThingGroup action.

@param request A container for the necessary parameters to execute the RemoveThingFromThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTRemoveThingFromThingGroupRequest @see AWSIoTRemoveThingFromThingGroupResponse */ - (void)removeThingFromThingGroup:(AWSIoTRemoveThingFromThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTRemoveThingFromThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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

Requires permission to access the ReplaceTopicRule action.

@param request A container for the necessary parameters to execute the ReplaceTopicRule service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorSqlParse`, `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTReplaceTopicRuleRequest */ - (AWSTask *)replaceTopicRule:(AWSIoTReplaceTopicRuleRequest *)request; /**

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

Requires permission to access the ReplaceTopicRule action.

@param request A container for the necessary parameters to execute the ReplaceTopicRule service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorSqlParse`, `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTReplaceTopicRuleRequest */ - (void)replaceTopicRule:(AWSIoTReplaceTopicRuleRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

The query search index.

Requires permission to access the SearchIndex action.

@param request A container for the necessary parameters to execute the SearchIndex service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTSearchIndexResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorIndexNotReady`. @see AWSIoTSearchIndexRequest @see AWSIoTSearchIndexResponse */ - (AWSTask *)searchIndex:(AWSIoTSearchIndexRequest *)request; /**

The query search index.

Requires permission to access the SearchIndex action.

@param request A container for the necessary parameters to execute the SearchIndex service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorIndexNotReady`. @see AWSIoTSearchIndexRequest @see AWSIoTSearchIndexResponse */ - (void)searchIndex:(AWSIoTSearchIndexRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTSearchIndexResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Sets the default authorizer. This will be used if a websocket connection is made without specifying an authorizer.

Requires permission to access the SetDefaultAuthorizer action.

@param request A container for the necessary parameters to execute the SetDefaultAuthorizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTSetDefaultAuthorizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceAlreadyExists`. @see AWSIoTSetDefaultAuthorizerRequest @see AWSIoTSetDefaultAuthorizerResponse */ - (AWSTask *)setDefaultAuthorizer:(AWSIoTSetDefaultAuthorizerRequest *)request; /**

Sets the default authorizer. This will be used if a websocket connection is made without specifying an authorizer.

Requires permission to access the SetDefaultAuthorizer action.

@param request A container for the necessary parameters to execute the SetDefaultAuthorizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceAlreadyExists`. @see AWSIoTSetDefaultAuthorizerRequest @see AWSIoTSetDefaultAuthorizerResponse */ - (void)setDefaultAuthorizer:(AWSIoTSetDefaultAuthorizerRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTSetDefaultAuthorizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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

Requires permission to access the SetDefaultPolicyVersion action.

@param request A container for the necessary parameters to execute the SetDefaultPolicyVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTSetDefaultPolicyVersionRequest */ - (AWSTask *)setDefaultPolicyVersion:(AWSIoTSetDefaultPolicyVersionRequest *)request; /**

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

Requires permission to access the SetDefaultPolicyVersion action.

@param request A container for the necessary parameters to execute the SetDefaultPolicyVersion service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTSetDefaultPolicyVersionRequest */ - (void)setDefaultPolicyVersion:(AWSIoTSetDefaultPolicyVersionRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Sets the logging options.

NOTE: use of this command is not recommended. Use SetV2LoggingOptions instead.

Requires permission to access the SetLoggingOptions action.

@param request A container for the necessary parameters to execute the SetLoggingOptions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTSetLoggingOptionsRequest */ - (AWSTask *)setLoggingOptions:(AWSIoTSetLoggingOptionsRequest *)request; /**

Sets the logging options.

NOTE: use of this command is not recommended. Use SetV2LoggingOptions instead.

Requires permission to access the SetLoggingOptions action.

@param request A container for the necessary parameters to execute the SetLoggingOptions service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTSetLoggingOptionsRequest */ - (void)setLoggingOptions:(AWSIoTSetLoggingOptionsRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Sets the logging level.

Requires permission to access the SetV2LoggingLevel action.

@param request A container for the necessary parameters to execute the SetV2LoggingLevel service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorNotConfigured`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorLimitExceeded`. @see AWSIoTSetV2LoggingLevelRequest */ - (AWSTask *)setV2LoggingLevel:(AWSIoTSetV2LoggingLevelRequest *)request; /**

Sets the logging level.

Requires permission to access the SetV2LoggingLevel action.

@param request A container for the necessary parameters to execute the SetV2LoggingLevel service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorNotConfigured`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorLimitExceeded`. @see AWSIoTSetV2LoggingLevelRequest */ - (void)setV2LoggingLevel:(AWSIoTSetV2LoggingLevelRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Sets the logging options for the V2 logging service.

Requires permission to access the SetV2LoggingOptions action.

@param request A container for the necessary parameters to execute the SetV2LoggingOptions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTSetV2LoggingOptionsRequest */ - (AWSTask *)setV2LoggingOptions:(AWSIoTSetV2LoggingOptionsRequest *)request; /**

Sets the logging options for the V2 logging service.

Requires permission to access the SetV2LoggingOptions action.

@param request A container for the necessary parameters to execute the SetV2LoggingOptions service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTSetV2LoggingOptionsRequest */ - (void)setV2LoggingOptions:(AWSIoTSetV2LoggingOptionsRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Starts a task that applies a set of mitigation actions to the specified target.

Requires permission to access the StartAuditMitigationActionsTask action.

@param request A container for the necessary parameters to execute the StartAuditMitigationActionsTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTStartAuditMitigationActionsTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorTaskAlreadyExists`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTStartAuditMitigationActionsTaskRequest @see AWSIoTStartAuditMitigationActionsTaskResponse */ - (AWSTask *)startAuditMitigationActionsTask:(AWSIoTStartAuditMitigationActionsTaskRequest *)request; /**

Starts a task that applies a set of mitigation actions to the specified target.

Requires permission to access the StartAuditMitigationActionsTask action.

@param request A container for the necessary parameters to execute the StartAuditMitigationActionsTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorTaskAlreadyExists`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTStartAuditMitigationActionsTaskRequest @see AWSIoTStartAuditMitigationActionsTaskResponse */ - (void)startAuditMitigationActionsTask:(AWSIoTStartAuditMitigationActionsTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTStartAuditMitigationActionsTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts a Device Defender ML Detect mitigation actions task.

Requires permission to access the StartDetectMitigationActionsTask action.

@param request A container for the necessary parameters to execute the StartDetectMitigationActionsTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTStartDetectMitigationActionsTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorTaskAlreadyExists`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTStartDetectMitigationActionsTaskRequest @see AWSIoTStartDetectMitigationActionsTaskResponse */ - (AWSTask *)startDetectMitigationActionsTask:(AWSIoTStartDetectMitigationActionsTaskRequest *)request; /**

Starts a Device Defender ML Detect mitigation actions task.

Requires permission to access the StartDetectMitigationActionsTask action.

@param request A container for the necessary parameters to execute the StartDetectMitigationActionsTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorTaskAlreadyExists`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTStartDetectMitigationActionsTaskRequest @see AWSIoTStartDetectMitigationActionsTaskResponse */ - (void)startDetectMitigationActionsTask:(AWSIoTStartDetectMitigationActionsTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTStartDetectMitigationActionsTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an on-demand Device Defender audit.

Requires permission to access the StartOnDemandAuditTask action.

@param request A container for the necessary parameters to execute the StartOnDemandAuditTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTStartOnDemandAuditTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTStartOnDemandAuditTaskRequest @see AWSIoTStartOnDemandAuditTaskResponse */ - (AWSTask *)startOnDemandAuditTask:(AWSIoTStartOnDemandAuditTaskRequest *)request; /**

Starts an on-demand Device Defender audit.

Requires permission to access the StartOnDemandAuditTask action.

@param request A container for the necessary parameters to execute the StartOnDemandAuditTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTStartOnDemandAuditTaskRequest @see AWSIoTStartOnDemandAuditTaskResponse */ - (void)startOnDemandAuditTask:(AWSIoTStartOnDemandAuditTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTStartOnDemandAuditTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a bulk thing provisioning task.

Requires permission to access the StartThingRegistrationTask action.

@param request A container for the necessary parameters to execute the StartThingRegistrationTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTStartThingRegistrationTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`. @see AWSIoTStartThingRegistrationTaskRequest @see AWSIoTStartThingRegistrationTaskResponse */ - (AWSTask *)startThingRegistrationTask:(AWSIoTStartThingRegistrationTaskRequest *)request; /**

Creates a bulk thing provisioning task.

Requires permission to access the StartThingRegistrationTask action.

@param request A container for the necessary parameters to execute the StartThingRegistrationTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`. @see AWSIoTStartThingRegistrationTaskRequest @see AWSIoTStartThingRegistrationTaskResponse */ - (void)startThingRegistrationTask:(AWSIoTStartThingRegistrationTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTStartThingRegistrationTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Cancels a bulk thing provisioning task.

Requires permission to access the StopThingRegistrationTask action.

@param request A container for the necessary parameters to execute the StopThingRegistrationTask service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTStopThingRegistrationTaskResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTStopThingRegistrationTaskRequest @see AWSIoTStopThingRegistrationTaskResponse */ - (AWSTask *)stopThingRegistrationTask:(AWSIoTStopThingRegistrationTaskRequest *)request; /**

Cancels a bulk thing provisioning task.

Requires permission to access the StopThingRegistrationTask action.

@param request A container for the necessary parameters to execute the StopThingRegistrationTask service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTStopThingRegistrationTaskRequest @see AWSIoTStopThingRegistrationTaskResponse */ - (void)stopThingRegistrationTask:(AWSIoTStopThingRegistrationTaskRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTStopThingRegistrationTaskResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.

Requires permission to access the TagResource action.

@param request A container for the necessary parameters to execute the TagResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTTagResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorLimitExceeded`. @see AWSIoTTagResourceRequest @see AWSIoTTagResourceResponse */ - (AWSTask *)tagResource:(AWSIoTTagResourceRequest *)request; /**

Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.

Requires permission to access the TagResource action.

@param request A container for the necessary parameters to execute the TagResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorLimitExceeded`. @see AWSIoTTagResourceRequest @see AWSIoTTagResourceResponse */ - (void)tagResource:(AWSIoTTagResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTTagResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Tests if a specified principal is authorized to perform an IoT action on a specified resource. Use this to test and debug the authorization behavior of devices that connect to the IoT device gateway.

Requires permission to access the TestAuthorization action.

@param request A container for the necessary parameters to execute the TestAuthorization service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTTestAuthorizationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTTestAuthorizationRequest @see AWSIoTTestAuthorizationResponse */ - (AWSTask *)testAuthorization:(AWSIoTTestAuthorizationRequest *)request; /**

Tests if a specified principal is authorized to perform an IoT action on a specified resource. Use this to test and debug the authorization behavior of devices that connect to the IoT device gateway.

Requires permission to access the TestAuthorization action.

@param request A container for the necessary parameters to execute the TestAuthorization service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorLimitExceeded`. @see AWSIoTTestAuthorizationRequest @see AWSIoTTestAuthorizationResponse */ - (void)testAuthorization:(AWSIoTTestAuthorizationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTTestAuthorizationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Tests a custom authorization behavior by invoking a specified custom authorizer. Use this to test and debug the custom authorization behavior of devices that connect to the IoT device gateway.

Requires permission to access the TestInvokeAuthorizer action.

@param request A container for the necessary parameters to execute the TestInvokeAuthorizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTTestInvokeAuthorizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidResponse`. @see AWSIoTTestInvokeAuthorizerRequest @see AWSIoTTestInvokeAuthorizerResponse */ - (AWSTask *)testInvokeAuthorizer:(AWSIoTTestInvokeAuthorizerRequest *)request; /**

Tests a custom authorization behavior by invoking a specified custom authorizer. Use this to test and debug the custom authorization behavior of devices that connect to the IoT device gateway.

Requires permission to access the TestInvokeAuthorizer action.

@param request A container for the necessary parameters to execute the TestInvokeAuthorizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidResponse`. @see AWSIoTTestInvokeAuthorizerRequest @see AWSIoTTestInvokeAuthorizerResponse */ - (void)testInvokeAuthorizer:(AWSIoTTestInvokeAuthorizerRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTTestInvokeAuthorizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Transfers the specified certificate to the specified Amazon Web Services account.

Requires permission to access the TransferCertificate action.

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

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

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

The certificate must not have any policies attached to it. You can use the DetachPolicy action to detach them.

@param request A container for the necessary parameters to execute the TransferCertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTTransferCertificateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorCertificateState`, `AWSIoTErrorTransferConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTTransferCertificateRequest @see AWSIoTTransferCertificateResponse */ - (AWSTask *)transferCertificate:(AWSIoTTransferCertificateRequest *)request; /**

Transfers the specified certificate to the specified Amazon Web Services account.

Requires permission to access the TransferCertificate action.

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

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

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

The certificate must not have any policies attached to it. You can use the DetachPolicy action to detach them.

@param request A container for the necessary parameters to execute the TransferCertificate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorCertificateState`, `AWSIoTErrorTransferConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTTransferCertificateRequest @see AWSIoTTransferCertificateResponse */ - (void)transferCertificate:(AWSIoTTransferCertificateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTTransferCertificateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Removes the given tags (metadata) from the resource.

Requires permission to access the UntagResource action.

@param request A container for the necessary parameters to execute the UntagResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUntagResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTUntagResourceRequest @see AWSIoTUntagResourceResponse */ - (AWSTask *)untagResource:(AWSIoTUntagResourceRequest *)request; /**

Removes the given tags (metadata) from the resource.

Requires permission to access the UntagResource action.

@param request A container for the necessary parameters to execute the UntagResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTUntagResourceRequest @see AWSIoTUntagResourceResponse */ - (void)untagResource:(AWSIoTUntagResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUntagResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Configures or reconfigures 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 UpdateAccountAuditConfiguration action.

@param request A container for the necessary parameters to execute the UpdateAccountAuditConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateAccountAuditConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateAccountAuditConfigurationRequest @see AWSIoTUpdateAccountAuditConfigurationResponse */ - (AWSTask *)updateAccountAuditConfiguration:(AWSIoTUpdateAccountAuditConfigurationRequest *)request; /**

Configures or reconfigures 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 UpdateAccountAuditConfiguration action.

@param request A container for the necessary parameters to execute the UpdateAccountAuditConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateAccountAuditConfigurationRequest @see AWSIoTUpdateAccountAuditConfigurationResponse */ - (void)updateAccountAuditConfiguration:(AWSIoTUpdateAccountAuditConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateAccountAuditConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates a Device Defender audit suppression.

@param request A container for the necessary parameters to execute the UpdateAuditSuppression service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateAuditSuppressionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateAuditSuppressionRequest @see AWSIoTUpdateAuditSuppressionResponse */ - (AWSTask *)updateAuditSuppression:(AWSIoTUpdateAuditSuppressionRequest *)request; /**

Updates a Device Defender audit suppression.

@param request A container for the necessary parameters to execute the UpdateAuditSuppression service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateAuditSuppressionRequest @see AWSIoTUpdateAuditSuppressionResponse */ - (void)updateAuditSuppression:(AWSIoTUpdateAuditSuppressionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateAuditSuppressionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates an authorizer.

Requires permission to access the UpdateAuthorizer action.

@param request A container for the necessary parameters to execute the UpdateAuthorizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateAuthorizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateAuthorizerRequest @see AWSIoTUpdateAuthorizerResponse */ - (AWSTask *)updateAuthorizer:(AWSIoTUpdateAuthorizerRequest *)request; /**

Updates an authorizer.

Requires permission to access the UpdateAuthorizer action.

@param request A container for the necessary parameters to execute the UpdateAuthorizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorLimitExceeded`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateAuthorizerRequest @see AWSIoTUpdateAuthorizerResponse */ - (void)updateAuthorizer:(AWSIoTUpdateAuthorizerRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateAuthorizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates information about the billing group.

Requires permission to access the UpdateBillingGroup action.

@param request A container for the necessary parameters to execute the UpdateBillingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateBillingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdateBillingGroupRequest @see AWSIoTUpdateBillingGroupResponse */ - (AWSTask *)updateBillingGroup:(AWSIoTUpdateBillingGroupRequest *)request; /**

Updates information about the billing group.

Requires permission to access the UpdateBillingGroup action.

@param request A container for the necessary parameters to execute the UpdateBillingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdateBillingGroupRequest @see AWSIoTUpdateBillingGroupResponse */ - (void)updateBillingGroup:(AWSIoTUpdateBillingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateBillingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates a registered CA certificate.

Requires permission to access the UpdateCACertificate action.

@param request A container for the necessary parameters to execute the UpdateCACertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateCACertificateRequest */ - (AWSTask *)updateCACertificate:(AWSIoTUpdateCACertificateRequest *)request; /**

Updates a registered CA certificate.

Requires permission to access the UpdateCACertificate action.

@param request A container for the necessary parameters to execute the UpdateCACertificate service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateCACertificateRequest */ - (void)updateCACertificate:(AWSIoTUpdateCACertificateRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

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

Requires permission to access the UpdateCertificate action.

Certificates must be in the ACTIVE state to authenticate devices that use a certificate to connect to IoT.

Within a few minutes of updating a certificate from the ACTIVE state to any other state, IoT disconnects all devices that used that certificate to connect. Devices cannot use a certificate that is not in the ACTIVE state to reconnect.

@param request A container for the necessary parameters to execute the UpdateCertificate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorCertificateState`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateCertificateRequest */ - (AWSTask *)updateCertificate:(AWSIoTUpdateCertificateRequest *)request; /**

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

Requires permission to access the UpdateCertificate action.

Certificates must be in the ACTIVE state to authenticate devices that use a certificate to connect to IoT.

Within a few minutes of updating a certificate from the ACTIVE state to any other state, IoT disconnects all devices that used that certificate to connect. Devices cannot use a certificate that is not in the ACTIVE state to reconnect.

@param request A container for the necessary parameters to execute the UpdateCertificate service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorCertificateState`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateCertificateRequest */ - (void)updateCertificate:(AWSIoTUpdateCertificateRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Updates a Device Defender detect custom metric.

Requires permission to access the UpdateCustomMetric action.

@param request A container for the necessary parameters to execute the UpdateCustomMetric service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateCustomMetricResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateCustomMetricRequest @see AWSIoTUpdateCustomMetricResponse */ - (AWSTask *)updateCustomMetric:(AWSIoTUpdateCustomMetricRequest *)request; /**

Updates a Device Defender detect custom metric.

Requires permission to access the UpdateCustomMetric action.

@param request A container for the necessary parameters to execute the UpdateCustomMetric service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateCustomMetricRequest @see AWSIoTUpdateCustomMetricResponse */ - (void)updateCustomMetric:(AWSIoTUpdateCustomMetricRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateCustomMetricResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the definition for a dimension. You cannot change the type of a dimension after it is created (you can delete it and recreate it).

Requires permission to access the UpdateDimension action.

@param request A container for the necessary parameters to execute the UpdateDimension service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateDimensionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTUpdateDimensionRequest @see AWSIoTUpdateDimensionResponse */ - (AWSTask *)updateDimension:(AWSIoTUpdateDimensionRequest *)request; /**

Updates the definition for a dimension. You cannot change the type of a dimension after it is created (you can delete it and recreate it).

Requires permission to access the UpdateDimension action.

@param request A container for the necessary parameters to execute the UpdateDimension service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`. @see AWSIoTUpdateDimensionRequest @see AWSIoTUpdateDimensionResponse */ - (void)updateDimension:(AWSIoTUpdateDimensionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateDimensionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates values stored in the domain configuration. Domain configurations for default endpoints can't be updated.

Requires permission to access the UpdateDomainConfiguration action.

@param request A container for the necessary parameters to execute the UpdateDomainConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateDomainConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateDomainConfigurationRequest @see AWSIoTUpdateDomainConfigurationResponse */ - (AWSTask *)updateDomainConfiguration:(AWSIoTUpdateDomainConfigurationRequest *)request; /**

Updates values stored in the domain configuration. Domain configurations for default endpoints can't be updated.

Requires permission to access the UpdateDomainConfiguration action.

@param request A container for the necessary parameters to execute the UpdateDomainConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorCertificateValidation`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateDomainConfigurationRequest @see AWSIoTUpdateDomainConfigurationResponse */ - (void)updateDomainConfiguration:(AWSIoTUpdateDomainConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateDomainConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates a dynamic thing group.

Requires permission to access the UpdateDynamicThingGroup action.

@param request A container for the necessary parameters to execute the UpdateDynamicThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateDynamicThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`. @see AWSIoTUpdateDynamicThingGroupRequest @see AWSIoTUpdateDynamicThingGroupResponse */ - (AWSTask *)updateDynamicThingGroup:(AWSIoTUpdateDynamicThingGroupRequest *)request; /**

Updates a dynamic thing group.

Requires permission to access the UpdateDynamicThingGroup action.

@param request A container for the necessary parameters to execute the UpdateDynamicThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`. @see AWSIoTUpdateDynamicThingGroupRequest @see AWSIoTUpdateDynamicThingGroupResponse */ - (void)updateDynamicThingGroup:(AWSIoTUpdateDynamicThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateDynamicThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the event configurations.

Requires permission to access the UpdateEventConfigurations action.

@param request A container for the necessary parameters to execute the UpdateEventConfigurations service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateEventConfigurationsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorThrottling`. @see AWSIoTUpdateEventConfigurationsRequest @see AWSIoTUpdateEventConfigurationsResponse */ - (AWSTask *)updateEventConfigurations:(AWSIoTUpdateEventConfigurationsRequest *)request; /**

Updates the event configurations.

Requires permission to access the UpdateEventConfigurations action.

@param request A container for the necessary parameters to execute the UpdateEventConfigurations service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorThrottling`. @see AWSIoTUpdateEventConfigurationsRequest @see AWSIoTUpdateEventConfigurationsResponse */ - (void)updateEventConfigurations:(AWSIoTUpdateEventConfigurationsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateEventConfigurationsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the data for a fleet metric.

Requires permission to access the UpdateFleetMetric action.

@param request A container for the necessary parameters to execute the UpdateFleetMetric service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorIndexNotReady`. @see AWSIoTUpdateFleetMetricRequest */ - (AWSTask *)updateFleetMetric:(AWSIoTUpdateFleetMetricRequest *)request; /**

Updates the data for a fleet metric.

Requires permission to access the UpdateFleetMetric action.

@param request A container for the necessary parameters to execute the UpdateFleetMetric service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidQuery`, `AWSIoTErrorInvalidAggregation`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorIndexNotReady`. @see AWSIoTUpdateFleetMetricRequest */ - (void)updateFleetMetric:(AWSIoTUpdateFleetMetricRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Updates the search configuration.

Requires permission to access the UpdateIndexingConfiguration action.

@param request A container for the necessary parameters to execute the UpdateIndexingConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateIndexingConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateIndexingConfigurationRequest @see AWSIoTUpdateIndexingConfigurationResponse */ - (AWSTask *)updateIndexingConfiguration:(AWSIoTUpdateIndexingConfigurationRequest *)request; /**

Updates the search configuration.

Requires permission to access the UpdateIndexingConfiguration action.

@param request A container for the necessary parameters to execute the UpdateIndexingConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateIndexingConfigurationRequest @see AWSIoTUpdateIndexingConfigurationResponse */ - (void)updateIndexingConfiguration:(AWSIoTUpdateIndexingConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateIndexingConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates supported fields of the specified job.

Requires permission to access the UpdateJob action.

@param request A container for the necessary parameters to execute the UpdateJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTUpdateJobRequest */ - (AWSTask *)updateJob:(AWSIoTUpdateJobRequest *)request; /**

Updates supported fields of the specified job.

Requires permission to access the UpdateJob action.

@param request A container for the necessary parameters to execute the UpdateJob service method. @param completionHandler The completion handler to call when the load request is complete. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorServiceUnavailable`. @see AWSIoTUpdateJobRequest */ - (void)updateJob:(AWSIoTUpdateJobRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /**

Updates the definition for the specified mitigation action.

Requires permission to access the UpdateMitigationAction action.

@param request A container for the necessary parameters to execute the UpdateMitigationAction service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateMitigationActionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateMitigationActionRequest @see AWSIoTUpdateMitigationActionResponse */ - (AWSTask *)updateMitigationAction:(AWSIoTUpdateMitigationActionRequest *)request; /**

Updates the definition for the specified mitigation action.

Requires permission to access the UpdateMitigationAction action.

@param request A container for the necessary parameters to execute the UpdateMitigationAction service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateMitigationActionRequest @see AWSIoTUpdateMitigationActionResponse */ - (void)updateMitigationAction:(AWSIoTUpdateMitigationActionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateMitigationActionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the supported fields for a specific package.

Requires permission to access the UpdatePackage and GetIndexingConfiguration actions.

@param request A container for the necessary parameters to execute the UpdatePackage service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdatePackageResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdatePackageRequest @see AWSIoTUpdatePackageResponse */ - (AWSTask *)updatePackage:(AWSIoTUpdatePackageRequest *)request; /**

Updates the supported fields for a specific package.

Requires permission to access the UpdatePackage and GetIndexingConfiguration actions.

@param request A container for the necessary parameters to execute the UpdatePackage service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdatePackageRequest @see AWSIoTUpdatePackageResponse */ - (void)updatePackage:(AWSIoTUpdatePackageRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdatePackageResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the package configuration.

Requires permission to access the UpdatePackageConfiguration and iam:PassRole actions.

@param request A container for the necessary parameters to execute the UpdatePackageConfiguration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdatePackageConfigurationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTUpdatePackageConfigurationRequest @see AWSIoTUpdatePackageConfigurationResponse */ - (AWSTask *)updatePackageConfiguration:(AWSIoTUpdatePackageConfigurationRequest *)request; /**

Updates the package configuration.

Requires permission to access the UpdatePackageConfiguration and iam:PassRole actions.

@param request A container for the necessary parameters to execute the UpdatePackageConfiguration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`. @see AWSIoTUpdatePackageConfigurationRequest @see AWSIoTUpdatePackageConfigurationResponse */ - (void)updatePackageConfiguration:(AWSIoTUpdatePackageConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdatePackageConfigurationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the supported fields for a specific package version.

Requires permission to access the UpdatePackageVersion and GetIndexingConfiguration actions.

@param request A container for the necessary parameters to execute the UpdatePackageVersion service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdatePackageVersionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdatePackageVersionRequest @see AWSIoTUpdatePackageVersionResponse */ - (AWSTask *)updatePackageVersion:(AWSIoTUpdatePackageVersionRequest *)request; /**

Updates the supported fields for a specific package version.

Requires permission to access the UpdatePackageVersion and GetIndexingConfiguration actions.

@param request A container for the necessary parameters to execute the UpdatePackageVersion service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorThrottling`, `AWSIoTErrorInternalServer`, `AWSIoTErrorValidation`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdatePackageVersionRequest @see AWSIoTUpdatePackageVersionResponse */ - (void)updatePackageVersion:(AWSIoTUpdatePackageVersionRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdatePackageVersionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates a provisioning template.

Requires permission to access the UpdateProvisioningTemplate action.

@param request A container for the necessary parameters to execute the UpdateProvisioningTemplate service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateProvisioningTemplateResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTUpdateProvisioningTemplateRequest @see AWSIoTUpdateProvisioningTemplateResponse */ - (AWSTask *)updateProvisioningTemplate:(AWSIoTUpdateProvisioningTemplateRequest *)request; /**

Updates a provisioning template.

Requires permission to access the UpdateProvisioningTemplate action.

@param request A container for the necessary parameters to execute the UpdateProvisioningTemplate service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternalFailure`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTUpdateProvisioningTemplateRequest @see AWSIoTUpdateProvisioningTemplateResponse */ - (void)updateProvisioningTemplate:(AWSIoTUpdateProvisioningTemplateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateProvisioningTemplateResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates a role alias.

Requires permission to access the UpdateRoleAlias action.

@param request A container for the necessary parameters to execute the UpdateRoleAlias service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateRoleAliasResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateRoleAliasRequest @see AWSIoTUpdateRoleAliasResponse */ - (AWSTask *)updateRoleAlias:(AWSIoTUpdateRoleAliasRequest *)request; /**

Updates a role alias.

Requires permission to access the UpdateRoleAlias action.

@param request A container for the necessary parameters to execute the UpdateRoleAlias service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateRoleAliasRequest @see AWSIoTUpdateRoleAliasResponse */ - (void)updateRoleAlias:(AWSIoTUpdateRoleAliasRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateRoleAliasResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates a scheduled audit, including which checks are performed and how often the audit takes place.

Requires permission to access the UpdateScheduledAudit action.

@param request A container for the necessary parameters to execute the UpdateScheduledAudit service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateScheduledAuditResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateScheduledAuditRequest @see AWSIoTUpdateScheduledAuditResponse */ - (AWSTask *)updateScheduledAudit:(AWSIoTUpdateScheduledAuditRequest *)request; /**

Updates a scheduled audit, including which checks are performed and how often the audit takes place.

Requires permission to access the UpdateScheduledAudit action.

@param request A container for the necessary parameters to execute the UpdateScheduledAudit service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateScheduledAuditRequest @see AWSIoTUpdateScheduledAuditResponse */ - (void)updateScheduledAudit:(AWSIoTUpdateScheduledAuditRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateScheduledAuditResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates a Device Defender security profile.

Requires permission to access the UpdateSecurityProfile action.

@param request A container for the necessary parameters to execute the UpdateSecurityProfile service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateSecurityProfileResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateSecurityProfileRequest @see AWSIoTUpdateSecurityProfileResponse */ - (AWSTask *)updateSecurityProfile:(AWSIoTUpdateSecurityProfileRequest *)request; /**

Updates a Device Defender security profile.

Requires permission to access the UpdateSecurityProfile action.

@param request A container for the necessary parameters to execute the UpdateSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateSecurityProfileRequest @see AWSIoTUpdateSecurityProfileResponse */ - (void)updateSecurityProfile:(AWSIoTUpdateSecurityProfileRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateSecurityProfileResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates an existing stream. The stream version will be incremented by one.

Requires permission to access the UpdateStream action.

@param request A container for the necessary parameters to execute the UpdateStream service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateStreamResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateStreamRequest @see AWSIoTUpdateStreamResponse */ - (AWSTask *)updateStream:(AWSIoTUpdateStreamRequest *)request; /**

Updates an existing stream. The stream version will be incremented by one.

Requires permission to access the UpdateStream action.

@param request A container for the necessary parameters to execute the UpdateStream service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. @see AWSIoTUpdateStreamRequest @see AWSIoTUpdateStreamResponse */ - (void)updateStream:(AWSIoTUpdateStreamRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateStreamResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the data for a thing.

Requires permission to access the UpdateThing action.

@param request A container for the necessary parameters to execute the UpdateThing service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateThingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdateThingRequest @see AWSIoTUpdateThingResponse */ - (AWSTask *)updateThing:(AWSIoTUpdateThingRequest *)request; /**

Updates the data for a thing.

Requires permission to access the UpdateThing action.

@param request A container for the necessary parameters to execute the UpdateThing service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdateThingRequest @see AWSIoTUpdateThingResponse */ - (void)updateThing:(AWSIoTUpdateThingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateThingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Update a thing group.

Requires permission to access the UpdateThingGroup action.

@param request A container for the necessary parameters to execute the UpdateThingGroup service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateThingGroupResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdateThingGroupRequest @see AWSIoTUpdateThingGroupResponse */ - (AWSTask *)updateThingGroup:(AWSIoTUpdateThingGroupRequest *)request; /**

Update a thing group.

Requires permission to access the UpdateThingGroup action.

@param request A container for the necessary parameters to execute the UpdateThingGroup service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorVersionConflict`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdateThingGroupRequest @see AWSIoTUpdateThingGroupResponse */ - (void)updateThingGroup:(AWSIoTUpdateThingGroupRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateThingGroupResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the groups to which the thing belongs.

Requires permission to access the UpdateThingGroupsForThing action.

@param request A container for the necessary parameters to execute the UpdateThingGroupsForThing service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateThingGroupsForThingResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdateThingGroupsForThingRequest @see AWSIoTUpdateThingGroupsForThingResponse */ - (AWSTask *)updateThingGroupsForThing:(AWSIoTUpdateThingGroupsForThingRequest *)request; /**

Updates the groups to which the thing belongs.

Requires permission to access the UpdateThingGroupsForThing action.

@param request A container for the necessary parameters to execute the UpdateThingGroupsForThing service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`, `AWSIoTErrorResourceNotFound`. @see AWSIoTUpdateThingGroupsForThingRequest @see AWSIoTUpdateThingGroupsForThingResponse */ - (void)updateThingGroupsForThing:(AWSIoTUpdateThingGroupsForThingRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateThingGroupsForThingResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates a topic rule destination. You use this to change the status, endpoint URL, or confirmation URL of the destination.

Requires permission to access the UpdateTopicRuleDestination action.

@param request A container for the necessary parameters to execute the UpdateTopicRuleDestination service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateTopicRuleDestinationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTUpdateTopicRuleDestinationRequest @see AWSIoTUpdateTopicRuleDestinationResponse */ - (AWSTask *)updateTopicRuleDestination:(AWSIoTUpdateTopicRuleDestinationRequest *)request; /**

Updates a topic rule destination. You use this to change the status, endpoint URL, or confirmation URL of the destination.

Requires permission to access the UpdateTopicRuleDestination action.

@param request A container for the necessary parameters to execute the UpdateTopicRuleDestination service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInternal`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorConflictingResourceUpdate`. @see AWSIoTUpdateTopicRuleDestinationRequest @see AWSIoTUpdateTopicRuleDestinationResponse */ - (void)updateTopicRuleDestination:(AWSIoTUpdateTopicRuleDestinationRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateTopicRuleDestinationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Validates a Device Defender security profile behaviors specification.

Requires permission to access the ValidateSecurityProfileBehaviors action.

@param request A container for the necessary parameters to execute the ValidateSecurityProfileBehaviors service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTValidateSecurityProfileBehaviorsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTValidateSecurityProfileBehaviorsRequest @see AWSIoTValidateSecurityProfileBehaviorsResponse */ - (AWSTask *)validateSecurityProfileBehaviors:(AWSIoTValidateSecurityProfileBehaviorsRequest *)request; /**

Validates a Device Defender security profile behaviors specification.

Requires permission to access the ValidateSecurityProfileBehaviors action.

@param request A container for the necessary parameters to execute the ValidateSecurityProfileBehaviors service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorInternalFailure`. @see AWSIoTValidateSecurityProfileBehaviorsRequest @see AWSIoTValidateSecurityProfileBehaviorsResponse */ - (void)validateSecurityProfileBehaviors:(AWSIoTValidateSecurityProfileBehaviorsRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTValidateSecurityProfileBehaviorsResponse * _Nullable response, NSError * _Nullable error))completionHandler; @end NS_ASSUME_NONNULL_END