/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the iot-2015-05-28.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.IoT.Model; using Amazon.IoT.Model.Internal.MarshallTransformations; using Amazon.IoT.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.IoT { /// /// Implementation for accessing IoT /// /// 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. /// /// public partial class AmazonIoTClient : AmazonServiceClient, IAmazonIoT { private static IServiceMetadata serviceMetadata = new AmazonIoTMetadata(); private IIoTPaginatorFactory _paginators; /// /// Paginators for the service /// public IIoTPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new IoTPaginatorFactory(this); } return this._paginators; } } #region Constructors /// /// Constructs AmazonIoTClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonIoTClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTConfig()) { } /// /// Constructs AmazonIoTClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonIoTClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonIoTClient Configuration Object public AmazonIoTClient(AmazonIoTConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonIoTClient with AWS Credentials /// /// AWS Credentials public AmazonIoTClient(AWSCredentials credentials) : this(credentials, new AmazonIoTConfig()) { } /// /// Constructs AmazonIoTClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonIoTClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonIoTConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTClient with AWS Credentials and an /// AmazonIoTClient Configuration object. /// /// AWS Credentials /// The AmazonIoTClient Configuration Object public AmazonIoTClient(AWSCredentials credentials, AmazonIoTConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonIoTClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonIoTClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTConfig()) { } /// /// Constructs AmazonIoTClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonIoTClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonIoTClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIoTClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonIoTClient Configuration Object public AmazonIoTClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIoTConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonIoTClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonIoTClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTConfig()) { } /// /// Constructs AmazonIoTClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonIoTClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIoTClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonIoTClient Configuration Object public AmazonIoTClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIoTConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonIoTEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AcceptCertificateTransfer /// /// 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. /// /// /// Container for the necessary parameters to execute the AcceptCertificateTransfer service method. /// /// The response from the AcceptCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AcceptCertificateTransfer Operation public virtual AcceptCertificateTransferResponse AcceptCertificateTransfer(AcceptCertificateTransferRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AcceptCertificateTransferRequestMarshaller.Instance; options.ResponseUnmarshaller = AcceptCertificateTransferResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the AcceptCertificateTransfer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AcceptCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AcceptCertificateTransfer Operation public virtual Task AcceptCertificateTransferAsync(AcceptCertificateTransferRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AcceptCertificateTransferRequestMarshaller.Instance; options.ResponseUnmarshaller = AcceptCertificateTransferResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AddThingToBillingGroup /// /// Adds a thing to a billing group. /// /// /// /// Requires permission to access the AddThingToBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the AddThingToBillingGroup service method. /// /// The response from the AddThingToBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for AddThingToBillingGroup Operation public virtual AddThingToBillingGroupResponse AddThingToBillingGroup(AddThingToBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddThingToBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = AddThingToBillingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds a thing to a billing group. /// /// /// /// Requires permission to access the AddThingToBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the AddThingToBillingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AddThingToBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for AddThingToBillingGroup Operation public virtual Task AddThingToBillingGroupAsync(AddThingToBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddThingToBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = AddThingToBillingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AddThingToThingGroup /// /// Adds a thing to a thing group. /// /// /// /// Requires permission to access the AddThingToThingGroup /// action. /// /// /// Container for the necessary parameters to execute the AddThingToThingGroup service method. /// /// The response from the AddThingToThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for AddThingToThingGroup Operation public virtual AddThingToThingGroupResponse AddThingToThingGroup(AddThingToThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddThingToThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = AddThingToThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds a thing to a thing group. /// /// /// /// Requires permission to access the AddThingToThingGroup /// action. /// /// /// Container for the necessary parameters to execute the AddThingToThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AddThingToThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for AddThingToThingGroup Operation public virtual Task AddThingToThingGroupAsync(AddThingToThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddThingToThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = AddThingToThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AssociateTargetsWithJob /// /// 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. /// ///
/// Container for the necessary parameters to execute the AssociateTargetsWithJob service method. /// /// The response from the AssociateTargetsWithJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for AssociateTargetsWithJob Operation public virtual AssociateTargetsWithJobResponse AssociateTargetsWithJob(AssociateTargetsWithJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateTargetsWithJobRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateTargetsWithJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// ///
/// Container for the necessary parameters to execute the AssociateTargetsWithJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateTargetsWithJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for AssociateTargetsWithJob Operation public virtual Task AssociateTargetsWithJobAsync(AssociateTargetsWithJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateTargetsWithJobRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateTargetsWithJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AttachPolicy /// /// Attaches the specified policy to the specified principal (certificate or other credential). /// /// /// /// Requires permission to access the AttachPolicy /// action. /// /// /// Container for the necessary parameters to execute the AttachPolicy service method. /// /// The response from the AttachPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachPolicy Operation public virtual AttachPolicyResponse AttachPolicy(AttachPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Attaches the specified policy to the specified principal (certificate or other credential). /// /// /// /// Requires permission to access the AttachPolicy /// action. /// /// /// Container for the necessary parameters to execute the AttachPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AttachPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachPolicy Operation public virtual Task AttachPolicyAsync(AttachPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AttachPrincipalPolicy /// /// 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. /// /// /// The policy name. /// The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID. /// /// The response from the AttachPrincipalPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachPrincipalPolicy Operation [Obsolete("Deprecated in favor of AttachPolicy.")] public virtual AttachPrincipalPolicyResponse AttachPrincipalPolicy(string policyName, string principal) { var request = new AttachPrincipalPolicyRequest(); request.PolicyName = policyName; request.Principal = principal; return AttachPrincipalPolicy(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. /// /// /// Container for the necessary parameters to execute the AttachPrincipalPolicy service method. /// /// The response from the AttachPrincipalPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachPrincipalPolicy Operation [Obsolete("Deprecated in favor of AttachPolicy.")] public virtual AttachPrincipalPolicyResponse AttachPrincipalPolicy(AttachPrincipalPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachPrincipalPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachPrincipalPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The policy name. /// The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AttachPrincipalPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachPrincipalPolicy Operation [Obsolete("Deprecated in favor of AttachPolicy.")] public virtual Task AttachPrincipalPolicyAsync(string policyName, string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new AttachPrincipalPolicyRequest(); request.PolicyName = policyName; request.Principal = principal; return AttachPrincipalPolicyAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the AttachPrincipalPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AttachPrincipalPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachPrincipalPolicy Operation [Obsolete("Deprecated in favor of AttachPolicy.")] public virtual Task AttachPrincipalPolicyAsync(AttachPrincipalPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachPrincipalPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachPrincipalPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AttachSecurityProfile /// /// 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. /// /// /// Container for the necessary parameters to execute the AttachSecurityProfile service method. /// /// The response from the AttachSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for AttachSecurityProfile Operation public virtual AttachSecurityProfileResponse AttachSecurityProfile(AttachSecurityProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachSecurityProfileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the AttachSecurityProfile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AttachSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for AttachSecurityProfile Operation public virtual Task AttachSecurityProfileAsync(AttachSecurityProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachSecurityProfileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AttachThingPrincipal /// /// 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. /// /// /// The name of the thing. /// The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID. /// /// The response from the AttachThingPrincipal service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachThingPrincipal Operation public virtual AttachThingPrincipalResponse AttachThingPrincipal(string thingName, string principal) { var request = new AttachThingPrincipalRequest(); request.ThingName = thingName; request.Principal = principal; return AttachThingPrincipal(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. /// /// /// Container for the necessary parameters to execute the AttachThingPrincipal service method. /// /// The response from the AttachThingPrincipal service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachThingPrincipal Operation public virtual AttachThingPrincipalResponse AttachThingPrincipal(AttachThingPrincipalRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachThingPrincipalRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachThingPrincipalResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The name of the thing. /// The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AttachThingPrincipal service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachThingPrincipal Operation public virtual Task AttachThingPrincipalAsync(string thingName, string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new AttachThingPrincipalRequest(); request.ThingName = thingName; request.Principal = principal; return AttachThingPrincipalAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the AttachThingPrincipal service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AttachThingPrincipal service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for AttachThingPrincipal Operation public virtual Task AttachThingPrincipalAsync(AttachThingPrincipalRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachThingPrincipalRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachThingPrincipalResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CancelAuditMitigationActionsTask /// /// 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. /// /// /// Container for the necessary parameters to execute the CancelAuditMitigationActionsTask service method. /// /// The response from the CancelAuditMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CancelAuditMitigationActionsTask Operation public virtual CancelAuditMitigationActionsTaskResponse CancelAuditMitigationActionsTask(CancelAuditMitigationActionsTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelAuditMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelAuditMitigationActionsTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CancelAuditMitigationActionsTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelAuditMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CancelAuditMitigationActionsTask Operation public virtual Task CancelAuditMitigationActionsTaskAsync(CancelAuditMitigationActionsTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelAuditMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelAuditMitigationActionsTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CancelAuditTask /// /// 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. /// /// /// Container for the necessary parameters to execute the CancelAuditTask service method. /// /// The response from the CancelAuditTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CancelAuditTask Operation public virtual CancelAuditTaskResponse CancelAuditTask(CancelAuditTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelAuditTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelAuditTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CancelAuditTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelAuditTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CancelAuditTask Operation public virtual Task CancelAuditTaskAsync(CancelAuditTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelAuditTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelAuditTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CancelCertificateTransfer /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// /// The response from the CancelCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CancelCertificateTransfer Operation public virtual CancelCertificateTransferResponse CancelCertificateTransfer(string certificateId) { var request = new CancelCertificateTransferRequest(); request.CertificateId = certificateId; return CancelCertificateTransfer(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. /// /// /// Container for the necessary parameters to execute the CancelCertificateTransfer service method. /// /// The response from the CancelCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CancelCertificateTransfer Operation public virtual CancelCertificateTransferResponse CancelCertificateTransfer(CancelCertificateTransferRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCertificateTransferRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCertificateTransferResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CancelCertificateTransfer Operation public virtual Task CancelCertificateTransferAsync(string certificateId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CancelCertificateTransferRequest(); request.CertificateId = certificateId; return CancelCertificateTransferAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CancelCertificateTransfer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CancelCertificateTransfer Operation public virtual Task CancelCertificateTransferAsync(CancelCertificateTransferRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelCertificateTransferRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelCertificateTransferResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CancelDetectMitigationActionsTask /// /// Cancels a Device Defender ML Detect mitigation action. /// /// /// /// Requires permission to access the CancelDetectMitigationActionsTask /// action. /// /// /// Container for the necessary parameters to execute the CancelDetectMitigationActionsTask service method. /// /// The response from the CancelDetectMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CancelDetectMitigationActionsTask Operation public virtual CancelDetectMitigationActionsTaskResponse CancelDetectMitigationActionsTask(CancelDetectMitigationActionsTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelDetectMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelDetectMitigationActionsTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Cancels a Device Defender ML Detect mitigation action. /// /// /// /// Requires permission to access the CancelDetectMitigationActionsTask /// action. /// /// /// Container for the necessary parameters to execute the CancelDetectMitigationActionsTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelDetectMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CancelDetectMitigationActionsTask Operation public virtual Task CancelDetectMitigationActionsTaskAsync(CancelDetectMitigationActionsTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelDetectMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelDetectMitigationActionsTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CancelJob /// /// Cancels a job. /// /// /// /// Requires permission to access the CancelJob /// action. /// /// /// Container for the necessary parameters to execute the CancelJob service method. /// /// The response from the CancelJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CancelJob Operation public virtual CancelJobResponse CancelJob(CancelJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Cancels a job. /// /// /// /// Requires permission to access the CancelJob /// action. /// /// /// Container for the necessary parameters to execute the CancelJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CancelJob Operation public virtual Task CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CancelJobExecution /// /// Cancels the execution of a job for a given thing. /// /// /// /// Requires permission to access the CancelJobExecution /// action. /// /// /// Container for the necessary parameters to execute the CancelJobExecution service method. /// /// The response from the CancelJobExecution service method, as returned by IoT. /// /// The request is not valid. /// /// /// An attempt was made to change to an invalid state, for example by deleting a job or /// a job execution which is "IN_PROGRESS" without setting the force parameter. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for CancelJobExecution Operation public virtual CancelJobExecutionResponse CancelJobExecution(CancelJobExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Cancels the execution of a job for a given thing. /// /// /// /// Requires permission to access the CancelJobExecution /// action. /// /// /// Container for the necessary parameters to execute the CancelJobExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelJobExecution service method, as returned by IoT. /// /// The request is not valid. /// /// /// An attempt was made to change to an invalid state, for example by deleting a job or /// a job execution which is "IN_PROGRESS" without setting the force parameter. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for CancelJobExecution Operation public virtual Task CancelJobExecutionAsync(CancelJobExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ClearDefaultAuthorizer /// /// Clears the default authorizer. /// /// /// /// Requires permission to access the ClearDefaultAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the ClearDefaultAuthorizer service method. /// /// The response from the ClearDefaultAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ClearDefaultAuthorizer Operation public virtual ClearDefaultAuthorizerResponse ClearDefaultAuthorizer(ClearDefaultAuthorizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ClearDefaultAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = ClearDefaultAuthorizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Clears the default authorizer. /// /// /// /// Requires permission to access the ClearDefaultAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the ClearDefaultAuthorizer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ClearDefaultAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ClearDefaultAuthorizer Operation public virtual Task ClearDefaultAuthorizerAsync(ClearDefaultAuthorizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ClearDefaultAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = ClearDefaultAuthorizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ConfirmTopicRuleDestination /// /// 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. /// /// /// Container for the necessary parameters to execute the ConfirmTopicRuleDestination service method. /// /// The response from the ConfirmTopicRuleDestination service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ConfirmTopicRuleDestination Operation public virtual ConfirmTopicRuleDestinationResponse ConfirmTopicRuleDestination(ConfirmTopicRuleDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ConfirmTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = ConfirmTopicRuleDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ConfirmTopicRuleDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ConfirmTopicRuleDestination service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ConfirmTopicRuleDestination Operation public virtual Task ConfirmTopicRuleDestinationAsync(ConfirmTopicRuleDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ConfirmTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = ConfirmTopicRuleDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateAuditSuppression /// /// Creates a Device Defender audit suppression. /// /// /// /// Requires permission to access the CreateAuditSuppression /// action. /// /// /// Container for the necessary parameters to execute the CreateAuditSuppression service method. /// /// The response from the CreateAuditSuppression service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateAuditSuppression Operation public virtual CreateAuditSuppressionResponse CreateAuditSuppression(CreateAuditSuppressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAuditSuppressionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAuditSuppressionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a Device Defender audit suppression. /// /// /// /// Requires permission to access the CreateAuditSuppression /// action. /// /// /// Container for the necessary parameters to execute the CreateAuditSuppression service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateAuditSuppression service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateAuditSuppression Operation public virtual Task CreateAuditSuppressionAsync(CreateAuditSuppressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAuditSuppressionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAuditSuppressionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateAuthorizer /// /// Creates an authorizer. /// /// /// /// Requires permission to access the CreateAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the CreateAuthorizer service method. /// /// The response from the CreateAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateAuthorizer Operation public virtual CreateAuthorizerResponse CreateAuthorizer(CreateAuthorizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAuthorizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an authorizer. /// /// /// /// Requires permission to access the CreateAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the CreateAuthorizer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateAuthorizer Operation public virtual Task CreateAuthorizerAsync(CreateAuthorizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAuthorizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateBillingGroup /// /// Creates a billing group. /// /// /// /// Requires permission to access the CreateBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the CreateBillingGroup service method. /// /// The response from the CreateBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateBillingGroup Operation public virtual CreateBillingGroupResponse CreateBillingGroup(CreateBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBillingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a billing group. /// /// /// /// Requires permission to access the CreateBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the CreateBillingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateBillingGroup Operation public virtual Task CreateBillingGroupAsync(CreateBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBillingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateCertificateFromCsr /// /// 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" /// /// /// The certificate signing request (CSR). /// /// The response from the CreateCertificateFromCsr service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateCertificateFromCsr Operation public virtual CreateCertificateFromCsrResponse CreateCertificateFromCsr(string certificateSigningRequest) { var request = new CreateCertificateFromCsrRequest(); request.CertificateSigningRequest = certificateSigningRequest; return CreateCertificateFromCsr(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" /// /// /// The certificate signing request (CSR). /// Specifies whether the certificate is active. /// /// The response from the CreateCertificateFromCsr service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateCertificateFromCsr Operation public virtual CreateCertificateFromCsrResponse CreateCertificateFromCsr(string certificateSigningRequest, bool setAsActive) { var request = new CreateCertificateFromCsrRequest(); request.CertificateSigningRequest = certificateSigningRequest; request.SetAsActive = setAsActive; return CreateCertificateFromCsr(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" /// /// /// Container for the necessary parameters to execute the CreateCertificateFromCsr service method. /// /// The response from the CreateCertificateFromCsr service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateCertificateFromCsr Operation public virtual CreateCertificateFromCsrResponse CreateCertificateFromCsr(CreateCertificateFromCsrRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCertificateFromCsrRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCertificateFromCsrResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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" /// /// /// The certificate signing request (CSR). /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCertificateFromCsr service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateCertificateFromCsr Operation public virtual Task CreateCertificateFromCsrAsync(string certificateSigningRequest, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreateCertificateFromCsrRequest(); request.CertificateSigningRequest = certificateSigningRequest; return CreateCertificateFromCsrAsync(request, cancellationToken); } /// /// 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" /// /// /// The certificate signing request (CSR). /// Specifies whether the certificate is active. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCertificateFromCsr service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateCertificateFromCsr Operation public virtual Task CreateCertificateFromCsrAsync(string certificateSigningRequest, bool setAsActive, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreateCertificateFromCsrRequest(); request.CertificateSigningRequest = certificateSigningRequest; request.SetAsActive = setAsActive; return CreateCertificateFromCsrAsync(request, cancellationToken); } /// /// 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" /// /// /// Container for the necessary parameters to execute the CreateCertificateFromCsr service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCertificateFromCsr service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateCertificateFromCsr Operation public virtual Task CreateCertificateFromCsrAsync(CreateCertificateFromCsrRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCertificateFromCsrRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCertificateFromCsrResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateCustomMetric /// /// Use this API to define a Custom Metric published by your devices to Device Defender. /// /// /// /// /// Requires permission to access the CreateCustomMetric /// action. /// /// /// Container for the necessary parameters to execute the CreateCustomMetric service method. /// /// The response from the CreateCustomMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateCustomMetric Operation public virtual CreateCustomMetricResponse CreateCustomMetric(CreateCustomMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomMetricResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Use this API to define a Custom Metric published by your devices to Device Defender. /// /// /// /// /// Requires permission to access the CreateCustomMetric /// action. /// /// /// Container for the necessary parameters to execute the CreateCustomMetric service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCustomMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateCustomMetric Operation public virtual Task CreateCustomMetricAsync(CreateCustomMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomMetricResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDimension /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateDimension service method. /// /// The response from the CreateDimension service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateDimension Operation public virtual CreateDimensionResponse CreateDimension(CreateDimensionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDimensionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDimensionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateDimension service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDimension service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateDimension Operation public virtual Task CreateDimensionAsync(CreateDimensionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDimensionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDimensionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDomainConfiguration /// /// Creates a domain configuration. /// /// /// /// Requires permission to access the CreateDomainConfiguration /// action. /// /// /// Container for the necessary parameters to execute the CreateDomainConfiguration service method. /// /// The response from the CreateDomainConfiguration service method, as returned by IoT. /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateDomainConfiguration Operation public virtual CreateDomainConfigurationResponse CreateDomainConfiguration(CreateDomainConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a domain configuration. /// /// /// /// Requires permission to access the CreateDomainConfiguration /// action. /// /// /// Container for the necessary parameters to execute the CreateDomainConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDomainConfiguration service method, as returned by IoT. /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateDomainConfiguration Operation public virtual Task CreateDomainConfigurationAsync(CreateDomainConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDynamicThingGroup /// /// Creates a dynamic thing group. /// /// /// /// Requires permission to access the CreateDynamicThingGroup /// action. /// /// /// Container for the necessary parameters to execute the CreateDynamicThingGroup service method. /// /// The response from the CreateDynamicThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateDynamicThingGroup Operation public virtual CreateDynamicThingGroupResponse CreateDynamicThingGroup(CreateDynamicThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDynamicThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDynamicThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a dynamic thing group. /// /// /// /// Requires permission to access the CreateDynamicThingGroup /// action. /// /// /// Container for the necessary parameters to execute the CreateDynamicThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDynamicThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateDynamicThingGroup Operation public virtual Task CreateDynamicThingGroupAsync(CreateDynamicThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDynamicThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDynamicThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateFleetMetric /// /// Creates a fleet metric. /// /// /// /// Requires permission to access the CreateFleetMetric /// action. /// /// /// Container for the necessary parameters to execute the CreateFleetMetric service method. /// /// The response from the CreateFleetMetric service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateFleetMetric Operation public virtual CreateFleetMetricResponse CreateFleetMetric(CreateFleetMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFleetMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFleetMetricResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a fleet metric. /// /// /// /// Requires permission to access the CreateFleetMetric /// action. /// /// /// Container for the necessary parameters to execute the CreateFleetMetric service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateFleetMetric service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateFleetMetric Operation public virtual Task CreateFleetMetricAsync(CreateFleetMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFleetMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFleetMetricResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateJob /// /// Creates a job. /// /// /// /// Requires permission to access the CreateJob /// action. /// /// /// Container for the necessary parameters to execute the CreateJob service method. /// /// The response from the CreateJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateJob Operation public virtual CreateJobResponse CreateJob(CreateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a job. /// /// /// /// Requires permission to access the CreateJob /// action. /// /// /// Container for the necessary parameters to execute the CreateJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateJob Operation public virtual Task CreateJobAsync(CreateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateJobTemplate /// /// Creates a job template. /// /// /// /// Requires permission to access the CreateJobTemplate /// action. /// /// /// Container for the necessary parameters to execute the CreateJobTemplate service method. /// /// The response from the CreateJobTemplate service method, as returned by IoT. /// /// A resource with the same name already exists. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateJobTemplate Operation public virtual CreateJobTemplateResponse CreateJobTemplate(CreateJobTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a job template. /// /// /// /// Requires permission to access the CreateJobTemplate /// action. /// /// /// Container for the necessary parameters to execute the CreateJobTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateJobTemplate service method, as returned by IoT. /// /// A resource with the same name already exists. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateJobTemplate Operation public virtual Task CreateJobTemplateAsync(CreateJobTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateKeysAndCertificate /// /// 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. /// /// /// /// The response from the CreateKeysAndCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateKeysAndCertificate Operation public virtual CreateKeysAndCertificateResponse CreateKeysAndCertificate() { var request = new CreateKeysAndCertificateRequest(); return CreateKeysAndCertificate(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. /// /// /// Specifies whether the certificate is active. /// /// The response from the CreateKeysAndCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateKeysAndCertificate Operation public virtual CreateKeysAndCertificateResponse CreateKeysAndCertificate(bool setAsActive) { var request = new CreateKeysAndCertificateRequest(); request.SetAsActive = setAsActive; return CreateKeysAndCertificate(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. /// /// /// Container for the necessary parameters to execute the CreateKeysAndCertificate service method. /// /// The response from the CreateKeysAndCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateKeysAndCertificate Operation public virtual CreateKeysAndCertificateResponse CreateKeysAndCertificate(CreateKeysAndCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateKeysAndCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateKeysAndCertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateKeysAndCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateKeysAndCertificate Operation public virtual Task CreateKeysAndCertificateAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreateKeysAndCertificateRequest(); return CreateKeysAndCertificateAsync(request, cancellationToken); } /// /// 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. /// /// /// Specifies whether the certificate is active. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateKeysAndCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateKeysAndCertificate Operation public virtual Task CreateKeysAndCertificateAsync(bool setAsActive, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreateKeysAndCertificateRequest(); request.SetAsActive = setAsActive; return CreateKeysAndCertificateAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateKeysAndCertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateKeysAndCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateKeysAndCertificate Operation public virtual Task CreateKeysAndCertificateAsync(CreateKeysAndCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateKeysAndCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateKeysAndCertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateMitigationAction /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateMitigationAction service method. /// /// The response from the CreateMitigationAction service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateMitigationAction Operation public virtual CreateMitigationActionResponse CreateMitigationAction(CreateMitigationActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateMitigationActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateMitigationActionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateMitigationAction service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateMitigationAction service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateMitigationAction Operation public virtual Task CreateMitigationActionAsync(CreateMitigationActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateMitigationActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateMitigationActionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateOTAUpdate /// /// Creates an IoT OTA update on a target group of things or groups. /// /// /// /// Requires permission to access the CreateOTAUpdate /// action. /// /// /// Container for the necessary parameters to execute the CreateOTAUpdate service method. /// /// The response from the CreateOTAUpdate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateOTAUpdate Operation public virtual CreateOTAUpdateResponse CreateOTAUpdate(CreateOTAUpdateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOTAUpdateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOTAUpdateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an IoT OTA update on a target group of things or groups. /// /// /// /// Requires permission to access the CreateOTAUpdate /// action. /// /// /// Container for the necessary parameters to execute the CreateOTAUpdate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateOTAUpdate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateOTAUpdate Operation public virtual Task CreateOTAUpdateAsync(CreateOTAUpdateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOTAUpdateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOTAUpdateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePackage /// /// Creates an IoT software package that can be deployed to your fleet. /// /// /// /// Requires permission to access the CreatePackage /// and GetIndexingConfiguration /// actions. /// /// /// Container for the necessary parameters to execute the CreatePackage service method. /// /// The response from the CreatePackage service method, as returned by IoT. /// /// A resource with the same name already exists. /// /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// A limit has been exceeded. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for CreatePackage Operation public virtual CreatePackageResponse CreatePackage(CreatePackageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePackageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an IoT software package that can be deployed to your fleet. /// /// /// /// Requires permission to access the CreatePackage /// and GetIndexingConfiguration /// actions. /// /// /// Container for the necessary parameters to execute the CreatePackage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePackage service method, as returned by IoT. /// /// A resource with the same name already exists. /// /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// A limit has been exceeded. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for CreatePackage Operation public virtual Task CreatePackageAsync(CreatePackageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePackageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePackageVersion /// /// Creates a new version for an existing IoT software package. /// /// /// /// Requires permission to access the CreatePackageVersion /// and GetIndexingConfiguration /// actions. /// /// /// Container for the necessary parameters to execute the CreatePackageVersion service method. /// /// The response from the CreatePackageVersion service method, as returned by IoT. /// /// A resource with the same name already exists. /// /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// A limit has been exceeded. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for CreatePackageVersion Operation public virtual CreatePackageVersionResponse CreatePackageVersion(CreatePackageVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePackageVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new version for an existing IoT software package. /// /// /// /// Requires permission to access the CreatePackageVersion /// and GetIndexingConfiguration /// actions. /// /// /// Container for the necessary parameters to execute the CreatePackageVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePackageVersion service method, as returned by IoT. /// /// A resource with the same name already exists. /// /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// A limit has been exceeded. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for CreatePackageVersion Operation public virtual Task CreatePackageVersionAsync(CreatePackageVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePackageVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePolicy /// /// 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. /// /// /// The policy name. /// The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace. /// /// The response from the CreatePolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreatePolicy Operation public virtual CreatePolicyResponse CreatePolicy(string policyName, string policyDocument) { var request = new CreatePolicyRequest(); request.PolicyName = policyName; request.PolicyDocument = policyDocument; return CreatePolicy(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. /// /// /// Container for the necessary parameters to execute the CreatePolicy service method. /// /// The response from the CreatePolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreatePolicy Operation public virtual CreatePolicyResponse CreatePolicy(CreatePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The policy name. /// The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreatePolicy Operation public virtual Task CreatePolicyAsync(string policyName, string policyDocument, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreatePolicyRequest(); request.PolicyName = policyName; request.PolicyDocument = policyDocument; return CreatePolicyAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreatePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreatePolicy Operation public virtual Task CreatePolicyAsync(CreatePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePolicyVersion /// /// 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. /// /// /// The policy name. /// The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace. /// /// The response from the CreatePolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// The number of policy versions exceeds the limit. /// /// REST API Reference for CreatePolicyVersion Operation public virtual CreatePolicyVersionResponse CreatePolicyVersion(string policyName, string policyDocument) { var request = new CreatePolicyVersionRequest(); request.PolicyName = policyName; request.PolicyDocument = policyDocument; return CreatePolicyVersion(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. /// /// /// The policy name. /// The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace. /// Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached). /// /// The response from the CreatePolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// The number of policy versions exceeds the limit. /// /// REST API Reference for CreatePolicyVersion Operation public virtual CreatePolicyVersionResponse CreatePolicyVersion(string policyName, string policyDocument, bool setAsDefault) { var request = new CreatePolicyVersionRequest(); request.PolicyName = policyName; request.PolicyDocument = policyDocument; request.SetAsDefault = setAsDefault; return CreatePolicyVersion(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. /// /// /// Container for the necessary parameters to execute the CreatePolicyVersion service method. /// /// The response from the CreatePolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// The number of policy versions exceeds the limit. /// /// REST API Reference for CreatePolicyVersion Operation public virtual CreatePolicyVersionResponse CreatePolicyVersion(CreatePolicyVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePolicyVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePolicyVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The policy name. /// The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// The number of policy versions exceeds the limit. /// /// REST API Reference for CreatePolicyVersion Operation public virtual Task CreatePolicyVersionAsync(string policyName, string policyDocument, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreatePolicyVersionRequest(); request.PolicyName = policyName; request.PolicyDocument = policyDocument; return CreatePolicyVersionAsync(request, cancellationToken); } /// /// 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. /// /// /// The policy name. /// The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace. /// Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached). /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// The number of policy versions exceeds the limit. /// /// REST API Reference for CreatePolicyVersion Operation public virtual Task CreatePolicyVersionAsync(string policyName, string policyDocument, bool setAsDefault, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreatePolicyVersionRequest(); request.PolicyName = policyName; request.PolicyDocument = policyDocument; request.SetAsDefault = setAsDefault; return CreatePolicyVersionAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreatePolicyVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The policy documentation is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// The number of policy versions exceeds the limit. /// /// REST API Reference for CreatePolicyVersion Operation public virtual Task CreatePolicyVersionAsync(CreatePolicyVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePolicyVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePolicyVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateProvisioningClaim /// /// Creates a provisioning claim. /// /// /// /// Requires permission to access the CreateProvisioningClaim /// action. /// /// /// Container for the necessary parameters to execute the CreateProvisioningClaim service method. /// /// The response from the CreateProvisioningClaim service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateProvisioningClaim Operation public virtual CreateProvisioningClaimResponse CreateProvisioningClaim(CreateProvisioningClaimRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProvisioningClaimRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProvisioningClaimResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a provisioning claim. /// /// /// /// Requires permission to access the CreateProvisioningClaim /// action. /// /// /// Container for the necessary parameters to execute the CreateProvisioningClaim service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateProvisioningClaim service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateProvisioningClaim Operation public virtual Task CreateProvisioningClaimAsync(CreateProvisioningClaimRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProvisioningClaimRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProvisioningClaimResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateProvisioningTemplate /// /// Creates a provisioning template. /// /// /// /// Requires permission to access the CreateProvisioningTemplate /// action. /// /// /// Container for the necessary parameters to execute the CreateProvisioningTemplate service method. /// /// The response from the CreateProvisioningTemplate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateProvisioningTemplate Operation public virtual CreateProvisioningTemplateResponse CreateProvisioningTemplate(CreateProvisioningTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProvisioningTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProvisioningTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a provisioning template. /// /// /// /// Requires permission to access the CreateProvisioningTemplate /// action. /// /// /// Container for the necessary parameters to execute the CreateProvisioningTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateProvisioningTemplate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateProvisioningTemplate Operation public virtual Task CreateProvisioningTemplateAsync(CreateProvisioningTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProvisioningTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProvisioningTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateProvisioningTemplateVersion /// /// Creates a new version of a provisioning template. /// /// /// /// Requires permission to access the CreateProvisioningTemplateVersion /// action. /// /// /// Container for the necessary parameters to execute the CreateProvisioningTemplateVersion service method. /// /// The response from the CreateProvisioningTemplateVersion service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// The number of policy versions exceeds the limit. /// /// REST API Reference for CreateProvisioningTemplateVersion Operation public virtual CreateProvisioningTemplateVersionResponse CreateProvisioningTemplateVersion(CreateProvisioningTemplateVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProvisioningTemplateVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProvisioningTemplateVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new version of a provisioning template. /// /// /// /// Requires permission to access the CreateProvisioningTemplateVersion /// action. /// /// /// Container for the necessary parameters to execute the CreateProvisioningTemplateVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateProvisioningTemplateVersion service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// The number of policy versions exceeds the limit. /// /// REST API Reference for CreateProvisioningTemplateVersion Operation public virtual Task CreateProvisioningTemplateVersionAsync(CreateProvisioningTemplateVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProvisioningTemplateVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProvisioningTemplateVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateRoleAlias /// /// Creates a role alias. /// /// /// /// Requires permission to access the CreateRoleAlias /// action. /// /// /// Container for the necessary parameters to execute the CreateRoleAlias service method. /// /// The response from the CreateRoleAlias service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateRoleAlias Operation public virtual CreateRoleAliasResponse CreateRoleAlias(CreateRoleAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRoleAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRoleAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a role alias. /// /// /// /// Requires permission to access the CreateRoleAlias /// action. /// /// /// Container for the necessary parameters to execute the CreateRoleAlias service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateRoleAlias service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateRoleAlias Operation public virtual Task CreateRoleAliasAsync(CreateRoleAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRoleAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRoleAliasResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateScheduledAudit /// /// Creates a scheduled audit that is run at a specified time interval. /// /// /// /// Requires permission to access the CreateScheduledAudit /// action. /// /// /// Container for the necessary parameters to execute the CreateScheduledAudit service method. /// /// The response from the CreateScheduledAudit service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateScheduledAudit Operation public virtual CreateScheduledAuditResponse CreateScheduledAudit(CreateScheduledAuditRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateScheduledAuditRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateScheduledAuditResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a scheduled audit that is run at a specified time interval. /// /// /// /// Requires permission to access the CreateScheduledAudit /// action. /// /// /// Container for the necessary parameters to execute the CreateScheduledAudit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateScheduledAudit service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateScheduledAudit Operation public virtual Task CreateScheduledAuditAsync(CreateScheduledAuditRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateScheduledAuditRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateScheduledAuditResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateSecurityProfile /// /// Creates a Device Defender security profile. /// /// /// /// Requires permission to access the CreateSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the CreateSecurityProfile service method. /// /// The response from the CreateSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateSecurityProfile Operation public virtual CreateSecurityProfileResponse CreateSecurityProfile(CreateSecurityProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSecurityProfileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a Device Defender security profile. /// /// /// /// Requires permission to access the CreateSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the CreateSecurityProfile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateSecurityProfile Operation public virtual Task CreateSecurityProfileAsync(CreateSecurityProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSecurityProfileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateStream /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateStream service method. /// /// The response from the CreateStream service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateStream Operation public virtual CreateStreamResponse CreateStream(CreateStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStreamResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateStream service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateStream service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateStream Operation public virtual Task CreateStreamAsync(CreateStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStreamResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateThing /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateThing service method. /// /// The response from the CreateThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateThing Operation public virtual CreateThingResponse CreateThing(CreateThingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThingRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateThing service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateThing Operation public virtual Task CreateThingAsync(CreateThingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThingRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateThingGroup /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateThingGroup service method. /// /// The response from the CreateThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateThingGroup Operation public virtual CreateThingGroupResponse CreateThingGroup(CreateThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The rate exceeds the limit. /// /// REST API Reference for CreateThingGroup Operation public virtual Task CreateThingGroupAsync(CreateThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateThingType /// /// Creates a new thing type. /// /// /// /// Requires permission to access the CreateThingType /// action. /// /// /// Container for the necessary parameters to execute the CreateThingType service method. /// /// The response from the CreateThingType service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateThingType Operation public virtual CreateThingTypeResponse CreateThingType(CreateThingTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThingTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThingTypeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new thing type. /// /// /// /// Requires permission to access the CreateThingType /// action. /// /// /// Container for the necessary parameters to execute the CreateThingType service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateThingType service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for CreateThingType Operation public virtual Task CreateThingTypeAsync(CreateThingTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThingTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThingTypeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateTopicRule /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateTopicRule service method. /// /// The response from the CreateTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The Rule-SQL expression can't be parsed correctly. /// /// REST API Reference for CreateTopicRule Operation public virtual CreateTopicRuleResponse CreateTopicRule(CreateTopicRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTopicRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateTopicRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The Rule-SQL expression can't be parsed correctly. /// /// REST API Reference for CreateTopicRule Operation public virtual Task CreateTopicRuleAsync(CreateTopicRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTopicRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateTopicRuleDestination /// /// Creates a topic rule destination. The destination must be confirmed prior to use. /// /// /// /// Requires permission to access the CreateTopicRuleDestination /// action. /// /// /// Container for the necessary parameters to execute the CreateTopicRuleDestination service method. /// /// The response from the CreateTopicRuleDestination service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for CreateTopicRuleDestination Operation public virtual CreateTopicRuleDestinationResponse CreateTopicRuleDestination(CreateTopicRuleDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTopicRuleDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a topic rule destination. The destination must be confirmed prior to use. /// /// /// /// Requires permission to access the CreateTopicRuleDestination /// action. /// /// /// Container for the necessary parameters to execute the CreateTopicRuleDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateTopicRuleDestination service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for CreateTopicRuleDestination Operation public virtual Task CreateTopicRuleDestinationAsync(CreateTopicRuleDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTopicRuleDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAccountAuditConfiguration /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteAccountAuditConfiguration service method. /// /// The response from the DeleteAccountAuditConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteAccountAuditConfiguration Operation public virtual DeleteAccountAuditConfigurationResponse DeleteAccountAuditConfiguration(DeleteAccountAuditConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAccountAuditConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAccountAuditConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteAccountAuditConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAccountAuditConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteAccountAuditConfiguration Operation public virtual Task DeleteAccountAuditConfigurationAsync(DeleteAccountAuditConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAccountAuditConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAccountAuditConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAuditSuppression /// /// Deletes a Device Defender audit suppression. /// /// /// /// Requires permission to access the DeleteAuditSuppression /// action. /// /// /// Container for the necessary parameters to execute the DeleteAuditSuppression service method. /// /// The response from the DeleteAuditSuppression service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteAuditSuppression Operation public virtual DeleteAuditSuppressionResponse DeleteAuditSuppression(DeleteAuditSuppressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAuditSuppressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAuditSuppressionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a Device Defender audit suppression. /// /// /// /// Requires permission to access the DeleteAuditSuppression /// action. /// /// /// Container for the necessary parameters to execute the DeleteAuditSuppression service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAuditSuppression service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteAuditSuppression Operation public virtual Task DeleteAuditSuppressionAsync(DeleteAuditSuppressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAuditSuppressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAuditSuppressionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAuthorizer /// /// Deletes an authorizer. /// /// /// /// Requires permission to access the DeleteAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the DeleteAuthorizer service method. /// /// The response from the DeleteAuthorizer service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteAuthorizer Operation public virtual DeleteAuthorizerResponse DeleteAuthorizer(DeleteAuthorizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAuthorizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an authorizer. /// /// /// /// Requires permission to access the DeleteAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the DeleteAuthorizer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAuthorizer service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteAuthorizer Operation public virtual Task DeleteAuthorizerAsync(DeleteAuthorizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAuthorizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteBillingGroup /// /// Deletes the billing group. /// /// /// /// Requires permission to access the DeleteBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the DeleteBillingGroup service method. /// /// The response from the DeleteBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteBillingGroup Operation public virtual DeleteBillingGroupResponse DeleteBillingGroup(DeleteBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBillingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the billing group. /// /// /// /// Requires permission to access the DeleteBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the DeleteBillingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteBillingGroup Operation public virtual Task DeleteBillingGroupAsync(DeleteBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBillingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteCACertificate /// /// Deletes a registered CA certificate. /// /// /// /// Requires permission to access the DeleteCACertificate /// action. /// /// /// Container for the necessary parameters to execute the DeleteCACertificate service method. /// /// The response from the DeleteCACertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteCACertificate Operation public virtual DeleteCACertificateResponse DeleteCACertificate(DeleteCACertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCACertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCACertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a registered CA certificate. /// /// /// /// Requires permission to access the DeleteCACertificate /// action. /// /// /// Container for the necessary parameters to execute the DeleteCACertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCACertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteCACertificate Operation public virtual Task DeleteCACertificateAsync(DeleteCACertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCACertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCACertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteCertificate /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// /// The response from the DeleteCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteCertificate Operation public virtual DeleteCertificateResponse DeleteCertificate(string certificateId) { var request = new DeleteCertificateRequest(); request.CertificateId = certificateId; return DeleteCertificate(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. /// /// /// Container for the necessary parameters to execute the DeleteCertificate service method. /// /// The response from the DeleteCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteCertificate Operation public virtual DeleteCertificateResponse DeleteCertificate(DeleteCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteCertificate Operation public virtual Task DeleteCertificateAsync(string certificateId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteCertificateRequest(); request.CertificateId = certificateId; return DeleteCertificateAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteCertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteCertificate Operation public virtual Task DeleteCertificateAsync(DeleteCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteCustomMetric /// /// 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. /// /// /// /// Container for the necessary parameters to execute the DeleteCustomMetric service method. /// /// The response from the DeleteCustomMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteCustomMetric Operation public virtual DeleteCustomMetricResponse DeleteCustomMetric(DeleteCustomMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomMetricResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// /// Container for the necessary parameters to execute the DeleteCustomMetric service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCustomMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteCustomMetric Operation public virtual Task DeleteCustomMetricAsync(DeleteCustomMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomMetricResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDimension /// /// Removes the specified dimension from your Amazon Web Services accounts. /// /// /// /// Requires permission to access the DeleteDimension /// action. /// /// /// Container for the necessary parameters to execute the DeleteDimension service method. /// /// The response from the DeleteDimension service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteDimension Operation public virtual DeleteDimensionResponse DeleteDimension(DeleteDimensionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDimensionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDimensionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the specified dimension from your Amazon Web Services accounts. /// /// /// /// Requires permission to access the DeleteDimension /// action. /// /// /// Container for the necessary parameters to execute the DeleteDimension service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDimension service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteDimension Operation public virtual Task DeleteDimensionAsync(DeleteDimensionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDimensionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDimensionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDomainConfiguration /// /// Deletes the specified domain configuration. /// /// /// /// Requires permission to access the DeleteDomainConfiguration /// action. /// /// /// Container for the necessary parameters to execute the DeleteDomainConfiguration service method. /// /// The response from the DeleteDomainConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteDomainConfiguration Operation public virtual DeleteDomainConfigurationResponse DeleteDomainConfiguration(DeleteDomainConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified domain configuration. /// /// /// /// Requires permission to access the DeleteDomainConfiguration /// action. /// /// /// Container for the necessary parameters to execute the DeleteDomainConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDomainConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteDomainConfiguration Operation public virtual Task DeleteDomainConfigurationAsync(DeleteDomainConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDynamicThingGroup /// /// Deletes a dynamic thing group. /// /// /// /// Requires permission to access the DeleteDynamicThingGroup /// action. /// /// /// Container for the necessary parameters to execute the DeleteDynamicThingGroup service method. /// /// The response from the DeleteDynamicThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteDynamicThingGroup Operation public virtual DeleteDynamicThingGroupResponse DeleteDynamicThingGroup(DeleteDynamicThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDynamicThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDynamicThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a dynamic thing group. /// /// /// /// Requires permission to access the DeleteDynamicThingGroup /// action. /// /// /// Container for the necessary parameters to execute the DeleteDynamicThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDynamicThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteDynamicThingGroup Operation public virtual Task DeleteDynamicThingGroupAsync(DeleteDynamicThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDynamicThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDynamicThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteFleetMetric /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteFleetMetric service method. /// /// The response from the DeleteFleetMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteFleetMetric Operation public virtual DeleteFleetMetricResponse DeleteFleetMetric(DeleteFleetMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFleetMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFleetMetricResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteFleetMetric service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteFleetMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteFleetMetric Operation public virtual Task DeleteFleetMetricAsync(DeleteFleetMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFleetMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFleetMetricResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteJob /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteJob service method. /// /// The response from the DeleteJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// An attempt was made to change to an invalid state, for example by deleting a job or /// a job execution which is "IN_PROGRESS" without setting the force parameter. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteJob Operation public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// An attempt was made to change to an invalid state, for example by deleting a job or /// a job execution which is "IN_PROGRESS" without setting the force parameter. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteJob Operation public virtual Task DeleteJobAsync(DeleteJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteJobExecution /// /// Deletes a job execution. /// /// /// /// Requires permission to access the DeleteJobExecution /// action. /// /// /// Container for the necessary parameters to execute the DeleteJobExecution service method. /// /// The response from the DeleteJobExecution service method, as returned by IoT. /// /// The request is not valid. /// /// /// An attempt was made to change to an invalid state, for example by deleting a job or /// a job execution which is "IN_PROGRESS" without setting the force parameter. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteJobExecution Operation public virtual DeleteJobExecutionResponse DeleteJobExecution(DeleteJobExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a job execution. /// /// /// /// Requires permission to access the DeleteJobExecution /// action. /// /// /// Container for the necessary parameters to execute the DeleteJobExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteJobExecution service method, as returned by IoT. /// /// The request is not valid. /// /// /// An attempt was made to change to an invalid state, for example by deleting a job or /// a job execution which is "IN_PROGRESS" without setting the force parameter. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteJobExecution Operation public virtual Task DeleteJobExecutionAsync(DeleteJobExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteJobTemplate /// /// Deletes the specified job template. /// /// Container for the necessary parameters to execute the DeleteJobTemplate service method. /// /// The response from the DeleteJobTemplate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteJobTemplate Operation public virtual DeleteJobTemplateResponse DeleteJobTemplate(DeleteJobTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified job template. /// /// Container for the necessary parameters to execute the DeleteJobTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteJobTemplate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteJobTemplate Operation public virtual Task DeleteJobTemplateAsync(DeleteJobTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteJobTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteJobTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteMitigationAction /// /// Deletes a defined mitigation action from your Amazon Web Services accounts. /// /// /// /// Requires permission to access the DeleteMitigationAction /// action. /// /// /// Container for the necessary parameters to execute the DeleteMitigationAction service method. /// /// The response from the DeleteMitigationAction service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteMitigationAction Operation public virtual DeleteMitigationActionResponse DeleteMitigationAction(DeleteMitigationActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMitigationActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMitigationActionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a defined mitigation action from your Amazon Web Services accounts. /// /// /// /// Requires permission to access the DeleteMitigationAction /// action. /// /// /// Container for the necessary parameters to execute the DeleteMitigationAction service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteMitigationAction service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteMitigationAction Operation public virtual Task DeleteMitigationActionAsync(DeleteMitigationActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMitigationActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMitigationActionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteOTAUpdate /// /// Delete an OTA update. /// /// /// /// Requires permission to access the DeleteOTAUpdate /// action. /// /// /// Container for the necessary parameters to execute the DeleteOTAUpdate service method. /// /// The response from the DeleteOTAUpdate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteOTAUpdate Operation public virtual DeleteOTAUpdateResponse DeleteOTAUpdate(DeleteOTAUpdateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteOTAUpdateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteOTAUpdateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Delete an OTA update. /// /// /// /// Requires permission to access the DeleteOTAUpdate /// action. /// /// /// Container for the necessary parameters to execute the DeleteOTAUpdate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteOTAUpdate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteOTAUpdate Operation public virtual Task DeleteOTAUpdateAsync(DeleteOTAUpdateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteOTAUpdateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteOTAUpdateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePackage /// /// 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. /// /// /// Container for the necessary parameters to execute the DeletePackage service method. /// /// The response from the DeletePackage service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for DeletePackage Operation public virtual DeletePackageResponse DeletePackage(DeletePackageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeletePackage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePackage service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for DeletePackage Operation public virtual Task DeletePackageAsync(DeletePackageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePackageVersion /// /// 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. /// /// /// Container for the necessary parameters to execute the DeletePackageVersion service method. /// /// The response from the DeletePackageVersion service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for DeletePackageVersion Operation public virtual DeletePackageVersionResponse DeletePackageVersion(DeletePackageVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackageVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeletePackageVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePackageVersion service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for DeletePackageVersion Operation public virtual Task DeletePackageVersionAsync(DeletePackageVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackageVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePolicy /// /// 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. /// /// /// The name of the policy to delete. /// /// The response from the DeletePolicy service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeletePolicy Operation public virtual DeletePolicyResponse DeletePolicy(string policyName) { var request = new DeletePolicyRequest(); request.PolicyName = policyName; return DeletePolicy(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. /// /// /// Container for the necessary parameters to execute the DeletePolicy service method. /// /// The response from the DeletePolicy service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeletePolicy Operation public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The name of the policy to delete. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePolicy service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeletePolicy Operation public virtual Task DeletePolicyAsync(string policyName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeletePolicyRequest(); request.PolicyName = policyName; return DeletePolicyAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeletePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePolicy service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeletePolicy Operation public virtual Task DeletePolicyAsync(DeletePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePolicyVersion /// /// 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. /// /// /// The name of the policy. /// The policy version ID. /// /// The response from the DeletePolicyVersion service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeletePolicyVersion Operation public virtual DeletePolicyVersionResponse DeletePolicyVersion(string policyName, string policyVersionId) { var request = new DeletePolicyVersionRequest(); request.PolicyName = policyName; request.PolicyVersionId = policyVersionId; return DeletePolicyVersion(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. /// /// /// Container for the necessary parameters to execute the DeletePolicyVersion service method. /// /// The response from the DeletePolicyVersion service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeletePolicyVersion Operation public virtual DeletePolicyVersionResponse DeletePolicyVersion(DeletePolicyVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The name of the policy. /// The policy version ID. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePolicyVersion service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeletePolicyVersion Operation public virtual Task DeletePolicyVersionAsync(string policyName, string policyVersionId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeletePolicyVersionRequest(); request.PolicyName = policyName; request.PolicyVersionId = policyVersionId; return DeletePolicyVersionAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeletePolicyVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePolicyVersion service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeletePolicyVersion Operation public virtual Task DeletePolicyVersionAsync(DeletePolicyVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteProvisioningTemplate /// /// Deletes a provisioning template. /// /// /// /// Requires permission to access the DeleteProvisioningTemplate /// action. /// /// /// Container for the necessary parameters to execute the DeleteProvisioningTemplate service method. /// /// The response from the DeleteProvisioningTemplate service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteProvisioningTemplate Operation public virtual DeleteProvisioningTemplateResponse DeleteProvisioningTemplate(DeleteProvisioningTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProvisioningTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProvisioningTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a provisioning template. /// /// /// /// Requires permission to access the DeleteProvisioningTemplate /// action. /// /// /// Container for the necessary parameters to execute the DeleteProvisioningTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteProvisioningTemplate service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteProvisioningTemplate Operation public virtual Task DeleteProvisioningTemplateAsync(DeleteProvisioningTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProvisioningTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProvisioningTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteProvisioningTemplateVersion /// /// Deletes a provisioning template version. /// /// /// /// Requires permission to access the DeleteProvisioningTemplateVersion /// action. /// /// /// Container for the necessary parameters to execute the DeleteProvisioningTemplateVersion service method. /// /// The response from the DeleteProvisioningTemplateVersion service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteProvisioningTemplateVersion Operation public virtual DeleteProvisioningTemplateVersionResponse DeleteProvisioningTemplateVersion(DeleteProvisioningTemplateVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProvisioningTemplateVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProvisioningTemplateVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a provisioning template version. /// /// /// /// Requires permission to access the DeleteProvisioningTemplateVersion /// action. /// /// /// Container for the necessary parameters to execute the DeleteProvisioningTemplateVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteProvisioningTemplateVersion service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteProvisioningTemplateVersion Operation public virtual Task DeleteProvisioningTemplateVersionAsync(DeleteProvisioningTemplateVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProvisioningTemplateVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProvisioningTemplateVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteRegistrationCode /// /// Deletes a CA certificate registration code. /// /// /// /// Requires permission to access the DeleteRegistrationCode /// action. /// /// /// Container for the necessary parameters to execute the DeleteRegistrationCode service method. /// /// The response from the DeleteRegistrationCode service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteRegistrationCode Operation public virtual DeleteRegistrationCodeResponse DeleteRegistrationCode(DeleteRegistrationCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRegistrationCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRegistrationCodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a CA certificate registration code. /// /// /// /// Requires permission to access the DeleteRegistrationCode /// action. /// /// /// Container for the necessary parameters to execute the DeleteRegistrationCode service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteRegistrationCode service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteRegistrationCode Operation public virtual Task DeleteRegistrationCodeAsync(DeleteRegistrationCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRegistrationCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRegistrationCodeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteRoleAlias /// /// Deletes a role alias /// /// /// /// Requires permission to access the DeleteRoleAlias /// action. /// /// /// Container for the necessary parameters to execute the DeleteRoleAlias service method. /// /// The response from the DeleteRoleAlias service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteRoleAlias Operation public virtual DeleteRoleAliasResponse DeleteRoleAlias(DeleteRoleAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRoleAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRoleAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a role alias /// /// /// /// Requires permission to access the DeleteRoleAlias /// action. /// /// /// Container for the necessary parameters to execute the DeleteRoleAlias service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteRoleAlias service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteRoleAlias Operation public virtual Task DeleteRoleAliasAsync(DeleteRoleAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRoleAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRoleAliasResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteScheduledAudit /// /// Deletes a scheduled audit. /// /// /// /// Requires permission to access the DeleteScheduledAudit /// action. /// /// /// Container for the necessary parameters to execute the DeleteScheduledAudit service method. /// /// The response from the DeleteScheduledAudit service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteScheduledAudit Operation public virtual DeleteScheduledAuditResponse DeleteScheduledAudit(DeleteScheduledAuditRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScheduledAuditRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScheduledAuditResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a scheduled audit. /// /// /// /// Requires permission to access the DeleteScheduledAudit /// action. /// /// /// Container for the necessary parameters to execute the DeleteScheduledAudit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteScheduledAudit service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DeleteScheduledAudit Operation public virtual Task DeleteScheduledAuditAsync(DeleteScheduledAuditRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScheduledAuditRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScheduledAuditResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteSecurityProfile /// /// Deletes a Device Defender security profile. /// /// /// /// Requires permission to access the DeleteSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the DeleteSecurityProfile service method. /// /// The response from the DeleteSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteSecurityProfile Operation public virtual DeleteSecurityProfileResponse DeleteSecurityProfile(DeleteSecurityProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSecurityProfileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a Device Defender security profile. /// /// /// /// Requires permission to access the DeleteSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the DeleteSecurityProfile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteSecurityProfile Operation public virtual Task DeleteSecurityProfileAsync(DeleteSecurityProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSecurityProfileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteStream /// /// Deletes a stream. /// /// /// /// Requires permission to access the DeleteStream /// action. /// /// /// Container for the necessary parameters to execute the DeleteStream service method. /// /// The response from the DeleteStream service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteStream Operation public virtual DeleteStreamResponse DeleteStream(DeleteStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStreamResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a stream. /// /// /// /// Requires permission to access the DeleteStream /// action. /// /// /// Container for the necessary parameters to execute the DeleteStream service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteStream service method, as returned by IoT. /// /// You can't delete the resource because it is attached to one or more resources. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteStream Operation public virtual Task DeleteStreamAsync(DeleteStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStreamResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteThing /// /// 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. /// /// /// The name of the thing to delete. /// /// The response from the DeleteThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteThing Operation public virtual DeleteThingResponse DeleteThing(string thingName) { var request = new DeleteThingRequest(); request.ThingName = thingName; return DeleteThing(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. /// /// /// Container for the necessary parameters to execute the DeleteThing service method. /// /// The response from the DeleteThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteThing Operation public virtual DeleteThingResponse DeleteThing(DeleteThingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThingRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The name of the thing to delete. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteThing Operation public virtual Task DeleteThingAsync(string thingName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteThingRequest(); request.ThingName = thingName; return DeleteThingAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteThing service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteThing Operation public virtual Task DeleteThingAsync(DeleteThingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThingRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteThingGroup /// /// Deletes a thing group. /// /// /// /// Requires permission to access the DeleteThingGroup /// action. /// /// /// Container for the necessary parameters to execute the DeleteThingGroup service method. /// /// The response from the DeleteThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteThingGroup Operation public virtual DeleteThingGroupResponse DeleteThingGroup(DeleteThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a thing group. /// /// /// /// Requires permission to access the DeleteThingGroup /// action. /// /// /// Container for the necessary parameters to execute the DeleteThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for DeleteThingGroup Operation public virtual Task DeleteThingGroupAsync(DeleteThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteThingType /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteThingType service method. /// /// The response from the DeleteThingType service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteThingType Operation public virtual DeleteThingTypeResponse DeleteThingType(DeleteThingTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThingTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThingTypeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteThingType service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteThingType service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteThingType Operation public virtual Task DeleteThingTypeAsync(DeleteThingTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThingTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThingTypeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteTopicRule /// /// Deletes the rule. /// /// /// /// Requires permission to access the DeleteTopicRule /// action. /// /// /// The name of the rule. /// /// The response from the DeleteTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteTopicRule Operation public virtual DeleteTopicRuleResponse DeleteTopicRule(string ruleName) { var request = new DeleteTopicRuleRequest(); request.RuleName = ruleName; return DeleteTopicRule(request); } /// /// Deletes the rule. /// /// /// /// Requires permission to access the DeleteTopicRule /// action. /// /// /// Container for the necessary parameters to execute the DeleteTopicRule service method. /// /// The response from the DeleteTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteTopicRule Operation public virtual DeleteTopicRuleResponse DeleteTopicRule(DeleteTopicRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTopicRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the rule. /// /// /// /// Requires permission to access the DeleteTopicRule /// action. /// /// /// The name of the rule. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteTopicRule Operation public virtual Task DeleteTopicRuleAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteTopicRuleRequest(); request.RuleName = ruleName; return DeleteTopicRuleAsync(request, cancellationToken); } /// /// Deletes the rule. /// /// /// /// Requires permission to access the DeleteTopicRule /// action. /// /// /// Container for the necessary parameters to execute the DeleteTopicRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteTopicRule Operation public virtual Task DeleteTopicRuleAsync(DeleteTopicRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTopicRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteTopicRuleDestination /// /// Deletes a topic rule destination. /// /// /// /// Requires permission to access the DeleteTopicRuleDestination /// action. /// /// /// Container for the necessary parameters to execute the DeleteTopicRuleDestination service method. /// /// The response from the DeleteTopicRuleDestination service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteTopicRuleDestination Operation public virtual DeleteTopicRuleDestinationResponse DeleteTopicRuleDestination(DeleteTopicRuleDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTopicRuleDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a topic rule destination. /// /// /// /// Requires permission to access the DeleteTopicRuleDestination /// action. /// /// /// Container for the necessary parameters to execute the DeleteTopicRuleDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteTopicRuleDestination service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeleteTopicRuleDestination Operation public virtual Task DeleteTopicRuleDestinationAsync(DeleteTopicRuleDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTopicRuleDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteV2LoggingLevel /// /// Deletes a logging level. /// /// /// /// Requires permission to access the DeleteV2LoggingLevel /// action. /// /// /// Container for the necessary parameters to execute the DeleteV2LoggingLevel service method. /// /// The response from the DeleteV2LoggingLevel service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for DeleteV2LoggingLevel Operation public virtual DeleteV2LoggingLevelResponse DeleteV2LoggingLevel(DeleteV2LoggingLevelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteV2LoggingLevelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteV2LoggingLevelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a logging level. /// /// /// /// Requires permission to access the DeleteV2LoggingLevel /// action. /// /// /// Container for the necessary parameters to execute the DeleteV2LoggingLevel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteV2LoggingLevel service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for DeleteV2LoggingLevel Operation public virtual Task DeleteV2LoggingLevelAsync(DeleteV2LoggingLevelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteV2LoggingLevelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteV2LoggingLevelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeprecateThingType /// /// Deprecates a thing type. You can not associate new things with deprecated thing type. /// /// /// /// Requires permission to access the DeprecateThingType /// action. /// /// /// Container for the necessary parameters to execute the DeprecateThingType service method. /// /// The response from the DeprecateThingType service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeprecateThingType Operation public virtual DeprecateThingTypeResponse DeprecateThingType(DeprecateThingTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeprecateThingTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeprecateThingTypeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deprecates a thing type. You can not associate new things with deprecated thing type. /// /// /// /// Requires permission to access the DeprecateThingType /// action. /// /// /// Container for the necessary parameters to execute the DeprecateThingType service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeprecateThingType service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DeprecateThingType Operation public virtual Task DeprecateThingTypeAsync(DeprecateThingTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeprecateThingTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeprecateThingTypeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAccountAuditConfiguration /// /// 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. /// /// /// Container for the necessary parameters to execute the DescribeAccountAuditConfiguration service method. /// /// The response from the DescribeAccountAuditConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAccountAuditConfiguration Operation public virtual DescribeAccountAuditConfigurationResponse DescribeAccountAuditConfiguration(DescribeAccountAuditConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountAuditConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountAuditConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DescribeAccountAuditConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeAccountAuditConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAccountAuditConfiguration Operation public virtual Task DescribeAccountAuditConfigurationAsync(DescribeAccountAuditConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountAuditConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountAuditConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAuditFinding /// /// 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. /// /// /// Container for the necessary parameters to execute the DescribeAuditFinding service method. /// /// The response from the DescribeAuditFinding service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAuditFinding Operation public virtual DescribeAuditFindingResponse DescribeAuditFinding(DescribeAuditFindingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuditFindingRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuditFindingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DescribeAuditFinding service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeAuditFinding service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAuditFinding Operation public virtual Task DescribeAuditFindingAsync(DescribeAuditFindingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuditFindingRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuditFindingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAuditMitigationActionsTask /// /// 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. /// /// Container for the necessary parameters to execute the DescribeAuditMitigationActionsTask service method. /// /// The response from the DescribeAuditMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAuditMitigationActionsTask Operation public virtual DescribeAuditMitigationActionsTaskResponse DescribeAuditMitigationActionsTask(DescribeAuditMitigationActionsTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuditMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuditMitigationActionsTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// Container for the necessary parameters to execute the DescribeAuditMitigationActionsTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeAuditMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAuditMitigationActionsTask Operation public virtual Task DescribeAuditMitigationActionsTaskAsync(DescribeAuditMitigationActionsTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuditMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuditMitigationActionsTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAuditSuppression /// /// Gets information about a Device Defender audit suppression. /// /// Container for the necessary parameters to execute the DescribeAuditSuppression service method. /// /// The response from the DescribeAuditSuppression service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAuditSuppression Operation public virtual DescribeAuditSuppressionResponse DescribeAuditSuppression(DescribeAuditSuppressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuditSuppressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuditSuppressionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a Device Defender audit suppression. /// /// Container for the necessary parameters to execute the DescribeAuditSuppression service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeAuditSuppression service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAuditSuppression Operation public virtual Task DescribeAuditSuppressionAsync(DescribeAuditSuppressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuditSuppressionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuditSuppressionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAuditTask /// /// Gets information about a Device Defender audit. /// /// /// /// Requires permission to access the DescribeAuditTask /// action. /// /// /// Container for the necessary parameters to execute the DescribeAuditTask service method. /// /// The response from the DescribeAuditTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAuditTask Operation public virtual DescribeAuditTaskResponse DescribeAuditTask(DescribeAuditTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuditTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuditTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a Device Defender audit. /// /// /// /// Requires permission to access the DescribeAuditTask /// action. /// /// /// Container for the necessary parameters to execute the DescribeAuditTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeAuditTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeAuditTask Operation public virtual Task DescribeAuditTaskAsync(DescribeAuditTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuditTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuditTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAuthorizer /// /// Describes an authorizer. /// /// /// /// Requires permission to access the DescribeAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the DescribeAuthorizer service method. /// /// The response from the DescribeAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeAuthorizer Operation public virtual DescribeAuthorizerResponse DescribeAuthorizer(DescribeAuthorizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuthorizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes an authorizer. /// /// /// /// Requires permission to access the DescribeAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the DescribeAuthorizer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeAuthorizer Operation public virtual Task DescribeAuthorizerAsync(DescribeAuthorizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAuthorizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeBillingGroup /// /// Returns information about a billing group. /// /// /// /// Requires permission to access the DescribeBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the DescribeBillingGroup service method. /// /// The response from the DescribeBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeBillingGroup Operation public virtual DescribeBillingGroupResponse DescribeBillingGroup(DescribeBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBillingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a billing group. /// /// /// /// Requires permission to access the DescribeBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the DescribeBillingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeBillingGroup Operation public virtual Task DescribeBillingGroupAsync(DescribeBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBillingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeCACertificate /// /// Describes a registered CA certificate. /// /// /// /// Requires permission to access the DescribeCACertificate /// action. /// /// /// Container for the necessary parameters to execute the DescribeCACertificate service method. /// /// The response from the DescribeCACertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeCACertificate Operation public virtual DescribeCACertificateResponse DescribeCACertificate(DescribeCACertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCACertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCACertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a registered CA certificate. /// /// /// /// Requires permission to access the DescribeCACertificate /// action. /// /// /// Container for the necessary parameters to execute the DescribeCACertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeCACertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeCACertificate Operation public virtual Task DescribeCACertificateAsync(DescribeCACertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCACertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCACertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeCertificate /// /// Gets information about the specified certificate. /// /// /// /// Requires permission to access the DescribeCertificate /// action. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// /// The response from the DescribeCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeCertificate Operation public virtual DescribeCertificateResponse DescribeCertificate(string certificateId) { var request = new DescribeCertificateRequest(); request.CertificateId = certificateId; return DescribeCertificate(request); } /// /// Gets information about the specified certificate. /// /// /// /// Requires permission to access the DescribeCertificate /// action. /// /// /// Container for the necessary parameters to execute the DescribeCertificate service method. /// /// The response from the DescribeCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeCertificate Operation public virtual DescribeCertificateResponse DescribeCertificate(DescribeCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified certificate. /// /// /// /// Requires permission to access the DescribeCertificate /// action. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeCertificate Operation public virtual Task DescribeCertificateAsync(string certificateId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeCertificateRequest(); request.CertificateId = certificateId; return DescribeCertificateAsync(request, cancellationToken); } /// /// Gets information about the specified certificate. /// /// /// /// Requires permission to access the DescribeCertificate /// action. /// /// /// Container for the necessary parameters to execute the DescribeCertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeCertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeCertificate Operation public virtual Task DescribeCertificateAsync(DescribeCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeCustomMetric /// /// Gets information about a Device Defender detect custom metric. /// /// /// /// Requires permission to access the DescribeCustomMetric /// action. /// /// /// Container for the necessary parameters to execute the DescribeCustomMetric service method. /// /// The response from the DescribeCustomMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeCustomMetric Operation public virtual DescribeCustomMetricResponse DescribeCustomMetric(DescribeCustomMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCustomMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCustomMetricResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a Device Defender detect custom metric. /// /// /// /// Requires permission to access the DescribeCustomMetric /// action. /// /// /// Container for the necessary parameters to execute the DescribeCustomMetric service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeCustomMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeCustomMetric Operation public virtual Task DescribeCustomMetricAsync(DescribeCustomMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCustomMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCustomMetricResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDefaultAuthorizer /// /// Describes the default authorizer. /// /// /// /// Requires permission to access the DescribeDefaultAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the DescribeDefaultAuthorizer service method. /// /// The response from the DescribeDefaultAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeDefaultAuthorizer Operation public virtual DescribeDefaultAuthorizerResponse DescribeDefaultAuthorizer(DescribeDefaultAuthorizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDefaultAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDefaultAuthorizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the default authorizer. /// /// /// /// Requires permission to access the DescribeDefaultAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the DescribeDefaultAuthorizer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDefaultAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeDefaultAuthorizer Operation public virtual Task DescribeDefaultAuthorizerAsync(DescribeDefaultAuthorizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDefaultAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDefaultAuthorizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDetectMitigationActionsTask /// /// Gets information about a Device Defender ML Detect mitigation action. /// /// /// /// Requires permission to access the DescribeDetectMitigationActionsTask /// action. /// /// /// Container for the necessary parameters to execute the DescribeDetectMitigationActionsTask service method. /// /// The response from the DescribeDetectMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeDetectMitigationActionsTask Operation public virtual DescribeDetectMitigationActionsTaskResponse DescribeDetectMitigationActionsTask(DescribeDetectMitigationActionsTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDetectMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDetectMitigationActionsTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a Device Defender ML Detect mitigation action. /// /// /// /// Requires permission to access the DescribeDetectMitigationActionsTask /// action. /// /// /// Container for the necessary parameters to execute the DescribeDetectMitigationActionsTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDetectMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeDetectMitigationActionsTask Operation public virtual Task DescribeDetectMitigationActionsTaskAsync(DescribeDetectMitigationActionsTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDetectMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDetectMitigationActionsTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDimension /// /// Provides details about a dimension that is defined in your Amazon Web Services accounts. /// /// /// /// Requires permission to access the DescribeDimension /// action. /// /// /// Container for the necessary parameters to execute the DescribeDimension service method. /// /// The response from the DescribeDimension service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeDimension Operation public virtual DescribeDimensionResponse DescribeDimension(DescribeDimensionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDimensionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDimensionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides details about a dimension that is defined in your Amazon Web Services accounts. /// /// /// /// Requires permission to access the DescribeDimension /// action. /// /// /// Container for the necessary parameters to execute the DescribeDimension service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDimension service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeDimension Operation public virtual Task DescribeDimensionAsync(DescribeDimensionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDimensionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDimensionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDomainConfiguration /// /// Gets summary information about a domain configuration. /// /// /// /// Requires permission to access the DescribeDomainConfiguration /// action. /// /// /// Container for the necessary parameters to execute the DescribeDomainConfiguration service method. /// /// The response from the DescribeDomainConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeDomainConfiguration Operation public virtual DescribeDomainConfigurationResponse DescribeDomainConfiguration(DescribeDomainConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets summary information about a domain configuration. /// /// /// /// Requires permission to access the DescribeDomainConfiguration /// action. /// /// /// Container for the necessary parameters to execute the DescribeDomainConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDomainConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeDomainConfiguration Operation public virtual Task DescribeDomainConfigurationAsync(DescribeDomainConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEndpoint /// /// Returns a unique endpoint specific to the Amazon Web Services account making the call. /// /// /// /// Requires permission to access the DescribeEndpoint /// action. /// /// /// /// The response from the DescribeEndpoint service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeEndpoint Operation public virtual DescribeEndpointResponse DescribeEndpoint() { var request = new DescribeEndpointRequest(); return DescribeEndpoint(request); } /// /// Returns a unique endpoint specific to the Amazon Web Services account making the call. /// /// /// /// Requires permission to access the DescribeEndpoint /// action. /// /// /// Container for the necessary parameters to execute the DescribeEndpoint service method. /// /// The response from the DescribeEndpoint service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeEndpoint Operation public virtual DescribeEndpointResponse DescribeEndpoint(DescribeEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a unique endpoint specific to the Amazon Web Services account making the call. /// /// /// /// Requires permission to access the DescribeEndpoint /// action. /// /// /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeEndpoint service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeEndpoint Operation public virtual Task DescribeEndpointAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeEndpointRequest(); return DescribeEndpointAsync(request, cancellationToken); } /// /// Returns a unique endpoint specific to the Amazon Web Services account making the call. /// /// /// /// Requires permission to access the DescribeEndpoint /// action. /// /// /// Container for the necessary parameters to execute the DescribeEndpoint service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeEndpoint service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeEndpoint Operation public virtual Task DescribeEndpointAsync(DescribeEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEventConfigurations /// /// Describes event configurations. /// /// /// /// Requires permission to access the DescribeEventConfigurations /// action. /// /// /// Container for the necessary parameters to execute the DescribeEventConfigurations service method. /// /// The response from the DescribeEventConfigurations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeEventConfigurations Operation public virtual DescribeEventConfigurationsResponse DescribeEventConfigurations(DescribeEventConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEventConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEventConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes event configurations. /// /// /// /// Requires permission to access the DescribeEventConfigurations /// action. /// /// /// Container for the necessary parameters to execute the DescribeEventConfigurations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeEventConfigurations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeEventConfigurations Operation public virtual Task DescribeEventConfigurationsAsync(DescribeEventConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEventConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEventConfigurationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeFleetMetric /// /// Gets information about the specified fleet metric. /// /// /// /// Requires permission to access the DescribeFleetMetric /// action. /// /// /// Container for the necessary parameters to execute the DescribeFleetMetric service method. /// /// The response from the DescribeFleetMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeFleetMetric Operation public virtual DescribeFleetMetricResponse DescribeFleetMetric(DescribeFleetMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFleetMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFleetMetricResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified fleet metric. /// /// /// /// Requires permission to access the DescribeFleetMetric /// action. /// /// /// Container for the necessary parameters to execute the DescribeFleetMetric service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeFleetMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeFleetMetric Operation public virtual Task DescribeFleetMetricAsync(DescribeFleetMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFleetMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFleetMetricResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeIndex /// /// Describes a search index. /// /// /// /// Requires permission to access the DescribeIndex /// action. /// /// /// Container for the necessary parameters to execute the DescribeIndex service method. /// /// The response from the DescribeIndex service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeIndex Operation public virtual DescribeIndexResponse DescribeIndex(DescribeIndexRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIndexRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIndexResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a search index. /// /// /// /// Requires permission to access the DescribeIndex /// action. /// /// /// Container for the necessary parameters to execute the DescribeIndex service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeIndex service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeIndex Operation public virtual Task DescribeIndexAsync(DescribeIndexRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIndexRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIndexResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeJob /// /// Describes a job. /// /// /// /// Requires permission to access the DescribeJob /// action. /// /// /// Container for the necessary parameters to execute the DescribeJob service method. /// /// The response from the DescribeJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeJob Operation public virtual DescribeJobResponse DescribeJob(DescribeJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a job. /// /// /// /// Requires permission to access the DescribeJob /// action. /// /// /// Container for the necessary parameters to execute the DescribeJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeJob Operation public virtual Task DescribeJobAsync(DescribeJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeJobExecution /// /// Describes a job execution. /// /// /// /// Requires permission to access the DescribeJobExecution /// action. /// /// /// Container for the necessary parameters to execute the DescribeJobExecution service method. /// /// The response from the DescribeJobExecution service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeJobExecution Operation public virtual DescribeJobExecutionResponse DescribeJobExecution(DescribeJobExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a job execution. /// /// /// /// Requires permission to access the DescribeJobExecution /// action. /// /// /// Container for the necessary parameters to execute the DescribeJobExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeJobExecution service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeJobExecution Operation public virtual Task DescribeJobExecutionAsync(DescribeJobExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeJobTemplate /// /// Returns information about a job template. /// /// Container for the necessary parameters to execute the DescribeJobTemplate service method. /// /// The response from the DescribeJobTemplate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeJobTemplate Operation public virtual DescribeJobTemplateResponse DescribeJobTemplate(DescribeJobTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a job template. /// /// Container for the necessary parameters to execute the DescribeJobTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeJobTemplate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeJobTemplate Operation public virtual Task DescribeJobTemplateAsync(DescribeJobTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeManagedJobTemplate /// /// View details of a managed job template. /// /// Container for the necessary parameters to execute the DescribeManagedJobTemplate service method. /// /// The response from the DescribeManagedJobTemplate service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeManagedJobTemplate Operation public virtual DescribeManagedJobTemplateResponse DescribeManagedJobTemplate(DescribeManagedJobTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeManagedJobTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeManagedJobTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// View details of a managed job template. /// /// Container for the necessary parameters to execute the DescribeManagedJobTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeManagedJobTemplate service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeManagedJobTemplate Operation public virtual Task DescribeManagedJobTemplateAsync(DescribeManagedJobTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeManagedJobTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeManagedJobTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeMitigationAction /// /// Gets information about a mitigation action. /// /// /// /// Requires permission to access the DescribeMitigationAction /// action. /// /// /// Container for the necessary parameters to execute the DescribeMitigationAction service method. /// /// The response from the DescribeMitigationAction service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeMitigationAction Operation public virtual DescribeMitigationActionResponse DescribeMitigationAction(DescribeMitigationActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMitigationActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMitigationActionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a mitigation action. /// /// /// /// Requires permission to access the DescribeMitigationAction /// action. /// /// /// Container for the necessary parameters to execute the DescribeMitigationAction service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeMitigationAction service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeMitigationAction Operation public virtual Task DescribeMitigationActionAsync(DescribeMitigationActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMitigationActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMitigationActionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeProvisioningTemplate /// /// Returns information about a provisioning template. /// /// /// /// Requires permission to access the DescribeProvisioningTemplate /// action. /// /// /// Container for the necessary parameters to execute the DescribeProvisioningTemplate service method. /// /// The response from the DescribeProvisioningTemplate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeProvisioningTemplate Operation public virtual DescribeProvisioningTemplateResponse DescribeProvisioningTemplate(DescribeProvisioningTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProvisioningTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProvisioningTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a provisioning template. /// /// /// /// Requires permission to access the DescribeProvisioningTemplate /// action. /// /// /// Container for the necessary parameters to execute the DescribeProvisioningTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeProvisioningTemplate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeProvisioningTemplate Operation public virtual Task DescribeProvisioningTemplateAsync(DescribeProvisioningTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProvisioningTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProvisioningTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeProvisioningTemplateVersion /// /// Returns information about a provisioning template version. /// /// /// /// Requires permission to access the DescribeProvisioningTemplateVersion /// action. /// /// /// Container for the necessary parameters to execute the DescribeProvisioningTemplateVersion service method. /// /// The response from the DescribeProvisioningTemplateVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeProvisioningTemplateVersion Operation public virtual DescribeProvisioningTemplateVersionResponse DescribeProvisioningTemplateVersion(DescribeProvisioningTemplateVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProvisioningTemplateVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProvisioningTemplateVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a provisioning template version. /// /// /// /// Requires permission to access the DescribeProvisioningTemplateVersion /// action. /// /// /// Container for the necessary parameters to execute the DescribeProvisioningTemplateVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeProvisioningTemplateVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeProvisioningTemplateVersion Operation public virtual Task DescribeProvisioningTemplateVersionAsync(DescribeProvisioningTemplateVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProvisioningTemplateVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProvisioningTemplateVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeRoleAlias /// /// Describes a role alias. /// /// /// /// Requires permission to access the DescribeRoleAlias /// action. /// /// /// Container for the necessary parameters to execute the DescribeRoleAlias service method. /// /// The response from the DescribeRoleAlias service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeRoleAlias Operation public virtual DescribeRoleAliasResponse DescribeRoleAlias(DescribeRoleAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRoleAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRoleAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a role alias. /// /// /// /// Requires permission to access the DescribeRoleAlias /// action. /// /// /// Container for the necessary parameters to execute the DescribeRoleAlias service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeRoleAlias service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeRoleAlias Operation public virtual Task DescribeRoleAliasAsync(DescribeRoleAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRoleAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRoleAliasResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeScheduledAudit /// /// Gets information about a scheduled audit. /// /// /// /// Requires permission to access the DescribeScheduledAudit /// action. /// /// /// Container for the necessary parameters to execute the DescribeScheduledAudit service method. /// /// The response from the DescribeScheduledAudit service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeScheduledAudit Operation public virtual DescribeScheduledAuditResponse DescribeScheduledAudit(DescribeScheduledAuditRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScheduledAuditRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScheduledAuditResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a scheduled audit. /// /// /// /// Requires permission to access the DescribeScheduledAudit /// action. /// /// /// Container for the necessary parameters to execute the DescribeScheduledAudit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeScheduledAudit service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeScheduledAudit Operation public virtual Task DescribeScheduledAuditAsync(DescribeScheduledAuditRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScheduledAuditRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScheduledAuditResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeSecurityProfile /// /// Gets information about a Device Defender security profile. /// /// /// /// Requires permission to access the DescribeSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the DescribeSecurityProfile service method. /// /// The response from the DescribeSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeSecurityProfile Operation public virtual DescribeSecurityProfileResponse DescribeSecurityProfile(DescribeSecurityProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSecurityProfileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a Device Defender security profile. /// /// /// /// Requires permission to access the DescribeSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the DescribeSecurityProfile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeSecurityProfile Operation public virtual Task DescribeSecurityProfileAsync(DescribeSecurityProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSecurityProfileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeStream /// /// Gets information about a stream. /// /// /// /// Requires permission to access the DescribeStream /// action. /// /// /// Container for the necessary parameters to execute the DescribeStream service method. /// /// The response from the DescribeStream service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeStream Operation public virtual DescribeStreamResponse DescribeStream(DescribeStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStreamResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a stream. /// /// /// /// Requires permission to access the DescribeStream /// action. /// /// /// Container for the necessary parameters to execute the DescribeStream service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeStream service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeStream Operation public virtual Task DescribeStreamAsync(DescribeStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStreamResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeThing /// /// Gets information about the specified thing. /// /// /// /// Requires permission to access the DescribeThing /// action. /// /// /// The name of the thing. /// /// The response from the DescribeThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeThing Operation public virtual DescribeThingResponse DescribeThing(string thingName) { var request = new DescribeThingRequest(); request.ThingName = thingName; return DescribeThing(request); } /// /// Gets information about the specified thing. /// /// /// /// Requires permission to access the DescribeThing /// action. /// /// /// Container for the necessary parameters to execute the DescribeThing service method. /// /// The response from the DescribeThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeThing Operation public virtual DescribeThingResponse DescribeThing(DescribeThingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeThingRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeThingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified thing. /// /// /// /// Requires permission to access the DescribeThing /// action. /// /// /// The name of the thing. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeThing Operation public virtual Task DescribeThingAsync(string thingName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeThingRequest(); request.ThingName = thingName; return DescribeThingAsync(request, cancellationToken); } /// /// Gets information about the specified thing. /// /// /// /// Requires permission to access the DescribeThing /// action. /// /// /// Container for the necessary parameters to execute the DescribeThing service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeThing Operation public virtual Task DescribeThingAsync(DescribeThingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeThingRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeThingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeThingGroup /// /// Describe a thing group. /// /// /// /// Requires permission to access the DescribeThingGroup /// action. /// /// /// Container for the necessary parameters to execute the DescribeThingGroup service method. /// /// The response from the DescribeThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeThingGroup Operation public virtual DescribeThingGroupResponse DescribeThingGroup(DescribeThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describe a thing group. /// /// /// /// Requires permission to access the DescribeThingGroup /// action. /// /// /// Container for the necessary parameters to execute the DescribeThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DescribeThingGroup Operation public virtual Task DescribeThingGroupAsync(DescribeThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeThingRegistrationTask /// /// Describes a bulk thing provisioning task. /// /// /// /// Requires permission to access the DescribeThingRegistrationTask /// action. /// /// /// Container for the necessary parameters to execute the DescribeThingRegistrationTask service method. /// /// The response from the DescribeThingRegistrationTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeThingRegistrationTask Operation public virtual DescribeThingRegistrationTaskResponse DescribeThingRegistrationTask(DescribeThingRegistrationTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeThingRegistrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeThingRegistrationTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a bulk thing provisioning task. /// /// /// /// Requires permission to access the DescribeThingRegistrationTask /// action. /// /// /// Container for the necessary parameters to execute the DescribeThingRegistrationTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeThingRegistrationTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeThingRegistrationTask Operation public virtual Task DescribeThingRegistrationTaskAsync(DescribeThingRegistrationTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeThingRegistrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeThingRegistrationTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeThingType /// /// Gets information about the specified thing type. /// /// /// /// Requires permission to access the DescribeThingType /// action. /// /// /// Container for the necessary parameters to execute the DescribeThingType service method. /// /// The response from the DescribeThingType service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeThingType Operation public virtual DescribeThingTypeResponse DescribeThingType(DescribeThingTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeThingTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeThingTypeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified thing type. /// /// /// /// Requires permission to access the DescribeThingType /// action. /// /// /// Container for the necessary parameters to execute the DescribeThingType service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeThingType service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DescribeThingType Operation public virtual Task DescribeThingTypeAsync(DescribeThingTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeThingTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeThingTypeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetachPolicy /// /// 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. /// /// /// Container for the necessary parameters to execute the DetachPolicy service method. /// /// The response from the DetachPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachPolicy Operation public virtual DetachPolicyResponse DetachPolicy(DetachPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DetachPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DetachPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachPolicy Operation public virtual Task DetachPolicyAsync(DetachPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetachPrincipalPolicy /// /// 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. /// /// /// The name of the policy to detach. /// The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id). /// /// The response from the DetachPrincipalPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachPrincipalPolicy Operation [Obsolete("Deprecated in favor of DetachPolicy.")] public virtual DetachPrincipalPolicyResponse DetachPrincipalPolicy(string policyName, string principal) { var request = new DetachPrincipalPolicyRequest(); request.PolicyName = policyName; request.Principal = principal; return DetachPrincipalPolicy(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. /// /// /// Container for the necessary parameters to execute the DetachPrincipalPolicy service method. /// /// The response from the DetachPrincipalPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachPrincipalPolicy Operation [Obsolete("Deprecated in favor of DetachPolicy.")] public virtual DetachPrincipalPolicyResponse DetachPrincipalPolicy(DetachPrincipalPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachPrincipalPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachPrincipalPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The name of the policy to detach. /// The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id). /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DetachPrincipalPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachPrincipalPolicy Operation [Obsolete("Deprecated in favor of DetachPolicy.")] public virtual Task DetachPrincipalPolicyAsync(string policyName, string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DetachPrincipalPolicyRequest(); request.PolicyName = policyName; request.Principal = principal; return DetachPrincipalPolicyAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DetachPrincipalPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DetachPrincipalPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachPrincipalPolicy Operation [Obsolete("Deprecated in favor of DetachPolicy.")] public virtual Task DetachPrincipalPolicyAsync(DetachPrincipalPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachPrincipalPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachPrincipalPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetachSecurityProfile /// /// Disassociates a Device Defender security profile from a thing group or from this account. /// /// /// /// Requires permission to access the DetachSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the DetachSecurityProfile service method. /// /// The response from the DetachSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DetachSecurityProfile Operation public virtual DetachSecurityProfileResponse DetachSecurityProfile(DetachSecurityProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachSecurityProfileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates a Device Defender security profile from a thing group or from this account. /// /// /// /// Requires permission to access the DetachSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the DetachSecurityProfile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DetachSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for DetachSecurityProfile Operation public virtual Task DetachSecurityProfileAsync(DetachSecurityProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachSecurityProfileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetachThingPrincipal /// /// 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. /// /// /// The name of the thing. /// If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity. /// /// The response from the DetachThingPrincipal service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachThingPrincipal Operation public virtual DetachThingPrincipalResponse DetachThingPrincipal(string thingName, string principal) { var request = new DetachThingPrincipalRequest(); request.ThingName = thingName; request.Principal = principal; return DetachThingPrincipal(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. /// /// /// Container for the necessary parameters to execute the DetachThingPrincipal service method. /// /// The response from the DetachThingPrincipal service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachThingPrincipal Operation public virtual DetachThingPrincipalResponse DetachThingPrincipal(DetachThingPrincipalRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachThingPrincipalRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachThingPrincipalResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The name of the thing. /// If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DetachThingPrincipal service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachThingPrincipal Operation public virtual Task DetachThingPrincipalAsync(string thingName, string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DetachThingPrincipalRequest(); request.ThingName = thingName; request.Principal = principal; return DetachThingPrincipalAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the DetachThingPrincipal service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DetachThingPrincipal service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DetachThingPrincipal Operation public virtual Task DetachThingPrincipalAsync(DetachThingPrincipalRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachThingPrincipalRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachThingPrincipalResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisableTopicRule /// /// Disables the rule. /// /// /// /// Requires permission to access the DisableTopicRule /// action. /// /// /// Container for the necessary parameters to execute the DisableTopicRule service method. /// /// The response from the DisableTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DisableTopicRule Operation public virtual DisableTopicRuleResponse DisableTopicRule(DisableTopicRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableTopicRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disables the rule. /// /// /// /// Requires permission to access the DisableTopicRule /// action. /// /// /// Container for the necessary parameters to execute the DisableTopicRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisableTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for DisableTopicRule Operation public virtual Task DisableTopicRuleAsync(DisableTopicRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisableTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableTopicRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region EnableTopicRule /// /// Enables the rule. /// /// /// /// Requires permission to access the EnableTopicRule /// action. /// /// /// Container for the necessary parameters to execute the EnableTopicRule service method. /// /// The response from the EnableTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for EnableTopicRule Operation public virtual EnableTopicRuleResponse EnableTopicRule(EnableTopicRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableTopicRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Enables the rule. /// /// /// /// Requires permission to access the EnableTopicRule /// action. /// /// /// Container for the necessary parameters to execute the EnableTopicRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the EnableTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for EnableTopicRule Operation public virtual Task EnableTopicRuleAsync(EnableTopicRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnableTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableTopicRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetBehaviorModelTrainingSummaries /// /// Returns a Device Defender's ML Detect Security Profile training model's status. /// /// /// /// Requires permission to access the GetBehaviorModelTrainingSummaries /// action. /// /// /// Container for the necessary parameters to execute the GetBehaviorModelTrainingSummaries service method. /// /// The response from the GetBehaviorModelTrainingSummaries service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for GetBehaviorModelTrainingSummaries Operation public virtual GetBehaviorModelTrainingSummariesResponse GetBehaviorModelTrainingSummaries(GetBehaviorModelTrainingSummariesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBehaviorModelTrainingSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBehaviorModelTrainingSummariesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a Device Defender's ML Detect Security Profile training model's status. /// /// /// /// Requires permission to access the GetBehaviorModelTrainingSummaries /// action. /// /// /// Container for the necessary parameters to execute the GetBehaviorModelTrainingSummaries service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetBehaviorModelTrainingSummaries service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for GetBehaviorModelTrainingSummaries Operation public virtual Task GetBehaviorModelTrainingSummariesAsync(GetBehaviorModelTrainingSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetBehaviorModelTrainingSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBehaviorModelTrainingSummariesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetBucketsAggregation /// /// Aggregates on indexed data with search queries pertaining to particular fields. /// /// /// /// Requires permission to access the GetBucketsAggregation /// action. /// /// /// Container for the necessary parameters to execute the GetBucketsAggregation service method. /// /// The response from the GetBucketsAggregation service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetBucketsAggregation Operation public virtual GetBucketsAggregationResponse GetBucketsAggregation(GetBucketsAggregationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBucketsAggregationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBucketsAggregationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Aggregates on indexed data with search queries pertaining to particular fields. /// /// /// /// Requires permission to access the GetBucketsAggregation /// action. /// /// /// Container for the necessary parameters to execute the GetBucketsAggregation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetBucketsAggregation service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetBucketsAggregation Operation public virtual Task GetBucketsAggregationAsync(GetBucketsAggregationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetBucketsAggregationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBucketsAggregationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCardinality /// /// Returns the approximate count of unique values that match the query. /// /// /// /// Requires permission to access the GetCardinality /// action. /// /// /// Container for the necessary parameters to execute the GetCardinality service method. /// /// The response from the GetCardinality service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetCardinality Operation public virtual GetCardinalityResponse GetCardinality(GetCardinalityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCardinalityRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCardinalityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the approximate count of unique values that match the query. /// /// /// /// Requires permission to access the GetCardinality /// action. /// /// /// Container for the necessary parameters to execute the GetCardinality service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCardinality service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetCardinality Operation public virtual Task GetCardinalityAsync(GetCardinalityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCardinalityRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCardinalityResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetEffectivePolicies /// /// 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. /// /// /// Container for the necessary parameters to execute the GetEffectivePolicies service method. /// /// The response from the GetEffectivePolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetEffectivePolicies Operation public virtual GetEffectivePoliciesResponse GetEffectivePolicies(GetEffectivePoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetEffectivePoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEffectivePoliciesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the GetEffectivePolicies service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetEffectivePolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetEffectivePolicies Operation public virtual Task GetEffectivePoliciesAsync(GetEffectivePoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetEffectivePoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEffectivePoliciesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetIndexingConfiguration /// /// Gets the indexing configuration. /// /// /// /// Requires permission to access the GetIndexingConfiguration /// action. /// /// /// Container for the necessary parameters to execute the GetIndexingConfiguration service method. /// /// The response from the GetIndexingConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetIndexingConfiguration Operation public virtual GetIndexingConfigurationResponse GetIndexingConfiguration(GetIndexingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIndexingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIndexingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the indexing configuration. /// /// /// /// Requires permission to access the GetIndexingConfiguration /// action. /// /// /// Container for the necessary parameters to execute the GetIndexingConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetIndexingConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetIndexingConfiguration Operation public virtual Task GetIndexingConfigurationAsync(GetIndexingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetIndexingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIndexingConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetJobDocument /// /// Gets a job document. /// /// /// /// Requires permission to access the GetJobDocument /// action. /// /// /// Container for the necessary parameters to execute the GetJobDocument service method. /// /// The response from the GetJobDocument service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for GetJobDocument Operation public virtual GetJobDocumentResponse GetJobDocument(GetJobDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a job document. /// /// /// /// Requires permission to access the GetJobDocument /// action. /// /// /// Container for the necessary parameters to execute the GetJobDocument service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetJobDocument service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for GetJobDocument Operation public virtual Task GetJobDocumentAsync(GetJobDocumentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobDocumentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetLoggingOptions /// /// Gets the logging options. /// /// /// /// NOTE: use of this command is not recommended. Use GetV2LoggingOptions /// instead. /// /// /// /// Requires permission to access the GetLoggingOptions /// action. /// /// /// Container for the necessary parameters to execute the GetLoggingOptions service method. /// /// The response from the GetLoggingOptions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for GetLoggingOptions Operation public virtual GetLoggingOptionsResponse GetLoggingOptions(GetLoggingOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetLoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLoggingOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the logging options. /// /// /// /// NOTE: use of this command is not recommended. Use GetV2LoggingOptions /// instead. /// /// /// /// Requires permission to access the GetLoggingOptions /// action. /// /// /// Container for the necessary parameters to execute the GetLoggingOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetLoggingOptions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for GetLoggingOptions Operation public virtual Task GetLoggingOptionsAsync(GetLoggingOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetLoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLoggingOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetOTAUpdate /// /// Gets an OTA update. /// /// /// /// Requires permission to access the GetOTAUpdate /// action. /// /// /// Container for the necessary parameters to execute the GetOTAUpdate service method. /// /// The response from the GetOTAUpdate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetOTAUpdate Operation public virtual GetOTAUpdateResponse GetOTAUpdate(GetOTAUpdateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetOTAUpdateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetOTAUpdateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets an OTA update. /// /// /// /// Requires permission to access the GetOTAUpdate /// action. /// /// /// Container for the necessary parameters to execute the GetOTAUpdate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetOTAUpdate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetOTAUpdate Operation public virtual Task GetOTAUpdateAsync(GetOTAUpdateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetOTAUpdateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetOTAUpdateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPackage /// /// Gets information about the specified software package. /// /// /// /// Requires permission to access the GetPackage /// action. /// /// /// Container for the necessary parameters to execute the GetPackage service method. /// /// The response from the GetPackage service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for GetPackage Operation public virtual GetPackageResponse GetPackage(GetPackageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified software package. /// /// /// /// Requires permission to access the GetPackage /// action. /// /// /// Container for the necessary parameters to execute the GetPackage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPackage service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for GetPackage Operation public virtual Task GetPackageAsync(GetPackageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPackageConfiguration /// /// Gets information about the specified software package's configuration. /// /// /// /// Requires permission to access the GetPackageConfiguration /// action. /// /// /// Container for the necessary parameters to execute the GetPackageConfiguration service method. /// /// The response from the GetPackageConfiguration service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for GetPackageConfiguration Operation public virtual GetPackageConfigurationResponse GetPackageConfiguration(GetPackageConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified software package's configuration. /// /// /// /// Requires permission to access the GetPackageConfiguration /// action. /// /// /// Container for the necessary parameters to execute the GetPackageConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPackageConfiguration service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for GetPackageConfiguration Operation public virtual Task GetPackageConfigurationAsync(GetPackageConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPackageVersion /// /// Gets information about the specified package version. /// /// /// /// Requires permission to access the GetPackageVersion /// action. /// /// /// Container for the necessary parameters to execute the GetPackageVersion service method. /// /// The response from the GetPackageVersion service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for GetPackageVersion Operation public virtual GetPackageVersionResponse GetPackageVersion(GetPackageVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified package version. /// /// /// /// Requires permission to access the GetPackageVersion /// action. /// /// /// Container for the necessary parameters to execute the GetPackageVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPackageVersion service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for GetPackageVersion Operation public virtual Task GetPackageVersionAsync(GetPackageVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPercentiles /// /// 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. /// /// /// Container for the necessary parameters to execute the GetPercentiles service method. /// /// The response from the GetPercentiles service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPercentiles Operation public virtual GetPercentilesResponse GetPercentiles(GetPercentilesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPercentilesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPercentilesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the GetPercentiles service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPercentiles service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPercentiles Operation public virtual Task GetPercentilesAsync(GetPercentilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPercentilesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPercentilesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPolicy /// /// Gets information about the specified policy with the policy document of the default /// version. /// /// /// /// Requires permission to access the GetPolicy /// action. /// /// /// The name of the policy. /// /// The response from the GetPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPolicy Operation public virtual GetPolicyResponse GetPolicy(string policyName) { var request = new GetPolicyRequest(); request.PolicyName = policyName; return GetPolicy(request); } /// /// Gets information about the specified policy with the policy document of the default /// version. /// /// /// /// Requires permission to access the GetPolicy /// action. /// /// /// Container for the necessary parameters to execute the GetPolicy service method. /// /// The response from the GetPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPolicy Operation public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified policy with the policy document of the default /// version. /// /// /// /// Requires permission to access the GetPolicy /// action. /// /// /// The name of the policy. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPolicy Operation public virtual Task GetPolicyAsync(string policyName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new GetPolicyRequest(); request.PolicyName = policyName; return GetPolicyAsync(request, cancellationToken); } /// /// Gets information about the specified policy with the policy document of the default /// version. /// /// /// /// Requires permission to access the GetPolicy /// action. /// /// /// Container for the necessary parameters to execute the GetPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPolicy Operation public virtual Task GetPolicyAsync(GetPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPolicyVersion /// /// Gets information about the specified policy version. /// /// /// /// Requires permission to access the GetPolicyVersion /// action. /// /// /// The name of the policy. /// The policy version ID. /// /// The response from the GetPolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPolicyVersion Operation public virtual GetPolicyVersionResponse GetPolicyVersion(string policyName, string policyVersionId) { var request = new GetPolicyVersionRequest(); request.PolicyName = policyName; request.PolicyVersionId = policyVersionId; return GetPolicyVersion(request); } /// /// Gets information about the specified policy version. /// /// /// /// Requires permission to access the GetPolicyVersion /// action. /// /// /// Container for the necessary parameters to execute the GetPolicyVersion service method. /// /// The response from the GetPolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPolicyVersion Operation public virtual GetPolicyVersionResponse GetPolicyVersion(GetPolicyVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPolicyVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPolicyVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the specified policy version. /// /// /// /// Requires permission to access the GetPolicyVersion /// action. /// /// /// The name of the policy. /// The policy version ID. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPolicyVersion Operation public virtual Task GetPolicyVersionAsync(string policyName, string policyVersionId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new GetPolicyVersionRequest(); request.PolicyName = policyName; request.PolicyVersionId = policyVersionId; return GetPolicyVersionAsync(request, cancellationToken); } /// /// Gets information about the specified policy version. /// /// /// /// Requires permission to access the GetPolicyVersion /// action. /// /// /// Container for the necessary parameters to execute the GetPolicyVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetPolicyVersion Operation public virtual Task GetPolicyVersionAsync(GetPolicyVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPolicyVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPolicyVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetRegistrationCode /// /// Gets a registration code used to register a CA certificate with IoT. /// /// /// /// Requires permission to access the GetRegistrationCode /// action. /// /// /// Container for the necessary parameters to execute the GetRegistrationCode service method. /// /// The response from the GetRegistrationCode service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetRegistrationCode Operation public virtual GetRegistrationCodeResponse GetRegistrationCode(GetRegistrationCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRegistrationCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRegistrationCodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a registration code used to register a CA certificate with IoT. /// /// /// /// Requires permission to access the GetRegistrationCode /// action. /// /// /// Container for the necessary parameters to execute the GetRegistrationCode service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetRegistrationCode service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetRegistrationCode Operation public virtual Task GetRegistrationCodeAsync(GetRegistrationCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetRegistrationCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRegistrationCodeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetStatistics /// /// 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. /// /// /// Container for the necessary parameters to execute the GetStatistics service method. /// /// The response from the GetStatistics service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetStatistics Operation public virtual GetStatisticsResponse GetStatistics(GetStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetStatisticsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the GetStatistics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetStatistics service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetStatistics Operation public virtual Task GetStatisticsAsync(GetStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetStatisticsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetTopicRule /// /// Gets information about the rule. /// /// /// /// Requires permission to access the GetTopicRule /// action. /// /// /// The name of the rule. /// /// The response from the GetTopicRule service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetTopicRule Operation public virtual GetTopicRuleResponse GetTopicRule(string ruleName) { var request = new GetTopicRuleRequest(); request.RuleName = ruleName; return GetTopicRule(request); } /// /// Gets information about the rule. /// /// /// /// Requires permission to access the GetTopicRule /// action. /// /// /// Container for the necessary parameters to execute the GetTopicRule service method. /// /// The response from the GetTopicRule service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetTopicRule Operation public virtual GetTopicRuleResponse GetTopicRule(GetTopicRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTopicRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the rule. /// /// /// /// Requires permission to access the GetTopicRule /// action. /// /// /// The name of the rule. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetTopicRule service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetTopicRule Operation public virtual Task GetTopicRuleAsync(string ruleName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new GetTopicRuleRequest(); request.RuleName = ruleName; return GetTopicRuleAsync(request, cancellationToken); } /// /// Gets information about the rule. /// /// /// /// Requires permission to access the GetTopicRule /// action. /// /// /// Container for the necessary parameters to execute the GetTopicRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetTopicRule service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetTopicRule Operation public virtual Task GetTopicRuleAsync(GetTopicRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTopicRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetTopicRuleDestination /// /// Gets information about a topic rule destination. /// /// /// /// Requires permission to access the GetTopicRuleDestination /// action. /// /// /// Container for the necessary parameters to execute the GetTopicRuleDestination service method. /// /// The response from the GetTopicRuleDestination service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetTopicRuleDestination Operation public virtual GetTopicRuleDestinationResponse GetTopicRuleDestination(GetTopicRuleDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTopicRuleDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a topic rule destination. /// /// /// /// Requires permission to access the GetTopicRuleDestination /// action. /// /// /// Container for the necessary parameters to execute the GetTopicRuleDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetTopicRuleDestination service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for GetTopicRuleDestination Operation public virtual Task GetTopicRuleDestinationAsync(GetTopicRuleDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTopicRuleDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetV2LoggingOptions /// /// Gets the fine grained logging options. /// /// /// /// Requires permission to access the GetV2LoggingOptions /// action. /// /// /// Container for the necessary parameters to execute the GetV2LoggingOptions service method. /// /// The response from the GetV2LoggingOptions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The resource is not configured. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for GetV2LoggingOptions Operation public virtual GetV2LoggingOptionsResponse GetV2LoggingOptions(GetV2LoggingOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetV2LoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetV2LoggingOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the fine grained logging options. /// /// /// /// Requires permission to access the GetV2LoggingOptions /// action. /// /// /// Container for the necessary parameters to execute the GetV2LoggingOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetV2LoggingOptions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The resource is not configured. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for GetV2LoggingOptions Operation public virtual Task GetV2LoggingOptionsAsync(GetV2LoggingOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetV2LoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetV2LoggingOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListActiveViolations /// /// Lists the active violations for a given Device Defender security profile. /// /// /// /// Requires permission to access the ListActiveViolations /// action. /// /// /// Container for the necessary parameters to execute the ListActiveViolations service method. /// /// The response from the ListActiveViolations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListActiveViolations Operation public virtual ListActiveViolationsResponse ListActiveViolations(ListActiveViolationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListActiveViolationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListActiveViolationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the active violations for a given Device Defender security profile. /// /// /// /// Requires permission to access the ListActiveViolations /// action. /// /// /// Container for the necessary parameters to execute the ListActiveViolations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListActiveViolations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListActiveViolations Operation public virtual Task ListActiveViolationsAsync(ListActiveViolationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListActiveViolationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListActiveViolationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAttachedPolicies /// /// Lists the policies attached to the specified thing group. /// /// /// /// Requires permission to access the ListAttachedPolicies /// action. /// /// /// Container for the necessary parameters to execute the ListAttachedPolicies service method. /// /// The response from the ListAttachedPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListAttachedPolicies Operation public virtual ListAttachedPoliciesResponse ListAttachedPolicies(ListAttachedPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAttachedPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAttachedPoliciesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the policies attached to the specified thing group. /// /// /// /// Requires permission to access the ListAttachedPolicies /// action. /// /// /// Container for the necessary parameters to execute the ListAttachedPolicies service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAttachedPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListAttachedPolicies Operation public virtual Task ListAttachedPoliciesAsync(ListAttachedPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAttachedPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAttachedPoliciesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAuditFindings /// /// 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. /// /// /// Container for the necessary parameters to execute the ListAuditFindings service method. /// /// The response from the ListAuditFindings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditFindings Operation public virtual ListAuditFindingsResponse ListAuditFindings(ListAuditFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListAuditFindings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAuditFindings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditFindings Operation public virtual Task ListAuditFindingsAsync(ListAuditFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditFindingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAuditMitigationActionsExecutions /// /// Gets the status of audit mitigation action tasks that were executed. /// /// /// /// Requires permission to access the ListAuditMitigationActionsExecutions /// action. /// /// /// Container for the necessary parameters to execute the ListAuditMitigationActionsExecutions service method. /// /// The response from the ListAuditMitigationActionsExecutions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditMitigationActionsExecutions Operation public virtual ListAuditMitigationActionsExecutionsResponse ListAuditMitigationActionsExecutions(ListAuditMitigationActionsExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditMitigationActionsExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditMitigationActionsExecutionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the status of audit mitigation action tasks that were executed. /// /// /// /// Requires permission to access the ListAuditMitigationActionsExecutions /// action. /// /// /// Container for the necessary parameters to execute the ListAuditMitigationActionsExecutions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAuditMitigationActionsExecutions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditMitigationActionsExecutions Operation public virtual Task ListAuditMitigationActionsExecutionsAsync(ListAuditMitigationActionsExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditMitigationActionsExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditMitigationActionsExecutionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAuditMitigationActionsTasks /// /// Gets a list of audit mitigation action tasks that match the specified filters. /// /// /// /// Requires permission to access the ListAuditMitigationActionsTasks /// action. /// /// /// Container for the necessary parameters to execute the ListAuditMitigationActionsTasks service method. /// /// The response from the ListAuditMitigationActionsTasks service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditMitigationActionsTasks Operation public virtual ListAuditMitigationActionsTasksResponse ListAuditMitigationActionsTasks(ListAuditMitigationActionsTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditMitigationActionsTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditMitigationActionsTasksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of audit mitigation action tasks that match the specified filters. /// /// /// /// Requires permission to access the ListAuditMitigationActionsTasks /// action. /// /// /// Container for the necessary parameters to execute the ListAuditMitigationActionsTasks service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAuditMitigationActionsTasks service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditMitigationActionsTasks Operation public virtual Task ListAuditMitigationActionsTasksAsync(ListAuditMitigationActionsTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditMitigationActionsTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditMitigationActionsTasksResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAuditSuppressions /// /// Lists your Device Defender audit listings. /// /// /// /// Requires permission to access the ListAuditSuppressions /// action. /// /// /// Container for the necessary parameters to execute the ListAuditSuppressions service method. /// /// The response from the ListAuditSuppressions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditSuppressions Operation public virtual ListAuditSuppressionsResponse ListAuditSuppressions(ListAuditSuppressionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditSuppressionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditSuppressionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists your Device Defender audit listings. /// /// /// /// Requires permission to access the ListAuditSuppressions /// action. /// /// /// Container for the necessary parameters to execute the ListAuditSuppressions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAuditSuppressions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditSuppressions Operation public virtual Task ListAuditSuppressionsAsync(ListAuditSuppressionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditSuppressionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditSuppressionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAuditTasks /// /// Lists the Device Defender audits that have been performed during a given time period. /// /// /// /// Requires permission to access the ListAuditTasks /// action. /// /// /// Container for the necessary parameters to execute the ListAuditTasks service method. /// /// The response from the ListAuditTasks service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditTasks Operation public virtual ListAuditTasksResponse ListAuditTasks(ListAuditTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditTasksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the Device Defender audits that have been performed during a given time period. /// /// /// /// Requires permission to access the ListAuditTasks /// action. /// /// /// Container for the necessary parameters to execute the ListAuditTasks service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAuditTasks service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListAuditTasks Operation public virtual Task ListAuditTasksAsync(ListAuditTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuditTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuditTasksResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAuthorizers /// /// Lists the authorizers registered in your account. /// /// /// /// Requires permission to access the ListAuthorizers /// action. /// /// /// Container for the necessary parameters to execute the ListAuthorizers service method. /// /// The response from the ListAuthorizers service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListAuthorizers Operation public virtual ListAuthorizersResponse ListAuthorizers(ListAuthorizersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuthorizersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuthorizersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the authorizers registered in your account. /// /// /// /// Requires permission to access the ListAuthorizers /// action. /// /// /// Container for the necessary parameters to execute the ListAuthorizers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAuthorizers service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListAuthorizers Operation public virtual Task ListAuthorizersAsync(ListAuthorizersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAuthorizersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAuthorizersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListBillingGroups /// /// Lists the billing groups you have created. /// /// /// /// Requires permission to access the ListBillingGroups /// action. /// /// /// Container for the necessary parameters to execute the ListBillingGroups service method. /// /// The response from the ListBillingGroups service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListBillingGroups Operation public virtual ListBillingGroupsResponse ListBillingGroups(ListBillingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the billing groups you have created. /// /// /// /// Requires permission to access the ListBillingGroups /// action. /// /// /// Container for the necessary parameters to execute the ListBillingGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListBillingGroups service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListBillingGroups Operation public virtual Task ListBillingGroupsAsync(ListBillingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCACertificates /// /// 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. /// /// /// Container for the necessary parameters to execute the ListCACertificates service method. /// /// The response from the ListCACertificates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListCACertificates Operation public virtual ListCACertificatesResponse ListCACertificates(ListCACertificatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCACertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCACertificatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListCACertificates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCACertificates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListCACertificates Operation public virtual Task ListCACertificatesAsync(ListCACertificatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCACertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCACertificatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCertificates /// /// 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. /// /// /// /// The response from the ListCertificates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListCertificates Operation public virtual ListCertificatesResponse ListCertificates() { var request = new ListCertificatesRequest(); return ListCertificates(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. /// /// /// Container for the necessary parameters to execute the ListCertificates service method. /// /// The response from the ListCertificates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListCertificates Operation public virtual ListCertificatesResponse ListCertificates(ListCertificatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCertificates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListCertificates Operation public virtual Task ListCertificatesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListCertificatesRequest(); return ListCertificatesAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListCertificates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCertificates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListCertificates Operation public virtual Task ListCertificatesAsync(ListCertificatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCertificatesByCA /// /// List the device certificates signed by the specified CA certificate. /// /// /// /// Requires permission to access the ListCertificatesByCA /// action. /// /// /// Container for the necessary parameters to execute the ListCertificatesByCA service method. /// /// The response from the ListCertificatesByCA service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListCertificatesByCA Operation public virtual ListCertificatesByCAResponse ListCertificatesByCA(ListCertificatesByCARequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesByCARequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesByCAResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List the device certificates signed by the specified CA certificate. /// /// /// /// Requires permission to access the ListCertificatesByCA /// action. /// /// /// Container for the necessary parameters to execute the ListCertificatesByCA service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCertificatesByCA service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListCertificatesByCA Operation public virtual Task ListCertificatesByCAAsync(ListCertificatesByCARequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesByCARequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesByCAResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCustomMetrics /// /// Lists your Device Defender detect custom metrics. /// /// /// /// Requires permission to access the ListCustomMetrics /// action. /// /// /// Container for the necessary parameters to execute the ListCustomMetrics service method. /// /// The response from the ListCustomMetrics service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListCustomMetrics Operation public virtual ListCustomMetricsResponse ListCustomMetrics(ListCustomMetricsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomMetricsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists your Device Defender detect custom metrics. /// /// /// /// Requires permission to access the ListCustomMetrics /// action. /// /// /// Container for the necessary parameters to execute the ListCustomMetrics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCustomMetrics service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListCustomMetrics Operation public virtual Task ListCustomMetricsAsync(ListCustomMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomMetricsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDetectMitigationActionsExecutions /// /// Lists mitigation actions executions for a Device Defender ML Detect Security Profile. /// /// /// /// /// Requires permission to access the ListDetectMitigationActionsExecutions /// action. /// /// /// Container for the necessary parameters to execute the ListDetectMitigationActionsExecutions service method. /// /// The response from the ListDetectMitigationActionsExecutions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListDetectMitigationActionsExecutions Operation public virtual ListDetectMitigationActionsExecutionsResponse ListDetectMitigationActionsExecutions(ListDetectMitigationActionsExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectMitigationActionsExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectMitigationActionsExecutionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists mitigation actions executions for a Device Defender ML Detect Security Profile. /// /// /// /// /// Requires permission to access the ListDetectMitigationActionsExecutions /// action. /// /// /// Container for the necessary parameters to execute the ListDetectMitigationActionsExecutions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDetectMitigationActionsExecutions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListDetectMitigationActionsExecutions Operation public virtual Task ListDetectMitigationActionsExecutionsAsync(ListDetectMitigationActionsExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectMitigationActionsExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectMitigationActionsExecutionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDetectMitigationActionsTasks /// /// List of Device Defender ML Detect mitigation actions tasks. /// /// /// /// Requires permission to access the ListDetectMitigationActionsTasks /// action. /// /// /// Container for the necessary parameters to execute the ListDetectMitigationActionsTasks service method. /// /// The response from the ListDetectMitigationActionsTasks service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListDetectMitigationActionsTasks Operation public virtual ListDetectMitigationActionsTasksResponse ListDetectMitigationActionsTasks(ListDetectMitigationActionsTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectMitigationActionsTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectMitigationActionsTasksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List of Device Defender ML Detect mitigation actions tasks. /// /// /// /// Requires permission to access the ListDetectMitigationActionsTasks /// action. /// /// /// Container for the necessary parameters to execute the ListDetectMitigationActionsTasks service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDetectMitigationActionsTasks service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListDetectMitigationActionsTasks Operation public virtual Task ListDetectMitigationActionsTasksAsync(ListDetectMitigationActionsTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectMitigationActionsTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectMitigationActionsTasksResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDimensions /// /// List the set of dimensions that are defined for your Amazon Web Services accounts. /// /// /// /// Requires permission to access the ListDimensions /// action. /// /// /// Container for the necessary parameters to execute the ListDimensions service method. /// /// The response from the ListDimensions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListDimensions Operation public virtual ListDimensionsResponse ListDimensions(ListDimensionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDimensionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDimensionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List the set of dimensions that are defined for your Amazon Web Services accounts. /// /// /// /// Requires permission to access the ListDimensions /// action. /// /// /// Container for the necessary parameters to execute the ListDimensions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDimensions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListDimensions Operation public virtual Task ListDimensionsAsync(ListDimensionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDimensionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDimensionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDomainConfigurations /// /// 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. /// /// /// Container for the necessary parameters to execute the ListDomainConfigurations service method. /// /// The response from the ListDomainConfigurations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListDomainConfigurations Operation public virtual ListDomainConfigurationsResponse ListDomainConfigurations(ListDomainConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListDomainConfigurations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDomainConfigurations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListDomainConfigurations Operation public virtual Task ListDomainConfigurationsAsync(ListDomainConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainConfigurationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListFleetMetrics /// /// Lists all your fleet metrics. /// /// /// /// Requires permission to access the ListFleetMetrics /// action. /// /// /// Container for the necessary parameters to execute the ListFleetMetrics service method. /// /// The response from the ListFleetMetrics service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListFleetMetrics Operation public virtual ListFleetMetricsResponse ListFleetMetrics(ListFleetMetricsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFleetMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFleetMetricsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all your fleet metrics. /// /// /// /// Requires permission to access the ListFleetMetrics /// action. /// /// /// Container for the necessary parameters to execute the ListFleetMetrics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListFleetMetrics service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListFleetMetrics Operation public virtual Task ListFleetMetricsAsync(ListFleetMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFleetMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFleetMetricsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListIndices /// /// Lists the search indices. /// /// /// /// Requires permission to access the ListIndices /// action. /// /// /// Container for the necessary parameters to execute the ListIndices service method. /// /// The response from the ListIndices service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListIndices Operation public virtual ListIndicesResponse ListIndices(ListIndicesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListIndicesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIndicesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the search indices. /// /// /// /// Requires permission to access the ListIndices /// action. /// /// /// Container for the necessary parameters to execute the ListIndices service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListIndices service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListIndices Operation public virtual Task ListIndicesAsync(ListIndicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListIndicesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIndicesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListJobExecutionsForJob /// /// Lists the job executions for a job. /// /// /// /// Requires permission to access the ListJobExecutionsForJob /// action. /// /// /// Container for the necessary parameters to execute the ListJobExecutionsForJob service method. /// /// The response from the ListJobExecutionsForJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListJobExecutionsForJob Operation public virtual ListJobExecutionsForJobResponse ListJobExecutionsForJob(ListJobExecutionsForJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobExecutionsForJobRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobExecutionsForJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the job executions for a job. /// /// /// /// Requires permission to access the ListJobExecutionsForJob /// action. /// /// /// Container for the necessary parameters to execute the ListJobExecutionsForJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListJobExecutionsForJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListJobExecutionsForJob Operation public virtual Task ListJobExecutionsForJobAsync(ListJobExecutionsForJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobExecutionsForJobRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobExecutionsForJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListJobExecutionsForThing /// /// Lists the job executions for the specified thing. /// /// /// /// Requires permission to access the ListJobExecutionsForThing /// action. /// /// /// Container for the necessary parameters to execute the ListJobExecutionsForThing service method. /// /// The response from the ListJobExecutionsForThing service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListJobExecutionsForThing Operation public virtual ListJobExecutionsForThingResponse ListJobExecutionsForThing(ListJobExecutionsForThingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobExecutionsForThingRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobExecutionsForThingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the job executions for the specified thing. /// /// /// /// Requires permission to access the ListJobExecutionsForThing /// action. /// /// /// Container for the necessary parameters to execute the ListJobExecutionsForThing service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListJobExecutionsForThing service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListJobExecutionsForThing Operation public virtual Task ListJobExecutionsForThingAsync(ListJobExecutionsForThingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobExecutionsForThingRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobExecutionsForThingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListJobs /// /// Lists jobs. /// /// /// /// Requires permission to access the ListJobs /// action. /// /// /// Container for the necessary parameters to execute the ListJobs service method. /// /// The response from the ListJobs service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListJobs Operation public virtual ListJobsResponse ListJobs(ListJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists jobs. /// /// /// /// Requires permission to access the ListJobs /// action. /// /// /// Container for the necessary parameters to execute the ListJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListJobs service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListJobs Operation public virtual Task ListJobsAsync(ListJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListJobTemplates /// /// Returns a list of job templates. /// /// /// /// Requires permission to access the ListJobTemplates /// action. /// /// /// Container for the necessary parameters to execute the ListJobTemplates service method. /// /// The response from the ListJobTemplates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListJobTemplates Operation public virtual ListJobTemplatesResponse ListJobTemplates(ListJobTemplatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobTemplatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of job templates. /// /// /// /// Requires permission to access the ListJobTemplates /// action. /// /// /// Container for the necessary parameters to execute the ListJobTemplates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListJobTemplates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListJobTemplates Operation public virtual Task ListJobTemplatesAsync(ListJobTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListJobTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListJobTemplatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListManagedJobTemplates /// /// Returns a list of managed job templates. /// /// Container for the necessary parameters to execute the ListManagedJobTemplates service method. /// /// The response from the ListManagedJobTemplates service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListManagedJobTemplates Operation public virtual ListManagedJobTemplatesResponse ListManagedJobTemplates(ListManagedJobTemplatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedJobTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedJobTemplatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of managed job templates. /// /// Container for the necessary parameters to execute the ListManagedJobTemplates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListManagedJobTemplates service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListManagedJobTemplates Operation public virtual Task ListManagedJobTemplatesAsync(ListManagedJobTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedJobTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedJobTemplatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListMetricValues /// /// 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. /// /// Container for the necessary parameters to execute the ListMetricValues service method. /// /// The response from the ListMetricValues service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListMetricValues Operation public virtual ListMetricValuesResponse ListMetricValues(ListMetricValuesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricValuesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricValuesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// Container for the necessary parameters to execute the ListMetricValues service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListMetricValues service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListMetricValues Operation public virtual Task ListMetricValuesAsync(ListMetricValuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricValuesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricValuesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListMitigationActions /// /// Gets a list of all mitigation actions that match the specified filter criteria. /// /// /// /// Requires permission to access the ListMitigationActions /// action. /// /// /// Container for the necessary parameters to execute the ListMitigationActions service method. /// /// The response from the ListMitigationActions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListMitigationActions Operation public virtual ListMitigationActionsResponse ListMitigationActions(ListMitigationActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMitigationActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMitigationActionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of all mitigation actions that match the specified filter criteria. /// /// /// /// Requires permission to access the ListMitigationActions /// action. /// /// /// Container for the necessary parameters to execute the ListMitigationActions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListMitigationActions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListMitigationActions Operation public virtual Task ListMitigationActionsAsync(ListMitigationActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMitigationActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMitigationActionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListOTAUpdates /// /// Lists OTA updates. /// /// /// /// Requires permission to access the ListOTAUpdates /// action. /// /// /// Container for the necessary parameters to execute the ListOTAUpdates service method. /// /// The response from the ListOTAUpdates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListOTAUpdates Operation public virtual ListOTAUpdatesResponse ListOTAUpdates(ListOTAUpdatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListOTAUpdatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOTAUpdatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists OTA updates. /// /// /// /// Requires permission to access the ListOTAUpdates /// action. /// /// /// Container for the necessary parameters to execute the ListOTAUpdates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListOTAUpdates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListOTAUpdates Operation public virtual Task ListOTAUpdatesAsync(ListOTAUpdatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListOTAUpdatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOTAUpdatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListOutgoingCertificates /// /// Lists certificates that are being transferred but not yet accepted. /// /// /// /// Requires permission to access the ListOutgoingCertificates /// action. /// /// /// Container for the necessary parameters to execute the ListOutgoingCertificates service method. /// /// The response from the ListOutgoingCertificates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListOutgoingCertificates Operation public virtual ListOutgoingCertificatesResponse ListOutgoingCertificates(ListOutgoingCertificatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListOutgoingCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOutgoingCertificatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists certificates that are being transferred but not yet accepted. /// /// /// /// Requires permission to access the ListOutgoingCertificates /// action. /// /// /// Container for the necessary parameters to execute the ListOutgoingCertificates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListOutgoingCertificates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListOutgoingCertificates Operation public virtual Task ListOutgoingCertificatesAsync(ListOutgoingCertificatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListOutgoingCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOutgoingCertificatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPackages /// /// Lists the software packages associated to the account. /// /// /// /// Requires permission to access the ListPackages /// action. /// /// /// Container for the necessary parameters to execute the ListPackages service method. /// /// The response from the ListPackages service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for ListPackages Operation public virtual ListPackagesResponse ListPackages(ListPackagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the software packages associated to the account. /// /// /// /// Requires permission to access the ListPackages /// action. /// /// /// Container for the necessary parameters to execute the ListPackages service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPackages service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for ListPackages Operation public virtual Task ListPackagesAsync(ListPackagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackagesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPackageVersions /// /// Lists the software package versions associated to the account. /// /// /// /// Requires permission to access the ListPackageVersions /// action. /// /// /// Container for the necessary parameters to execute the ListPackageVersions service method. /// /// The response from the ListPackageVersions service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for ListPackageVersions Operation public virtual ListPackageVersionsResponse ListPackageVersions(ListPackageVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackageVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the software package versions associated to the account. /// /// /// /// Requires permission to access the ListPackageVersions /// action. /// /// /// Container for the necessary parameters to execute the ListPackageVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPackageVersions service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for ListPackageVersions Operation public virtual Task ListPackageVersionsAsync(ListPackageVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackageVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPolicies /// /// Lists your policies. /// /// /// /// Requires permission to access the ListPolicies /// action. /// /// /// /// The response from the ListPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicies Operation public virtual ListPoliciesResponse ListPolicies() { var request = new ListPoliciesRequest(); return ListPolicies(request); } /// /// Lists your policies. /// /// /// /// Requires permission to access the ListPolicies /// action. /// /// /// Container for the necessary parameters to execute the ListPolicies service method. /// /// The response from the ListPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicies Operation public virtual ListPoliciesResponse ListPolicies(ListPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPoliciesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists your policies. /// /// /// /// Requires permission to access the ListPolicies /// action. /// /// /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicies Operation public virtual Task ListPoliciesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListPoliciesRequest(); return ListPoliciesAsync(request, cancellationToken); } /// /// Lists your policies. /// /// /// /// Requires permission to access the ListPolicies /// action. /// /// /// Container for the necessary parameters to execute the ListPolicies service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicies Operation public virtual Task ListPoliciesAsync(ListPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPoliciesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPolicyPrincipals /// /// 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. /// /// /// Container for the necessary parameters to execute the ListPolicyPrincipals service method. /// /// The response from the ListPolicyPrincipals service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicyPrincipals Operation [Obsolete("Deprecated in favor of ListTargetsForPolicy.")] public virtual ListPolicyPrincipalsResponse ListPolicyPrincipals(ListPolicyPrincipalsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPolicyPrincipalsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPolicyPrincipalsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListPolicyPrincipals service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPolicyPrincipals service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicyPrincipals Operation [Obsolete("Deprecated in favor of ListTargetsForPolicy.")] public virtual Task ListPolicyPrincipalsAsync(ListPolicyPrincipalsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPolicyPrincipalsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPolicyPrincipalsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPolicyVersions /// /// Lists the versions of the specified policy and identifies the default version. /// /// /// /// Requires permission to access the ListPolicyVersions /// action. /// /// /// The policy name. /// /// The response from the ListPolicyVersions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicyVersions Operation public virtual ListPolicyVersionsResponse ListPolicyVersions(string policyName) { var request = new ListPolicyVersionsRequest(); request.PolicyName = policyName; return ListPolicyVersions(request); } /// /// Lists the versions of the specified policy and identifies the default version. /// /// /// /// Requires permission to access the ListPolicyVersions /// action. /// /// /// Container for the necessary parameters to execute the ListPolicyVersions service method. /// /// The response from the ListPolicyVersions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicyVersions Operation public virtual ListPolicyVersionsResponse ListPolicyVersions(ListPolicyVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPolicyVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPolicyVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the versions of the specified policy and identifies the default version. /// /// /// /// Requires permission to access the ListPolicyVersions /// action. /// /// /// The policy name. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPolicyVersions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicyVersions Operation public virtual Task ListPolicyVersionsAsync(string policyName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListPolicyVersionsRequest(); request.PolicyName = policyName; return ListPolicyVersionsAsync(request, cancellationToken); } /// /// Lists the versions of the specified policy and identifies the default version. /// /// /// /// Requires permission to access the ListPolicyVersions /// action. /// /// /// Container for the necessary parameters to execute the ListPolicyVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPolicyVersions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPolicyVersions Operation public virtual Task ListPolicyVersionsAsync(ListPolicyVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPolicyVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPolicyVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPrincipalPolicies /// /// 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. /// /// /// The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id). /// /// The response from the ListPrincipalPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPrincipalPolicies Operation [Obsolete("Deprecated in favor of ListAttachedPolicies.")] public virtual ListPrincipalPoliciesResponse ListPrincipalPolicies(string principal) { var request = new ListPrincipalPoliciesRequest(); request.Principal = principal; return ListPrincipalPolicies(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. /// /// /// Container for the necessary parameters to execute the ListPrincipalPolicies service method. /// /// The response from the ListPrincipalPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPrincipalPolicies Operation [Obsolete("Deprecated in favor of ListAttachedPolicies.")] public virtual ListPrincipalPoliciesResponse ListPrincipalPolicies(ListPrincipalPoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPrincipalPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPrincipalPoliciesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id). /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPrincipalPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPrincipalPolicies Operation [Obsolete("Deprecated in favor of ListAttachedPolicies.")] public virtual Task ListPrincipalPoliciesAsync(string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListPrincipalPoliciesRequest(); request.Principal = principal; return ListPrincipalPoliciesAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListPrincipalPolicies service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPrincipalPolicies service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPrincipalPolicies Operation [Obsolete("Deprecated in favor of ListAttachedPolicies.")] public virtual Task ListPrincipalPoliciesAsync(ListPrincipalPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPrincipalPoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPrincipalPoliciesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPrincipalThings /// /// 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. /// /// /// The principal. /// /// The response from the ListPrincipalThings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPrincipalThings Operation public virtual ListPrincipalThingsResponse ListPrincipalThings(string principal) { var request = new ListPrincipalThingsRequest(); request.Principal = principal; return ListPrincipalThings(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. /// /// /// Container for the necessary parameters to execute the ListPrincipalThings service method. /// /// The response from the ListPrincipalThings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPrincipalThings Operation public virtual ListPrincipalThingsResponse ListPrincipalThings(ListPrincipalThingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPrincipalThingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPrincipalThingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The principal. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPrincipalThings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPrincipalThings Operation public virtual Task ListPrincipalThingsAsync(string principal, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListPrincipalThingsRequest(); request.Principal = principal; return ListPrincipalThingsAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListPrincipalThings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPrincipalThings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListPrincipalThings Operation public virtual Task ListPrincipalThingsAsync(ListPrincipalThingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPrincipalThingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPrincipalThingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListProvisioningTemplates /// /// Lists the provisioning templates in your Amazon Web Services account. /// /// /// /// Requires permission to access the ListProvisioningTemplates /// action. /// /// /// Container for the necessary parameters to execute the ListProvisioningTemplates service method. /// /// The response from the ListProvisioningTemplates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListProvisioningTemplates Operation public virtual ListProvisioningTemplatesResponse ListProvisioningTemplates(ListProvisioningTemplatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProvisioningTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProvisioningTemplatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the provisioning templates in your Amazon Web Services account. /// /// /// /// Requires permission to access the ListProvisioningTemplates /// action. /// /// /// Container for the necessary parameters to execute the ListProvisioningTemplates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListProvisioningTemplates service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListProvisioningTemplates Operation public virtual Task ListProvisioningTemplatesAsync(ListProvisioningTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListProvisioningTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProvisioningTemplatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListProvisioningTemplateVersions /// /// A list of provisioning template versions. /// /// /// /// Requires permission to access the ListProvisioningTemplateVersions /// action. /// /// /// Container for the necessary parameters to execute the ListProvisioningTemplateVersions service method. /// /// The response from the ListProvisioningTemplateVersions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListProvisioningTemplateVersions Operation public virtual ListProvisioningTemplateVersionsResponse ListProvisioningTemplateVersions(ListProvisioningTemplateVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProvisioningTemplateVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProvisioningTemplateVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// A list of provisioning template versions. /// /// /// /// Requires permission to access the ListProvisioningTemplateVersions /// action. /// /// /// Container for the necessary parameters to execute the ListProvisioningTemplateVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListProvisioningTemplateVersions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListProvisioningTemplateVersions Operation public virtual Task ListProvisioningTemplateVersionsAsync(ListProvisioningTemplateVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListProvisioningTemplateVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProvisioningTemplateVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRelatedResourcesForAuditFinding /// /// 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. /// /// ///
/// Container for the necessary parameters to execute the ListRelatedResourcesForAuditFinding service method. /// /// The response from the ListRelatedResourcesForAuditFinding service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListRelatedResourcesForAuditFinding Operation public virtual ListRelatedResourcesForAuditFindingResponse ListRelatedResourcesForAuditFinding(ListRelatedResourcesForAuditFindingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRelatedResourcesForAuditFindingRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRelatedResourcesForAuditFindingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// ///
/// Container for the necessary parameters to execute the ListRelatedResourcesForAuditFinding service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRelatedResourcesForAuditFinding service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListRelatedResourcesForAuditFinding Operation public virtual Task ListRelatedResourcesForAuditFindingAsync(ListRelatedResourcesForAuditFindingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRelatedResourcesForAuditFindingRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRelatedResourcesForAuditFindingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRoleAliases /// /// Lists the role aliases registered in your account. /// /// /// /// Requires permission to access the ListRoleAliases /// action. /// /// /// Container for the necessary parameters to execute the ListRoleAliases service method. /// /// The response from the ListRoleAliases service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListRoleAliases Operation public virtual ListRoleAliasesResponse ListRoleAliases(ListRoleAliasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRoleAliasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRoleAliasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the role aliases registered in your account. /// /// /// /// Requires permission to access the ListRoleAliases /// action. /// /// /// Container for the necessary parameters to execute the ListRoleAliases service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRoleAliases service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListRoleAliases Operation public virtual Task ListRoleAliasesAsync(ListRoleAliasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRoleAliasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRoleAliasesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListScheduledAudits /// /// Lists all of your scheduled audits. /// /// /// /// Requires permission to access the ListScheduledAudits /// action. /// /// /// Container for the necessary parameters to execute the ListScheduledAudits service method. /// /// The response from the ListScheduledAudits service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListScheduledAudits Operation public virtual ListScheduledAuditsResponse ListScheduledAudits(ListScheduledAuditsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListScheduledAuditsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListScheduledAuditsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all of your scheduled audits. /// /// /// /// Requires permission to access the ListScheduledAudits /// action. /// /// /// Container for the necessary parameters to execute the ListScheduledAudits service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListScheduledAudits service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListScheduledAudits Operation public virtual Task ListScheduledAuditsAsync(ListScheduledAuditsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListScheduledAuditsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListScheduledAuditsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSecurityProfiles /// /// 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. /// /// /// /// Container for the necessary parameters to execute the ListSecurityProfiles service method. /// /// The response from the ListSecurityProfiles service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListSecurityProfiles Operation public virtual ListSecurityProfilesResponse ListSecurityProfiles(ListSecurityProfilesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSecurityProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSecurityProfilesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// /// Container for the necessary parameters to execute the ListSecurityProfiles service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSecurityProfiles service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListSecurityProfiles Operation public virtual Task ListSecurityProfilesAsync(ListSecurityProfilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSecurityProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSecurityProfilesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSecurityProfilesForTarget /// /// Lists the Device Defender security profiles attached to a target (thing group). /// /// /// /// Requires permission to access the ListSecurityProfilesForTarget /// action. /// /// /// Container for the necessary parameters to execute the ListSecurityProfilesForTarget service method. /// /// The response from the ListSecurityProfilesForTarget service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListSecurityProfilesForTarget Operation public virtual ListSecurityProfilesForTargetResponse ListSecurityProfilesForTarget(ListSecurityProfilesForTargetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSecurityProfilesForTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSecurityProfilesForTargetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the Device Defender security profiles attached to a target (thing group). /// /// /// /// Requires permission to access the ListSecurityProfilesForTarget /// action. /// /// /// Container for the necessary parameters to execute the ListSecurityProfilesForTarget service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSecurityProfilesForTarget service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListSecurityProfilesForTarget Operation public virtual Task ListSecurityProfilesForTargetAsync(ListSecurityProfilesForTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSecurityProfilesForTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSecurityProfilesForTargetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListStreams /// /// Lists all of the streams in your Amazon Web Services account. /// /// /// /// Requires permission to access the ListStreams /// action. /// /// /// Container for the necessary parameters to execute the ListStreams service method. /// /// The response from the ListStreams service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListStreams Operation public virtual ListStreamsResponse ListStreams(ListStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStreamsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all of the streams in your Amazon Web Services account. /// /// /// /// Requires permission to access the ListStreams /// action. /// /// /// Container for the necessary parameters to execute the ListStreams service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListStreams service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListStreams Operation public virtual Task ListStreamsAsync(ListStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStreamsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource /// /// Lists the tags (metadata) you have assigned to the resource. /// /// /// /// Requires permission to access the ListTagsForResource /// action. /// /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the tags (metadata) you have assigned to the resource. /// /// /// /// Requires permission to access the ListTagsForResource /// action. /// /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTargetsForPolicy /// /// List targets for the specified policy. /// /// /// /// Requires permission to access the ListTargetsForPolicy /// action. /// /// /// Container for the necessary parameters to execute the ListTargetsForPolicy service method. /// /// The response from the ListTargetsForPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListTargetsForPolicy Operation public virtual ListTargetsForPolicyResponse ListTargetsForPolicy(ListTargetsForPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetsForPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetsForPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List targets for the specified policy. /// /// /// /// Requires permission to access the ListTargetsForPolicy /// action. /// /// /// Container for the necessary parameters to execute the ListTargetsForPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTargetsForPolicy service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListTargetsForPolicy Operation public virtual Task ListTargetsForPolicyAsync(ListTargetsForPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetsForPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetsForPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTargetsForSecurityProfile /// /// Lists the targets (thing groups) associated with a given Device Defender security /// profile. /// /// /// /// Requires permission to access the ListTargetsForSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the ListTargetsForSecurityProfile service method. /// /// The response from the ListTargetsForSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListTargetsForSecurityProfile Operation public virtual ListTargetsForSecurityProfileResponse ListTargetsForSecurityProfile(ListTargetsForSecurityProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetsForSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetsForSecurityProfileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the targets (thing groups) associated with a given Device Defender security /// profile. /// /// /// /// Requires permission to access the ListTargetsForSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the ListTargetsForSecurityProfile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTargetsForSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListTargetsForSecurityProfile Operation public virtual Task ListTargetsForSecurityProfileAsync(ListTargetsForSecurityProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetsForSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetsForSecurityProfileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThingGroups /// /// List the thing groups in your account. /// /// /// /// Requires permission to access the ListThingGroups /// action. /// /// /// Container for the necessary parameters to execute the ListThingGroups service method. /// /// The response from the ListThingGroups service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListThingGroups Operation public virtual ListThingGroupsResponse ListThingGroups(ListThingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List the thing groups in your account. /// /// /// /// Requires permission to access the ListThingGroups /// action. /// /// /// Container for the necessary parameters to execute the ListThingGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingGroups service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListThingGroups Operation public virtual Task ListThingGroupsAsync(ListThingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThingGroupsForThing /// /// List the thing groups to which the specified thing belongs. /// /// /// /// Requires permission to access the ListThingGroupsForThing /// action. /// /// /// Container for the necessary parameters to execute the ListThingGroupsForThing service method. /// /// The response from the ListThingGroupsForThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListThingGroupsForThing Operation public virtual ListThingGroupsForThingResponse ListThingGroupsForThing(ListThingGroupsForThingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingGroupsForThingRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingGroupsForThingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List the thing groups to which the specified thing belongs. /// /// /// /// Requires permission to access the ListThingGroupsForThing /// action. /// /// /// Container for the necessary parameters to execute the ListThingGroupsForThing service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingGroupsForThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListThingGroupsForThing Operation public virtual Task ListThingGroupsForThingAsync(ListThingGroupsForThingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingGroupsForThingRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingGroupsForThingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThingPrincipals /// /// 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. /// /// /// The name of the thing. /// /// The response from the ListThingPrincipals service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingPrincipals Operation public virtual ListThingPrincipalsResponse ListThingPrincipals(string thingName) { var request = new ListThingPrincipalsRequest(); request.ThingName = thingName; return ListThingPrincipals(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. /// /// /// Container for the necessary parameters to execute the ListThingPrincipals service method. /// /// The response from the ListThingPrincipals service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingPrincipals Operation public virtual ListThingPrincipalsResponse ListThingPrincipals(ListThingPrincipalsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingPrincipalsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingPrincipalsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The name of the thing. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingPrincipals service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingPrincipals Operation public virtual Task ListThingPrincipalsAsync(string thingName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListThingPrincipalsRequest(); request.ThingName = thingName; return ListThingPrincipalsAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListThingPrincipals service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingPrincipals service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingPrincipals Operation public virtual Task ListThingPrincipalsAsync(ListThingPrincipalsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingPrincipalsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingPrincipalsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThingRegistrationTaskReports /// /// Information about the thing registration tasks. /// /// Container for the necessary parameters to execute the ListThingRegistrationTaskReports service method. /// /// The response from the ListThingRegistrationTaskReports service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingRegistrationTaskReports Operation public virtual ListThingRegistrationTaskReportsResponse ListThingRegistrationTaskReports(ListThingRegistrationTaskReportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingRegistrationTaskReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingRegistrationTaskReportsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Information about the thing registration tasks. /// /// Container for the necessary parameters to execute the ListThingRegistrationTaskReports service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingRegistrationTaskReports service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingRegistrationTaskReports Operation public virtual Task ListThingRegistrationTaskReportsAsync(ListThingRegistrationTaskReportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingRegistrationTaskReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingRegistrationTaskReportsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThingRegistrationTasks /// /// List bulk thing provisioning tasks. /// /// /// /// Requires permission to access the ListThingRegistrationTasks /// action. /// /// /// Container for the necessary parameters to execute the ListThingRegistrationTasks service method. /// /// The response from the ListThingRegistrationTasks service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingRegistrationTasks Operation public virtual ListThingRegistrationTasksResponse ListThingRegistrationTasks(ListThingRegistrationTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingRegistrationTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingRegistrationTasksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List bulk thing provisioning tasks. /// /// /// /// Requires permission to access the ListThingRegistrationTasks /// action. /// /// /// Container for the necessary parameters to execute the ListThingRegistrationTasks service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingRegistrationTasks service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingRegistrationTasks Operation public virtual Task ListThingRegistrationTasksAsync(ListThingRegistrationTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingRegistrationTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingRegistrationTasksResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThings /// /// 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. /// /// /// /// /// The response from the ListThings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThings Operation public virtual ListThingsResponse ListThings() { var request = new ListThingsRequest(); return ListThings(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. /// /// /// /// Container for the necessary parameters to execute the ListThings service method. /// /// The response from the ListThings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThings Operation public virtual ListThingsResponse ListThings(ListThingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThings Operation public virtual Task ListThingsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListThingsRequest(); return ListThingsAsync(request, cancellationToken); } /// /// 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. /// /// /// /// Container for the necessary parameters to execute the ListThings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThings service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThings Operation public virtual Task ListThingsAsync(ListThingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThingsInBillingGroup /// /// Lists the things you have added to the given billing group. /// /// /// /// Requires permission to access the ListThingsInBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the ListThingsInBillingGroup service method. /// /// The response from the ListThingsInBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListThingsInBillingGroup Operation public virtual ListThingsInBillingGroupResponse ListThingsInBillingGroup(ListThingsInBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingsInBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingsInBillingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the things you have added to the given billing group. /// /// /// /// Requires permission to access the ListThingsInBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the ListThingsInBillingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingsInBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListThingsInBillingGroup Operation public virtual Task ListThingsInBillingGroupAsync(ListThingsInBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingsInBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingsInBillingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThingsInThingGroup /// /// Lists the things in the specified group. /// /// /// /// Requires permission to access the ListThingsInThingGroup /// action. /// /// /// Container for the necessary parameters to execute the ListThingsInThingGroup service method. /// /// The response from the ListThingsInThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListThingsInThingGroup Operation public virtual ListThingsInThingGroupResponse ListThingsInThingGroup(ListThingsInThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingsInThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingsInThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the things in the specified group. /// /// /// /// Requires permission to access the ListThingsInThingGroup /// action. /// /// /// Container for the necessary parameters to execute the ListThingsInThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingsInThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListThingsInThingGroup Operation public virtual Task ListThingsInThingGroupAsync(ListThingsInThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingsInThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingsInThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThingTypes /// /// Lists the existing thing types. /// /// /// /// Requires permission to access the ListThingTypes /// action. /// /// /// Container for the necessary parameters to execute the ListThingTypes service method. /// /// The response from the ListThingTypes service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingTypes Operation public virtual ListThingTypesResponse ListThingTypes(ListThingTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingTypesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the existing thing types. /// /// /// /// Requires permission to access the ListThingTypes /// action. /// /// /// Container for the necessary parameters to execute the ListThingTypes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThingTypes service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListThingTypes Operation public virtual Task ListThingTypesAsync(ListThingTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThingTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThingTypesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTopicRuleDestinations /// /// Lists all the topic rule destinations in your Amazon Web Services account. /// /// /// /// Requires permission to access the ListTopicRuleDestinations /// action. /// /// /// Container for the necessary parameters to execute the ListTopicRuleDestinations service method. /// /// The response from the ListTopicRuleDestinations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListTopicRuleDestinations Operation public virtual ListTopicRuleDestinationsResponse ListTopicRuleDestinations(ListTopicRuleDestinationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTopicRuleDestinationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTopicRuleDestinationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the topic rule destinations in your Amazon Web Services account. /// /// /// /// Requires permission to access the ListTopicRuleDestinations /// action. /// /// /// Container for the necessary parameters to execute the ListTopicRuleDestinations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTopicRuleDestinations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ListTopicRuleDestinations Operation public virtual Task ListTopicRuleDestinationsAsync(ListTopicRuleDestinationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTopicRuleDestinationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTopicRuleDestinationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTopicRules /// /// Lists the rules for the specific topic. /// /// /// /// Requires permission to access the ListTopicRules /// action. /// /// /// The topic. /// /// The response from the ListTopicRules service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for ListTopicRules Operation public virtual ListTopicRulesResponse ListTopicRules(string topic) { var request = new ListTopicRulesRequest(); request.Topic = topic; return ListTopicRules(request); } /// /// Lists the rules for the specific topic. /// /// /// /// Requires permission to access the ListTopicRules /// action. /// /// /// Container for the necessary parameters to execute the ListTopicRules service method. /// /// The response from the ListTopicRules service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for ListTopicRules Operation public virtual ListTopicRulesResponse ListTopicRules(ListTopicRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTopicRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTopicRulesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the rules for the specific topic. /// /// /// /// Requires permission to access the ListTopicRules /// action. /// /// /// The topic. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTopicRules service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for ListTopicRules Operation public virtual Task ListTopicRulesAsync(string topic, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListTopicRulesRequest(); request.Topic = topic; return ListTopicRulesAsync(request, cancellationToken); } /// /// Lists the rules for the specific topic. /// /// /// /// Requires permission to access the ListTopicRules /// action. /// /// /// Container for the necessary parameters to execute the ListTopicRules service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTopicRules service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for ListTopicRules Operation public virtual Task ListTopicRulesAsync(ListTopicRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTopicRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTopicRulesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListV2LoggingLevels /// /// Lists logging levels. /// /// /// /// Requires permission to access the ListV2LoggingLevels /// action. /// /// /// Container for the necessary parameters to execute the ListV2LoggingLevels service method. /// /// The response from the ListV2LoggingLevels service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource is not configured. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for ListV2LoggingLevels Operation public virtual ListV2LoggingLevelsResponse ListV2LoggingLevels(ListV2LoggingLevelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListV2LoggingLevelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListV2LoggingLevelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists logging levels. /// /// /// /// Requires permission to access the ListV2LoggingLevels /// action. /// /// /// Container for the necessary parameters to execute the ListV2LoggingLevels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListV2LoggingLevels service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource is not configured. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for ListV2LoggingLevels Operation public virtual Task ListV2LoggingLevelsAsync(ListV2LoggingLevelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListV2LoggingLevelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListV2LoggingLevelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListViolationEvents /// /// 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. /// /// /// Container for the necessary parameters to execute the ListViolationEvents service method. /// /// The response from the ListViolationEvents service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListViolationEvents Operation public virtual ListViolationEventsResponse ListViolationEvents(ListViolationEventsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListViolationEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListViolationEventsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ListViolationEvents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListViolationEvents service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ListViolationEvents Operation public virtual Task ListViolationEventsAsync(ListViolationEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListViolationEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListViolationEventsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutVerificationStateOnViolation /// /// Set a verification state and provide a description of that verification state on a /// violation (detect alarm). /// /// Container for the necessary parameters to execute the PutVerificationStateOnViolation service method. /// /// The response from the PutVerificationStateOnViolation service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for PutVerificationStateOnViolation Operation public virtual PutVerificationStateOnViolationResponse PutVerificationStateOnViolation(PutVerificationStateOnViolationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutVerificationStateOnViolationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutVerificationStateOnViolationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Set a verification state and provide a description of that verification state on a /// violation (detect alarm). /// /// Container for the necessary parameters to execute the PutVerificationStateOnViolation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutVerificationStateOnViolation service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for PutVerificationStateOnViolation Operation public virtual Task PutVerificationStateOnViolationAsync(PutVerificationStateOnViolationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutVerificationStateOnViolationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutVerificationStateOnViolationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RegisterCACertificate /// /// 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. /// /// /// Container for the necessary parameters to execute the RegisterCACertificate service method. /// /// The response from the RegisterCACertificate service method, as returned by IoT. /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The registration code is invalid. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RegisterCACertificate Operation public virtual RegisterCACertificateResponse RegisterCACertificate(RegisterCACertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterCACertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterCACertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the RegisterCACertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RegisterCACertificate service method, as returned by IoT. /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The registration code is invalid. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RegisterCACertificate Operation public virtual Task RegisterCACertificateAsync(RegisterCACertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterCACertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterCACertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RegisterCertificate /// /// 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. /// /// /// Container for the necessary parameters to execute the RegisterCertificate service method. /// /// The response from the RegisterCertificate service method, as returned by IoT. /// /// Unable to verify the CA certificate used to sign the device certificate you are attempting /// to register. This is happens when you have registered more than one CA certificate /// that has the same subject field and public key. /// /// /// The certificate operation is not allowed. /// /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RegisterCertificate Operation public virtual RegisterCertificateResponse RegisterCertificate(RegisterCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterCertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the RegisterCertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RegisterCertificate service method, as returned by IoT. /// /// Unable to verify the CA certificate used to sign the device certificate you are attempting /// to register. This is happens when you have registered more than one CA certificate /// that has the same subject field and public key. /// /// /// The certificate operation is not allowed. /// /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RegisterCertificate Operation public virtual Task RegisterCertificateAsync(RegisterCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterCertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RegisterCertificateWithoutCA /// /// Register a certificate that does not have a certificate authority (CA). For supported /// certificates, consult /// Certificate signing algorithms supported by IoT. /// /// Container for the necessary parameters to execute the RegisterCertificateWithoutCA service method. /// /// The response from the RegisterCertificateWithoutCA service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RegisterCertificateWithoutCA Operation public virtual RegisterCertificateWithoutCAResponse RegisterCertificateWithoutCA(RegisterCertificateWithoutCARequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterCertificateWithoutCARequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterCertificateWithoutCAResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Register a certificate that does not have a certificate authority (CA). For supported /// certificates, consult /// Certificate signing algorithms supported by IoT. /// /// Container for the necessary parameters to execute the RegisterCertificateWithoutCA service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RegisterCertificateWithoutCA service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RegisterCertificateWithoutCA Operation public virtual Task RegisterCertificateWithoutCAAsync(RegisterCertificateWithoutCARequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterCertificateWithoutCARequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterCertificateWithoutCAResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RegisterThing /// /// 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. /// /// /// Container for the necessary parameters to execute the RegisterThing service method. /// /// The response from the RegisterThing service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource registration failed. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RegisterThing Operation public virtual RegisterThingResponse RegisterThing(RegisterThingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterThingRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterThingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the RegisterThing service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RegisterThing service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource registration failed. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RegisterThing Operation public virtual Task RegisterThingAsync(RegisterThingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterThingRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterThingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RejectCertificateTransfer /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// /// The response from the RejectCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RejectCertificateTransfer Operation public virtual RejectCertificateTransferResponse RejectCertificateTransfer(string certificateId) { var request = new RejectCertificateTransferRequest(); request.CertificateId = certificateId; return RejectCertificateTransfer(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. /// /// /// Container for the necessary parameters to execute the RejectCertificateTransfer service method. /// /// The response from the RejectCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RejectCertificateTransfer Operation public virtual RejectCertificateTransferResponse RejectCertificateTransfer(RejectCertificateTransferRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RejectCertificateTransferRequestMarshaller.Instance; options.ResponseUnmarshaller = RejectCertificateTransferResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RejectCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RejectCertificateTransfer Operation public virtual Task RejectCertificateTransferAsync(string certificateId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new RejectCertificateTransferRequest(); request.CertificateId = certificateId; return RejectCertificateTransferAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the RejectCertificateTransfer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RejectCertificateTransfer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for RejectCertificateTransfer Operation public virtual Task RejectCertificateTransferAsync(RejectCertificateTransferRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RejectCertificateTransferRequestMarshaller.Instance; options.ResponseUnmarshaller = RejectCertificateTransferResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RemoveThingFromBillingGroup /// /// 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. /// /// /// /// Container for the necessary parameters to execute the RemoveThingFromBillingGroup service method. /// /// The response from the RemoveThingFromBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for RemoveThingFromBillingGroup Operation public virtual RemoveThingFromBillingGroupResponse RemoveThingFromBillingGroup(RemoveThingFromBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveThingFromBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveThingFromBillingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// /// Container for the necessary parameters to execute the RemoveThingFromBillingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RemoveThingFromBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for RemoveThingFromBillingGroup Operation public virtual Task RemoveThingFromBillingGroupAsync(RemoveThingFromBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveThingFromBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveThingFromBillingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RemoveThingFromThingGroup /// /// 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. /// /// /// Container for the necessary parameters to execute the RemoveThingFromThingGroup service method. /// /// The response from the RemoveThingFromThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for RemoveThingFromThingGroup Operation public virtual RemoveThingFromThingGroupResponse RemoveThingFromThingGroup(RemoveThingFromThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveThingFromThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveThingFromThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the RemoveThingFromThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RemoveThingFromThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for RemoveThingFromThingGroup Operation public virtual Task RemoveThingFromThingGroupAsync(RemoveThingFromThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveThingFromThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveThingFromThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ReplaceTopicRule /// /// 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. /// /// /// Container for the necessary parameters to execute the ReplaceTopicRule service method. /// /// The response from the ReplaceTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The Rule-SQL expression can't be parsed correctly. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ReplaceTopicRule Operation public virtual ReplaceTopicRuleResponse ReplaceTopicRule(ReplaceTopicRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ReplaceTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ReplaceTopicRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the ReplaceTopicRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ReplaceTopicRule service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The Rule-SQL expression can't be parsed correctly. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for ReplaceTopicRule Operation public virtual Task ReplaceTopicRuleAsync(ReplaceTopicRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ReplaceTopicRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ReplaceTopicRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SearchIndex /// /// The query search index. /// /// /// /// Requires permission to access the SearchIndex /// action. /// /// /// Container for the necessary parameters to execute the SearchIndex service method. /// /// The response from the SearchIndex service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for SearchIndex Operation public virtual SearchIndexResponse SearchIndex(SearchIndexRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchIndexRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchIndexResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The query search index. /// /// /// /// Requires permission to access the SearchIndex /// action. /// /// /// Container for the necessary parameters to execute the SearchIndex service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SearchIndex service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for SearchIndex Operation public virtual Task SearchIndexAsync(SearchIndexRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchIndexRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchIndexResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SetDefaultAuthorizer /// /// 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. /// /// /// Container for the necessary parameters to execute the SetDefaultAuthorizer service method. /// /// The response from the SetDefaultAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for SetDefaultAuthorizer Operation public virtual SetDefaultAuthorizerResponse SetDefaultAuthorizer(SetDefaultAuthorizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetDefaultAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDefaultAuthorizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the SetDefaultAuthorizer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SetDefaultAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The resource already exists. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for SetDefaultAuthorizer Operation public virtual Task SetDefaultAuthorizerAsync(SetDefaultAuthorizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetDefaultAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDefaultAuthorizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SetDefaultPolicyVersion /// /// 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. /// /// /// The policy name. /// The policy version ID. /// /// The response from the SetDefaultPolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for SetDefaultPolicyVersion Operation public virtual SetDefaultPolicyVersionResponse SetDefaultPolicyVersion(string policyName, string policyVersionId) { var request = new SetDefaultPolicyVersionRequest(); request.PolicyName = policyName; request.PolicyVersionId = policyVersionId; return SetDefaultPolicyVersion(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. /// /// /// Container for the necessary parameters to execute the SetDefaultPolicyVersion service method. /// /// The response from the SetDefaultPolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for SetDefaultPolicyVersion Operation public virtual SetDefaultPolicyVersionResponse SetDefaultPolicyVersion(SetDefaultPolicyVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetDefaultPolicyVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDefaultPolicyVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The policy name. /// The policy version ID. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SetDefaultPolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for SetDefaultPolicyVersion Operation public virtual Task SetDefaultPolicyVersionAsync(string policyName, string policyVersionId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new SetDefaultPolicyVersionRequest(); request.PolicyName = policyName; request.PolicyVersionId = policyVersionId; return SetDefaultPolicyVersionAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the SetDefaultPolicyVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SetDefaultPolicyVersion service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for SetDefaultPolicyVersion Operation public virtual Task SetDefaultPolicyVersionAsync(SetDefaultPolicyVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetDefaultPolicyVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDefaultPolicyVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SetLoggingOptions /// /// Sets the logging options. /// /// /// /// NOTE: use of this command is not recommended. Use SetV2LoggingOptions /// instead. /// /// /// /// Requires permission to access the SetLoggingOptions /// action. /// /// /// Container for the necessary parameters to execute the SetLoggingOptions service method. /// /// The response from the SetLoggingOptions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for SetLoggingOptions Operation public virtual SetLoggingOptionsResponse SetLoggingOptions(SetLoggingOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetLoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = SetLoggingOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the logging options. /// /// /// /// NOTE: use of this command is not recommended. Use SetV2LoggingOptions /// instead. /// /// /// /// Requires permission to access the SetLoggingOptions /// action. /// /// /// Container for the necessary parameters to execute the SetLoggingOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SetLoggingOptions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for SetLoggingOptions Operation public virtual Task SetLoggingOptionsAsync(SetLoggingOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetLoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = SetLoggingOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SetV2LoggingLevel /// /// Sets the logging level. /// /// /// /// Requires permission to access the SetV2LoggingLevel /// action. /// /// /// Container for the necessary parameters to execute the SetV2LoggingLevel service method. /// /// The response from the SetV2LoggingLevel service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource is not configured. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for SetV2LoggingLevel Operation public virtual SetV2LoggingLevelResponse SetV2LoggingLevel(SetV2LoggingLevelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetV2LoggingLevelRequestMarshaller.Instance; options.ResponseUnmarshaller = SetV2LoggingLevelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the logging level. /// /// /// /// Requires permission to access the SetV2LoggingLevel /// action. /// /// /// Container for the necessary parameters to execute the SetV2LoggingLevel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SetV2LoggingLevel service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The resource is not configured. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for SetV2LoggingLevel Operation public virtual Task SetV2LoggingLevelAsync(SetV2LoggingLevelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetV2LoggingLevelRequestMarshaller.Instance; options.ResponseUnmarshaller = SetV2LoggingLevelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SetV2LoggingOptions /// /// Sets the logging options for the V2 logging service. /// /// /// /// Requires permission to access the SetV2LoggingOptions /// action. /// /// /// Container for the necessary parameters to execute the SetV2LoggingOptions service method. /// /// The response from the SetV2LoggingOptions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for SetV2LoggingOptions Operation public virtual SetV2LoggingOptionsResponse SetV2LoggingOptions(SetV2LoggingOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetV2LoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = SetV2LoggingOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the logging options for the V2 logging service. /// /// /// /// Requires permission to access the SetV2LoggingOptions /// action. /// /// /// Container for the necessary parameters to execute the SetV2LoggingOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SetV2LoggingOptions service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for SetV2LoggingOptions Operation public virtual Task SetV2LoggingOptionsAsync(SetV2LoggingOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetV2LoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = SetV2LoggingOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartAuditMitigationActionsTask /// /// Starts a task that applies a set of mitigation actions to the specified target. /// /// /// /// Requires permission to access the StartAuditMitigationActionsTask /// action. /// /// /// Container for the necessary parameters to execute the StartAuditMitigationActionsTask service method. /// /// The response from the StartAuditMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// This exception occurs if you attempt to start a task with the same task-id as an /// existing task but with a different clientRequestToken. /// /// /// The rate exceeds the limit. /// /// REST API Reference for StartAuditMitigationActionsTask Operation public virtual StartAuditMitigationActionsTaskResponse StartAuditMitigationActionsTask(StartAuditMitigationActionsTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartAuditMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAuditMitigationActionsTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts a task that applies a set of mitigation actions to the specified target. /// /// /// /// Requires permission to access the StartAuditMitigationActionsTask /// action. /// /// /// Container for the necessary parameters to execute the StartAuditMitigationActionsTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartAuditMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// This exception occurs if you attempt to start a task with the same task-id as an /// existing task but with a different clientRequestToken. /// /// /// The rate exceeds the limit. /// /// REST API Reference for StartAuditMitigationActionsTask Operation public virtual Task StartAuditMitigationActionsTaskAsync(StartAuditMitigationActionsTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartAuditMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAuditMitigationActionsTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartDetectMitigationActionsTask /// /// Starts a Device Defender ML Detect mitigation actions task. /// /// /// /// Requires permission to access the StartDetectMitigationActionsTask /// action. /// /// /// Container for the necessary parameters to execute the StartDetectMitigationActionsTask service method. /// /// The response from the StartDetectMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// This exception occurs if you attempt to start a task with the same task-id as an /// existing task but with a different clientRequestToken. /// /// /// The rate exceeds the limit. /// /// REST API Reference for StartDetectMitigationActionsTask Operation public virtual StartDetectMitigationActionsTaskResponse StartDetectMitigationActionsTask(StartDetectMitigationActionsTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartDetectMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDetectMitigationActionsTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts a Device Defender ML Detect mitigation actions task. /// /// /// /// Requires permission to access the StartDetectMitigationActionsTask /// action. /// /// /// Container for the necessary parameters to execute the StartDetectMitigationActionsTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartDetectMitigationActionsTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// This exception occurs if you attempt to start a task with the same task-id as an /// existing task but with a different clientRequestToken. /// /// /// The rate exceeds the limit. /// /// REST API Reference for StartDetectMitigationActionsTask Operation public virtual Task StartDetectMitigationActionsTaskAsync(StartDetectMitigationActionsTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartDetectMitigationActionsTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDetectMitigationActionsTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartOnDemandAuditTask /// /// Starts an on-demand Device Defender audit. /// /// /// /// Requires permission to access the StartOnDemandAuditTask /// action. /// /// /// Container for the necessary parameters to execute the StartOnDemandAuditTask service method. /// /// The response from the StartOnDemandAuditTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The rate exceeds the limit. /// /// REST API Reference for StartOnDemandAuditTask Operation public virtual StartOnDemandAuditTaskResponse StartOnDemandAuditTask(StartOnDemandAuditTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandAuditTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandAuditTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts an on-demand Device Defender audit. /// /// /// /// Requires permission to access the StartOnDemandAuditTask /// action. /// /// /// Container for the necessary parameters to execute the StartOnDemandAuditTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartOnDemandAuditTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The rate exceeds the limit. /// /// REST API Reference for StartOnDemandAuditTask Operation public virtual Task StartOnDemandAuditTaskAsync(StartOnDemandAuditTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartOnDemandAuditTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StartOnDemandAuditTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartThingRegistrationTask /// /// Creates a bulk thing provisioning task. /// /// /// /// Requires permission to access the StartThingRegistrationTask /// action. /// /// /// Container for the necessary parameters to execute the StartThingRegistrationTask service method. /// /// The response from the StartThingRegistrationTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for StartThingRegistrationTask Operation public virtual StartThingRegistrationTaskResponse StartThingRegistrationTask(StartThingRegistrationTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartThingRegistrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StartThingRegistrationTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a bulk thing provisioning task. /// /// /// /// Requires permission to access the StartThingRegistrationTask /// action. /// /// /// Container for the necessary parameters to execute the StartThingRegistrationTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartThingRegistrationTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for StartThingRegistrationTask Operation public virtual Task StartThingRegistrationTaskAsync(StartThingRegistrationTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartThingRegistrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StartThingRegistrationTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopThingRegistrationTask /// /// Cancels a bulk thing provisioning task. /// /// /// /// Requires permission to access the StopThingRegistrationTask /// action. /// /// /// Container for the necessary parameters to execute the StopThingRegistrationTask service method. /// /// The response from the StopThingRegistrationTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for StopThingRegistrationTask Operation public virtual StopThingRegistrationTaskResponse StopThingRegistrationTask(StopThingRegistrationTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopThingRegistrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StopThingRegistrationTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Cancels a bulk thing provisioning task. /// /// /// /// Requires permission to access the StopThingRegistrationTask /// action. /// /// /// Container for the necessary parameters to execute the StopThingRegistrationTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopThingRegistrationTask service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for StopThingRegistrationTask Operation public virtual Task StopThingRegistrationTaskAsync(StopThingRegistrationTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopThingRegistrationTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = StopThingRegistrationTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource /// /// 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. /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TestAuthorization /// /// 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. /// /// /// Container for the necessary parameters to execute the TestAuthorization service method. /// /// The response from the TestAuthorization service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for TestAuthorization Operation public virtual TestAuthorizationResponse TestAuthorization(TestAuthorizationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = TestAuthorizationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the TestAuthorization service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TestAuthorization service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for TestAuthorization Operation public virtual Task TestAuthorizationAsync(TestAuthorizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TestAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = TestAuthorizationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TestInvokeAuthorizer /// /// 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. /// /// /// Container for the necessary parameters to execute the TestInvokeAuthorizer service method. /// /// The response from the TestInvokeAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The response is invalid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for TestInvokeAuthorizer Operation public virtual TestInvokeAuthorizerResponse TestInvokeAuthorizer(TestInvokeAuthorizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestInvokeAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = TestInvokeAuthorizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the TestInvokeAuthorizer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TestInvokeAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The response is invalid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for TestInvokeAuthorizer Operation public virtual Task TestInvokeAuthorizerAsync(TestInvokeAuthorizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TestInvokeAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = TestInvokeAuthorizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TransferCertificate /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// The Amazon Web Services account. /// /// The response from the TransferCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't transfer the certificate because authorization policies are still attached. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for TransferCertificate Operation public virtual TransferCertificateResponse TransferCertificate(string certificateId, string targetAwsAccount) { var request = new TransferCertificateRequest(); request.CertificateId = certificateId; request.TargetAwsAccount = targetAwsAccount; return TransferCertificate(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. /// /// /// Container for the necessary parameters to execute the TransferCertificate service method. /// /// The response from the TransferCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't transfer the certificate because authorization policies are still attached. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for TransferCertificate Operation public virtual TransferCertificateResponse TransferCertificate(TransferCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TransferCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = TransferCertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// The Amazon Web Services account. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TransferCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't transfer the certificate because authorization policies are still attached. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for TransferCertificate Operation public virtual Task TransferCertificateAsync(string certificateId, string targetAwsAccount, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new TransferCertificateRequest(); request.CertificateId = certificateId; request.TargetAwsAccount = targetAwsAccount; return TransferCertificateAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the TransferCertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TransferCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You can't transfer the certificate because authorization policies are still attached. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for TransferCertificate Operation public virtual Task TransferCertificateAsync(TransferCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TransferCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = TransferCertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource /// /// Removes the given tags (metadata) from the resource. /// /// /// /// Requires permission to access the UntagResource /// action. /// /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the given tags (metadata) from the resource. /// /// /// /// Requires permission to access the UntagResource /// action. /// /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateAccountAuditConfiguration /// /// 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. /// /// /// Container for the necessary parameters to execute the UpdateAccountAuditConfiguration service method. /// /// The response from the UpdateAccountAuditConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateAccountAuditConfiguration Operation public virtual UpdateAccountAuditConfigurationResponse UpdateAccountAuditConfiguration(UpdateAccountAuditConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAccountAuditConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAccountAuditConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the UpdateAccountAuditConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateAccountAuditConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateAccountAuditConfiguration Operation public virtual Task UpdateAccountAuditConfigurationAsync(UpdateAccountAuditConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAccountAuditConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAccountAuditConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateAuditSuppression /// /// Updates a Device Defender audit suppression. /// /// Container for the necessary parameters to execute the UpdateAuditSuppression service method. /// /// The response from the UpdateAuditSuppression service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateAuditSuppression Operation public virtual UpdateAuditSuppressionResponse UpdateAuditSuppression(UpdateAuditSuppressionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAuditSuppressionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAuditSuppressionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a Device Defender audit suppression. /// /// Container for the necessary parameters to execute the UpdateAuditSuppression service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateAuditSuppression service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateAuditSuppression Operation public virtual Task UpdateAuditSuppressionAsync(UpdateAuditSuppressionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAuditSuppressionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAuditSuppressionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateAuthorizer /// /// Updates an authorizer. /// /// /// /// Requires permission to access the UpdateAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the UpdateAuthorizer service method. /// /// The response from the UpdateAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateAuthorizer Operation public virtual UpdateAuthorizerResponse UpdateAuthorizer(UpdateAuthorizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAuthorizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an authorizer. /// /// /// /// Requires permission to access the UpdateAuthorizer /// action. /// /// /// Container for the necessary parameters to execute the UpdateAuthorizer service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateAuthorizer service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// A limit has been exceeded. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateAuthorizer Operation public virtual Task UpdateAuthorizerAsync(UpdateAuthorizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAuthorizerRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAuthorizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateBillingGroup /// /// Updates information about the billing group. /// /// /// /// Requires permission to access the UpdateBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the UpdateBillingGroup service method. /// /// The response from the UpdateBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateBillingGroup Operation public virtual UpdateBillingGroupResponse UpdateBillingGroup(UpdateBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBillingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates information about the billing group. /// /// /// /// Requires permission to access the UpdateBillingGroup /// action. /// /// /// Container for the necessary parameters to execute the UpdateBillingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateBillingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateBillingGroup Operation public virtual Task UpdateBillingGroupAsync(UpdateBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBillingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateCACertificate /// /// Updates a registered CA certificate. /// /// /// /// Requires permission to access the UpdateCACertificate /// action. /// /// /// Container for the necessary parameters to execute the UpdateCACertificate service method. /// /// The response from the UpdateCACertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateCACertificate Operation public virtual UpdateCACertificateResponse UpdateCACertificate(UpdateCACertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCACertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCACertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a registered CA certificate. /// /// /// /// Requires permission to access the UpdateCACertificate /// action. /// /// /// Container for the necessary parameters to execute the UpdateCACertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateCACertificate service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateCACertificate Operation public virtual Task UpdateCACertificateAsync(UpdateCACertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCACertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCACertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateCertificate /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// The new status. Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use. Note: The status value REGISTER_INACTIVE is deprecated and should not be used. /// /// The response from the UpdateCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateCertificate Operation public virtual UpdateCertificateResponse UpdateCertificate(string certificateId, CertificateStatus newStatus) { var request = new UpdateCertificateRequest(); request.CertificateId = certificateId; request.NewStatus = newStatus; return UpdateCertificate(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. /// /// /// Container for the necessary parameters to execute the UpdateCertificate service method. /// /// The response from the UpdateCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateCertificate Operation public virtual UpdateCertificateResponse UpdateCertificate(UpdateCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCertificateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) /// The new status. Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use. Note: The status value REGISTER_INACTIVE is deprecated and should not be used. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateCertificate Operation public virtual Task UpdateCertificateAsync(string certificateId, CertificateStatus newStatus, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new UpdateCertificateRequest(); request.CertificateId = certificateId; request.NewStatus = newStatus; return UpdateCertificateAsync(request, cancellationToken); } /// /// 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. /// /// /// Container for the necessary parameters to execute the UpdateCertificate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateCertificate service method, as returned by IoT. /// /// The certificate operation is not allowed. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateCertificate Operation public virtual Task UpdateCertificateAsync(UpdateCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCertificateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateCustomMetric /// /// Updates a Device Defender detect custom metric. /// /// /// /// Requires permission to access the UpdateCustomMetric /// action. /// /// /// Container for the necessary parameters to execute the UpdateCustomMetric service method. /// /// The response from the UpdateCustomMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateCustomMetric Operation public virtual UpdateCustomMetricResponse UpdateCustomMetric(UpdateCustomMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCustomMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCustomMetricResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a Device Defender detect custom metric. /// /// /// /// Requires permission to access the UpdateCustomMetric /// action. /// /// /// Container for the necessary parameters to execute the UpdateCustomMetric service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateCustomMetric service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateCustomMetric Operation public virtual Task UpdateCustomMetricAsync(UpdateCustomMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCustomMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCustomMetricResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDimension /// /// 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. /// /// /// Container for the necessary parameters to execute the UpdateDimension service method. /// /// The response from the UpdateDimension service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateDimension Operation public virtual UpdateDimensionResponse UpdateDimension(UpdateDimensionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDimensionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDimensionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the UpdateDimension service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDimension service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateDimension Operation public virtual Task UpdateDimensionAsync(UpdateDimensionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDimensionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDimensionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDomainConfiguration /// /// Updates values stored in the domain configuration. Domain configurations for default /// endpoints can't be updated. /// /// /// /// Requires permission to access the UpdateDomainConfiguration /// action. /// /// /// Container for the necessary parameters to execute the UpdateDomainConfiguration service method. /// /// The response from the UpdateDomainConfiguration service method, as returned by IoT. /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateDomainConfiguration Operation public virtual UpdateDomainConfigurationResponse UpdateDomainConfiguration(UpdateDomainConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates values stored in the domain configuration. Domain configurations for default /// endpoints can't be updated. /// /// /// /// Requires permission to access the UpdateDomainConfiguration /// action. /// /// /// Container for the necessary parameters to execute the UpdateDomainConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDomainConfiguration service method, as returned by IoT. /// /// The certificate is invalid. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateDomainConfiguration Operation public virtual Task UpdateDomainConfigurationAsync(UpdateDomainConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDomainConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDomainConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDynamicThingGroup /// /// Updates a dynamic thing group. /// /// /// /// Requires permission to access the UpdateDynamicThingGroup /// action. /// /// /// Container for the necessary parameters to execute the UpdateDynamicThingGroup service method. /// /// The response from the UpdateDynamicThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateDynamicThingGroup Operation public virtual UpdateDynamicThingGroupResponse UpdateDynamicThingGroup(UpdateDynamicThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDynamicThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDynamicThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a dynamic thing group. /// /// /// /// Requires permission to access the UpdateDynamicThingGroup /// action. /// /// /// Container for the necessary parameters to execute the UpdateDynamicThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDynamicThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateDynamicThingGroup Operation public virtual Task UpdateDynamicThingGroupAsync(UpdateDynamicThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDynamicThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDynamicThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateEventConfigurations /// /// Updates the event configurations. /// /// /// /// Requires permission to access the UpdateEventConfigurations /// action. /// /// /// Container for the necessary parameters to execute the UpdateEventConfigurations service method. /// /// The response from the UpdateEventConfigurations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateEventConfigurations Operation public virtual UpdateEventConfigurationsResponse UpdateEventConfigurations(UpdateEventConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEventConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEventConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the event configurations. /// /// /// /// Requires permission to access the UpdateEventConfigurations /// action. /// /// /// Container for the necessary parameters to execute the UpdateEventConfigurations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateEventConfigurations service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateEventConfigurations Operation public virtual Task UpdateEventConfigurationsAsync(UpdateEventConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEventConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEventConfigurationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateFleetMetric /// /// Updates the data for a fleet metric. /// /// /// /// Requires permission to access the UpdateFleetMetric /// action. /// /// /// Container for the necessary parameters to execute the UpdateFleetMetric service method. /// /// The response from the UpdateFleetMetric service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateFleetMetric Operation public virtual UpdateFleetMetricResponse UpdateFleetMetric(UpdateFleetMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFleetMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFleetMetricResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the data for a fleet metric. /// /// /// /// Requires permission to access the UpdateFleetMetric /// action. /// /// /// Container for the necessary parameters to execute the UpdateFleetMetric service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateFleetMetric service method, as returned by IoT. /// /// The index is not ready. /// /// /// An unexpected error has occurred. /// /// /// The aggregation is invalid. /// /// /// The query is invalid. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateFleetMetric Operation public virtual Task UpdateFleetMetricAsync(UpdateFleetMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFleetMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFleetMetricResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateIndexingConfiguration /// /// Updates the search configuration. /// /// /// /// Requires permission to access the UpdateIndexingConfiguration /// action. /// /// /// Container for the necessary parameters to execute the UpdateIndexingConfiguration service method. /// /// The response from the UpdateIndexingConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateIndexingConfiguration Operation public virtual UpdateIndexingConfigurationResponse UpdateIndexingConfiguration(UpdateIndexingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIndexingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIndexingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the search configuration. /// /// /// /// Requires permission to access the UpdateIndexingConfiguration /// action. /// /// /// Container for the necessary parameters to execute the UpdateIndexingConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateIndexingConfiguration service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateIndexingConfiguration Operation public virtual Task UpdateIndexingConfigurationAsync(UpdateIndexingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIndexingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIndexingConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateJob /// /// Updates supported fields of the specified job. /// /// /// /// Requires permission to access the UpdateJob /// action. /// /// /// Container for the necessary parameters to execute the UpdateJob service method. /// /// The response from the UpdateJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateJob Operation public virtual UpdateJobResponse UpdateJob(UpdateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates supported fields of the specified job. /// /// /// /// Requires permission to access the UpdateJob /// action. /// /// /// Container for the necessary parameters to execute the UpdateJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateJob service method, as returned by IoT. /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateJob Operation public virtual Task UpdateJobAsync(UpdateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateMitigationAction /// /// Updates the definition for the specified mitigation action. /// /// /// /// Requires permission to access the UpdateMitigationAction /// action. /// /// /// Container for the necessary parameters to execute the UpdateMitigationAction service method. /// /// The response from the UpdateMitigationAction service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateMitigationAction Operation public virtual UpdateMitigationActionResponse UpdateMitigationAction(UpdateMitigationActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateMitigationActionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateMitigationActionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the definition for the specified mitigation action. /// /// /// /// Requires permission to access the UpdateMitigationAction /// action. /// /// /// Container for the necessary parameters to execute the UpdateMitigationAction service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateMitigationAction service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateMitigationAction Operation public virtual Task UpdateMitigationActionAsync(UpdateMitigationActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateMitigationActionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateMitigationActionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePackage /// /// Updates the supported fields for a specific package. /// /// /// /// Requires permission to access the UpdatePackage /// and GetIndexingConfiguration /// actions. /// /// /// Container for the necessary parameters to execute the UpdatePackage service method. /// /// The response from the UpdatePackage service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for UpdatePackage Operation public virtual UpdatePackageResponse UpdatePackage(UpdatePackageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the supported fields for a specific package. /// /// /// /// Requires permission to access the UpdatePackage /// and GetIndexingConfiguration /// actions. /// /// /// Container for the necessary parameters to execute the UpdatePackage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePackage service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for UpdatePackage Operation public virtual Task UpdatePackageAsync(UpdatePackageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePackageConfiguration /// /// Updates the package configuration. /// /// /// /// Requires permission to access the UpdatePackageConfiguration /// and iam:PassRole /// actions. /// /// /// Container for the necessary parameters to execute the UpdatePackageConfiguration service method. /// /// The response from the UpdatePackageConfiguration service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for UpdatePackageConfiguration Operation public virtual UpdatePackageConfigurationResponse UpdatePackageConfiguration(UpdatePackageConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackageConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackageConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the package configuration. /// /// /// /// Requires permission to access the UpdatePackageConfiguration /// and iam:PassRole /// actions. /// /// /// Container for the necessary parameters to execute the UpdatePackageConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePackageConfiguration service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for UpdatePackageConfiguration Operation public virtual Task UpdatePackageConfigurationAsync(UpdatePackageConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackageConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackageConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePackageVersion /// /// Updates the supported fields for a specific package version. /// /// /// /// Requires permission to access the UpdatePackageVersion /// and GetIndexingConfiguration /// actions. /// /// /// Container for the necessary parameters to execute the UpdatePackageVersion service method. /// /// The response from the UpdatePackageVersion service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for UpdatePackageVersion Operation public virtual UpdatePackageVersionResponse UpdatePackageVersion(UpdatePackageVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackageVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the supported fields for a specific package version. /// /// /// /// Requires permission to access the UpdatePackageVersion /// and GetIndexingConfiguration /// actions. /// /// /// Container for the necessary parameters to execute the UpdatePackageVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePackageVersion service method, as returned by IoT. /// /// Internal error from the service that indicates an unexpected error or that the service /// is unavailable. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// The request is not valid. /// /// REST API Reference for UpdatePackageVersion Operation public virtual Task UpdatePackageVersionAsync(UpdatePackageVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackageVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateProvisioningTemplate /// /// Updates a provisioning template. /// /// /// /// Requires permission to access the UpdateProvisioningTemplate /// action. /// /// /// Container for the necessary parameters to execute the UpdateProvisioningTemplate service method. /// /// The response from the UpdateProvisioningTemplate service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateProvisioningTemplate Operation public virtual UpdateProvisioningTemplateResponse UpdateProvisioningTemplate(UpdateProvisioningTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProvisioningTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProvisioningTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a provisioning template. /// /// /// /// Requires permission to access the UpdateProvisioningTemplate /// action. /// /// /// Container for the necessary parameters to execute the UpdateProvisioningTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateProvisioningTemplate service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateProvisioningTemplate Operation public virtual Task UpdateProvisioningTemplateAsync(UpdateProvisioningTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProvisioningTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProvisioningTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateRoleAlias /// /// Updates a role alias. /// /// /// /// Requires permission to access the UpdateRoleAlias /// action. /// /// /// Container for the necessary parameters to execute the UpdateRoleAlias service method. /// /// The response from the UpdateRoleAlias service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateRoleAlias Operation public virtual UpdateRoleAliasResponse UpdateRoleAlias(UpdateRoleAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRoleAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRoleAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a role alias. /// /// /// /// Requires permission to access the UpdateRoleAlias /// action. /// /// /// Container for the necessary parameters to execute the UpdateRoleAlias service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateRoleAlias service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateRoleAlias Operation public virtual Task UpdateRoleAliasAsync(UpdateRoleAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRoleAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRoleAliasResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateScheduledAudit /// /// Updates a scheduled audit, including which checks are performed and how often the /// audit takes place. /// /// /// /// Requires permission to access the UpdateScheduledAudit /// action. /// /// /// Container for the necessary parameters to execute the UpdateScheduledAudit service method. /// /// The response from the UpdateScheduledAudit service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateScheduledAudit Operation public virtual UpdateScheduledAuditResponse UpdateScheduledAudit(UpdateScheduledAuditRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScheduledAuditRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScheduledAuditResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a scheduled audit, including which checks are performed and how often the /// audit takes place. /// /// /// /// Requires permission to access the UpdateScheduledAudit /// action. /// /// /// Container for the necessary parameters to execute the UpdateScheduledAudit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateScheduledAudit service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateScheduledAudit Operation public virtual Task UpdateScheduledAuditAsync(UpdateScheduledAuditRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScheduledAuditRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScheduledAuditResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateSecurityProfile /// /// Updates a Device Defender security profile. /// /// /// /// Requires permission to access the UpdateSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the UpdateSecurityProfile service method. /// /// The response from the UpdateSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateSecurityProfile Operation public virtual UpdateSecurityProfileResponse UpdateSecurityProfile(UpdateSecurityProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSecurityProfileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a Device Defender security profile. /// /// /// /// Requires permission to access the UpdateSecurityProfile /// action. /// /// /// Container for the necessary parameters to execute the UpdateSecurityProfile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateSecurityProfile service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateSecurityProfile Operation public virtual Task UpdateSecurityProfileAsync(UpdateSecurityProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSecurityProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSecurityProfileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateStream /// /// Updates an existing stream. The stream version will be incremented by one. /// /// /// /// Requires permission to access the UpdateStream /// action. /// /// /// Container for the necessary parameters to execute the UpdateStream service method. /// /// The response from the UpdateStream service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateStream Operation public virtual UpdateStreamResponse UpdateStream(UpdateStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStreamResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an existing stream. The stream version will be incremented by one. /// /// /// /// Requires permission to access the UpdateStream /// action. /// /// /// Container for the necessary parameters to execute the UpdateStream service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateStream service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateStream Operation public virtual Task UpdateStreamAsync(UpdateStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStreamResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateThing /// /// Updates the data for a thing. /// /// /// /// Requires permission to access the UpdateThing /// action. /// /// /// Container for the necessary parameters to execute the UpdateThing service method. /// /// The response from the UpdateThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateThing Operation public virtual UpdateThingResponse UpdateThing(UpdateThingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThingRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the data for a thing. /// /// /// /// Requires permission to access the UpdateThing /// action. /// /// /// Container for the necessary parameters to execute the UpdateThing service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The rate exceeds the limit. /// /// /// You are not authorized to perform this operation. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateThing Operation public virtual Task UpdateThingAsync(UpdateThingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThingRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateThingGroup /// /// Update a thing group. /// /// /// /// Requires permission to access the UpdateThingGroup /// action. /// /// /// Container for the necessary parameters to execute the UpdateThingGroup service method. /// /// The response from the UpdateThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateThingGroup Operation public virtual UpdateThingGroupResponse UpdateThingGroup(UpdateThingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Update a thing group. /// /// /// /// Requires permission to access the UpdateThingGroup /// action. /// /// /// Container for the necessary parameters to execute the UpdateThingGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateThingGroup service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// /// An exception thrown when the version of an entity specified with the expectedVersion /// parameter does not match the latest version in the system. /// /// REST API Reference for UpdateThingGroup Operation public virtual Task UpdateThingGroupAsync(UpdateThingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThingGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateThingGroupsForThing /// /// Updates the groups to which the thing belongs. /// /// /// /// Requires permission to access the UpdateThingGroupsForThing /// action. /// /// /// Container for the necessary parameters to execute the UpdateThingGroupsForThing service method. /// /// The response from the UpdateThingGroupsForThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateThingGroupsForThing Operation public virtual UpdateThingGroupsForThingResponse UpdateThingGroupsForThing(UpdateThingGroupsForThingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThingGroupsForThingRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThingGroupsForThingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the groups to which the thing belongs. /// /// /// /// Requires permission to access the UpdateThingGroupsForThing /// action. /// /// /// Container for the necessary parameters to execute the UpdateThingGroupsForThing service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateThingGroupsForThing service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The specified resource does not exist. /// /// /// The rate exceeds the limit. /// /// REST API Reference for UpdateThingGroupsForThing Operation public virtual Task UpdateThingGroupsForThingAsync(UpdateThingGroupsForThingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThingGroupsForThingRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThingGroupsForThingResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateTopicRuleDestination /// /// 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. /// /// /// Container for the necessary parameters to execute the UpdateTopicRuleDestination service method. /// /// The response from the UpdateTopicRuleDestination service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateTopicRuleDestination Operation public virtual UpdateTopicRuleDestinationResponse UpdateTopicRuleDestination(UpdateTopicRuleDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTopicRuleDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// Container for the necessary parameters to execute the UpdateTopicRuleDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateTopicRuleDestination service method, as returned by IoT. /// /// A conflicting resource update exception. This exception is thrown when two pending /// updates cause a conflict. /// /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The service is temporarily unavailable. /// /// /// You are not authorized to perform this operation. /// /// REST API Reference for UpdateTopicRuleDestination Operation public virtual Task UpdateTopicRuleDestinationAsync(UpdateTopicRuleDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTopicRuleDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTopicRuleDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ValidateSecurityProfileBehaviors /// /// Validates a Device Defender security profile behaviors specification. /// /// /// /// Requires permission to access the ValidateSecurityProfileBehaviors /// action. /// /// /// Container for the necessary parameters to execute the ValidateSecurityProfileBehaviors service method. /// /// The response from the ValidateSecurityProfileBehaviors service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ValidateSecurityProfileBehaviors Operation public virtual ValidateSecurityProfileBehaviorsResponse ValidateSecurityProfileBehaviors(ValidateSecurityProfileBehaviorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ValidateSecurityProfileBehaviorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidateSecurityProfileBehaviorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Validates a Device Defender security profile behaviors specification. /// /// /// /// Requires permission to access the ValidateSecurityProfileBehaviors /// action. /// /// /// Container for the necessary parameters to execute the ValidateSecurityProfileBehaviors service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ValidateSecurityProfileBehaviors service method, as returned by IoT. /// /// An unexpected error has occurred. /// /// /// The request is not valid. /// /// /// The rate exceeds the limit. /// /// REST API Reference for ValidateSecurityProfileBehaviors Operation public virtual Task ValidateSecurityProfileBehaviorsAsync(ValidateSecurityProfileBehaviorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ValidateSecurityProfileBehaviorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidateSecurityProfileBehaviorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }