/*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task BatchAcknowledgeAlarmAsync(BatchAcknowledgeAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchAcknowledgeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchAcknowledgeAlarmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task BatchDeleteDetectorAsync(BatchDeleteDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task BatchDisableAlarmAsync(BatchDisableAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDisableAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDisableAlarmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task BatchEnableAlarmAsync(BatchEnableAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchEnableAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchEnableAlarmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task BatchPutMessageAsync(BatchPutMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchPutMessageRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchPutMessageResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task BatchResetAlarmAsync(BatchResetAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchResetAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchResetAlarmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task BatchSnoozeAlarmAsync(BatchSnoozeAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchSnoozeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchSnoozeAlarmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task BatchUpdateDetectorAsync(BatchUpdateDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Retrieves information about an alarm.
///
/// Container for the necessary parameters to execute the DescribeAlarm service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeAlarmAsync(DescribeAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAlarmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns information about the specified detector (instance).
///
/// Container for the necessary parameters to execute the DescribeDetector service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeDetectorAsync(DescribeDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListAlarmsAsync(ListAlarmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAlarmsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAlarmsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists detectors (the instances of a detector model).
///
/// Container for the necessary parameters to execute the ListDetectors service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListDetectorsAsync(ListDetectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDetectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDetectorsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}