{-# 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.CreatePlatformEndpoint
(
CreatePlatformEndpoint (..),
newCreatePlatformEndpoint,
createPlatformEndpoint_attributes,
createPlatformEndpoint_customUserData,
createPlatformEndpoint_platformApplicationArn,
createPlatformEndpoint_token,
CreatePlatformEndpointResponse (..),
newCreatePlatformEndpointResponse,
createPlatformEndpointResponse_endpointArn,
createPlatformEndpointResponse_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 CreatePlatformEndpoint = CreatePlatformEndpoint'
{
CreatePlatformEndpoint -> Maybe (HashMap Text Text)
attributes :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreatePlatformEndpoint -> Maybe Text
customUserData :: Prelude.Maybe Prelude.Text,
CreatePlatformEndpoint -> Text
platformApplicationArn :: Prelude.Text,
CreatePlatformEndpoint -> Text
token :: Prelude.Text
}
deriving (CreatePlatformEndpoint -> CreatePlatformEndpoint -> Bool
(CreatePlatformEndpoint -> CreatePlatformEndpoint -> Bool)
-> (CreatePlatformEndpoint -> CreatePlatformEndpoint -> Bool)
-> Eq CreatePlatformEndpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CreatePlatformEndpoint -> CreatePlatformEndpoint -> Bool
== :: CreatePlatformEndpoint -> CreatePlatformEndpoint -> Bool
$c/= :: CreatePlatformEndpoint -> CreatePlatformEndpoint -> Bool
/= :: CreatePlatformEndpoint -> CreatePlatformEndpoint -> Bool
Prelude.Eq, ReadPrec [CreatePlatformEndpoint]
ReadPrec CreatePlatformEndpoint
Int -> ReadS CreatePlatformEndpoint
ReadS [CreatePlatformEndpoint]
(Int -> ReadS CreatePlatformEndpoint)
-> ReadS [CreatePlatformEndpoint]
-> ReadPrec CreatePlatformEndpoint
-> ReadPrec [CreatePlatformEndpoint]
-> Read CreatePlatformEndpoint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS CreatePlatformEndpoint
readsPrec :: Int -> ReadS CreatePlatformEndpoint
$creadList :: ReadS [CreatePlatformEndpoint]
readList :: ReadS [CreatePlatformEndpoint]
$creadPrec :: ReadPrec CreatePlatformEndpoint
readPrec :: ReadPrec CreatePlatformEndpoint
$creadListPrec :: ReadPrec [CreatePlatformEndpoint]
readListPrec :: ReadPrec [CreatePlatformEndpoint]
Prelude.Read, Int -> CreatePlatformEndpoint -> ShowS
[CreatePlatformEndpoint] -> ShowS
CreatePlatformEndpoint -> String
(Int -> CreatePlatformEndpoint -> ShowS)
-> (CreatePlatformEndpoint -> String)
-> ([CreatePlatformEndpoint] -> ShowS)
-> Show CreatePlatformEndpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CreatePlatformEndpoint -> ShowS
showsPrec :: Int -> CreatePlatformEndpoint -> ShowS
$cshow :: CreatePlatformEndpoint -> String
show :: CreatePlatformEndpoint -> String
$cshowList :: [CreatePlatformEndpoint] -> ShowS
showList :: [CreatePlatformEndpoint] -> ShowS
Prelude.Show, (forall x. CreatePlatformEndpoint -> Rep CreatePlatformEndpoint x)
-> (forall x.
Rep CreatePlatformEndpoint x -> CreatePlatformEndpoint)
-> Generic CreatePlatformEndpoint
forall x. Rep CreatePlatformEndpoint x -> CreatePlatformEndpoint
forall x. CreatePlatformEndpoint -> Rep CreatePlatformEndpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. CreatePlatformEndpoint -> Rep CreatePlatformEndpoint x
from :: forall x. CreatePlatformEndpoint -> Rep CreatePlatformEndpoint x
$cto :: forall x. Rep CreatePlatformEndpoint x -> CreatePlatformEndpoint
to :: forall x. Rep CreatePlatformEndpoint x -> CreatePlatformEndpoint
Prelude.Generic)
newCreatePlatformEndpoint ::
Prelude.Text ->
Prelude.Text ->
CreatePlatformEndpoint
newCreatePlatformEndpoint :: Text -> Text -> CreatePlatformEndpoint
newCreatePlatformEndpoint
Text
pPlatformApplicationArn_
Text
pToken_ =
CreatePlatformEndpoint'
{ attributes :: Maybe (HashMap Text Text)
attributes =
Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
customUserData :: Maybe Text
customUserData = Maybe Text
forall a. Maybe a
Prelude.Nothing,
platformApplicationArn :: Text
platformApplicationArn = Text
pPlatformApplicationArn_,
token :: Text
token = Text
pToken_
}
createPlatformEndpoint_attributes :: Lens.Lens' CreatePlatformEndpoint (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createPlatformEndpoint_attributes :: Lens' CreatePlatformEndpoint (Maybe (HashMap Text Text))
createPlatformEndpoint_attributes = (CreatePlatformEndpoint -> Maybe (HashMap Text Text))
-> (CreatePlatformEndpoint
-> Maybe (HashMap Text Text) -> CreatePlatformEndpoint)
-> Lens' CreatePlatformEndpoint (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePlatformEndpoint' {Maybe (HashMap Text Text)
attributes :: CreatePlatformEndpoint -> Maybe (HashMap Text Text)
attributes :: Maybe (HashMap Text Text)
attributes} -> Maybe (HashMap Text Text)
attributes) (\s :: CreatePlatformEndpoint
s@CreatePlatformEndpoint' {} Maybe (HashMap Text Text)
a -> CreatePlatformEndpoint
s {attributes = a} :: CreatePlatformEndpoint) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreatePlatformEndpoint -> f CreatePlatformEndpoint)
-> ((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)))
-> CreatePlatformEndpoint
-> f CreatePlatformEndpoint
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
createPlatformEndpoint_customUserData :: Lens.Lens' CreatePlatformEndpoint (Prelude.Maybe Prelude.Text)
createPlatformEndpoint_customUserData :: Lens' CreatePlatformEndpoint (Maybe Text)
createPlatformEndpoint_customUserData = (CreatePlatformEndpoint -> Maybe Text)
-> (CreatePlatformEndpoint -> Maybe Text -> CreatePlatformEndpoint)
-> Lens' CreatePlatformEndpoint (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePlatformEndpoint' {Maybe Text
customUserData :: CreatePlatformEndpoint -> Maybe Text
customUserData :: Maybe Text
customUserData} -> Maybe Text
customUserData) (\s :: CreatePlatformEndpoint
s@CreatePlatformEndpoint' {} Maybe Text
a -> CreatePlatformEndpoint
s {customUserData = a} :: CreatePlatformEndpoint)
createPlatformEndpoint_platformApplicationArn :: Lens.Lens' CreatePlatformEndpoint Prelude.Text
createPlatformEndpoint_platformApplicationArn :: Lens' CreatePlatformEndpoint Text
createPlatformEndpoint_platformApplicationArn = (CreatePlatformEndpoint -> Text)
-> (CreatePlatformEndpoint -> Text -> CreatePlatformEndpoint)
-> Lens' CreatePlatformEndpoint Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePlatformEndpoint' {Text
platformApplicationArn :: CreatePlatformEndpoint -> Text
platformApplicationArn :: Text
platformApplicationArn} -> Text
platformApplicationArn) (\s :: CreatePlatformEndpoint
s@CreatePlatformEndpoint' {} Text
a -> CreatePlatformEndpoint
s {platformApplicationArn = a} :: CreatePlatformEndpoint)
createPlatformEndpoint_token :: Lens.Lens' CreatePlatformEndpoint Prelude.Text
createPlatformEndpoint_token :: Lens' CreatePlatformEndpoint Text
createPlatformEndpoint_token = (CreatePlatformEndpoint -> Text)
-> (CreatePlatformEndpoint -> Text -> CreatePlatformEndpoint)
-> Lens' CreatePlatformEndpoint Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePlatformEndpoint' {Text
token :: CreatePlatformEndpoint -> Text
token :: Text
token} -> Text
token) (\s :: CreatePlatformEndpoint
s@CreatePlatformEndpoint' {} Text
a -> CreatePlatformEndpoint
s {token = a} :: CreatePlatformEndpoint)
instance Core.AWSRequest CreatePlatformEndpoint where
type
AWSResponse CreatePlatformEndpoint =
CreatePlatformEndpointResponse
request :: (Service -> Service)
-> CreatePlatformEndpoint -> Request CreatePlatformEndpoint
request Service -> Service
overrides =
Service -> CreatePlatformEndpoint -> Request CreatePlatformEndpoint
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 CreatePlatformEndpoint
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePlatformEndpoint)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreatePlatformEndpoint))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreatePlatformEndpoint
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePlatformEndpoint)))
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
"CreatePlatformEndpointResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text -> Int -> CreatePlatformEndpointResponse
CreatePlatformEndpointResponse'
(Maybe Text -> Int -> CreatePlatformEndpointResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreatePlatformEndpointResponse)
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
"EndpointArn")
Either String (Int -> CreatePlatformEndpointResponse)
-> Either String Int
-> Either String CreatePlatformEndpointResponse
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 CreatePlatformEndpoint where
hashWithSalt :: Int -> CreatePlatformEndpoint -> Int
hashWithSalt Int
_salt CreatePlatformEndpoint' {Maybe Text
Maybe (HashMap Text Text)
Text
attributes :: CreatePlatformEndpoint -> Maybe (HashMap Text Text)
customUserData :: CreatePlatformEndpoint -> Maybe Text
platformApplicationArn :: CreatePlatformEndpoint -> Text
token :: CreatePlatformEndpoint -> Text
attributes :: Maybe (HashMap Text Text)
customUserData :: Maybe Text
platformApplicationArn :: Text
token :: 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
customUserData
Int -> Text -> Int
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
platformApplicationArn
Int -> Text -> Int
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
token
instance Prelude.NFData CreatePlatformEndpoint where
rnf :: CreatePlatformEndpoint -> ()
rnf CreatePlatformEndpoint' {Maybe Text
Maybe (HashMap Text Text)
Text
attributes :: CreatePlatformEndpoint -> Maybe (HashMap Text Text)
customUserData :: CreatePlatformEndpoint -> Maybe Text
platformApplicationArn :: CreatePlatformEndpoint -> Text
token :: CreatePlatformEndpoint -> Text
attributes :: Maybe (HashMap Text Text)
customUserData :: Maybe Text
platformApplicationArn :: Text
token :: 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
customUserData () -> () -> ()
forall a b. a -> b -> b
`Prelude.seq`
Text -> ()
forall a. NFData a => a -> ()
Prelude.rnf Text
platformApplicationArn () -> () -> ()
forall a b. a -> b -> b
`Prelude.seq`
Text -> ()
forall a. NFData a => a -> ()
Prelude.rnf Text
token
instance Data.ToHeaders CreatePlatformEndpoint where
toHeaders :: CreatePlatformEndpoint -> ResponseHeaders
toHeaders = ResponseHeaders -> CreatePlatformEndpoint -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath CreatePlatformEndpoint where
toPath :: CreatePlatformEndpoint -> ByteString
toPath = ByteString -> CreatePlatformEndpoint -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery CreatePlatformEndpoint where
toQuery :: CreatePlatformEndpoint -> QueryString
toQuery CreatePlatformEndpoint' {Maybe Text
Maybe (HashMap Text Text)
Text
attributes :: CreatePlatformEndpoint -> Maybe (HashMap Text Text)
customUserData :: CreatePlatformEndpoint -> Maybe Text
platformApplicationArn :: CreatePlatformEndpoint -> Text
token :: CreatePlatformEndpoint -> Text
attributes :: Maybe (HashMap Text Text)
customUserData :: Maybe Text
platformApplicationArn :: Text
token :: 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
"CreatePlatformEndpoint" :: 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
"CustomUserData" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
customUserData,
ByteString
"PlatformApplicationArn"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
platformApplicationArn,
ByteString
"Token" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
token
]
data CreatePlatformEndpointResponse = CreatePlatformEndpointResponse'
{
CreatePlatformEndpointResponse -> Maybe Text
endpointArn :: Prelude.Maybe Prelude.Text,
CreatePlatformEndpointResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreatePlatformEndpointResponse
-> CreatePlatformEndpointResponse -> Bool
(CreatePlatformEndpointResponse
-> CreatePlatformEndpointResponse -> Bool)
-> (CreatePlatformEndpointResponse
-> CreatePlatformEndpointResponse -> Bool)
-> Eq CreatePlatformEndpointResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CreatePlatformEndpointResponse
-> CreatePlatformEndpointResponse -> Bool
== :: CreatePlatformEndpointResponse
-> CreatePlatformEndpointResponse -> Bool
$c/= :: CreatePlatformEndpointResponse
-> CreatePlatformEndpointResponse -> Bool
/= :: CreatePlatformEndpointResponse
-> CreatePlatformEndpointResponse -> Bool
Prelude.Eq, ReadPrec [CreatePlatformEndpointResponse]
ReadPrec CreatePlatformEndpointResponse
Int -> ReadS CreatePlatformEndpointResponse
ReadS [CreatePlatformEndpointResponse]
(Int -> ReadS CreatePlatformEndpointResponse)
-> ReadS [CreatePlatformEndpointResponse]
-> ReadPrec CreatePlatformEndpointResponse
-> ReadPrec [CreatePlatformEndpointResponse]
-> Read CreatePlatformEndpointResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS CreatePlatformEndpointResponse
readsPrec :: Int -> ReadS CreatePlatformEndpointResponse
$creadList :: ReadS [CreatePlatformEndpointResponse]
readList :: ReadS [CreatePlatformEndpointResponse]
$creadPrec :: ReadPrec CreatePlatformEndpointResponse
readPrec :: ReadPrec CreatePlatformEndpointResponse
$creadListPrec :: ReadPrec [CreatePlatformEndpointResponse]
readListPrec :: ReadPrec [CreatePlatformEndpointResponse]
Prelude.Read, Int -> CreatePlatformEndpointResponse -> ShowS
[CreatePlatformEndpointResponse] -> ShowS
CreatePlatformEndpointResponse -> String
(Int -> CreatePlatformEndpointResponse -> ShowS)
-> (CreatePlatformEndpointResponse -> String)
-> ([CreatePlatformEndpointResponse] -> ShowS)
-> Show CreatePlatformEndpointResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CreatePlatformEndpointResponse -> ShowS
showsPrec :: Int -> CreatePlatformEndpointResponse -> ShowS
$cshow :: CreatePlatformEndpointResponse -> String
show :: CreatePlatformEndpointResponse -> String
$cshowList :: [CreatePlatformEndpointResponse] -> ShowS
showList :: [CreatePlatformEndpointResponse] -> ShowS
Prelude.Show, (forall x.
CreatePlatformEndpointResponse
-> Rep CreatePlatformEndpointResponse x)
-> (forall x.
Rep CreatePlatformEndpointResponse x
-> CreatePlatformEndpointResponse)
-> Generic CreatePlatformEndpointResponse
forall x.
Rep CreatePlatformEndpointResponse x
-> CreatePlatformEndpointResponse
forall x.
CreatePlatformEndpointResponse
-> Rep CreatePlatformEndpointResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
CreatePlatformEndpointResponse
-> Rep CreatePlatformEndpointResponse x
from :: forall x.
CreatePlatformEndpointResponse
-> Rep CreatePlatformEndpointResponse x
$cto :: forall x.
Rep CreatePlatformEndpointResponse x
-> CreatePlatformEndpointResponse
to :: forall x.
Rep CreatePlatformEndpointResponse x
-> CreatePlatformEndpointResponse
Prelude.Generic)
newCreatePlatformEndpointResponse ::
Prelude.Int ->
CreatePlatformEndpointResponse
newCreatePlatformEndpointResponse :: Int -> CreatePlatformEndpointResponse
newCreatePlatformEndpointResponse Int
pHttpStatus_ =
CreatePlatformEndpointResponse'
{ endpointArn :: Maybe Text
endpointArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
httpStatus :: Int
httpStatus = Int
pHttpStatus_
}
createPlatformEndpointResponse_endpointArn :: Lens.Lens' CreatePlatformEndpointResponse (Prelude.Maybe Prelude.Text)
createPlatformEndpointResponse_endpointArn :: Lens' CreatePlatformEndpointResponse (Maybe Text)
createPlatformEndpointResponse_endpointArn = (CreatePlatformEndpointResponse -> Maybe Text)
-> (CreatePlatformEndpointResponse
-> Maybe Text -> CreatePlatformEndpointResponse)
-> Lens' CreatePlatformEndpointResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePlatformEndpointResponse' {Maybe Text
endpointArn :: CreatePlatformEndpointResponse -> Maybe Text
endpointArn :: Maybe Text
endpointArn} -> Maybe Text
endpointArn) (\s :: CreatePlatformEndpointResponse
s@CreatePlatformEndpointResponse' {} Maybe Text
a -> CreatePlatformEndpointResponse
s {endpointArn = a} :: CreatePlatformEndpointResponse)
createPlatformEndpointResponse_httpStatus :: Lens.Lens' CreatePlatformEndpointResponse Prelude.Int
createPlatformEndpointResponse_httpStatus :: Lens' CreatePlatformEndpointResponse Int
createPlatformEndpointResponse_httpStatus = (CreatePlatformEndpointResponse -> Int)
-> (CreatePlatformEndpointResponse
-> Int -> CreatePlatformEndpointResponse)
-> Lens' CreatePlatformEndpointResponse Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePlatformEndpointResponse' {Int
httpStatus :: CreatePlatformEndpointResponse -> Int
httpStatus :: Int
httpStatus} -> Int
httpStatus) (\s :: CreatePlatformEndpointResponse
s@CreatePlatformEndpointResponse' {} Int
a -> CreatePlatformEndpointResponse
s {httpStatus = a} :: CreatePlatformEndpointResponse)
instance
Prelude.NFData
CreatePlatformEndpointResponse
where
rnf :: CreatePlatformEndpointResponse -> ()
rnf CreatePlatformEndpointResponse' {Int
Maybe Text
endpointArn :: CreatePlatformEndpointResponse -> Maybe Text
httpStatus :: CreatePlatformEndpointResponse -> Int
endpointArn :: Maybe Text
httpStatus :: Int
..} =
Maybe Text -> ()
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endpointArn () -> () -> ()
forall a b. a -> b -> b
`Prelude.seq`
Int -> ()
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus