amazonka-kinesis-1.6.1: 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 # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Data UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

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 # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Show UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Generic UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Associated Types

type Rep UpdateShardCount :: Type -> Type #

Hashable UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

ToJSON UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

AWSRequest UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Associated Types

type Rs UpdateShardCount :: Type #

ToHeaders UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

ToPath UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

ToQuery UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

NFData UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Methods

rnf :: UpdateShardCount -> () #

type Rep UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

type Rep UpdateShardCount = D1 (MetaData "UpdateShardCount" "Network.AWS.Kinesis.UpdateShardCount" "amazonka-kinesis-1.6.1-DicNGWPqg566LpzNlyqosm" False) (C1 (MetaCons "UpdateShardCount'" PrefixI True) (S1 (MetaSel (Just "_uscStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_uscTargetShardCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat) :*: S1 (MetaSel (Just "_uscScalingType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ScalingType))))
type Rs UpdateShardCount Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

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 # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Data UpdateShardCountResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

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 # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Show UpdateShardCountResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Generic UpdateShardCountResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

Associated Types

type Rep UpdateShardCountResponse :: Type -> Type #

NFData UpdateShardCountResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

type Rep UpdateShardCountResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.UpdateShardCount

type Rep UpdateShardCountResponse = D1 (MetaData "UpdateShardCountResponse" "Network.AWS.Kinesis.UpdateShardCount" "amazonka-kinesis-1.6.1-DicNGWPqg566LpzNlyqosm" False) (C1 (MetaCons "UpdateShardCountResponse'" PrefixI True) ((S1 (MetaSel (Just "_uscrsTargetShardCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_uscrsStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_uscrsCurrentShardCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_uscrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses