{-# 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.QuickSight.GenerateEmbedUrlForRegisteredUser
(
GenerateEmbedUrlForRegisteredUser (..),
newGenerateEmbedUrlForRegisteredUser,
generateEmbedUrlForRegisteredUser_sessionLifetimeInMinutes,
generateEmbedUrlForRegisteredUser_awsAccountId,
generateEmbedUrlForRegisteredUser_userArn,
generateEmbedUrlForRegisteredUser_experienceConfiguration,
GenerateEmbedUrlForRegisteredUserResponse (..),
newGenerateEmbedUrlForRegisteredUserResponse,
generateEmbedUrlForRegisteredUserResponse_status,
generateEmbedUrlForRegisteredUserResponse_embedUrl,
generateEmbedUrlForRegisteredUserResponse_requestId,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GenerateEmbedUrlForRegisteredUser = GenerateEmbedUrlForRegisteredUser'
{
GenerateEmbedUrlForRegisteredUser -> Maybe Natural
sessionLifetimeInMinutes :: Prelude.Maybe Prelude.Natural,
GenerateEmbedUrlForRegisteredUser -> Text
awsAccountId :: Prelude.Text,
GenerateEmbedUrlForRegisteredUser -> Text
userArn :: Prelude.Text,
GenerateEmbedUrlForRegisteredUser
-> RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration :: RegisteredUserEmbeddingExperienceConfiguration
}
deriving (GenerateEmbedUrlForRegisteredUser
-> GenerateEmbedUrlForRegisteredUser -> Bool
(GenerateEmbedUrlForRegisteredUser
-> GenerateEmbedUrlForRegisteredUser -> Bool)
-> (GenerateEmbedUrlForRegisteredUser
-> GenerateEmbedUrlForRegisteredUser -> Bool)
-> Eq GenerateEmbedUrlForRegisteredUser
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GenerateEmbedUrlForRegisteredUser
-> GenerateEmbedUrlForRegisteredUser -> Bool
$c/= :: GenerateEmbedUrlForRegisteredUser
-> GenerateEmbedUrlForRegisteredUser -> Bool
== :: GenerateEmbedUrlForRegisteredUser
-> GenerateEmbedUrlForRegisteredUser -> Bool
$c== :: GenerateEmbedUrlForRegisteredUser
-> GenerateEmbedUrlForRegisteredUser -> Bool
Prelude.Eq, ReadPrec [GenerateEmbedUrlForRegisteredUser]
ReadPrec GenerateEmbedUrlForRegisteredUser
Int -> ReadS GenerateEmbedUrlForRegisteredUser
ReadS [GenerateEmbedUrlForRegisteredUser]
(Int -> ReadS GenerateEmbedUrlForRegisteredUser)
-> ReadS [GenerateEmbedUrlForRegisteredUser]
-> ReadPrec GenerateEmbedUrlForRegisteredUser
-> ReadPrec [GenerateEmbedUrlForRegisteredUser]
-> Read GenerateEmbedUrlForRegisteredUser
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GenerateEmbedUrlForRegisteredUser]
$creadListPrec :: ReadPrec [GenerateEmbedUrlForRegisteredUser]
readPrec :: ReadPrec GenerateEmbedUrlForRegisteredUser
$creadPrec :: ReadPrec GenerateEmbedUrlForRegisteredUser
readList :: ReadS [GenerateEmbedUrlForRegisteredUser]
$creadList :: ReadS [GenerateEmbedUrlForRegisteredUser]
readsPrec :: Int -> ReadS GenerateEmbedUrlForRegisteredUser
$creadsPrec :: Int -> ReadS GenerateEmbedUrlForRegisteredUser
Prelude.Read, Int -> GenerateEmbedUrlForRegisteredUser -> ShowS
[GenerateEmbedUrlForRegisteredUser] -> ShowS
GenerateEmbedUrlForRegisteredUser -> String
(Int -> GenerateEmbedUrlForRegisteredUser -> ShowS)
-> (GenerateEmbedUrlForRegisteredUser -> String)
-> ([GenerateEmbedUrlForRegisteredUser] -> ShowS)
-> Show GenerateEmbedUrlForRegisteredUser
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GenerateEmbedUrlForRegisteredUser] -> ShowS
$cshowList :: [GenerateEmbedUrlForRegisteredUser] -> ShowS
show :: GenerateEmbedUrlForRegisteredUser -> String
$cshow :: GenerateEmbedUrlForRegisteredUser -> String
showsPrec :: Int -> GenerateEmbedUrlForRegisteredUser -> ShowS
$cshowsPrec :: Int -> GenerateEmbedUrlForRegisteredUser -> ShowS
Prelude.Show, (forall x.
GenerateEmbedUrlForRegisteredUser
-> Rep GenerateEmbedUrlForRegisteredUser x)
-> (forall x.
Rep GenerateEmbedUrlForRegisteredUser x
-> GenerateEmbedUrlForRegisteredUser)
-> Generic GenerateEmbedUrlForRegisteredUser
forall x.
Rep GenerateEmbedUrlForRegisteredUser x
-> GenerateEmbedUrlForRegisteredUser
forall x.
GenerateEmbedUrlForRegisteredUser
-> Rep GenerateEmbedUrlForRegisteredUser x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GenerateEmbedUrlForRegisteredUser x
-> GenerateEmbedUrlForRegisteredUser
$cfrom :: forall x.
GenerateEmbedUrlForRegisteredUser
-> Rep GenerateEmbedUrlForRegisteredUser x
Prelude.Generic)
newGenerateEmbedUrlForRegisteredUser ::
Prelude.Text ->
Prelude.Text ->
RegisteredUserEmbeddingExperienceConfiguration ->
GenerateEmbedUrlForRegisteredUser
newGenerateEmbedUrlForRegisteredUser :: Text
-> Text
-> RegisteredUserEmbeddingExperienceConfiguration
-> GenerateEmbedUrlForRegisteredUser
newGenerateEmbedUrlForRegisteredUser
Text
pAwsAccountId_
Text
pUserArn_
RegisteredUserEmbeddingExperienceConfiguration
pExperienceConfiguration_ =
GenerateEmbedUrlForRegisteredUser' :: Maybe Natural
-> Text
-> Text
-> RegisteredUserEmbeddingExperienceConfiguration
-> GenerateEmbedUrlForRegisteredUser
GenerateEmbedUrlForRegisteredUser'
{ $sel:sessionLifetimeInMinutes:GenerateEmbedUrlForRegisteredUser' :: Maybe Natural
sessionLifetimeInMinutes =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:awsAccountId:GenerateEmbedUrlForRegisteredUser' :: Text
awsAccountId = Text
pAwsAccountId_,
$sel:userArn:GenerateEmbedUrlForRegisteredUser' :: Text
userArn = Text
pUserArn_,
$sel:experienceConfiguration:GenerateEmbedUrlForRegisteredUser' :: RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration =
RegisteredUserEmbeddingExperienceConfiguration
pExperienceConfiguration_
}
generateEmbedUrlForRegisteredUser_sessionLifetimeInMinutes :: Lens.Lens' GenerateEmbedUrlForRegisteredUser (Prelude.Maybe Prelude.Natural)
generateEmbedUrlForRegisteredUser_sessionLifetimeInMinutes :: (Maybe Natural -> f (Maybe Natural))
-> GenerateEmbedUrlForRegisteredUser
-> f GenerateEmbedUrlForRegisteredUser
generateEmbedUrlForRegisteredUser_sessionLifetimeInMinutes = (GenerateEmbedUrlForRegisteredUser -> Maybe Natural)
-> (GenerateEmbedUrlForRegisteredUser
-> Maybe Natural -> GenerateEmbedUrlForRegisteredUser)
-> Lens
GenerateEmbedUrlForRegisteredUser
GenerateEmbedUrlForRegisteredUser
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GenerateEmbedUrlForRegisteredUser' {Maybe Natural
sessionLifetimeInMinutes :: Maybe Natural
$sel:sessionLifetimeInMinutes:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Maybe Natural
sessionLifetimeInMinutes} -> Maybe Natural
sessionLifetimeInMinutes) (\s :: GenerateEmbedUrlForRegisteredUser
s@GenerateEmbedUrlForRegisteredUser' {} Maybe Natural
a -> GenerateEmbedUrlForRegisteredUser
s {$sel:sessionLifetimeInMinutes:GenerateEmbedUrlForRegisteredUser' :: Maybe Natural
sessionLifetimeInMinutes = Maybe Natural
a} :: GenerateEmbedUrlForRegisteredUser)
generateEmbedUrlForRegisteredUser_awsAccountId :: Lens.Lens' GenerateEmbedUrlForRegisteredUser Prelude.Text
generateEmbedUrlForRegisteredUser_awsAccountId :: (Text -> f Text)
-> GenerateEmbedUrlForRegisteredUser
-> f GenerateEmbedUrlForRegisteredUser
generateEmbedUrlForRegisteredUser_awsAccountId = (GenerateEmbedUrlForRegisteredUser -> Text)
-> (GenerateEmbedUrlForRegisteredUser
-> Text -> GenerateEmbedUrlForRegisteredUser)
-> Lens
GenerateEmbedUrlForRegisteredUser
GenerateEmbedUrlForRegisteredUser
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GenerateEmbedUrlForRegisteredUser' {Text
awsAccountId :: Text
$sel:awsAccountId:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Text
awsAccountId} -> Text
awsAccountId) (\s :: GenerateEmbedUrlForRegisteredUser
s@GenerateEmbedUrlForRegisteredUser' {} Text
a -> GenerateEmbedUrlForRegisteredUser
s {$sel:awsAccountId:GenerateEmbedUrlForRegisteredUser' :: Text
awsAccountId = Text
a} :: GenerateEmbedUrlForRegisteredUser)
generateEmbedUrlForRegisteredUser_userArn :: Lens.Lens' GenerateEmbedUrlForRegisteredUser Prelude.Text
generateEmbedUrlForRegisteredUser_userArn :: (Text -> f Text)
-> GenerateEmbedUrlForRegisteredUser
-> f GenerateEmbedUrlForRegisteredUser
generateEmbedUrlForRegisteredUser_userArn = (GenerateEmbedUrlForRegisteredUser -> Text)
-> (GenerateEmbedUrlForRegisteredUser
-> Text -> GenerateEmbedUrlForRegisteredUser)
-> Lens
GenerateEmbedUrlForRegisteredUser
GenerateEmbedUrlForRegisteredUser
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GenerateEmbedUrlForRegisteredUser' {Text
userArn :: Text
$sel:userArn:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Text
userArn} -> Text
userArn) (\s :: GenerateEmbedUrlForRegisteredUser
s@GenerateEmbedUrlForRegisteredUser' {} Text
a -> GenerateEmbedUrlForRegisteredUser
s {$sel:userArn:GenerateEmbedUrlForRegisteredUser' :: Text
userArn = Text
a} :: GenerateEmbedUrlForRegisteredUser)
generateEmbedUrlForRegisteredUser_experienceConfiguration :: Lens.Lens' GenerateEmbedUrlForRegisteredUser RegisteredUserEmbeddingExperienceConfiguration
generateEmbedUrlForRegisteredUser_experienceConfiguration :: (RegisteredUserEmbeddingExperienceConfiguration
-> f RegisteredUserEmbeddingExperienceConfiguration)
-> GenerateEmbedUrlForRegisteredUser
-> f GenerateEmbedUrlForRegisteredUser
generateEmbedUrlForRegisteredUser_experienceConfiguration = (GenerateEmbedUrlForRegisteredUser
-> RegisteredUserEmbeddingExperienceConfiguration)
-> (GenerateEmbedUrlForRegisteredUser
-> RegisteredUserEmbeddingExperienceConfiguration
-> GenerateEmbedUrlForRegisteredUser)
-> Lens
GenerateEmbedUrlForRegisteredUser
GenerateEmbedUrlForRegisteredUser
RegisteredUserEmbeddingExperienceConfiguration
RegisteredUserEmbeddingExperienceConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GenerateEmbedUrlForRegisteredUser' {RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration :: RegisteredUserEmbeddingExperienceConfiguration
$sel:experienceConfiguration:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser
-> RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration} -> RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration) (\s :: GenerateEmbedUrlForRegisteredUser
s@GenerateEmbedUrlForRegisteredUser' {} RegisteredUserEmbeddingExperienceConfiguration
a -> GenerateEmbedUrlForRegisteredUser
s {$sel:experienceConfiguration:GenerateEmbedUrlForRegisteredUser' :: RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration = RegisteredUserEmbeddingExperienceConfiguration
a} :: GenerateEmbedUrlForRegisteredUser)
instance
Core.AWSRequest
GenerateEmbedUrlForRegisteredUser
where
type
AWSResponse GenerateEmbedUrlForRegisteredUser =
GenerateEmbedUrlForRegisteredUserResponse
request :: GenerateEmbedUrlForRegisteredUser
-> Request GenerateEmbedUrlForRegisteredUser
request = Service
-> GenerateEmbedUrlForRegisteredUser
-> Request GenerateEmbedUrlForRegisteredUser
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GenerateEmbedUrlForRegisteredUser
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GenerateEmbedUrlForRegisteredUser)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GenerateEmbedUrlForRegisteredUser))
-> Logger
-> Service
-> Proxy GenerateEmbedUrlForRegisteredUser
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GenerateEmbedUrlForRegisteredUser)))
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 ->
Int
-> Sensitive Text
-> Text
-> GenerateEmbedUrlForRegisteredUserResponse
GenerateEmbedUrlForRegisteredUserResponse'
(Int
-> Sensitive Text
-> Text
-> GenerateEmbedUrlForRegisteredUserResponse)
-> Either String Int
-> Either
String
(Sensitive Text
-> Text -> GenerateEmbedUrlForRegisteredUserResponse)
forall (f :: * -> *) a b. Functor 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))
Either
String
(Sensitive Text
-> Text -> GenerateEmbedUrlForRegisteredUserResponse)
-> Either String (Sensitive Text)
-> Either
String (Text -> GenerateEmbedUrlForRegisteredUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Sensitive Text)
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"EmbedUrl")
Either String (Text -> GenerateEmbedUrlForRegisteredUserResponse)
-> Either String Text
-> Either String GenerateEmbedUrlForRegisteredUserResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"RequestId")
)
instance
Prelude.Hashable
GenerateEmbedUrlForRegisteredUser
instance
Prelude.NFData
GenerateEmbedUrlForRegisteredUser
instance
Core.ToHeaders
GenerateEmbedUrlForRegisteredUser
where
toHeaders :: GenerateEmbedUrlForRegisteredUser -> ResponseHeaders
toHeaders =
ResponseHeaders
-> GenerateEmbedUrlForRegisteredUser -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance
Core.ToJSON
GenerateEmbedUrlForRegisteredUser
where
toJSON :: GenerateEmbedUrlForRegisteredUser -> Value
toJSON GenerateEmbedUrlForRegisteredUser' {Maybe Natural
Text
RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration :: RegisteredUserEmbeddingExperienceConfiguration
userArn :: Text
awsAccountId :: Text
sessionLifetimeInMinutes :: Maybe Natural
$sel:experienceConfiguration:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser
-> RegisteredUserEmbeddingExperienceConfiguration
$sel:userArn:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Text
$sel:awsAccountId:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Text
$sel:sessionLifetimeInMinutes:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Maybe Natural
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"SessionLifetimeInMinutes" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
sessionLifetimeInMinutes,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"UserArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ExperienceConfiguration"
Text -> RegisteredUserEmbeddingExperienceConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration
)
]
)
instance
Core.ToPath
GenerateEmbedUrlForRegisteredUser
where
toPath :: GenerateEmbedUrlForRegisteredUser -> ByteString
toPath GenerateEmbedUrlForRegisteredUser' {Maybe Natural
Text
RegisteredUserEmbeddingExperienceConfiguration
experienceConfiguration :: RegisteredUserEmbeddingExperienceConfiguration
userArn :: Text
awsAccountId :: Text
sessionLifetimeInMinutes :: Maybe Natural
$sel:experienceConfiguration:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser
-> RegisteredUserEmbeddingExperienceConfiguration
$sel:userArn:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Text
$sel:awsAccountId:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Text
$sel:sessionLifetimeInMinutes:GenerateEmbedUrlForRegisteredUser' :: GenerateEmbedUrlForRegisteredUser -> Maybe Natural
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/accounts/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
ByteString
"/embed-url/registered-user"
]
instance
Core.ToQuery
GenerateEmbedUrlForRegisteredUser
where
toQuery :: GenerateEmbedUrlForRegisteredUser -> QueryString
toQuery = QueryString -> GenerateEmbedUrlForRegisteredUser -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GenerateEmbedUrlForRegisteredUserResponse = GenerateEmbedUrlForRegisteredUserResponse'
{
GenerateEmbedUrlForRegisteredUserResponse -> Int
status :: Prelude.Int,
GenerateEmbedUrlForRegisteredUserResponse -> Sensitive Text
embedUrl :: Core.Sensitive Prelude.Text,
GenerateEmbedUrlForRegisteredUserResponse -> Text
requestId :: Prelude.Text
}
deriving (GenerateEmbedUrlForRegisteredUserResponse
-> GenerateEmbedUrlForRegisteredUserResponse -> Bool
(GenerateEmbedUrlForRegisteredUserResponse
-> GenerateEmbedUrlForRegisteredUserResponse -> Bool)
-> (GenerateEmbedUrlForRegisteredUserResponse
-> GenerateEmbedUrlForRegisteredUserResponse -> Bool)
-> Eq GenerateEmbedUrlForRegisteredUserResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GenerateEmbedUrlForRegisteredUserResponse
-> GenerateEmbedUrlForRegisteredUserResponse -> Bool
$c/= :: GenerateEmbedUrlForRegisteredUserResponse
-> GenerateEmbedUrlForRegisteredUserResponse -> Bool
== :: GenerateEmbedUrlForRegisteredUserResponse
-> GenerateEmbedUrlForRegisteredUserResponse -> Bool
$c== :: GenerateEmbedUrlForRegisteredUserResponse
-> GenerateEmbedUrlForRegisteredUserResponse -> Bool
Prelude.Eq, Int -> GenerateEmbedUrlForRegisteredUserResponse -> ShowS
[GenerateEmbedUrlForRegisteredUserResponse] -> ShowS
GenerateEmbedUrlForRegisteredUserResponse -> String
(Int -> GenerateEmbedUrlForRegisteredUserResponse -> ShowS)
-> (GenerateEmbedUrlForRegisteredUserResponse -> String)
-> ([GenerateEmbedUrlForRegisteredUserResponse] -> ShowS)
-> Show GenerateEmbedUrlForRegisteredUserResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GenerateEmbedUrlForRegisteredUserResponse] -> ShowS
$cshowList :: [GenerateEmbedUrlForRegisteredUserResponse] -> ShowS
show :: GenerateEmbedUrlForRegisteredUserResponse -> String
$cshow :: GenerateEmbedUrlForRegisteredUserResponse -> String
showsPrec :: Int -> GenerateEmbedUrlForRegisteredUserResponse -> ShowS
$cshowsPrec :: Int -> GenerateEmbedUrlForRegisteredUserResponse -> ShowS
Prelude.Show, (forall x.
GenerateEmbedUrlForRegisteredUserResponse
-> Rep GenerateEmbedUrlForRegisteredUserResponse x)
-> (forall x.
Rep GenerateEmbedUrlForRegisteredUserResponse x
-> GenerateEmbedUrlForRegisteredUserResponse)
-> Generic GenerateEmbedUrlForRegisteredUserResponse
forall x.
Rep GenerateEmbedUrlForRegisteredUserResponse x
-> GenerateEmbedUrlForRegisteredUserResponse
forall x.
GenerateEmbedUrlForRegisteredUserResponse
-> Rep GenerateEmbedUrlForRegisteredUserResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GenerateEmbedUrlForRegisteredUserResponse x
-> GenerateEmbedUrlForRegisteredUserResponse
$cfrom :: forall x.
GenerateEmbedUrlForRegisteredUserResponse
-> Rep GenerateEmbedUrlForRegisteredUserResponse x
Prelude.Generic)
newGenerateEmbedUrlForRegisteredUserResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
GenerateEmbedUrlForRegisteredUserResponse
newGenerateEmbedUrlForRegisteredUserResponse :: Int -> Text -> Text -> GenerateEmbedUrlForRegisteredUserResponse
newGenerateEmbedUrlForRegisteredUserResponse
Int
pStatus_
Text
pEmbedUrl_
Text
pRequestId_ =
GenerateEmbedUrlForRegisteredUserResponse' :: Int
-> Sensitive Text
-> Text
-> GenerateEmbedUrlForRegisteredUserResponse
GenerateEmbedUrlForRegisteredUserResponse'
{ $sel:status:GenerateEmbedUrlForRegisteredUserResponse' :: Int
status =
Int
pStatus_,
$sel:embedUrl:GenerateEmbedUrlForRegisteredUserResponse' :: Sensitive Text
embedUrl =
Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive
(Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pEmbedUrl_,
$sel:requestId:GenerateEmbedUrlForRegisteredUserResponse' :: Text
requestId = Text
pRequestId_
}
generateEmbedUrlForRegisteredUserResponse_status :: Lens.Lens' GenerateEmbedUrlForRegisteredUserResponse Prelude.Int
generateEmbedUrlForRegisteredUserResponse_status :: (Int -> f Int)
-> GenerateEmbedUrlForRegisteredUserResponse
-> f GenerateEmbedUrlForRegisteredUserResponse
generateEmbedUrlForRegisteredUserResponse_status = (GenerateEmbedUrlForRegisteredUserResponse -> Int)
-> (GenerateEmbedUrlForRegisteredUserResponse
-> Int -> GenerateEmbedUrlForRegisteredUserResponse)
-> Lens
GenerateEmbedUrlForRegisteredUserResponse
GenerateEmbedUrlForRegisteredUserResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GenerateEmbedUrlForRegisteredUserResponse' {Int
status :: Int
$sel:status:GenerateEmbedUrlForRegisteredUserResponse' :: GenerateEmbedUrlForRegisteredUserResponse -> Int
status} -> Int
status) (\s :: GenerateEmbedUrlForRegisteredUserResponse
s@GenerateEmbedUrlForRegisteredUserResponse' {} Int
a -> GenerateEmbedUrlForRegisteredUserResponse
s {$sel:status:GenerateEmbedUrlForRegisteredUserResponse' :: Int
status = Int
a} :: GenerateEmbedUrlForRegisteredUserResponse)
generateEmbedUrlForRegisteredUserResponse_embedUrl :: Lens.Lens' GenerateEmbedUrlForRegisteredUserResponse Prelude.Text
generateEmbedUrlForRegisteredUserResponse_embedUrl :: (Text -> f Text)
-> GenerateEmbedUrlForRegisteredUserResponse
-> f GenerateEmbedUrlForRegisteredUserResponse
generateEmbedUrlForRegisteredUserResponse_embedUrl = (GenerateEmbedUrlForRegisteredUserResponse -> Sensitive Text)
-> (GenerateEmbedUrlForRegisteredUserResponse
-> Sensitive Text -> GenerateEmbedUrlForRegisteredUserResponse)
-> Lens
GenerateEmbedUrlForRegisteredUserResponse
GenerateEmbedUrlForRegisteredUserResponse
(Sensitive Text)
(Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GenerateEmbedUrlForRegisteredUserResponse' {Sensitive Text
embedUrl :: Sensitive Text
$sel:embedUrl:GenerateEmbedUrlForRegisteredUserResponse' :: GenerateEmbedUrlForRegisteredUserResponse -> Sensitive Text
embedUrl} -> Sensitive Text
embedUrl) (\s :: GenerateEmbedUrlForRegisteredUserResponse
s@GenerateEmbedUrlForRegisteredUserResponse' {} Sensitive Text
a -> GenerateEmbedUrlForRegisteredUserResponse
s {$sel:embedUrl:GenerateEmbedUrlForRegisteredUserResponse' :: Sensitive Text
embedUrl = Sensitive Text
a} :: GenerateEmbedUrlForRegisteredUserResponse) ((Sensitive Text -> f (Sensitive Text))
-> GenerateEmbedUrlForRegisteredUserResponse
-> f GenerateEmbedUrlForRegisteredUserResponse)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> GenerateEmbedUrlForRegisteredUserResponse
-> f GenerateEmbedUrlForRegisteredUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive
generateEmbedUrlForRegisteredUserResponse_requestId :: Lens.Lens' GenerateEmbedUrlForRegisteredUserResponse Prelude.Text
generateEmbedUrlForRegisteredUserResponse_requestId :: (Text -> f Text)
-> GenerateEmbedUrlForRegisteredUserResponse
-> f GenerateEmbedUrlForRegisteredUserResponse
generateEmbedUrlForRegisteredUserResponse_requestId = (GenerateEmbedUrlForRegisteredUserResponse -> Text)
-> (GenerateEmbedUrlForRegisteredUserResponse
-> Text -> GenerateEmbedUrlForRegisteredUserResponse)
-> Lens
GenerateEmbedUrlForRegisteredUserResponse
GenerateEmbedUrlForRegisteredUserResponse
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GenerateEmbedUrlForRegisteredUserResponse' {Text
requestId :: Text
$sel:requestId:GenerateEmbedUrlForRegisteredUserResponse' :: GenerateEmbedUrlForRegisteredUserResponse -> Text
requestId} -> Text
requestId) (\s :: GenerateEmbedUrlForRegisteredUserResponse
s@GenerateEmbedUrlForRegisteredUserResponse' {} Text
a -> GenerateEmbedUrlForRegisteredUserResponse
s {$sel:requestId:GenerateEmbedUrlForRegisteredUserResponse' :: Text
requestId = Text
a} :: GenerateEmbedUrlForRegisteredUserResponse)
instance
Prelude.NFData
GenerateEmbedUrlForRegisteredUserResponse