amazonka-kinesis-1.5.0: Amazon Kinesis SDK.

Copyright(c) 2013-2017 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.StopStreamEncryption

Contents

Description

Disables server-side encryption for a specified stream.

Stopping encryption 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 . Stopping encryption normally takes a few seconds to complete but it can take minutes. You can continue to read and write data to your stream while its status is UPDATING . Once the status of the stream is ACTIVE records written to the stream will no longer be encrypted by the Amazon Kinesis Streams service.

API Limits: You can successfully disable server-side encryption 25 times in a rolling 24 hour period.

Note: It can take up to 5 seconds after the stream is in an ACTIVE status before all records written to the stream are no longer subject to encryption. After you’ve disabled encryption, you can verify encryption was not applied by inspecting the API response from PutRecord or PutRecords .

Synopsis

Creating a Request

stopStreamEncryption Source #

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

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

  • sseStreamName - The name of the stream on which to stop encrypting records.
  • sseEncryptionType - The encryption type. This parameter can be one of the following values: * NONE : Not valid for this operation. An InvalidOperationException will be thrown. * KMS : Use server-side encryption on the records in the stream using a customer-managed KMS key.
  • sseKeyId - The GUID for the customer-managed key that was used for encryption.

data StopStreamEncryption Source #

See: stopStreamEncryption smart constructor.

Instances

Eq StopStreamEncryption Source # 
Data StopStreamEncryption Source # 

Methods

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

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

toConstr :: StopStreamEncryption -> Constr #

dataTypeOf :: StopStreamEncryption -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: StopStreamEncryption -> () #

AWSRequest StopStreamEncryption Source # 
ToQuery StopStreamEncryption Source # 
ToPath StopStreamEncryption Source # 
ToHeaders StopStreamEncryption Source # 
type Rep StopStreamEncryption Source # 
type Rep StopStreamEncryption = D1 (MetaData "StopStreamEncryption" "Network.AWS.Kinesis.StopStreamEncryption" "amazonka-kinesis-1.5.0-9sBOxcpdcTN2BghkYmkXAp" False) (C1 (MetaCons "StopStreamEncryption'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sseStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_sseEncryptionType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 EncryptionType)) (S1 (MetaSel (Just Symbol "_sseKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs StopStreamEncryption Source # 

Request Lenses

sseStreamName :: Lens' StopStreamEncryption Text Source #

The name of the stream on which to stop encrypting records.

sseEncryptionType :: Lens' StopStreamEncryption EncryptionType Source #

The encryption type. This parameter can be one of the following values: * NONE : Not valid for this operation. An InvalidOperationException will be thrown. * KMS : Use server-side encryption on the records in the stream using a customer-managed KMS key.

sseKeyId :: Lens' StopStreamEncryption Text Source #

The GUID for the customer-managed key that was used for encryption.

Destructuring the Response

stopStreamEncryptionResponse :: StopStreamEncryptionResponse Source #

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

data StopStreamEncryptionResponse Source #

See: stopStreamEncryptionResponse smart constructor.

Instances

Eq StopStreamEncryptionResponse Source # 
Data StopStreamEncryptionResponse Source # 

Methods

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

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

toConstr :: StopStreamEncryptionResponse -> Constr #

dataTypeOf :: StopStreamEncryptionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StopStreamEncryptionResponse Source # 
Show StopStreamEncryptionResponse Source # 
Generic StopStreamEncryptionResponse Source # 
NFData StopStreamEncryptionResponse Source # 
type Rep StopStreamEncryptionResponse Source # 
type Rep StopStreamEncryptionResponse = D1 (MetaData "StopStreamEncryptionResponse" "Network.AWS.Kinesis.StopStreamEncryption" "amazonka-kinesis-1.5.0-9sBOxcpdcTN2BghkYmkXAp" False) (C1 (MetaCons "StopStreamEncryptionResponse'" PrefixI False) U1)