{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Firehose.CreateDeliveryStream
(
CreateDeliveryStream (..),
newCreateDeliveryStream,
createDeliveryStream_s3DestinationConfiguration,
createDeliveryStream_redshiftDestinationConfiguration,
createDeliveryStream_elasticsearchDestinationConfiguration,
createDeliveryStream_extendedS3DestinationConfiguration,
createDeliveryStream_kinesisStreamSourceConfiguration,
createDeliveryStream_httpEndpointDestinationConfiguration,
createDeliveryStream_amazonopensearchserviceDestinationConfiguration,
createDeliveryStream_deliveryStreamType,
createDeliveryStream_splunkDestinationConfiguration,
createDeliveryStream_tags,
createDeliveryStream_deliveryStreamEncryptionConfigurationInput,
createDeliveryStream_deliveryStreamName,
CreateDeliveryStreamResponse (..),
newCreateDeliveryStreamResponse,
createDeliveryStreamResponse_deliveryStreamARN,
createDeliveryStreamResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Firehose.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateDeliveryStream = CreateDeliveryStream'
{
CreateDeliveryStream -> Maybe S3DestinationConfiguration
s3DestinationConfiguration :: Prelude.Maybe S3DestinationConfiguration,
CreateDeliveryStream -> Maybe RedshiftDestinationConfiguration
redshiftDestinationConfiguration :: Prelude.Maybe RedshiftDestinationConfiguration,
CreateDeliveryStream -> Maybe ElasticsearchDestinationConfiguration
elasticsearchDestinationConfiguration :: Prelude.Maybe ElasticsearchDestinationConfiguration,
CreateDeliveryStream -> Maybe ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration :: Prelude.Maybe ExtendedS3DestinationConfiguration,
CreateDeliveryStream -> Maybe KinesisStreamSourceConfiguration
kinesisStreamSourceConfiguration :: Prelude.Maybe KinesisStreamSourceConfiguration,
CreateDeliveryStream -> Maybe HttpEndpointDestinationConfiguration
httpEndpointDestinationConfiguration :: Prelude.Maybe HttpEndpointDestinationConfiguration,
CreateDeliveryStream
-> Maybe AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration :: Prelude.Maybe AmazonopensearchserviceDestinationConfiguration,
CreateDeliveryStream -> Maybe DeliveryStreamType
deliveryStreamType :: Prelude.Maybe DeliveryStreamType,
CreateDeliveryStream -> Maybe SplunkDestinationConfiguration
splunkDestinationConfiguration :: Prelude.Maybe SplunkDestinationConfiguration,
CreateDeliveryStream -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
CreateDeliveryStream
-> Maybe DeliveryStreamEncryptionConfigurationInput
deliveryStreamEncryptionConfigurationInput :: Prelude.Maybe DeliveryStreamEncryptionConfigurationInput,
CreateDeliveryStream -> Text
deliveryStreamName :: Prelude.Text
}
deriving (CreateDeliveryStream -> CreateDeliveryStream -> Bool
(CreateDeliveryStream -> CreateDeliveryStream -> Bool)
-> (CreateDeliveryStream -> CreateDeliveryStream -> Bool)
-> Eq CreateDeliveryStream
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDeliveryStream -> CreateDeliveryStream -> Bool
$c/= :: CreateDeliveryStream -> CreateDeliveryStream -> Bool
== :: CreateDeliveryStream -> CreateDeliveryStream -> Bool
$c== :: CreateDeliveryStream -> CreateDeliveryStream -> Bool
Prelude.Eq, Int -> CreateDeliveryStream -> ShowS
[CreateDeliveryStream] -> ShowS
CreateDeliveryStream -> String
(Int -> CreateDeliveryStream -> ShowS)
-> (CreateDeliveryStream -> String)
-> ([CreateDeliveryStream] -> ShowS)
-> Show CreateDeliveryStream
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDeliveryStream] -> ShowS
$cshowList :: [CreateDeliveryStream] -> ShowS
show :: CreateDeliveryStream -> String
$cshow :: CreateDeliveryStream -> String
showsPrec :: Int -> CreateDeliveryStream -> ShowS
$cshowsPrec :: Int -> CreateDeliveryStream -> ShowS
Prelude.Show, (forall x. CreateDeliveryStream -> Rep CreateDeliveryStream x)
-> (forall x. Rep CreateDeliveryStream x -> CreateDeliveryStream)
-> Generic CreateDeliveryStream
forall x. Rep CreateDeliveryStream x -> CreateDeliveryStream
forall x. CreateDeliveryStream -> Rep CreateDeliveryStream x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDeliveryStream x -> CreateDeliveryStream
$cfrom :: forall x. CreateDeliveryStream -> Rep CreateDeliveryStream x
Prelude.Generic)
newCreateDeliveryStream ::
Prelude.Text ->
CreateDeliveryStream
newCreateDeliveryStream :: Text -> CreateDeliveryStream
newCreateDeliveryStream Text
pDeliveryStreamName_ =
CreateDeliveryStream' :: Maybe S3DestinationConfiguration
-> Maybe RedshiftDestinationConfiguration
-> Maybe ElasticsearchDestinationConfiguration
-> Maybe ExtendedS3DestinationConfiguration
-> Maybe KinesisStreamSourceConfiguration
-> Maybe HttpEndpointDestinationConfiguration
-> Maybe AmazonopensearchserviceDestinationConfiguration
-> Maybe DeliveryStreamType
-> Maybe SplunkDestinationConfiguration
-> Maybe (NonEmpty Tag)
-> Maybe DeliveryStreamEncryptionConfigurationInput
-> Text
-> CreateDeliveryStream
CreateDeliveryStream'
{ $sel:s3DestinationConfiguration:CreateDeliveryStream' :: Maybe S3DestinationConfiguration
s3DestinationConfiguration =
Maybe S3DestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:redshiftDestinationConfiguration:CreateDeliveryStream' :: Maybe RedshiftDestinationConfiguration
redshiftDestinationConfiguration = Maybe RedshiftDestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:elasticsearchDestinationConfiguration:CreateDeliveryStream' :: Maybe ElasticsearchDestinationConfiguration
elasticsearchDestinationConfiguration =
Maybe ElasticsearchDestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:extendedS3DestinationConfiguration:CreateDeliveryStream' :: Maybe ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration = Maybe ExtendedS3DestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:kinesisStreamSourceConfiguration:CreateDeliveryStream' :: Maybe KinesisStreamSourceConfiguration
kinesisStreamSourceConfiguration = Maybe KinesisStreamSourceConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:httpEndpointDestinationConfiguration:CreateDeliveryStream' :: Maybe HttpEndpointDestinationConfiguration
httpEndpointDestinationConfiguration =
Maybe HttpEndpointDestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:amazonopensearchserviceDestinationConfiguration:CreateDeliveryStream' :: Maybe AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration =
Maybe AmazonopensearchserviceDestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:deliveryStreamType:CreateDeliveryStream' :: Maybe DeliveryStreamType
deliveryStreamType = Maybe DeliveryStreamType
forall a. Maybe a
Prelude.Nothing,
$sel:splunkDestinationConfiguration:CreateDeliveryStream' :: Maybe SplunkDestinationConfiguration
splunkDestinationConfiguration = Maybe SplunkDestinationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDeliveryStream' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
forall a. Maybe a
Prelude.Nothing,
$sel:deliveryStreamEncryptionConfigurationInput:CreateDeliveryStream' :: Maybe DeliveryStreamEncryptionConfigurationInput
deliveryStreamEncryptionConfigurationInput =
Maybe DeliveryStreamEncryptionConfigurationInput
forall a. Maybe a
Prelude.Nothing,
$sel:deliveryStreamName:CreateDeliveryStream' :: Text
deliveryStreamName = Text
pDeliveryStreamName_
}
createDeliveryStream_s3DestinationConfiguration :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe S3DestinationConfiguration)
createDeliveryStream_s3DestinationConfiguration :: (Maybe S3DestinationConfiguration
-> f (Maybe S3DestinationConfiguration))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_s3DestinationConfiguration = (CreateDeliveryStream -> Maybe S3DestinationConfiguration)
-> (CreateDeliveryStream
-> Maybe S3DestinationConfiguration -> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe S3DestinationConfiguration)
(Maybe S3DestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe S3DestinationConfiguration
s3DestinationConfiguration :: Maybe S3DestinationConfiguration
$sel:s3DestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe S3DestinationConfiguration
s3DestinationConfiguration} -> Maybe S3DestinationConfiguration
s3DestinationConfiguration) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe S3DestinationConfiguration
a -> CreateDeliveryStream
s {$sel:s3DestinationConfiguration:CreateDeliveryStream' :: Maybe S3DestinationConfiguration
s3DestinationConfiguration = Maybe S3DestinationConfiguration
a} :: CreateDeliveryStream)
createDeliveryStream_redshiftDestinationConfiguration :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe RedshiftDestinationConfiguration)
createDeliveryStream_redshiftDestinationConfiguration :: (Maybe RedshiftDestinationConfiguration
-> f (Maybe RedshiftDestinationConfiguration))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_redshiftDestinationConfiguration = (CreateDeliveryStream -> Maybe RedshiftDestinationConfiguration)
-> (CreateDeliveryStream
-> Maybe RedshiftDestinationConfiguration -> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe RedshiftDestinationConfiguration)
(Maybe RedshiftDestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe RedshiftDestinationConfiguration
redshiftDestinationConfiguration :: Maybe RedshiftDestinationConfiguration
$sel:redshiftDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe RedshiftDestinationConfiguration
redshiftDestinationConfiguration} -> Maybe RedshiftDestinationConfiguration
redshiftDestinationConfiguration) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe RedshiftDestinationConfiguration
a -> CreateDeliveryStream
s {$sel:redshiftDestinationConfiguration:CreateDeliveryStream' :: Maybe RedshiftDestinationConfiguration
redshiftDestinationConfiguration = Maybe RedshiftDestinationConfiguration
a} :: CreateDeliveryStream)
createDeliveryStream_elasticsearchDestinationConfiguration :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe ElasticsearchDestinationConfiguration)
createDeliveryStream_elasticsearchDestinationConfiguration :: (Maybe ElasticsearchDestinationConfiguration
-> f (Maybe ElasticsearchDestinationConfiguration))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_elasticsearchDestinationConfiguration = (CreateDeliveryStream
-> Maybe ElasticsearchDestinationConfiguration)
-> (CreateDeliveryStream
-> Maybe ElasticsearchDestinationConfiguration
-> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe ElasticsearchDestinationConfiguration)
(Maybe ElasticsearchDestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe ElasticsearchDestinationConfiguration
elasticsearchDestinationConfiguration :: Maybe ElasticsearchDestinationConfiguration
$sel:elasticsearchDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe ElasticsearchDestinationConfiguration
elasticsearchDestinationConfiguration} -> Maybe ElasticsearchDestinationConfiguration
elasticsearchDestinationConfiguration) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe ElasticsearchDestinationConfiguration
a -> CreateDeliveryStream
s {$sel:elasticsearchDestinationConfiguration:CreateDeliveryStream' :: Maybe ElasticsearchDestinationConfiguration
elasticsearchDestinationConfiguration = Maybe ElasticsearchDestinationConfiguration
a} :: CreateDeliveryStream)
createDeliveryStream_extendedS3DestinationConfiguration :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe ExtendedS3DestinationConfiguration)
createDeliveryStream_extendedS3DestinationConfiguration :: (Maybe ExtendedS3DestinationConfiguration
-> f (Maybe ExtendedS3DestinationConfiguration))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_extendedS3DestinationConfiguration = (CreateDeliveryStream -> Maybe ExtendedS3DestinationConfiguration)
-> (CreateDeliveryStream
-> Maybe ExtendedS3DestinationConfiguration
-> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe ExtendedS3DestinationConfiguration)
(Maybe ExtendedS3DestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration :: Maybe ExtendedS3DestinationConfiguration
$sel:extendedS3DestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration} -> Maybe ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe ExtendedS3DestinationConfiguration
a -> CreateDeliveryStream
s {$sel:extendedS3DestinationConfiguration:CreateDeliveryStream' :: Maybe ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration = Maybe ExtendedS3DestinationConfiguration
a} :: CreateDeliveryStream)
createDeliveryStream_kinesisStreamSourceConfiguration :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe KinesisStreamSourceConfiguration)
createDeliveryStream_kinesisStreamSourceConfiguration :: (Maybe KinesisStreamSourceConfiguration
-> f (Maybe KinesisStreamSourceConfiguration))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_kinesisStreamSourceConfiguration = (CreateDeliveryStream -> Maybe KinesisStreamSourceConfiguration)
-> (CreateDeliveryStream
-> Maybe KinesisStreamSourceConfiguration -> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe KinesisStreamSourceConfiguration)
(Maybe KinesisStreamSourceConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe KinesisStreamSourceConfiguration
kinesisStreamSourceConfiguration :: Maybe KinesisStreamSourceConfiguration
$sel:kinesisStreamSourceConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe KinesisStreamSourceConfiguration
kinesisStreamSourceConfiguration} -> Maybe KinesisStreamSourceConfiguration
kinesisStreamSourceConfiguration) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe KinesisStreamSourceConfiguration
a -> CreateDeliveryStream
s {$sel:kinesisStreamSourceConfiguration:CreateDeliveryStream' :: Maybe KinesisStreamSourceConfiguration
kinesisStreamSourceConfiguration = Maybe KinesisStreamSourceConfiguration
a} :: CreateDeliveryStream)
createDeliveryStream_httpEndpointDestinationConfiguration :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe HttpEndpointDestinationConfiguration)
createDeliveryStream_httpEndpointDestinationConfiguration :: (Maybe HttpEndpointDestinationConfiguration
-> f (Maybe HttpEndpointDestinationConfiguration))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_httpEndpointDestinationConfiguration = (CreateDeliveryStream
-> Maybe HttpEndpointDestinationConfiguration)
-> (CreateDeliveryStream
-> Maybe HttpEndpointDestinationConfiguration
-> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe HttpEndpointDestinationConfiguration)
(Maybe HttpEndpointDestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe HttpEndpointDestinationConfiguration
httpEndpointDestinationConfiguration :: Maybe HttpEndpointDestinationConfiguration
$sel:httpEndpointDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe HttpEndpointDestinationConfiguration
httpEndpointDestinationConfiguration} -> Maybe HttpEndpointDestinationConfiguration
httpEndpointDestinationConfiguration) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe HttpEndpointDestinationConfiguration
a -> CreateDeliveryStream
s {$sel:httpEndpointDestinationConfiguration:CreateDeliveryStream' :: Maybe HttpEndpointDestinationConfiguration
httpEndpointDestinationConfiguration = Maybe HttpEndpointDestinationConfiguration
a} :: CreateDeliveryStream)
createDeliveryStream_amazonopensearchserviceDestinationConfiguration :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe AmazonopensearchserviceDestinationConfiguration)
createDeliveryStream_amazonopensearchserviceDestinationConfiguration :: (Maybe AmazonopensearchserviceDestinationConfiguration
-> f (Maybe AmazonopensearchserviceDestinationConfiguration))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_amazonopensearchserviceDestinationConfiguration = (CreateDeliveryStream
-> Maybe AmazonopensearchserviceDestinationConfiguration)
-> (CreateDeliveryStream
-> Maybe AmazonopensearchserviceDestinationConfiguration
-> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe AmazonopensearchserviceDestinationConfiguration)
(Maybe AmazonopensearchserviceDestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration :: Maybe AmazonopensearchserviceDestinationConfiguration
$sel:amazonopensearchserviceDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream
-> Maybe AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration} -> Maybe AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe AmazonopensearchserviceDestinationConfiguration
a -> CreateDeliveryStream
s {$sel:amazonopensearchserviceDestinationConfiguration:CreateDeliveryStream' :: Maybe AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration = Maybe AmazonopensearchserviceDestinationConfiguration
a} :: CreateDeliveryStream)
createDeliveryStream_deliveryStreamType :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe DeliveryStreamType)
createDeliveryStream_deliveryStreamType :: (Maybe DeliveryStreamType -> f (Maybe DeliveryStreamType))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_deliveryStreamType = (CreateDeliveryStream -> Maybe DeliveryStreamType)
-> (CreateDeliveryStream
-> Maybe DeliveryStreamType -> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe DeliveryStreamType)
(Maybe DeliveryStreamType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe DeliveryStreamType
deliveryStreamType :: Maybe DeliveryStreamType
$sel:deliveryStreamType:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe DeliveryStreamType
deliveryStreamType} -> Maybe DeliveryStreamType
deliveryStreamType) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe DeliveryStreamType
a -> CreateDeliveryStream
s {$sel:deliveryStreamType:CreateDeliveryStream' :: Maybe DeliveryStreamType
deliveryStreamType = Maybe DeliveryStreamType
a} :: CreateDeliveryStream)
createDeliveryStream_splunkDestinationConfiguration :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe SplunkDestinationConfiguration)
createDeliveryStream_splunkDestinationConfiguration :: (Maybe SplunkDestinationConfiguration
-> f (Maybe SplunkDestinationConfiguration))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_splunkDestinationConfiguration = (CreateDeliveryStream -> Maybe SplunkDestinationConfiguration)
-> (CreateDeliveryStream
-> Maybe SplunkDestinationConfiguration -> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe SplunkDestinationConfiguration)
(Maybe SplunkDestinationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe SplunkDestinationConfiguration
splunkDestinationConfiguration :: Maybe SplunkDestinationConfiguration
$sel:splunkDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe SplunkDestinationConfiguration
splunkDestinationConfiguration} -> Maybe SplunkDestinationConfiguration
splunkDestinationConfiguration) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe SplunkDestinationConfiguration
a -> CreateDeliveryStream
s {$sel:splunkDestinationConfiguration:CreateDeliveryStream' :: Maybe SplunkDestinationConfiguration
splunkDestinationConfiguration = Maybe SplunkDestinationConfiguration
a} :: CreateDeliveryStream)
createDeliveryStream_tags :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe (Prelude.NonEmpty Tag))
createDeliveryStream_tags :: (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_tags = (CreateDeliveryStream -> Maybe (NonEmpty Tag))
-> (CreateDeliveryStream
-> Maybe (NonEmpty Tag) -> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe (NonEmpty Tag)
a -> CreateDeliveryStream
s {$sel:tags:CreateDeliveryStream' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: CreateDeliveryStream) ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateDeliveryStream -> f CreateDeliveryStream)
-> ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateDeliveryStream
-> f CreateDeliveryStream
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
-> Iso
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDeliveryStream_deliveryStreamEncryptionConfigurationInput :: Lens.Lens' CreateDeliveryStream (Prelude.Maybe DeliveryStreamEncryptionConfigurationInput)
createDeliveryStream_deliveryStreamEncryptionConfigurationInput :: (Maybe DeliveryStreamEncryptionConfigurationInput
-> f (Maybe DeliveryStreamEncryptionConfigurationInput))
-> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_deliveryStreamEncryptionConfigurationInput = (CreateDeliveryStream
-> Maybe DeliveryStreamEncryptionConfigurationInput)
-> (CreateDeliveryStream
-> Maybe DeliveryStreamEncryptionConfigurationInput
-> CreateDeliveryStream)
-> Lens
CreateDeliveryStream
CreateDeliveryStream
(Maybe DeliveryStreamEncryptionConfigurationInput)
(Maybe DeliveryStreamEncryptionConfigurationInput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Maybe DeliveryStreamEncryptionConfigurationInput
deliveryStreamEncryptionConfigurationInput :: Maybe DeliveryStreamEncryptionConfigurationInput
$sel:deliveryStreamEncryptionConfigurationInput:CreateDeliveryStream' :: CreateDeliveryStream
-> Maybe DeliveryStreamEncryptionConfigurationInput
deliveryStreamEncryptionConfigurationInput} -> Maybe DeliveryStreamEncryptionConfigurationInput
deliveryStreamEncryptionConfigurationInput) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Maybe DeliveryStreamEncryptionConfigurationInput
a -> CreateDeliveryStream
s {$sel:deliveryStreamEncryptionConfigurationInput:CreateDeliveryStream' :: Maybe DeliveryStreamEncryptionConfigurationInput
deliveryStreamEncryptionConfigurationInput = Maybe DeliveryStreamEncryptionConfigurationInput
a} :: CreateDeliveryStream)
createDeliveryStream_deliveryStreamName :: Lens.Lens' CreateDeliveryStream Prelude.Text
createDeliveryStream_deliveryStreamName :: (Text -> f Text) -> CreateDeliveryStream -> f CreateDeliveryStream
createDeliveryStream_deliveryStreamName = (CreateDeliveryStream -> Text)
-> (CreateDeliveryStream -> Text -> CreateDeliveryStream)
-> Lens CreateDeliveryStream CreateDeliveryStream Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStream' {Text
deliveryStreamName :: Text
$sel:deliveryStreamName:CreateDeliveryStream' :: CreateDeliveryStream -> Text
deliveryStreamName} -> Text
deliveryStreamName) (\s :: CreateDeliveryStream
s@CreateDeliveryStream' {} Text
a -> CreateDeliveryStream
s {$sel:deliveryStreamName:CreateDeliveryStream' :: Text
deliveryStreamName = Text
a} :: CreateDeliveryStream)
instance Core.AWSRequest CreateDeliveryStream where
type
AWSResponse CreateDeliveryStream =
CreateDeliveryStreamResponse
request :: CreateDeliveryStream -> Request CreateDeliveryStream
request = Service -> CreateDeliveryStream -> Request CreateDeliveryStream
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDeliveryStream
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDeliveryStream)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateDeliveryStream))
-> Logger
-> Service
-> Proxy CreateDeliveryStream
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDeliveryStream)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Int -> CreateDeliveryStreamResponse
CreateDeliveryStreamResponse'
(Maybe Text -> Int -> CreateDeliveryStreamResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateDeliveryStreamResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DeliveryStreamARN")
Either String (Int -> CreateDeliveryStreamResponse)
-> Either String Int -> Either String CreateDeliveryStreamResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateDeliveryStream
instance Prelude.NFData CreateDeliveryStream
instance Core.ToHeaders CreateDeliveryStream where
toHeaders :: CreateDeliveryStream -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateDeliveryStream -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Firehose_20150804.CreateDeliveryStream" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateDeliveryStream where
toJSON :: CreateDeliveryStream -> Value
toJSON CreateDeliveryStream' {Maybe (NonEmpty Tag)
Maybe DeliveryStreamType
Maybe DeliveryStreamEncryptionConfigurationInput
Maybe KinesisStreamSourceConfiguration
Maybe S3DestinationConfiguration
Maybe RedshiftDestinationConfiguration
Maybe HttpEndpointDestinationConfiguration
Maybe ExtendedS3DestinationConfiguration
Maybe SplunkDestinationConfiguration
Maybe ElasticsearchDestinationConfiguration
Maybe AmazonopensearchserviceDestinationConfiguration
Text
deliveryStreamName :: Text
deliveryStreamEncryptionConfigurationInput :: Maybe DeliveryStreamEncryptionConfigurationInput
tags :: Maybe (NonEmpty Tag)
splunkDestinationConfiguration :: Maybe SplunkDestinationConfiguration
deliveryStreamType :: Maybe DeliveryStreamType
amazonopensearchserviceDestinationConfiguration :: Maybe AmazonopensearchserviceDestinationConfiguration
httpEndpointDestinationConfiguration :: Maybe HttpEndpointDestinationConfiguration
kinesisStreamSourceConfiguration :: Maybe KinesisStreamSourceConfiguration
extendedS3DestinationConfiguration :: Maybe ExtendedS3DestinationConfiguration
elasticsearchDestinationConfiguration :: Maybe ElasticsearchDestinationConfiguration
redshiftDestinationConfiguration :: Maybe RedshiftDestinationConfiguration
s3DestinationConfiguration :: Maybe S3DestinationConfiguration
$sel:deliveryStreamName:CreateDeliveryStream' :: CreateDeliveryStream -> Text
$sel:deliveryStreamEncryptionConfigurationInput:CreateDeliveryStream' :: CreateDeliveryStream
-> Maybe DeliveryStreamEncryptionConfigurationInput
$sel:tags:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe (NonEmpty Tag)
$sel:splunkDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe SplunkDestinationConfiguration
$sel:deliveryStreamType:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe DeliveryStreamType
$sel:amazonopensearchserviceDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream
-> Maybe AmazonopensearchserviceDestinationConfiguration
$sel:httpEndpointDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe HttpEndpointDestinationConfiguration
$sel:kinesisStreamSourceConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe KinesisStreamSourceConfiguration
$sel:extendedS3DestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe ExtendedS3DestinationConfiguration
$sel:elasticsearchDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe ElasticsearchDestinationConfiguration
$sel:redshiftDestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe RedshiftDestinationConfiguration
$sel:s3DestinationConfiguration:CreateDeliveryStream' :: CreateDeliveryStream -> Maybe S3DestinationConfiguration
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"S3DestinationConfiguration" Text -> S3DestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(S3DestinationConfiguration -> Pair)
-> Maybe S3DestinationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3DestinationConfiguration
s3DestinationConfiguration,
(Text
"RedshiftDestinationConfiguration" Text -> RedshiftDestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(RedshiftDestinationConfiguration -> Pair)
-> Maybe RedshiftDestinationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftDestinationConfiguration
redshiftDestinationConfiguration,
(Text
"ElasticsearchDestinationConfiguration" Text -> ElasticsearchDestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ElasticsearchDestinationConfiguration -> Pair)
-> Maybe ElasticsearchDestinationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ElasticsearchDestinationConfiguration
elasticsearchDestinationConfiguration,
(Text
"ExtendedS3DestinationConfiguration" Text -> ExtendedS3DestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ExtendedS3DestinationConfiguration -> Pair)
-> Maybe ExtendedS3DestinationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExtendedS3DestinationConfiguration
extendedS3DestinationConfiguration,
(Text
"KinesisStreamSourceConfiguration" Text -> KinesisStreamSourceConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(KinesisStreamSourceConfiguration -> Pair)
-> Maybe KinesisStreamSourceConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KinesisStreamSourceConfiguration
kinesisStreamSourceConfiguration,
(Text
"HttpEndpointDestinationConfiguration" Text -> HttpEndpointDestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HttpEndpointDestinationConfiguration -> Pair)
-> Maybe HttpEndpointDestinationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HttpEndpointDestinationConfiguration
httpEndpointDestinationConfiguration,
( Text
"AmazonopensearchserviceDestinationConfiguration"
Text -> AmazonopensearchserviceDestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=
)
(AmazonopensearchserviceDestinationConfiguration -> Pair)
-> Maybe AmazonopensearchserviceDestinationConfiguration
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration,
(Text
"DeliveryStreamType" Text -> DeliveryStreamType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DeliveryStreamType -> Pair)
-> Maybe DeliveryStreamType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeliveryStreamType
deliveryStreamType,
(Text
"SplunkDestinationConfiguration" Text -> SplunkDestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SplunkDestinationConfiguration -> Pair)
-> Maybe SplunkDestinationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SplunkDestinationConfiguration
splunkDestinationConfiguration,
(Text
"Tags" Text -> NonEmpty Tag -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Tag -> Pair) -> Maybe (NonEmpty Tag) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Tag)
tags,
( Text
"DeliveryStreamEncryptionConfigurationInput"
Text -> DeliveryStreamEncryptionConfigurationInput -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=
)
(DeliveryStreamEncryptionConfigurationInput -> Pair)
-> Maybe DeliveryStreamEncryptionConfigurationInput -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeliveryStreamEncryptionConfigurationInput
deliveryStreamEncryptionConfigurationInput,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"DeliveryStreamName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
deliveryStreamName)
]
)
instance Core.ToPath CreateDeliveryStream where
toPath :: CreateDeliveryStream -> ByteString
toPath = ByteString -> CreateDeliveryStream -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateDeliveryStream where
toQuery :: CreateDeliveryStream -> QueryString
toQuery = QueryString -> CreateDeliveryStream -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateDeliveryStreamResponse = CreateDeliveryStreamResponse'
{
CreateDeliveryStreamResponse -> Maybe Text
deliveryStreamARN :: Prelude.Maybe Prelude.Text,
CreateDeliveryStreamResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateDeliveryStreamResponse
-> CreateDeliveryStreamResponse -> Bool
(CreateDeliveryStreamResponse
-> CreateDeliveryStreamResponse -> Bool)
-> (CreateDeliveryStreamResponse
-> CreateDeliveryStreamResponse -> Bool)
-> Eq CreateDeliveryStreamResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDeliveryStreamResponse
-> CreateDeliveryStreamResponse -> Bool
$c/= :: CreateDeliveryStreamResponse
-> CreateDeliveryStreamResponse -> Bool
== :: CreateDeliveryStreamResponse
-> CreateDeliveryStreamResponse -> Bool
$c== :: CreateDeliveryStreamResponse
-> CreateDeliveryStreamResponse -> Bool
Prelude.Eq, ReadPrec [CreateDeliveryStreamResponse]
ReadPrec CreateDeliveryStreamResponse
Int -> ReadS CreateDeliveryStreamResponse
ReadS [CreateDeliveryStreamResponse]
(Int -> ReadS CreateDeliveryStreamResponse)
-> ReadS [CreateDeliveryStreamResponse]
-> ReadPrec CreateDeliveryStreamResponse
-> ReadPrec [CreateDeliveryStreamResponse]
-> Read CreateDeliveryStreamResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDeliveryStreamResponse]
$creadListPrec :: ReadPrec [CreateDeliveryStreamResponse]
readPrec :: ReadPrec CreateDeliveryStreamResponse
$creadPrec :: ReadPrec CreateDeliveryStreamResponse
readList :: ReadS [CreateDeliveryStreamResponse]
$creadList :: ReadS [CreateDeliveryStreamResponse]
readsPrec :: Int -> ReadS CreateDeliveryStreamResponse
$creadsPrec :: Int -> ReadS CreateDeliveryStreamResponse
Prelude.Read, Int -> CreateDeliveryStreamResponse -> ShowS
[CreateDeliveryStreamResponse] -> ShowS
CreateDeliveryStreamResponse -> String
(Int -> CreateDeliveryStreamResponse -> ShowS)
-> (CreateDeliveryStreamResponse -> String)
-> ([CreateDeliveryStreamResponse] -> ShowS)
-> Show CreateDeliveryStreamResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDeliveryStreamResponse] -> ShowS
$cshowList :: [CreateDeliveryStreamResponse] -> ShowS
show :: CreateDeliveryStreamResponse -> String
$cshow :: CreateDeliveryStreamResponse -> String
showsPrec :: Int -> CreateDeliveryStreamResponse -> ShowS
$cshowsPrec :: Int -> CreateDeliveryStreamResponse -> ShowS
Prelude.Show, (forall x.
CreateDeliveryStreamResponse -> Rep CreateDeliveryStreamResponse x)
-> (forall x.
Rep CreateDeliveryStreamResponse x -> CreateDeliveryStreamResponse)
-> Generic CreateDeliveryStreamResponse
forall x.
Rep CreateDeliveryStreamResponse x -> CreateDeliveryStreamResponse
forall x.
CreateDeliveryStreamResponse -> Rep CreateDeliveryStreamResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateDeliveryStreamResponse x -> CreateDeliveryStreamResponse
$cfrom :: forall x.
CreateDeliveryStreamResponse -> Rep CreateDeliveryStreamResponse x
Prelude.Generic)
newCreateDeliveryStreamResponse ::
Prelude.Int ->
CreateDeliveryStreamResponse
newCreateDeliveryStreamResponse :: Int -> CreateDeliveryStreamResponse
newCreateDeliveryStreamResponse Int
pHttpStatus_ =
CreateDeliveryStreamResponse' :: Maybe Text -> Int -> CreateDeliveryStreamResponse
CreateDeliveryStreamResponse'
{ $sel:deliveryStreamARN:CreateDeliveryStreamResponse' :: Maybe Text
deliveryStreamARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDeliveryStreamResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createDeliveryStreamResponse_deliveryStreamARN :: Lens.Lens' CreateDeliveryStreamResponse (Prelude.Maybe Prelude.Text)
createDeliveryStreamResponse_deliveryStreamARN :: (Maybe Text -> f (Maybe Text))
-> CreateDeliveryStreamResponse -> f CreateDeliveryStreamResponse
createDeliveryStreamResponse_deliveryStreamARN = (CreateDeliveryStreamResponse -> Maybe Text)
-> (CreateDeliveryStreamResponse
-> Maybe Text -> CreateDeliveryStreamResponse)
-> Lens
CreateDeliveryStreamResponse
CreateDeliveryStreamResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStreamResponse' {Maybe Text
deliveryStreamARN :: Maybe Text
$sel:deliveryStreamARN:CreateDeliveryStreamResponse' :: CreateDeliveryStreamResponse -> Maybe Text
deliveryStreamARN} -> Maybe Text
deliveryStreamARN) (\s :: CreateDeliveryStreamResponse
s@CreateDeliveryStreamResponse' {} Maybe Text
a -> CreateDeliveryStreamResponse
s {$sel:deliveryStreamARN:CreateDeliveryStreamResponse' :: Maybe Text
deliveryStreamARN = Maybe Text
a} :: CreateDeliveryStreamResponse)
createDeliveryStreamResponse_httpStatus :: Lens.Lens' CreateDeliveryStreamResponse Prelude.Int
createDeliveryStreamResponse_httpStatus :: (Int -> f Int)
-> CreateDeliveryStreamResponse -> f CreateDeliveryStreamResponse
createDeliveryStreamResponse_httpStatus = (CreateDeliveryStreamResponse -> Int)
-> (CreateDeliveryStreamResponse
-> Int -> CreateDeliveryStreamResponse)
-> Lens
CreateDeliveryStreamResponse CreateDeliveryStreamResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeliveryStreamResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDeliveryStreamResponse' :: CreateDeliveryStreamResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDeliveryStreamResponse
s@CreateDeliveryStreamResponse' {} Int
a -> CreateDeliveryStreamResponse
s {$sel:httpStatus:CreateDeliveryStreamResponse' :: Int
httpStatus = Int
a} :: CreateDeliveryStreamResponse)
instance Prelude.NFData CreateDeliveryStreamResponse