/* * 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 kinesis-2013-12-02.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Kinesis.Model { /// /// Container for the parameters to the RegisterStreamConsumer operation. /// Registers a consumer with a Kinesis data stream. When you use this operation, the /// consumer you register can then call SubscribeToShard to receive data from the /// stream using enhanced fan-out, at a rate of up to 2 MiB per second for every shard /// you subscribe to. This rate is unaffected by the total number of consumers that read /// from the same stream. /// /// /// /// You can register up to 20 consumers per stream. A given consumer can only be registered /// with one stream at a time. /// /// /// /// For an example of how to use this operations, see Enhanced /// Fan-Out Using the Kinesis Data Streams API. /// /// /// /// The use of this operation has a limit of five transactions per second per account. /// Also, only 5 consumers can be created simultaneously. In other words, you cannot have /// more than 5 consumers in a CREATING status at the same time. Registering /// a 6th consumer while there are 5 in a CREATING status results in a LimitExceededException. /// /// public partial class RegisterStreamConsumerRequest : AmazonKinesisRequest { private string _consumerName; private string _streamARN; /// /// Gets and sets the property ConsumerName. /// /// For a given Kinesis data stream, each consumer must have a unique name. However, consumer /// names don't have to be unique across data streams. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string ConsumerName { get { return this._consumerName; } set { this._consumerName = value; } } // Check to see if ConsumerName property is set internal bool IsSetConsumerName() { return this._consumerName != null; } /// /// Gets and sets the property StreamARN. /// /// The ARN of the Kinesis data stream that you want to register the consumer with. For /// more info, see Amazon /// Resource Names (ARNs) and Amazon Web Services Service Namespaces. /// /// [AWSProperty(Required=true, Min=1, Max=2048)] public string StreamARN { get { return this._streamARN; } set { this._streamARN = value; } } // Check to see if StreamARN property is set internal bool IsSetStreamARN() { return this._streamARN != null; } } }