/*
* 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-data-2018-10-23.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.IoTEventsData.Model;
using Amazon.IoTEventsData.Model.Internal.MarshallTransformations;
using Amazon.IoTEventsData.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.IoTEventsData
{
///
/// Implementation for accessing IoTEventsData
///
/// IoT Events monitors your equipment or device fleets for failures or changes in operation,
/// and triggers actions when such events occur. You can use IoT Events Data API commands
/// to send inputs to detectors, list detectors, and view or update a detector's status.
///
///
///
/// For more information, see What
/// is IoT Events? in the IoT Events Developer Guide.
///
///
public partial class AmazonIoTEventsDataClient : AmazonServiceClient, IAmazonIoTEventsData
{
private static IServiceMetadata serviceMetadata = new AmazonIoTEventsDataMetadata();
#region Constructors
///
/// Constructs AmazonIoTEventsDataClient 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 AmazonIoTEventsDataClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTEventsDataConfig()) { }
///
/// Constructs AmazonIoTEventsDataClient 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 AmazonIoTEventsDataClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTEventsDataConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonIoTEventsDataClient 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 AmazonIoTEventsDataClient Configuration Object
public AmazonIoTEventsDataClient(AmazonIoTEventsDataConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonIoTEventsDataClient with AWS Credentials
///
/// AWS Credentials
public AmazonIoTEventsDataClient(AWSCredentials credentials)
: this(credentials, new AmazonIoTEventsDataConfig())
{
}
///
/// Constructs AmazonIoTEventsDataClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonIoTEventsDataClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonIoTEventsDataConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIoTEventsDataClient with AWS Credentials and an
/// AmazonIoTEventsDataClient Configuration object.
///
/// AWS Credentials
/// The AmazonIoTEventsDataClient Configuration Object
public AmazonIoTEventsDataClient(AWSCredentials credentials, AmazonIoTEventsDataConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonIoTEventsDataClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonIoTEventsDataClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTEventsDataConfig())
{
}
///
/// Constructs AmazonIoTEventsDataClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonIoTEventsDataClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTEventsDataConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonIoTEventsDataClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIoTEventsDataClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonIoTEventsDataClient Configuration Object
public AmazonIoTEventsDataClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIoTEventsDataConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonIoTEventsDataClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonIoTEventsDataClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTEventsDataConfig())
{
}
///
/// Constructs AmazonIoTEventsDataClient 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 AmazonIoTEventsDataClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTEventsDataConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIoTEventsDataClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIoTEventsDataClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonIoTEventsDataClient Configuration Object
public AmazonIoTEventsDataClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIoTEventsDataConfig 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 AmazonIoTEventsDataEndpointResolver());
}
///
/// 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 BatchAcknowledgeAlarm
///
/// Acknowledges one or more alarms. The alarms change to the ACKNOWLEDGED
/// state after you acknowledge them.
///
/// Container for the necessary parameters to execute the BatchAcknowledgeAlarm service method.
///
/// The response from the BatchAcknowledgeAlarm service method, as returned by IoTEventsData.
///
/// 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 BatchAcknowledgeAlarm Operation
public virtual BatchAcknowledgeAlarmResponse BatchAcknowledgeAlarm(BatchAcknowledgeAlarmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchAcknowledgeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchAcknowledgeAlarmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchAcknowledgeAlarm operation.
///
///
/// Container for the necessary parameters to execute the BatchAcknowledgeAlarm operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchAcknowledgeAlarm
/// operation.
/// REST API Reference for BatchAcknowledgeAlarm Operation
public virtual IAsyncResult BeginBatchAcknowledgeAlarm(BatchAcknowledgeAlarmRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchAcknowledgeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchAcknowledgeAlarmResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchAcknowledgeAlarm operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchAcknowledgeAlarm.
///
/// Returns a BatchAcknowledgeAlarmResult from IoTEventsData.
/// REST API Reference for BatchAcknowledgeAlarm Operation
public virtual BatchAcknowledgeAlarmResponse EndBatchAcknowledgeAlarm(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchDeleteDetector
///
/// Deletes one or more detectors that were created. When a detector is deleted, its state
/// will be cleared and the detector will be removed from the list of detectors. The deleted
/// detector will no longer appear if referenced in the ListDetectors
/// API call.
///
/// Container for the necessary parameters to execute the BatchDeleteDetector service method.
///
/// The response from the BatchDeleteDetector service method, as returned by IoTEventsData.
///
/// 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 BatchDeleteDetector Operation
public virtual BatchDeleteDetectorResponse BatchDeleteDetector(BatchDeleteDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchDeleteDetector operation.
///
///
/// Container for the necessary parameters to execute the BatchDeleteDetector operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDeleteDetector
/// operation.
/// REST API Reference for BatchDeleteDetector Operation
public virtual IAsyncResult BeginBatchDeleteDetector(BatchDeleteDetectorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteDetectorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchDeleteDetector operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchDeleteDetector.
///
/// Returns a BatchDeleteDetectorResult from IoTEventsData.
/// REST API Reference for BatchDeleteDetector Operation
public virtual BatchDeleteDetectorResponse EndBatchDeleteDetector(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchDisableAlarm
///
/// Disables one or more alarms. The alarms change to the DISABLED
state
/// after you disable them.
///
/// Container for the necessary parameters to execute the BatchDisableAlarm service method.
///
/// The response from the BatchDisableAlarm service method, as returned by IoTEventsData.
///
/// 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 BatchDisableAlarm Operation
public virtual BatchDisableAlarmResponse BatchDisableAlarm(BatchDisableAlarmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDisableAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDisableAlarmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchDisableAlarm operation.
///
///
/// Container for the necessary parameters to execute the BatchDisableAlarm operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDisableAlarm
/// operation.
/// REST API Reference for BatchDisableAlarm Operation
public virtual IAsyncResult BeginBatchDisableAlarm(BatchDisableAlarmRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDisableAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDisableAlarmResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchDisableAlarm operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchDisableAlarm.
///
/// Returns a BatchDisableAlarmResult from IoTEventsData.
/// REST API Reference for BatchDisableAlarm Operation
public virtual BatchDisableAlarmResponse EndBatchDisableAlarm(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchEnableAlarm
///
/// Enables one or more alarms. The alarms change to the NORMAL
state after
/// you enable them.
///
/// Container for the necessary parameters to execute the BatchEnableAlarm service method.
///
/// The response from the BatchEnableAlarm service method, as returned by IoTEventsData.
///
/// 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 BatchEnableAlarm Operation
public virtual BatchEnableAlarmResponse BatchEnableAlarm(BatchEnableAlarmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchEnableAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchEnableAlarmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchEnableAlarm operation.
///
///
/// Container for the necessary parameters to execute the BatchEnableAlarm operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchEnableAlarm
/// operation.
/// REST API Reference for BatchEnableAlarm Operation
public virtual IAsyncResult BeginBatchEnableAlarm(BatchEnableAlarmRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchEnableAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchEnableAlarmResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchEnableAlarm operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchEnableAlarm.
///
/// Returns a BatchEnableAlarmResult from IoTEventsData.
/// REST API Reference for BatchEnableAlarm Operation
public virtual BatchEnableAlarmResponse EndBatchEnableAlarm(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchPutMessage
///
/// Sends a set of messages to the IoT Events system. Each message payload is transformed
/// into the input you specify ("inputName"
) and ingested into any detectors
/// that monitor that input. If multiple messages are sent, the order in which the messages
/// are processed isn't guaranteed. To guarantee ordering, you must send messages one
/// at a time and wait for a successful response.
///
/// Container for the necessary parameters to execute the BatchPutMessage service method.
///
/// The response from the BatchPutMessage service method, as returned by IoTEventsData.
///
/// 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 BatchPutMessage Operation
public virtual BatchPutMessageResponse BatchPutMessage(BatchPutMessageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchPutMessageRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchPutMessageResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchPutMessage operation.
///
///
/// Container for the necessary parameters to execute the BatchPutMessage operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchPutMessage
/// operation.
/// REST API Reference for BatchPutMessage Operation
public virtual IAsyncResult BeginBatchPutMessage(BatchPutMessageRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchPutMessageRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchPutMessageResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchPutMessage operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchPutMessage.
///
/// Returns a BatchPutMessageResult from IoTEventsData.
/// REST API Reference for BatchPutMessage Operation
public virtual BatchPutMessageResponse EndBatchPutMessage(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchResetAlarm
///
/// Resets one or more alarms. The alarms return to the NORMAL
state after
/// you reset them.
///
/// Container for the necessary parameters to execute the BatchResetAlarm service method.
///
/// The response from the BatchResetAlarm service method, as returned by IoTEventsData.
///
/// 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 BatchResetAlarm Operation
public virtual BatchResetAlarmResponse BatchResetAlarm(BatchResetAlarmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchResetAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchResetAlarmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchResetAlarm operation.
///
///
/// Container for the necessary parameters to execute the BatchResetAlarm operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchResetAlarm
/// operation.
/// REST API Reference for BatchResetAlarm Operation
public virtual IAsyncResult BeginBatchResetAlarm(BatchResetAlarmRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchResetAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchResetAlarmResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchResetAlarm operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchResetAlarm.
///
/// Returns a BatchResetAlarmResult from IoTEventsData.
/// REST API Reference for BatchResetAlarm Operation
public virtual BatchResetAlarmResponse EndBatchResetAlarm(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchSnoozeAlarm
///
/// Changes one or more alarms to the snooze mode. The alarms change to the SNOOZE_DISABLED
/// state after you set them to the snooze mode.
///
/// Container for the necessary parameters to execute the BatchSnoozeAlarm service method.
///
/// The response from the BatchSnoozeAlarm service method, as returned by IoTEventsData.
///
/// 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 BatchSnoozeAlarm Operation
public virtual BatchSnoozeAlarmResponse BatchSnoozeAlarm(BatchSnoozeAlarmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchSnoozeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchSnoozeAlarmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchSnoozeAlarm operation.
///
///
/// Container for the necessary parameters to execute the BatchSnoozeAlarm operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchSnoozeAlarm
/// operation.
/// REST API Reference for BatchSnoozeAlarm Operation
public virtual IAsyncResult BeginBatchSnoozeAlarm(BatchSnoozeAlarmRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchSnoozeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchSnoozeAlarmResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchSnoozeAlarm operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchSnoozeAlarm.
///
/// Returns a BatchSnoozeAlarmResult from IoTEventsData.
/// REST API Reference for BatchSnoozeAlarm Operation
public virtual BatchSnoozeAlarmResponse EndBatchSnoozeAlarm(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchUpdateDetector
///
/// Updates the state, variable values, and timer settings of one or more detectors (instances)
/// of a specified detector model.
///
/// Container for the necessary parameters to execute the BatchUpdateDetector service method.
///
/// The response from the BatchUpdateDetector service method, as returned by IoTEventsData.
///
/// 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 BatchUpdateDetector Operation
public virtual BatchUpdateDetectorResponse BatchUpdateDetector(BatchUpdateDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchUpdateDetector operation.
///
///
/// Container for the necessary parameters to execute the BatchUpdateDetector operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchUpdateDetector
/// operation.
/// REST API Reference for BatchUpdateDetector Operation
public virtual IAsyncResult BeginBatchUpdateDetector(BatchUpdateDetectorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateDetectorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchUpdateDetector operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchUpdateDetector.
///
/// Returns a BatchUpdateDetectorResult from IoTEventsData.
/// REST API Reference for BatchUpdateDetector Operation
public virtual BatchUpdateDetectorResponse EndBatchUpdateDetector(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeAlarm
///
/// Retrieves information about an alarm.
///
/// Container for the necessary parameters to execute the DescribeAlarm service method.
///
/// The response from the DescribeAlarm service method, as returned by IoTEventsData.
///
/// 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 DescribeAlarm Operation
public virtual DescribeAlarmResponse DescribeAlarm(DescribeAlarmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAlarmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeAlarm operation.
///
///
/// Container for the necessary parameters to execute the DescribeAlarm operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAlarm
/// operation.
/// REST API Reference for DescribeAlarm Operation
public virtual IAsyncResult BeginDescribeAlarm(DescribeAlarmRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAlarmResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeAlarm operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeAlarm.
///
/// Returns a DescribeAlarmResult from IoTEventsData.
/// REST API Reference for DescribeAlarm Operation
public virtual DescribeAlarmResponse EndDescribeAlarm(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeDetector
///
/// Returns information about the specified detector (instance).
///
/// Container for the necessary parameters to execute the DescribeDetector service method.
///
/// The response from the DescribeDetector service method, as returned by IoTEventsData.
///
/// 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 DescribeDetector Operation
public virtual DescribeDetectorResponse DescribeDetector(DescribeDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeDetector operation.
///
///
/// Container for the necessary parameters to execute the DescribeDetector operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDetector
/// operation.
/// REST API Reference for DescribeDetector Operation
public virtual IAsyncResult BeginDescribeDetector(DescribeDetectorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDetectorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeDetector operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeDetector.
///
/// Returns a DescribeDetectorResult from IoTEventsData.
/// REST API Reference for DescribeDetector Operation
public virtual DescribeDetectorResponse EndDescribeDetector(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListAlarms
///
/// Lists one or more alarms. The operation returns only the metadata associated with
/// each alarm.
///
/// Container for the necessary parameters to execute the ListAlarms service method.
///
/// The response from the ListAlarms service method, as returned by IoTEventsData.
///
/// 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 ListAlarms Operation
public virtual ListAlarmsResponse ListAlarms(ListAlarmsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAlarmsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAlarmsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListAlarms operation.
///
///
/// Container for the necessary parameters to execute the ListAlarms operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAlarms
/// operation.
/// REST API Reference for ListAlarms Operation
public virtual IAsyncResult BeginListAlarms(ListAlarmsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAlarmsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAlarmsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListAlarms operation.
///
///
/// The IAsyncResult returned by the call to BeginListAlarms.
///
/// Returns a ListAlarmsResult from IoTEventsData.
/// REST API Reference for ListAlarms Operation
public virtual ListAlarmsResponse EndListAlarms(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListDetectors
///
/// Lists detectors (the instances of a detector model).
///
/// Container for the necessary parameters to execute the ListDetectors service method.
///
/// The response from the ListDetectors service method, as returned by IoTEventsData.
///
/// 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 ListDetectors Operation
public virtual ListDetectorsResponse ListDetectors(ListDetectorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDetectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDetectorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListDetectors operation.
///
///
/// Container for the necessary parameters to execute the ListDetectors operation on AmazonIoTEventsDataClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDetectors
/// operation.
/// REST API Reference for ListDetectors Operation
public virtual IAsyncResult BeginListDetectors(ListDetectorsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDetectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDetectorsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListDetectors operation.
///
///
/// The IAsyncResult returned by the call to BeginListDetectors.
///
/// Returns a ListDetectorsResult from IoTEventsData.
/// REST API Reference for ListDetectors Operation
public virtual ListDetectorsResponse EndListDetectors(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}