amazonka-kinesis-firehose-1.6.1: Amazon Kinesis Firehose 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.Firehose.UpdateDestination

Contents

Description

Updates the specified destination of the specified delivery stream.

Use this operation to change the destination type (for example, to replace the Amazon S3 destination with Amazon Redshift) or change the parameters associated with a destination (for example, to change the bucket name of the Amazon S3 destination). The update might not occur immediately. The target delivery stream remains active while the configurations are updated, so data writes to the delivery stream can continue during this process. The updated configurations are usually effective within a few minutes.

Switching between Amazon ES and other services is not supported. For an Amazon ES destination, you can only update to another Amazon ES destination.

If the destination type is the same, Kinesis Data Firehose merges the configuration parameters specified with the destination configuration that already exists on the delivery stream. If any of the parameters are not specified in the call, the existing values are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration is not specified, then the existing EncryptionConfiguration is maintained on the destination.

If the destination type is not the same, for example, changing the destination from Amazon S3 to Amazon Redshift, Kinesis Data Firehose does not merge any parameters. In this case, all parameters must be specified.

Kinesis Data Firehose uses CurrentDeliveryStreamVersionId to avoid race conditions and conflicting merges. This is a required field, and the service updates the configuration only if the existing configuration has a version ID that matches. After the update is applied successfully, the version ID is updated, and can be retrieved using DescribeDeliveryStream . Use the new version ID to set CurrentDeliveryStreamVersionId in the next call.

Synopsis

Creating a Request

updateDestination Source #

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

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

data UpdateDestination Source #

See: updateDestination smart constructor.

Instances
Eq UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Data UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Methods

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

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

toConstr :: UpdateDestination -> Constr #

dataTypeOf :: UpdateDestination -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Generic UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Associated Types

type Rep UpdateDestination :: Type -> Type #

Hashable UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

ToJSON UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

AWSRequest UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Associated Types

type Rs UpdateDestination :: Type #

ToHeaders UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

ToPath UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

ToQuery UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

NFData UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Methods

rnf :: UpdateDestination -> () #

type Rep UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

type Rep UpdateDestination = D1 (MetaData "UpdateDestination" "Network.AWS.Firehose.UpdateDestination" "amazonka-kinesis-firehose-1.6.1-IIrhAXaawLd9hcHz2LzLHx" False) (C1 (MetaCons "UpdateDestination'" PrefixI True) (((S1 (MetaSel (Just "_udSplunkDestinationUpdate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SplunkDestinationUpdate)) :*: S1 (MetaSel (Just "_udS3DestinationUpdate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe S3DestinationUpdate))) :*: (S1 (MetaSel (Just "_udRedshiftDestinationUpdate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RedshiftDestinationUpdate)) :*: S1 (MetaSel (Just "_udElasticsearchDestinationUpdate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ElasticsearchDestinationUpdate)))) :*: ((S1 (MetaSel (Just "_udExtendedS3DestinationUpdate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ExtendedS3DestinationUpdate)) :*: S1 (MetaSel (Just "_udDeliveryStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_udCurrentDeliveryStreamVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udDestinationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateDestination Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Request Lenses

udSplunkDestinationUpdate :: Lens' UpdateDestination (Maybe SplunkDestinationUpdate) Source #

Describes an update for a destination in Splunk.

udS3DestinationUpdate :: Lens' UpdateDestination (Maybe S3DestinationUpdate) Source #

Deprecated
Describes an update for a destination in Amazon S3.

udRedshiftDestinationUpdate :: Lens' UpdateDestination (Maybe RedshiftDestinationUpdate) Source #

Describes an update for a destination in Amazon Redshift.

udExtendedS3DestinationUpdate :: Lens' UpdateDestination (Maybe ExtendedS3DestinationUpdate) Source #

Describes an update for a destination in Amazon S3.

udDeliveryStreamName :: Lens' UpdateDestination Text Source #

The name of the delivery stream.

udCurrentDeliveryStreamVersionId :: Lens' UpdateDestination Text Source #

Obtain this value from the VersionId result of DeliveryStreamDescription . This value is required, and helps the service perform conditional operations. For example, if there is an interleaving update and this value is null, then the update destination fails. After the update is successful, the VersionId value is updated. The service then performs a merge of the old configuration with the new configuration.

udDestinationId :: Lens' UpdateDestination Text Source #

The ID of the destination.

Destructuring the Response

updateDestinationResponse Source #

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

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

data UpdateDestinationResponse Source #

See: updateDestinationResponse smart constructor.

Instances
Eq UpdateDestinationResponse Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Data UpdateDestinationResponse Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Methods

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

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

toConstr :: UpdateDestinationResponse -> Constr #

dataTypeOf :: UpdateDestinationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateDestinationResponse Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Show UpdateDestinationResponse Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Generic UpdateDestinationResponse Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

Associated Types

type Rep UpdateDestinationResponse :: Type -> Type #

NFData UpdateDestinationResponse Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

type Rep UpdateDestinationResponse Source # 
Instance details

Defined in Network.AWS.Firehose.UpdateDestination

type Rep UpdateDestinationResponse = D1 (MetaData "UpdateDestinationResponse" "Network.AWS.Firehose.UpdateDestination" "amazonka-kinesis-firehose-1.6.1-IIrhAXaawLd9hcHz2LzLHx" True) (C1 (MetaCons "UpdateDestinationResponse'" PrefixI True) (S1 (MetaSel (Just "_udrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses