amazonka-kinesis-1.4.5: Amazon Kinesis SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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, Amazon Kinesis returns immediately and sets the status of the stream to UPDATING . After the update is complete, Amazon Kinesis 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, Amazon Kinesis performs splits and merges and 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 a rate limit of twice per rolling 24 hour period. You cannot scale above double your current shard count, scale below half your current shard count, or exceed the shard limits for your account.

For the default limits for an AWS account, see Streams Limits in the Amazon Kinesis Streams Developer Guide . If you need to increase a limit, contact AWS Support .

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 # 
ToPath UpdateShardCount Source # 
ToHeaders UpdateShardCount Source # 
ToQuery UpdateShardCount Source # 
type Rep UpdateShardCount Source # 
type Rep UpdateShardCount = D1 (MetaData "UpdateShardCount" "Network.AWS.Kinesis.UpdateShardCount" "amazonka-kinesis-1.4.5-Kr3SFKxtWGhBOT7hZTmMTR" 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 DecidedUnpack) (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.4.5-Kr3SFKxtWGhBOT7hZTmMTR" 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 DecidedUnpack) (Rec0 Int)))))

Response Lenses