{-# 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.SNS.CreateTopic
(
CreateTopic (..),
newCreateTopic,
createTopic_attributes,
createTopic_dataProtectionPolicy,
createTopic_tags,
createTopic_name,
CreateTopicResponse (..),
newCreateTopicResponse,
createTopicResponse_topicArn,
createTopicResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SNS.Types
data CreateTopic = CreateTopic'
{
CreateTopic -> Maybe (HashMap Text Text)
attributes :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateTopic -> Maybe Text
dataProtectionPolicy :: Prelude.Maybe Prelude.Text,
CreateTopic -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateTopic -> Text
name :: Prelude.Text
}
deriving (CreateTopic -> CreateTopic -> Bool
(CreateTopic -> CreateTopic -> Bool)
-> (CreateTopic -> CreateTopic -> Bool) -> Eq CreateTopic
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CreateTopic -> CreateTopic -> Bool
== :: CreateTopic -> CreateTopic -> Bool
$c/= :: CreateTopic -> CreateTopic -> Bool
/= :: CreateTopic -> CreateTopic -> Bool
Prelude.Eq, ReadPrec [CreateTopic]
ReadPrec CreateTopic
Int -> ReadS CreateTopic
ReadS [CreateTopic]
(Int -> ReadS CreateTopic)
-> ReadS [CreateTopic]
-> ReadPrec CreateTopic
-> ReadPrec [CreateTopic]
-> Read CreateTopic
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS CreateTopic
readsPrec :: Int -> ReadS CreateTopic
$creadList :: ReadS [CreateTopic]
readList :: ReadS [CreateTopic]
$creadPrec :: ReadPrec CreateTopic
readPrec :: ReadPrec CreateTopic
$creadListPrec :: ReadPrec [CreateTopic]
readListPrec :: ReadPrec [CreateTopic]
Prelude.Read, Int -> CreateTopic -> ShowS
[CreateTopic] -> ShowS
CreateTopic -> String
(Int -> CreateTopic -> ShowS)
-> (CreateTopic -> String)
-> ([CreateTopic] -> ShowS)
-> Show CreateTopic
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CreateTopic -> ShowS
showsPrec :: Int -> CreateTopic -> ShowS
$cshow :: CreateTopic -> String
show :: CreateTopic -> String
$cshowList :: [CreateTopic] -> ShowS
showList :: [CreateTopic] -> ShowS
Prelude.Show, (forall x. CreateTopic -> Rep CreateTopic x)
-> (forall x. Rep CreateTopic x -> CreateTopic)
-> Generic CreateTopic
forall x. Rep CreateTopic x -> CreateTopic
forall x. CreateTopic -> Rep CreateTopic x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. CreateTopic -> Rep CreateTopic x
from :: forall x. CreateTopic -> Rep CreateTopic x
$cto :: forall x. Rep CreateTopic x -> CreateTopic
to :: forall x. Rep CreateTopic x -> CreateTopic
Prelude.Generic)
newCreateTopic ::
Prelude.Text ->
CreateTopic
newCreateTopic :: Text -> CreateTopic
newCreateTopic Text
pName_ =
CreateTopic'
{ attributes :: Maybe (HashMap Text Text)
attributes = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
dataProtectionPolicy :: Maybe Text
dataProtectionPolicy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
name :: Text
name = Text
pName_
}
createTopic_attributes :: Lens.Lens' CreateTopic (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createTopic_attributes :: Lens' CreateTopic (Maybe (HashMap Text Text))
createTopic_attributes = (CreateTopic -> Maybe (HashMap Text Text))
-> (CreateTopic -> Maybe (HashMap Text Text) -> CreateTopic)
-> Lens' CreateTopic (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTopic' {Maybe (HashMap Text Text)
attributes :: CreateTopic -> Maybe (HashMap Text Text)
attributes :: Maybe (HashMap Text Text)
attributes} -> Maybe (HashMap Text Text)
attributes) (\s :: CreateTopic
s@CreateTopic' {} Maybe (HashMap Text Text)
a -> CreateTopic
s {attributes = a} :: CreateTopic) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTopic -> f CreateTopic)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTopic
-> f CreateTopic
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Iso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
Lens.coerced
createTopic_dataProtectionPolicy :: Lens.Lens' CreateTopic (Prelude.Maybe Prelude.Text)
createTopic_dataProtectionPolicy :: Lens' CreateTopic (Maybe Text)
createTopic_dataProtectionPolicy = (CreateTopic -> Maybe Text)
-> (CreateTopic -> Maybe Text -> CreateTopic)
-> Lens' CreateTopic (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTopic' {Maybe Text
dataProtectionPolicy :: CreateTopic -> Maybe Text
dataProtectionPolicy :: Maybe Text
dataProtectionPolicy} -> Maybe Text
dataProtectionPolicy) (\s :: CreateTopic
s@CreateTopic' {} Maybe Text
a -> CreateTopic
s {dataProtectionPolicy = a} :: CreateTopic)
createTopic_tags :: Lens.Lens' CreateTopic (Prelude.Maybe [Tag])
createTopic_tags :: Lens' CreateTopic (Maybe [Tag])
createTopic_tags = (CreateTopic -> Maybe [Tag])
-> (CreateTopic -> Maybe [Tag] -> CreateTopic)
-> Lens' CreateTopic (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTopic' {Maybe [Tag]
tags :: CreateTopic -> Maybe [Tag]
tags :: Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateTopic
s@CreateTopic' {} Maybe [Tag]
a -> CreateTopic
s {tags = a} :: CreateTopic) ((Maybe [Tag] -> f (Maybe [Tag])) -> CreateTopic -> f CreateTopic)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateTopic
-> f CreateTopic
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Iso [Tag] [Tag] [Tag] [Tag]
Lens.coerced
createTopic_name :: Lens.Lens' CreateTopic Prelude.Text
createTopic_name :: Lens' CreateTopic Text
createTopic_name = (CreateTopic -> Text)
-> (CreateTopic -> Text -> CreateTopic) -> Lens' CreateTopic Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTopic' {Text
name :: CreateTopic -> Text
name :: Text
name} -> Text
name) (\s :: CreateTopic
s@CreateTopic' {} Text
a -> CreateTopic
s {name = a} :: CreateTopic)
instance Core.AWSRequest CreateTopic where
type AWSResponse CreateTopic = CreateTopicResponse
request :: (Service -> Service) -> CreateTopic -> Request CreateTopic
request Service -> Service
overrides =
Service -> CreateTopic -> Request CreateTopic
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreateTopic
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateTopic)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateTopic))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreateTopic
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateTopic)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"CreateTopicResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text -> Int -> CreateTopicResponse
CreateTopicResponse'
(Maybe Text -> Int -> CreateTopicResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateTopicResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"TopicArn")
Either String (Int -> CreateTopicResponse)
-> Either String Int -> Either String CreateTopicResponse
forall a b.
Either String (a -> b) -> Either String a -> Either String b
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall a. a -> Either String a
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 CreateTopic where
hashWithSalt :: Int -> CreateTopic -> Int
hashWithSalt Int
_salt CreateTopic' {Maybe [Tag]
Maybe Text
Maybe (HashMap Text Text)
Text
attributes :: CreateTopic -> Maybe (HashMap Text Text)
dataProtectionPolicy :: CreateTopic -> Maybe Text
tags :: CreateTopic -> Maybe [Tag]
name :: CreateTopic -> Text
attributes :: Maybe (HashMap Text Text)
dataProtectionPolicy :: Maybe Text
tags :: Maybe [Tag]
name :: Text
..} =
Int
_salt
Int -> Maybe (HashMap Text Text) -> Int
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
attributes
Int -> Maybe Text -> Int
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dataProtectionPolicy
Int -> Maybe [Tag] -> Int
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
Int -> Text -> Int
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
instance Prelude.NFData CreateTopic where
rnf :: CreateTopic -> ()
rnf CreateTopic' {Maybe [Tag]
Maybe Text
Maybe (HashMap Text Text)
Text
attributes :: CreateTopic -> Maybe (HashMap Text Text)
dataProtectionPolicy :: CreateTopic -> Maybe Text
tags :: CreateTopic -> Maybe [Tag]
name :: CreateTopic -> Text
attributes :: Maybe (HashMap Text Text)
dataProtectionPolicy :: Maybe Text
tags :: Maybe [Tag]
name :: Text
..} =
Maybe (HashMap Text Text) -> ()
forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
attributes () -> () -> ()
forall a b. a -> b -> b
`Prelude.seq`
Maybe Text -> ()
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dataProtectionPolicy () -> () -> ()
forall a b. a -> b -> b
`Prelude.seq`
Maybe [Tag] -> ()
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags () -> () -> ()
forall a b. a -> b -> b
`Prelude.seq`
Text -> ()
forall a. NFData a => a -> ()
Prelude.rnf Text
name
instance Data.ToHeaders CreateTopic where
toHeaders :: CreateTopic -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateTopic -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath CreateTopic where
toPath :: CreateTopic -> ByteString
toPath = ByteString -> CreateTopic -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery CreateTopic where
toQuery :: CreateTopic -> QueryString
toQuery CreateTopic' {Maybe [Tag]
Maybe Text
Maybe (HashMap Text Text)
Text
attributes :: CreateTopic -> Maybe (HashMap Text Text)
dataProtectionPolicy :: CreateTopic -> Maybe Text
tags :: CreateTopic -> Maybe [Tag]
name :: CreateTopic -> Text
attributes :: Maybe (HashMap Text Text)
dataProtectionPolicy :: Maybe Text
tags :: Maybe [Tag]
name :: Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"CreateTopic" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2010-03-31" :: Prelude.ByteString),
ByteString
"Attributes"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Data.toQuery
( ByteString
-> ByteString -> ByteString -> HashMap Text Text -> QueryString
forall k v.
(ToQuery k, ToQuery v) =>
ByteString
-> ByteString -> ByteString -> HashMap k v -> QueryString
Data.toQueryMap ByteString
"entry" ByteString
"key" ByteString
"value"
(HashMap Text Text -> QueryString)
-> Maybe (HashMap Text Text) -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
attributes
),
ByteString
"DataProtectionPolicy" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
dataProtectionPolicy,
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Data.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"Name" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
name
]
data CreateTopicResponse = CreateTopicResponse'
{
CreateTopicResponse -> Maybe Text
topicArn :: Prelude.Maybe Prelude.Text,
CreateTopicResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateTopicResponse -> CreateTopicResponse -> Bool
(CreateTopicResponse -> CreateTopicResponse -> Bool)
-> (CreateTopicResponse -> CreateTopicResponse -> Bool)
-> Eq CreateTopicResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CreateTopicResponse -> CreateTopicResponse -> Bool
== :: CreateTopicResponse -> CreateTopicResponse -> Bool
$c/= :: CreateTopicResponse -> CreateTopicResponse -> Bool
/= :: CreateTopicResponse -> CreateTopicResponse -> Bool
Prelude.Eq, ReadPrec [CreateTopicResponse]
ReadPrec CreateTopicResponse
Int -> ReadS CreateTopicResponse
ReadS [CreateTopicResponse]
(Int -> ReadS CreateTopicResponse)
-> ReadS [CreateTopicResponse]
-> ReadPrec CreateTopicResponse
-> ReadPrec [CreateTopicResponse]
-> Read CreateTopicResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS CreateTopicResponse
readsPrec :: Int -> ReadS CreateTopicResponse
$creadList :: ReadS [CreateTopicResponse]
readList :: ReadS [CreateTopicResponse]
$creadPrec :: ReadPrec CreateTopicResponse
readPrec :: ReadPrec CreateTopicResponse
$creadListPrec :: ReadPrec [CreateTopicResponse]
readListPrec :: ReadPrec [CreateTopicResponse]
Prelude.Read, Int -> CreateTopicResponse -> ShowS
[CreateTopicResponse] -> ShowS
CreateTopicResponse -> String
(Int -> CreateTopicResponse -> ShowS)
-> (CreateTopicResponse -> String)
-> ([CreateTopicResponse] -> ShowS)
-> Show CreateTopicResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CreateTopicResponse -> ShowS
showsPrec :: Int -> CreateTopicResponse -> ShowS
$cshow :: CreateTopicResponse -> String
show :: CreateTopicResponse -> String
$cshowList :: [CreateTopicResponse] -> ShowS
showList :: [CreateTopicResponse] -> ShowS
Prelude.Show, (forall x. CreateTopicResponse -> Rep CreateTopicResponse x)
-> (forall x. Rep CreateTopicResponse x -> CreateTopicResponse)
-> Generic CreateTopicResponse
forall x. Rep CreateTopicResponse x -> CreateTopicResponse
forall x. CreateTopicResponse -> Rep CreateTopicResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. CreateTopicResponse -> Rep CreateTopicResponse x
from :: forall x. CreateTopicResponse -> Rep CreateTopicResponse x
$cto :: forall x. Rep CreateTopicResponse x -> CreateTopicResponse
to :: forall x. Rep CreateTopicResponse x -> CreateTopicResponse
Prelude.Generic)
newCreateTopicResponse ::
Prelude.Int ->
CreateTopicResponse
newCreateTopicResponse :: Int -> CreateTopicResponse
newCreateTopicResponse Int
pHttpStatus_ =
CreateTopicResponse'
{ topicArn :: Maybe Text
topicArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
httpStatus :: Int
httpStatus = Int
pHttpStatus_
}
createTopicResponse_topicArn :: Lens.Lens' CreateTopicResponse (Prelude.Maybe Prelude.Text)
createTopicResponse_topicArn :: Lens' CreateTopicResponse (Maybe Text)
createTopicResponse_topicArn = (CreateTopicResponse -> Maybe Text)
-> (CreateTopicResponse -> Maybe Text -> CreateTopicResponse)
-> Lens' CreateTopicResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTopicResponse' {Maybe Text
topicArn :: CreateTopicResponse -> Maybe Text
topicArn :: Maybe Text
topicArn} -> Maybe Text
topicArn) (\s :: CreateTopicResponse
s@CreateTopicResponse' {} Maybe Text
a -> CreateTopicResponse
s {topicArn = a} :: CreateTopicResponse)
createTopicResponse_httpStatus :: Lens.Lens' CreateTopicResponse Prelude.Int
createTopicResponse_httpStatus :: Lens' CreateTopicResponse Int
createTopicResponse_httpStatus = (CreateTopicResponse -> Int)
-> (CreateTopicResponse -> Int -> CreateTopicResponse)
-> Lens' CreateTopicResponse Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTopicResponse' {Int
httpStatus :: CreateTopicResponse -> Int
httpStatus :: Int
httpStatus} -> Int
httpStatus) (\s :: CreateTopicResponse
s@CreateTopicResponse' {} Int
a -> CreateTopicResponse
s {httpStatus = a} :: CreateTopicResponse)
instance Prelude.NFData CreateTopicResponse where
rnf :: CreateTopicResponse -> ()
rnf CreateTopicResponse' {Int
Maybe Text
topicArn :: CreateTopicResponse -> Maybe Text
httpStatus :: CreateTopicResponse -> Int
topicArn :: Maybe Text
httpStatus :: Int
..} =
Maybe Text -> ()
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
topicArn () -> () -> ()
forall a b. a -> b -> b
`Prelude.seq`
Int -> ()
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus