/* * Copyright 2010-2014 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 kinesis-2013-12-02.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Kinesis.Model; using Amazon.Kinesis.Model.Internal.MarshallTransformations; using Amazon.Kinesis.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Kinesis { /// /// Implementation for accessing Kinesis /// /// Amazon Kinesis Data Streams Service API Reference /// /// Amazon Kinesis Data Streams is a managed service that scales elastically for real-time /// processing of streaming big data. /// /// public partial class AmazonKinesisClient : AmazonServiceClient, IAmazonKinesis { private static IServiceMetadata serviceMetadata = new AmazonKinesisMetadata(); #region Constructors /// /// Constructs AmazonKinesisClient with AWS Credentials /// /// AWS Credentials public AmazonKinesisClient(AWSCredentials credentials) : this(credentials, new AmazonKinesisConfig()) { } /// /// Constructs AmazonKinesisClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonKinesisClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonKinesisConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonKinesisClient with AWS Credentials and an /// AmazonKinesisClient Configuration object. /// /// AWS Credentials /// The AmazonKinesisClient Configuration Object public AmazonKinesisClient(AWSCredentials credentials, AmazonKinesisConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonKinesisClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonKinesisClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonKinesisConfig()) { } /// /// Constructs AmazonKinesisClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonKinesisClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonKinesisConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonKinesisClient with AWS Access Key ID, AWS Secret Key and an /// AmazonKinesisClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonKinesisClient Configuration Object public AmazonKinesisClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonKinesisConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonKinesisClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonKinesisClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonKinesisConfig()) { } /// /// Constructs AmazonKinesisClient 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 AmazonKinesisClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonKinesisConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonKinesisClient with AWS Access Key ID, AWS Secret Key and an /// AmazonKinesisClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonKinesisClient Configuration Object public AmazonKinesisClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonKinesisConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// 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 AddTagsToStream /// /// Initiates the asynchronous execution of the AddTagsToStream operation. /// /// /// Container for the necessary parameters to execute the AddTagsToStream operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for AddTagsToStream Operation public virtual void AddTagsToStreamAsync(AddTagsToStreamRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = AddTagsToStreamRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = AddTagsToStreamResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((AddTagsToStreamRequest)req, (AddTagsToStreamResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region CreateStream /// /// Initiates the asynchronous execution of the CreateStream operation. /// /// /// Container for the necessary parameters to execute the CreateStream operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for CreateStream Operation public virtual void CreateStreamAsync(CreateStreamRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = CreateStreamRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = CreateStreamResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((CreateStreamRequest)req, (CreateStreamResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DecreaseStreamRetentionPeriod /// /// Decreases the Kinesis data stream's retention period, which is the length of time /// data records are accessible after they are added to the stream. The minimum value /// of a stream's retention period is 24 hours. /// /// /// /// This operation may result in lost data. For example, if the stream's retention period /// is 48 hours and is decreased to 24 hours, any data already in the stream that is older /// than 24 hours is inaccessible. /// /// /// The name of the stream to modify. /// The new retention period of the stream, in hours. Must be less than the current retention period. /// An Action 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. /// /// /// The response from the DecreaseStreamRetentionPeriod service method, as returned by Kinesis. /// /// A specified parameter exceeds its restrictions, is not supported, or can't be used. /// For more information, see the returned message. /// /// /// The requested resource exceeds the maximum number allowed, or the number of concurrent /// stream requests exceeds the maximum number allowed. /// /// /// The resource is not available for this operation. For successful operation, the resource /// must be in the ACTIVE state. /// /// /// The requested resource could not be found. The stream might not be specified correctly. /// /// REST API Reference for DecreaseStreamRetentionPeriod Operation public virtual void DecreaseStreamRetentionPeriodAsync(string streamName, int retentionPeriodHours, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new DecreaseStreamRetentionPeriodRequest(); request.StreamName = streamName; request.RetentionPeriodHours = retentionPeriodHours; DecreaseStreamRetentionPeriodAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the DecreaseStreamRetentionPeriod operation. /// /// /// Container for the necessary parameters to execute the DecreaseStreamRetentionPeriod operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for DecreaseStreamRetentionPeriod Operation public virtual void DecreaseStreamRetentionPeriodAsync(DecreaseStreamRetentionPeriodRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DecreaseStreamRetentionPeriodRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DecreaseStreamRetentionPeriodRequest)req, (DecreaseStreamRetentionPeriodResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DeleteStream /// /// Initiates the asynchronous execution of the DeleteStream operation. /// /// /// Container for the necessary parameters to execute the DeleteStream operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for DeleteStream Operation public virtual void DeleteStreamAsync(DeleteStreamRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DeleteStreamRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DeleteStreamResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DeleteStreamRequest)req, (DeleteStreamResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DeregisterStreamConsumer /// /// Initiates the asynchronous execution of the DeregisterStreamConsumer operation. /// /// /// Container for the necessary parameters to execute the DeregisterStreamConsumer operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for DeregisterStreamConsumer Operation public virtual void DeregisterStreamConsumerAsync(DeregisterStreamConsumerRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DeregisterStreamConsumerRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DeregisterStreamConsumerResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DeregisterStreamConsumerRequest)req, (DeregisterStreamConsumerResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeLimits /// /// Initiates the asynchronous execution of the DescribeLimits operation. /// /// /// Container for the necessary parameters to execute the DescribeLimits operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for DescribeLimits Operation public virtual void DescribeLimitsAsync(DescribeLimitsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeLimitsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeLimitsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeLimitsRequest)req, (DescribeLimitsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeStream /// /// Initiates the asynchronous execution of the DescribeStream operation. /// /// /// Container for the necessary parameters to execute the DescribeStream operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for DescribeStream Operation public virtual void DescribeStreamAsync(DescribeStreamRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeStreamRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeStreamResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeStreamRequest)req, (DescribeStreamResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeStreamConsumer /// /// Initiates the asynchronous execution of the DescribeStreamConsumer operation. /// /// /// Container for the necessary parameters to execute the DescribeStreamConsumer operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for DescribeStreamConsumer Operation public virtual void DescribeStreamConsumerAsync(DescribeStreamConsumerRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeStreamConsumerRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeStreamConsumerResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeStreamConsumerRequest)req, (DescribeStreamConsumerResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeStreamSummary /// /// Initiates the asynchronous execution of the DescribeStreamSummary operation. /// /// /// Container for the necessary parameters to execute the DescribeStreamSummary operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for DescribeStreamSummary Operation public virtual void DescribeStreamSummaryAsync(DescribeStreamSummaryRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeStreamSummaryRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeStreamSummaryResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeStreamSummaryRequest)req, (DescribeStreamSummaryResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DisableEnhancedMonitoring /// /// Initiates the asynchronous execution of the DisableEnhancedMonitoring operation. /// /// /// Container for the necessary parameters to execute the DisableEnhancedMonitoring operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for DisableEnhancedMonitoring Operation public virtual void DisableEnhancedMonitoringAsync(DisableEnhancedMonitoringRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DisableEnhancedMonitoringRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DisableEnhancedMonitoringResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DisableEnhancedMonitoringRequest)req, (DisableEnhancedMonitoringResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region EnableEnhancedMonitoring /// /// Initiates the asynchronous execution of the EnableEnhancedMonitoring operation. /// /// /// Container for the necessary parameters to execute the EnableEnhancedMonitoring operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for EnableEnhancedMonitoring Operation public virtual void EnableEnhancedMonitoringAsync(EnableEnhancedMonitoringRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = EnableEnhancedMonitoringRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = EnableEnhancedMonitoringResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((EnableEnhancedMonitoringRequest)req, (EnableEnhancedMonitoringResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetRecords /// /// Initiates the asynchronous execution of the GetRecords operation. /// /// /// Container for the necessary parameters to execute the GetRecords operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for GetRecords Operation public virtual void GetRecordsAsync(GetRecordsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetRecordsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetRecordsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetRecordsRequest)req, (GetRecordsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetShardIterator /// /// Initiates the asynchronous execution of the GetShardIterator operation. /// /// /// Container for the necessary parameters to execute the GetShardIterator operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for GetShardIterator Operation public virtual void GetShardIteratorAsync(GetShardIteratorRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetShardIteratorRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetShardIteratorResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetShardIteratorRequest)req, (GetShardIteratorResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region IncreaseStreamRetentionPeriod /// /// Increases the Kinesis data stream's retention period, which is the length of time /// data records are accessible after they are added to the stream. The maximum value /// of a stream's retention period is 168 hours (7 days). /// /// /// /// If you choose a longer stream retention period, this operation increases the time /// period during which records that have not yet expired are accessible. However, it /// does not make previous, expired data (older than the stream's previous retention period) /// accessible after the operation has been called. For example, if a stream's retention /// period is set to 24 hours and is increased to 168 hours, any data that is older than /// 24 hours remains inaccessible to consumer applications. /// /// /// The name of the stream to modify. /// The new retention period of the stream, in hours. Must be more than the current retention period. /// An Action 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. /// /// /// The response from the IncreaseStreamRetentionPeriod service method, as returned by Kinesis. /// /// A specified parameter exceeds its restrictions, is not supported, or can't be used. /// For more information, see the returned message. /// /// /// The requested resource exceeds the maximum number allowed, or the number of concurrent /// stream requests exceeds the maximum number allowed. /// /// /// The resource is not available for this operation. For successful operation, the resource /// must be in the ACTIVE state. /// /// /// The requested resource could not be found. The stream might not be specified correctly. /// /// REST API Reference for IncreaseStreamRetentionPeriod Operation public virtual void IncreaseStreamRetentionPeriodAsync(string streamName, int retentionPeriodHours, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new IncreaseStreamRetentionPeriodRequest(); request.StreamName = streamName; request.RetentionPeriodHours = retentionPeriodHours; IncreaseStreamRetentionPeriodAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the IncreaseStreamRetentionPeriod operation. /// /// /// Container for the necessary parameters to execute the IncreaseStreamRetentionPeriod operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for IncreaseStreamRetentionPeriod Operation public virtual void IncreaseStreamRetentionPeriodAsync(IncreaseStreamRetentionPeriodRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = IncreaseStreamRetentionPeriodRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = IncreaseStreamRetentionPeriodResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((IncreaseStreamRetentionPeriodRequest)req, (IncreaseStreamRetentionPeriodResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListShards /// /// Initiates the asynchronous execution of the ListShards operation. /// /// /// Container for the necessary parameters to execute the ListShards operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for ListShards Operation public virtual void ListShardsAsync(ListShardsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListShardsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListShardsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListShardsRequest)req, (ListShardsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListStreamConsumers /// /// Initiates the asynchronous execution of the ListStreamConsumers operation. /// /// /// Container for the necessary parameters to execute the ListStreamConsumers operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for ListStreamConsumers Operation public virtual void ListStreamConsumersAsync(ListStreamConsumersRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListStreamConsumersRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListStreamConsumersResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListStreamConsumersRequest)req, (ListStreamConsumersResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListStreams /// /// Lists your Kinesis data streams. /// /// /// /// The number of streams may be too large to return from a single call to ListStreams. /// You can limit the number of returned streams using the Limit parameter. /// If you do not specify a value for the Limit parameter, Kinesis Data Streams /// uses the default limit, which is currently 10. /// /// /// /// You can detect if there are more streams available to list by using the HasMoreStreams /// flag from the returned output. If there are more streams available, you can request /// more streams by using the name of the last stream returned by the ListStreams /// request in the ExclusiveStartStreamName parameter in a subsequent request /// to ListStreams. The group of stream names returned by the subsequent /// request is then added to the list. You can continue this process until all the stream /// names have been collected in the list. /// /// /// /// ListStreams has a limit of five transactions per second per account. /// /// /// An Action 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. /// /// /// The response from the ListStreams service method, as returned by Kinesis. /// /// The requested resource exceeds the maximum number allowed, or the number of concurrent /// stream requests exceeds the maximum number allowed. /// /// REST API Reference for ListStreams Operation public virtual void ListStreamsAsync(AmazonServiceCallback callback, AsyncOptions options = null) { ListStreamsAsync(new ListStreamsRequest(), callback, options); } /// /// Initiates the asynchronous execution of the ListStreams operation. /// /// /// Container for the necessary parameters to execute the ListStreams operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for ListStreams Operation public virtual void ListStreamsAsync(ListStreamsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListStreamsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListStreamsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListStreamsRequest)req, (ListStreamsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListTagsForStream /// /// Initiates the asynchronous execution of the ListTagsForStream operation. /// /// /// Container for the necessary parameters to execute the ListTagsForStream operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for ListTagsForStream Operation public virtual void ListTagsForStreamAsync(ListTagsForStreamRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListTagsForStreamRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListTagsForStreamResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListTagsForStreamRequest)req, (ListTagsForStreamResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region MergeShards /// /// Initiates the asynchronous execution of the MergeShards operation. /// /// /// Container for the necessary parameters to execute the MergeShards operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for MergeShards Operation public virtual void MergeShardsAsync(MergeShardsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = MergeShardsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = MergeShardsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((MergeShardsRequest)req, (MergeShardsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region PutRecord /// /// Initiates the asynchronous execution of the PutRecord operation. /// /// /// Container for the necessary parameters to execute the PutRecord operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for PutRecord Operation public virtual void PutRecordAsync(PutRecordRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = PutRecordRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = PutRecordResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((PutRecordRequest)req, (PutRecordResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region PutRecords /// /// Initiates the asynchronous execution of the PutRecords operation. /// /// /// Container for the necessary parameters to execute the PutRecords operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for PutRecords Operation public virtual void PutRecordsAsync(PutRecordsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = PutRecordsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = PutRecordsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((PutRecordsRequest)req, (PutRecordsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region RegisterStreamConsumer /// /// Initiates the asynchronous execution of the RegisterStreamConsumer operation. /// /// /// Container for the necessary parameters to execute the RegisterStreamConsumer operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for RegisterStreamConsumer Operation public virtual void RegisterStreamConsumerAsync(RegisterStreamConsumerRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = RegisterStreamConsumerRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = RegisterStreamConsumerResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((RegisterStreamConsumerRequest)req, (RegisterStreamConsumerResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region RemoveTagsFromStream /// /// Initiates the asynchronous execution of the RemoveTagsFromStream operation. /// /// /// Container for the necessary parameters to execute the RemoveTagsFromStream operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for RemoveTagsFromStream Operation public virtual void RemoveTagsFromStreamAsync(RemoveTagsFromStreamRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = RemoveTagsFromStreamRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = RemoveTagsFromStreamResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((RemoveTagsFromStreamRequest)req, (RemoveTagsFromStreamResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region SplitShard /// /// Initiates the asynchronous execution of the SplitShard operation. /// /// /// Container for the necessary parameters to execute the SplitShard operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for SplitShard Operation public virtual void SplitShardAsync(SplitShardRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = SplitShardRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = SplitShardResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((SplitShardRequest)req, (SplitShardResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region StartStreamEncryption /// /// Initiates the asynchronous execution of the StartStreamEncryption operation. /// /// /// Container for the necessary parameters to execute the StartStreamEncryption operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for StartStreamEncryption Operation public virtual void StartStreamEncryptionAsync(StartStreamEncryptionRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = StartStreamEncryptionRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = StartStreamEncryptionResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((StartStreamEncryptionRequest)req, (StartStreamEncryptionResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region StopStreamEncryption /// /// Initiates the asynchronous execution of the StopStreamEncryption operation. /// /// /// Container for the necessary parameters to execute the StopStreamEncryption operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for StopStreamEncryption Operation public virtual void StopStreamEncryptionAsync(StopStreamEncryptionRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = StopStreamEncryptionRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = StopStreamEncryptionResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((StopStreamEncryptionRequest)req, (StopStreamEncryptionResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region UpdateShardCount /// /// Initiates the asynchronous execution of the UpdateShardCount operation. /// /// /// Container for the necessary parameters to execute the UpdateShardCount operation on AmazonKinesisClient. /// An Action 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. /// REST API Reference for UpdateShardCount Operation public virtual void UpdateShardCountAsync(UpdateShardCountRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = UpdateShardCountRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = UpdateShardCountResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((UpdateShardCountRequest)req, (UpdateShardCountResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion } }