amazonka-kinesis-1.6.0: Amazon Kinesis SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Kinesis.UpdateShardCount

Contents

Description

Updates the shard count of the specified stream to the specified number of shards.

Updating the shard count is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING . After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE . Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is UPDATING .

To update the shard count, Kinesis Data Streams performs splits or merges on individual shards. This can cause short-lived shards to be created, in addition to the final shards. We recommend that you double or halve the shard count, as this results in the fewest number of splits or merges.

This operation has the following limits. You cannot do the following:

  • Scale more than twice per rolling 24-hour period per stream
  • Scale up to more than double your current shard count for a stream
  • Scale down below half your current shard count for a stream
  • Scale up to more than 500 shards in a stream
  • Scale a stream with more than 500 shards down unless the result is less than 500 shards
  • Scale up to more than the shard limit for your account

For the default limits for an AWS account, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide . To request an increase in the call rate limit, the shard limit for this API, or your overall shard limit, use the limits form .

Synopsis

Creating a Request

updateShardCount Source #

Creates a value of UpdateShardCount with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateShardCount Source #

See: updateShardCount smart constructor.

Instances

Eq UpdateShardCount Source # 
Data UpdateShardCount Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateShardCount -> c UpdateShardCount #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateShardCount #

toConstr :: UpdateShardCount -> Constr #

dataTypeOf :: UpdateShardCount -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateShardCount) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateShardCount) #

gmapT :: (forall b. Data b => b -> b) -> UpdateShardCount -> UpdateShardCount #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateShardCount -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateShardCount -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateShardCount -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateShardCount -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateShardCount -> m UpdateShardCount #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateShardCount -> m UpdateShardCount #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateShardCount -> m UpdateShardCount #

Read UpdateShardCount Source # 
Show UpdateShardCount Source # 
Generic UpdateShardCount Source # 
Hashable UpdateShardCount Source # 
ToJSON UpdateShardCount Source # 
NFData UpdateShardCount Source # 

Methods

rnf :: UpdateShardCount -> () #

AWSRequest UpdateShardCount Source # 
ToHeaders UpdateShardCount Source # 
ToPath UpdateShardCount Source # 
ToQuery UpdateShardCount Source # 
type Rep UpdateShardCount Source # 
type Rep UpdateShardCount = D1 * (MetaData "UpdateShardCount" "Network.AWS.Kinesis.UpdateShardCount" "amazonka-kinesis-1.6.0-FM91TbfEPFA6fwZObkhzFa" False) (C1 * (MetaCons "UpdateShardCount'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_uscStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_uscTargetShardCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Nat)) (S1 * (MetaSel (Just Symbol "_uscScalingType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ScalingType)))))
type Rs UpdateShardCount Source # 

Request Lenses

uscStreamName :: Lens' UpdateShardCount Text Source #

The name of the stream.

uscScalingType :: Lens' UpdateShardCount ScalingType Source #

The scaling type. Uniform scaling creates shards of equal size.

Destructuring the Response

updateShardCountResponse Source #

Creates a value of UpdateShardCountResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateShardCountResponse Source #

See: updateShardCountResponse smart constructor.

Instances

Eq UpdateShardCountResponse Source # 
Data UpdateShardCountResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateShardCountResponse -> c UpdateShardCountResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateShardCountResponse #

toConstr :: UpdateShardCountResponse -> Constr #

dataTypeOf :: UpdateShardCountResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateShardCountResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateShardCountResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateShardCountResponse -> UpdateShardCountResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateShardCountResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateShardCountResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateShardCountResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateShardCountResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateShardCountResponse -> m UpdateShardCountResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateShardCountResponse -> m UpdateShardCountResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateShardCountResponse -> m UpdateShardCountResponse #

Read UpdateShardCountResponse Source # 
Show UpdateShardCountResponse Source # 
Generic UpdateShardCountResponse Source # 
NFData UpdateShardCountResponse Source # 
type Rep UpdateShardCountResponse Source # 
type Rep UpdateShardCountResponse = D1 * (MetaData "UpdateShardCountResponse" "Network.AWS.Kinesis.UpdateShardCount" "amazonka-kinesis-1.6.0-FM91TbfEPFA6fwZObkhzFa" False) (C1 * (MetaCons "UpdateShardCountResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_uscrsTargetShardCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_uscrsStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uscrsCurrentShardCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_uscrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses