/* * 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 iotevents-2018-07-27.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.IoTEvents.Model; using Amazon.IoTEvents.Model.Internal.MarshallTransformations; using Amazon.IoTEvents.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.IoTEvents { /// /// Implementation for accessing IoTEvents /// /// AWS IoT Events monitors your equipment or device fleets for failures or changes in /// operation, and triggers actions when such events occur. You can use AWS IoT Events /// API operations to create, read, update, and delete inputs and detector models, and /// to list their versions. /// public partial class AmazonIoTEventsClient : AmazonServiceClient, IAmazonIoTEvents { private static IServiceMetadata serviceMetadata = new AmazonIoTEventsMetadata(); #region Constructors /// /// Constructs AmazonIoTEventsClient 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 AmazonIoTEventsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTEventsConfig()) { } /// /// Constructs AmazonIoTEventsClient 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 AmazonIoTEventsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTEventsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTEventsClient 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 AmazonIoTEventsClient Configuration Object public AmazonIoTEventsClient(AmazonIoTEventsConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonIoTEventsClient with AWS Credentials /// /// AWS Credentials public AmazonIoTEventsClient(AWSCredentials credentials) : this(credentials, new AmazonIoTEventsConfig()) { } /// /// Constructs AmazonIoTEventsClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonIoTEventsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonIoTEventsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTEventsClient with AWS Credentials and an /// AmazonIoTEventsClient Configuration object. /// /// AWS Credentials /// The AmazonIoTEventsClient Configuration Object public AmazonIoTEventsClient(AWSCredentials credentials, AmazonIoTEventsConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonIoTEventsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonIoTEventsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTEventsConfig()) { } /// /// Constructs AmazonIoTEventsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonIoTEventsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTEventsConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonIoTEventsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIoTEventsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonIoTEventsClient Configuration Object public AmazonIoTEventsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIoTEventsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonIoTEventsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonIoTEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTEventsConfig()) { } /// /// Constructs AmazonIoTEventsClient 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 AmazonIoTEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTEventsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTEventsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIoTEventsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonIoTEventsClient Configuration Object public AmazonIoTEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIoTEventsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonIoTEventsEndpointResolver()); } /// /// 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 CreateAlarmModel internal virtual CreateAlarmModelResponse CreateAlarmModel(CreateAlarmModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAlarmModelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAlarmModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the /// alarm to get notified when the value is outside a specified range. For more information, /// see Create /// an alarm model in the AWS IoT Events Developer Guide. /// /// Container for the necessary parameters to execute the CreateAlarmModel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateAlarmModel service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// A limit was exceeded. /// /// /// The resource already exists. /// /// /// The resource is in use. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for CreateAlarmModel Operation public virtual Task CreateAlarmModelAsync(CreateAlarmModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAlarmModelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAlarmModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDetectorModel internal virtual CreateDetectorModelResponse CreateDetectorModel(CreateDetectorModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDetectorModelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDetectorModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a detector model. /// /// Container for the necessary parameters to execute the CreateDetectorModel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDetectorModel service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// A limit was exceeded. /// /// /// The resource already exists. /// /// /// The resource is in use. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for CreateDetectorModel Operation public virtual Task CreateDetectorModelAsync(CreateDetectorModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDetectorModelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDetectorModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateInput internal virtual CreateInputResponse CreateInput(CreateInputRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateInputRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateInputResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an input. /// /// Container for the necessary parameters to execute the CreateInput service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateInput service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource already exists. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for CreateInput Operation public virtual Task CreateInputAsync(CreateInputRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateInputRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateInputResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAlarmModel internal virtual DeleteAlarmModelResponse DeleteAlarmModel(DeleteAlarmModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlarmModelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlarmModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an alarm model. Any alarm instances that were created based on this alarm /// model are also deleted. This action can't be undone. /// /// Container for the necessary parameters to execute the DeleteAlarmModel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAlarmModel service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for DeleteAlarmModel Operation public virtual Task DeleteAlarmModelAsync(DeleteAlarmModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlarmModelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlarmModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDetectorModel internal virtual DeleteDetectorModelResponse DeleteDetectorModel(DeleteDetectorModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDetectorModelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDetectorModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a detector model. Any active instances of the detector model are also deleted. /// /// Container for the necessary parameters to execute the DeleteDetectorModel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDetectorModel service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for DeleteDetectorModel Operation public virtual Task DeleteDetectorModelAsync(DeleteDetectorModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDetectorModelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDetectorModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteInput internal virtual DeleteInputResponse DeleteInput(DeleteInputRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInputRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInputResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an input. /// /// Container for the necessary parameters to execute the DeleteInput service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteInput service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for DeleteInput Operation public virtual Task DeleteInputAsync(DeleteInputRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInputRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInputResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAlarmModel internal virtual DescribeAlarmModelResponse DescribeAlarmModel(DescribeAlarmModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmModelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about an alarm model. If you don't specify a value for the alarmModelVersion /// parameter, the latest version is returned. /// /// Container for the necessary parameters to execute the DescribeAlarmModel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeAlarmModel service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for DescribeAlarmModel Operation public virtual Task DescribeAlarmModelAsync(DescribeAlarmModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmModelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDetectorModel internal virtual DescribeDetectorModelResponse DescribeDetectorModel(DescribeDetectorModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDetectorModelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDetectorModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a detector model. If the version parameter is not specified, /// information about the latest version is returned. /// /// Container for the necessary parameters to execute the DescribeDetectorModel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDetectorModel service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for DescribeDetectorModel Operation public virtual Task DescribeDetectorModelAsync(DescribeDetectorModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDetectorModelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDetectorModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDetectorModelAnalysis internal virtual DescribeDetectorModelAnalysisResponse DescribeDetectorModelAnalysis(DescribeDetectorModelAnalysisRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDetectorModelAnalysisRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDetectorModelAnalysisResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves runtime information about a detector model analysis. /// /// /// /// After AWS IoT Events starts analyzing your detector model, you have up to 24 hours /// to retrieve the analysis results. /// /// /// /// Container for the necessary parameters to execute the DescribeDetectorModelAnalysis service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDetectorModelAnalysis service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for DescribeDetectorModelAnalysis Operation public virtual Task DescribeDetectorModelAnalysisAsync(DescribeDetectorModelAnalysisRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDetectorModelAnalysisRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDetectorModelAnalysisResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeInput internal virtual DescribeInputResponse DescribeInput(DescribeInputRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInputRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInputResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes an input. /// /// Container for the necessary parameters to execute the DescribeInput service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeInput service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for DescribeInput Operation public virtual Task DescribeInputAsync(DescribeInputRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInputRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInputResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLoggingOptions internal virtual DescribeLoggingOptionsResponse DescribeLoggingOptions(DescribeLoggingOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoggingOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the current settings of the AWS IoT Events logging options. /// /// Container for the necessary parameters to execute the DescribeLoggingOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLoggingOptions service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// /// The requested operation is not supported. /// /// REST API Reference for DescribeLoggingOptions Operation public virtual Task DescribeLoggingOptionsAsync(DescribeLoggingOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoggingOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDetectorModelAnalysisResults internal virtual GetDetectorModelAnalysisResultsResponse GetDetectorModelAnalysisResults(GetDetectorModelAnalysisResultsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDetectorModelAnalysisResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDetectorModelAnalysisResultsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves one or more analysis results of the detector model. /// /// /// /// After AWS IoT Events starts analyzing your detector model, you have up to 24 hours /// to retrieve the analysis results. /// /// /// /// Container for the necessary parameters to execute the GetDetectorModelAnalysisResults service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDetectorModelAnalysisResults service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for GetDetectorModelAnalysisResults Operation public virtual Task GetDetectorModelAnalysisResultsAsync(GetDetectorModelAnalysisResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDetectorModelAnalysisResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDetectorModelAnalysisResultsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAlarmModels internal virtual ListAlarmModelsResponse ListAlarmModels(ListAlarmModelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAlarmModelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAlarmModelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the alarm models that you created. The operation returns only the metadata associated /// with each alarm model. /// /// Container for the necessary parameters to execute the ListAlarmModels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAlarmModels service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for ListAlarmModels Operation public virtual Task ListAlarmModelsAsync(ListAlarmModelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAlarmModelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAlarmModelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAlarmModelVersions internal virtual ListAlarmModelVersionsResponse ListAlarmModelVersions(ListAlarmModelVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAlarmModelVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAlarmModelVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the versions of an alarm model. The operation returns only the metadata /// associated with each alarm model version. /// /// Container for the necessary parameters to execute the ListAlarmModelVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAlarmModelVersions service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for ListAlarmModelVersions Operation public virtual Task ListAlarmModelVersionsAsync(ListAlarmModelVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAlarmModelVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAlarmModelVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDetectorModels internal virtual ListDetectorModelsResponse ListDetectorModels(ListDetectorModelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectorModelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectorModelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the detector models you have created. Only the metadata associated with each /// detector model is returned. /// /// Container for the necessary parameters to execute the ListDetectorModels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDetectorModels service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for ListDetectorModels Operation public virtual Task ListDetectorModelsAsync(ListDetectorModelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectorModelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectorModelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDetectorModelVersions internal virtual ListDetectorModelVersionsResponse ListDetectorModelVersions(ListDetectorModelVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectorModelVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectorModelVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the versions of a detector model. Only the metadata associated with each /// detector model version is returned. /// /// Container for the necessary parameters to execute the ListDetectorModelVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDetectorModelVersions service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for ListDetectorModelVersions Operation public virtual Task ListDetectorModelVersionsAsync(ListDetectorModelVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectorModelVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectorModelVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListInputRoutings internal virtual ListInputRoutingsResponse ListInputRoutings(ListInputRoutingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListInputRoutingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInputRoutingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists one or more input routings. /// /// Container for the necessary parameters to execute the ListInputRoutings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListInputRoutings service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for ListInputRoutings Operation public virtual Task ListInputRoutingsAsync(ListInputRoutingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListInputRoutingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInputRoutingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListInputs internal virtual ListInputsResponse ListInputs(ListInputsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListInputsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInputsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the inputs you have created. /// /// Container for the necessary parameters to execute the ListInputs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListInputs service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for ListInputs Operation public virtual Task ListInputsAsync(ListInputsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListInputsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInputsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal 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. /// /// 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 IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The request could not be completed due to throttling. /// /// 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 PutLoggingOptions internal virtual PutLoggingOptionsResponse PutLoggingOptions(PutLoggingOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutLoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLoggingOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets or updates the AWS IoT Events logging options. /// /// /// /// If you update the value of any loggingOptions field, it takes up to one /// minute for the change to take effect. If you change the policy attached to the role /// you specified in the roleArn field (for example, to correct an invalid /// policy), it takes up to five minutes for that change to take effect. /// /// /// Container for the necessary parameters to execute the PutLoggingOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutLoggingOptions service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// /// The requested operation is not supported. /// /// REST API Reference for PutLoggingOptions Operation public virtual Task PutLoggingOptionsAsync(PutLoggingOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutLoggingOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLoggingOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartDetectorModelAnalysis internal virtual StartDetectorModelAnalysisResponse StartDetectorModelAnalysis(StartDetectorModelAnalysisRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartDetectorModelAnalysisRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDetectorModelAnalysisResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Performs an analysis of your detector model. For more information, see Troubleshooting /// a detector model in the AWS IoT Events Developer Guide. /// /// Container for the necessary parameters to execute the StartDetectorModelAnalysis service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartDetectorModelAnalysis service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// A limit was exceeded. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for StartDetectorModelAnalysis Operation public virtual Task StartDetectorModelAnalysisAsync(StartDetectorModelAnalysisRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartDetectorModelAnalysisRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDetectorModelAnalysisResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal 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 that can be /// used to manage a resource. /// /// 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 IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// A limit was exceeded. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The request could not be completed due to throttling. /// /// 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 UntagResource internal 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. /// /// 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 IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The request could not be completed due to throttling. /// /// 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 UpdateAlarmModel internal virtual UpdateAlarmModelResponse UpdateAlarmModel(UpdateAlarmModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAlarmModelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAlarmModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an alarm model. Any alarms that were created based on the previous version /// are deleted and then created again as new data arrives. /// /// Container for the necessary parameters to execute the UpdateAlarmModel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateAlarmModel service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for UpdateAlarmModel Operation public virtual Task UpdateAlarmModelAsync(UpdateAlarmModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAlarmModelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAlarmModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDetectorModel internal virtual UpdateDetectorModelResponse UpdateDetectorModel(UpdateDetectorModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDetectorModelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDetectorModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a detector model. Detectors (instances) spawned by the previous version are /// deleted and then re-created as new inputs arrive. /// /// Container for the necessary parameters to execute the UpdateDetectorModel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDetectorModel service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for UpdateDetectorModel Operation public virtual Task UpdateDetectorModelAsync(UpdateDetectorModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDetectorModelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDetectorModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateInput internal virtual UpdateInputResponse UpdateInput(UpdateInputRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateInputRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateInputResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an input. /// /// Container for the necessary parameters to execute the UpdateInput service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateInput service method, as returned by IoTEvents. /// /// An internal failure occurred. /// /// /// The request was invalid. /// /// /// The resource is in use. /// /// /// The resource was not found. /// /// /// The service is currently unavailable. /// /// /// The request could not be completed due to throttling. /// /// REST API Reference for UpdateInput Operation public virtual Task UpdateInputAsync(UpdateInputRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateInputRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateInputResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }