{-# 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.GetDashboardEmbedUrl
(
GetDashboardEmbedUrl (..),
newGetDashboardEmbedUrl,
getDashboardEmbedUrl_sessionLifetimeInMinutes,
getDashboardEmbedUrl_statePersistenceEnabled,
getDashboardEmbedUrl_namespace,
getDashboardEmbedUrl_additionalDashboardIds,
getDashboardEmbedUrl_undoRedoDisabled,
getDashboardEmbedUrl_userArn,
getDashboardEmbedUrl_resetDisabled,
getDashboardEmbedUrl_awsAccountId,
getDashboardEmbedUrl_dashboardId,
getDashboardEmbedUrl_identityType,
GetDashboardEmbedUrlResponse (..),
newGetDashboardEmbedUrlResponse,
getDashboardEmbedUrlResponse_requestId,
getDashboardEmbedUrlResponse_embedUrl,
getDashboardEmbedUrlResponse_status,
)
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 GetDashboardEmbedUrl = GetDashboardEmbedUrl'
{
GetDashboardEmbedUrl -> Maybe Natural
sessionLifetimeInMinutes :: Prelude.Maybe Prelude.Natural,
GetDashboardEmbedUrl -> Maybe Bool
statePersistenceEnabled :: Prelude.Maybe Prelude.Bool,
GetDashboardEmbedUrl -> Maybe Text
namespace :: Prelude.Maybe Prelude.Text,
GetDashboardEmbedUrl -> Maybe (NonEmpty Text)
additionalDashboardIds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
GetDashboardEmbedUrl -> Maybe Bool
undoRedoDisabled :: Prelude.Maybe Prelude.Bool,
GetDashboardEmbedUrl -> Maybe Text
userArn :: Prelude.Maybe Prelude.Text,
GetDashboardEmbedUrl -> Maybe Bool
resetDisabled :: Prelude.Maybe Prelude.Bool,
GetDashboardEmbedUrl -> Text
awsAccountId :: Prelude.Text,
GetDashboardEmbedUrl -> Text
dashboardId :: Prelude.Text,
GetDashboardEmbedUrl -> EmbeddingIdentityType
identityType :: EmbeddingIdentityType
}
deriving (GetDashboardEmbedUrl -> GetDashboardEmbedUrl -> Bool
(GetDashboardEmbedUrl -> GetDashboardEmbedUrl -> Bool)
-> (GetDashboardEmbedUrl -> GetDashboardEmbedUrl -> Bool)
-> Eq GetDashboardEmbedUrl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDashboardEmbedUrl -> GetDashboardEmbedUrl -> Bool
$c/= :: GetDashboardEmbedUrl -> GetDashboardEmbedUrl -> Bool
== :: GetDashboardEmbedUrl -> GetDashboardEmbedUrl -> Bool
$c== :: GetDashboardEmbedUrl -> GetDashboardEmbedUrl -> Bool
Prelude.Eq, ReadPrec [GetDashboardEmbedUrl]
ReadPrec GetDashboardEmbedUrl
Int -> ReadS GetDashboardEmbedUrl
ReadS [GetDashboardEmbedUrl]
(Int -> ReadS GetDashboardEmbedUrl)
-> ReadS [GetDashboardEmbedUrl]
-> ReadPrec GetDashboardEmbedUrl
-> ReadPrec [GetDashboardEmbedUrl]
-> Read GetDashboardEmbedUrl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDashboardEmbedUrl]
$creadListPrec :: ReadPrec [GetDashboardEmbedUrl]
readPrec :: ReadPrec GetDashboardEmbedUrl
$creadPrec :: ReadPrec GetDashboardEmbedUrl
readList :: ReadS [GetDashboardEmbedUrl]
$creadList :: ReadS [GetDashboardEmbedUrl]
readsPrec :: Int -> ReadS GetDashboardEmbedUrl
$creadsPrec :: Int -> ReadS GetDashboardEmbedUrl
Prelude.Read, Int -> GetDashboardEmbedUrl -> ShowS
[GetDashboardEmbedUrl] -> ShowS
GetDashboardEmbedUrl -> String
(Int -> GetDashboardEmbedUrl -> ShowS)
-> (GetDashboardEmbedUrl -> String)
-> ([GetDashboardEmbedUrl] -> ShowS)
-> Show GetDashboardEmbedUrl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDashboardEmbedUrl] -> ShowS
$cshowList :: [GetDashboardEmbedUrl] -> ShowS
show :: GetDashboardEmbedUrl -> String
$cshow :: GetDashboardEmbedUrl -> String
showsPrec :: Int -> GetDashboardEmbedUrl -> ShowS
$cshowsPrec :: Int -> GetDashboardEmbedUrl -> ShowS
Prelude.Show, (forall x. GetDashboardEmbedUrl -> Rep GetDashboardEmbedUrl x)
-> (forall x. Rep GetDashboardEmbedUrl x -> GetDashboardEmbedUrl)
-> Generic GetDashboardEmbedUrl
forall x. Rep GetDashboardEmbedUrl x -> GetDashboardEmbedUrl
forall x. GetDashboardEmbedUrl -> Rep GetDashboardEmbedUrl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetDashboardEmbedUrl x -> GetDashboardEmbedUrl
$cfrom :: forall x. GetDashboardEmbedUrl -> Rep GetDashboardEmbedUrl x
Prelude.Generic)
newGetDashboardEmbedUrl ::
Prelude.Text ->
Prelude.Text ->
EmbeddingIdentityType ->
GetDashboardEmbedUrl
newGetDashboardEmbedUrl :: Text -> Text -> EmbeddingIdentityType -> GetDashboardEmbedUrl
newGetDashboardEmbedUrl
Text
pAwsAccountId_
Text
pDashboardId_
EmbeddingIdentityType
pIdentityType_ =
GetDashboardEmbedUrl' :: Maybe Natural
-> Maybe Bool
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Text
-> Text
-> EmbeddingIdentityType
-> GetDashboardEmbedUrl
GetDashboardEmbedUrl'
{ $sel:sessionLifetimeInMinutes:GetDashboardEmbedUrl' :: Maybe Natural
sessionLifetimeInMinutes =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:statePersistenceEnabled:GetDashboardEmbedUrl' :: Maybe Bool
statePersistenceEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:namespace:GetDashboardEmbedUrl' :: Maybe Text
namespace = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:additionalDashboardIds:GetDashboardEmbedUrl' :: Maybe (NonEmpty Text)
additionalDashboardIds = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:undoRedoDisabled:GetDashboardEmbedUrl' :: Maybe Bool
undoRedoDisabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:userArn:GetDashboardEmbedUrl' :: Maybe Text
userArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resetDisabled:GetDashboardEmbedUrl' :: Maybe Bool
resetDisabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:awsAccountId:GetDashboardEmbedUrl' :: Text
awsAccountId = Text
pAwsAccountId_,
$sel:dashboardId:GetDashboardEmbedUrl' :: Text
dashboardId = Text
pDashboardId_,
$sel:identityType:GetDashboardEmbedUrl' :: EmbeddingIdentityType
identityType = EmbeddingIdentityType
pIdentityType_
}
getDashboardEmbedUrl_sessionLifetimeInMinutes :: Lens.Lens' GetDashboardEmbedUrl (Prelude.Maybe Prelude.Natural)
getDashboardEmbedUrl_sessionLifetimeInMinutes :: (Maybe Natural -> f (Maybe Natural))
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_sessionLifetimeInMinutes = (GetDashboardEmbedUrl -> Maybe Natural)
-> (GetDashboardEmbedUrl -> Maybe Natural -> GetDashboardEmbedUrl)
-> Lens
GetDashboardEmbedUrl
GetDashboardEmbedUrl
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Maybe Natural
sessionLifetimeInMinutes :: Maybe Natural
$sel:sessionLifetimeInMinutes:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Natural
sessionLifetimeInMinutes} -> Maybe Natural
sessionLifetimeInMinutes) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Maybe Natural
a -> GetDashboardEmbedUrl
s {$sel:sessionLifetimeInMinutes:GetDashboardEmbedUrl' :: Maybe Natural
sessionLifetimeInMinutes = Maybe Natural
a} :: GetDashboardEmbedUrl)
getDashboardEmbedUrl_statePersistenceEnabled :: Lens.Lens' GetDashboardEmbedUrl (Prelude.Maybe Prelude.Bool)
getDashboardEmbedUrl_statePersistenceEnabled :: (Maybe Bool -> f (Maybe Bool))
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_statePersistenceEnabled = (GetDashboardEmbedUrl -> Maybe Bool)
-> (GetDashboardEmbedUrl -> Maybe Bool -> GetDashboardEmbedUrl)
-> Lens
GetDashboardEmbedUrl GetDashboardEmbedUrl (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Maybe Bool
statePersistenceEnabled :: Maybe Bool
$sel:statePersistenceEnabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
statePersistenceEnabled} -> Maybe Bool
statePersistenceEnabled) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Maybe Bool
a -> GetDashboardEmbedUrl
s {$sel:statePersistenceEnabled:GetDashboardEmbedUrl' :: Maybe Bool
statePersistenceEnabled = Maybe Bool
a} :: GetDashboardEmbedUrl)
getDashboardEmbedUrl_namespace :: Lens.Lens' GetDashboardEmbedUrl (Prelude.Maybe Prelude.Text)
getDashboardEmbedUrl_namespace :: (Maybe Text -> f (Maybe Text))
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_namespace = (GetDashboardEmbedUrl -> Maybe Text)
-> (GetDashboardEmbedUrl -> Maybe Text -> GetDashboardEmbedUrl)
-> Lens
GetDashboardEmbedUrl GetDashboardEmbedUrl (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Maybe Text
namespace :: Maybe Text
$sel:namespace:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Text
namespace} -> Maybe Text
namespace) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Maybe Text
a -> GetDashboardEmbedUrl
s {$sel:namespace:GetDashboardEmbedUrl' :: Maybe Text
namespace = Maybe Text
a} :: GetDashboardEmbedUrl)
getDashboardEmbedUrl_additionalDashboardIds :: Lens.Lens' GetDashboardEmbedUrl (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
getDashboardEmbedUrl_additionalDashboardIds :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_additionalDashboardIds = (GetDashboardEmbedUrl -> Maybe (NonEmpty Text))
-> (GetDashboardEmbedUrl
-> Maybe (NonEmpty Text) -> GetDashboardEmbedUrl)
-> Lens
GetDashboardEmbedUrl
GetDashboardEmbedUrl
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Maybe (NonEmpty Text)
additionalDashboardIds :: Maybe (NonEmpty Text)
$sel:additionalDashboardIds:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe (NonEmpty Text)
additionalDashboardIds} -> Maybe (NonEmpty Text)
additionalDashboardIds) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Maybe (NonEmpty Text)
a -> GetDashboardEmbedUrl
s {$sel:additionalDashboardIds:GetDashboardEmbedUrl' :: Maybe (NonEmpty Text)
additionalDashboardIds = Maybe (NonEmpty Text)
a} :: GetDashboardEmbedUrl) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> GetDashboardEmbedUrl
-> f GetDashboardEmbedUrl
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getDashboardEmbedUrl_undoRedoDisabled :: Lens.Lens' GetDashboardEmbedUrl (Prelude.Maybe Prelude.Bool)
getDashboardEmbedUrl_undoRedoDisabled :: (Maybe Bool -> f (Maybe Bool))
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_undoRedoDisabled = (GetDashboardEmbedUrl -> Maybe Bool)
-> (GetDashboardEmbedUrl -> Maybe Bool -> GetDashboardEmbedUrl)
-> Lens
GetDashboardEmbedUrl GetDashboardEmbedUrl (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Maybe Bool
undoRedoDisabled :: Maybe Bool
$sel:undoRedoDisabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
undoRedoDisabled} -> Maybe Bool
undoRedoDisabled) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Maybe Bool
a -> GetDashboardEmbedUrl
s {$sel:undoRedoDisabled:GetDashboardEmbedUrl' :: Maybe Bool
undoRedoDisabled = Maybe Bool
a} :: GetDashboardEmbedUrl)
getDashboardEmbedUrl_userArn :: Lens.Lens' GetDashboardEmbedUrl (Prelude.Maybe Prelude.Text)
getDashboardEmbedUrl_userArn :: (Maybe Text -> f (Maybe Text))
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_userArn = (GetDashboardEmbedUrl -> Maybe Text)
-> (GetDashboardEmbedUrl -> Maybe Text -> GetDashboardEmbedUrl)
-> Lens
GetDashboardEmbedUrl GetDashboardEmbedUrl (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Maybe Text
userArn :: Maybe Text
$sel:userArn:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Text
userArn} -> Maybe Text
userArn) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Maybe Text
a -> GetDashboardEmbedUrl
s {$sel:userArn:GetDashboardEmbedUrl' :: Maybe Text
userArn = Maybe Text
a} :: GetDashboardEmbedUrl)
getDashboardEmbedUrl_resetDisabled :: Lens.Lens' GetDashboardEmbedUrl (Prelude.Maybe Prelude.Bool)
getDashboardEmbedUrl_resetDisabled :: (Maybe Bool -> f (Maybe Bool))
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_resetDisabled = (GetDashboardEmbedUrl -> Maybe Bool)
-> (GetDashboardEmbedUrl -> Maybe Bool -> GetDashboardEmbedUrl)
-> Lens
GetDashboardEmbedUrl GetDashboardEmbedUrl (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Maybe Bool
resetDisabled :: Maybe Bool
$sel:resetDisabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
resetDisabled} -> Maybe Bool
resetDisabled) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Maybe Bool
a -> GetDashboardEmbedUrl
s {$sel:resetDisabled:GetDashboardEmbedUrl' :: Maybe Bool
resetDisabled = Maybe Bool
a} :: GetDashboardEmbedUrl)
getDashboardEmbedUrl_awsAccountId :: Lens.Lens' GetDashboardEmbedUrl Prelude.Text
getDashboardEmbedUrl_awsAccountId :: (Text -> f Text) -> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_awsAccountId = (GetDashboardEmbedUrl -> Text)
-> (GetDashboardEmbedUrl -> Text -> GetDashboardEmbedUrl)
-> Lens GetDashboardEmbedUrl GetDashboardEmbedUrl Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Text
awsAccountId :: Text
$sel:awsAccountId:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Text
awsAccountId} -> Text
awsAccountId) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Text
a -> GetDashboardEmbedUrl
s {$sel:awsAccountId:GetDashboardEmbedUrl' :: Text
awsAccountId = Text
a} :: GetDashboardEmbedUrl)
getDashboardEmbedUrl_dashboardId :: Lens.Lens' GetDashboardEmbedUrl Prelude.Text
getDashboardEmbedUrl_dashboardId :: (Text -> f Text) -> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_dashboardId = (GetDashboardEmbedUrl -> Text)
-> (GetDashboardEmbedUrl -> Text -> GetDashboardEmbedUrl)
-> Lens GetDashboardEmbedUrl GetDashboardEmbedUrl Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {Text
dashboardId :: Text
$sel:dashboardId:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Text
dashboardId} -> Text
dashboardId) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} Text
a -> GetDashboardEmbedUrl
s {$sel:dashboardId:GetDashboardEmbedUrl' :: Text
dashboardId = Text
a} :: GetDashboardEmbedUrl)
getDashboardEmbedUrl_identityType :: Lens.Lens' GetDashboardEmbedUrl EmbeddingIdentityType
getDashboardEmbedUrl_identityType :: (EmbeddingIdentityType -> f EmbeddingIdentityType)
-> GetDashboardEmbedUrl -> f GetDashboardEmbedUrl
getDashboardEmbedUrl_identityType = (GetDashboardEmbedUrl -> EmbeddingIdentityType)
-> (GetDashboardEmbedUrl
-> EmbeddingIdentityType -> GetDashboardEmbedUrl)
-> Lens
GetDashboardEmbedUrl
GetDashboardEmbedUrl
EmbeddingIdentityType
EmbeddingIdentityType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrl' {EmbeddingIdentityType
identityType :: EmbeddingIdentityType
$sel:identityType:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> EmbeddingIdentityType
identityType} -> EmbeddingIdentityType
identityType) (\s :: GetDashboardEmbedUrl
s@GetDashboardEmbedUrl' {} EmbeddingIdentityType
a -> GetDashboardEmbedUrl
s {$sel:identityType:GetDashboardEmbedUrl' :: EmbeddingIdentityType
identityType = EmbeddingIdentityType
a} :: GetDashboardEmbedUrl)
instance Core.AWSRequest GetDashboardEmbedUrl where
type
AWSResponse GetDashboardEmbedUrl =
GetDashboardEmbedUrlResponse
request :: GetDashboardEmbedUrl -> Request GetDashboardEmbedUrl
request = Service -> GetDashboardEmbedUrl -> Request GetDashboardEmbedUrl
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetDashboardEmbedUrl
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDashboardEmbedUrl)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetDashboardEmbedUrl))
-> Logger
-> Service
-> Proxy GetDashboardEmbedUrl
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDashboardEmbedUrl)))
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
-> Maybe (Sensitive Text) -> Int -> GetDashboardEmbedUrlResponse
GetDashboardEmbedUrlResponse'
(Maybe Text
-> Maybe (Sensitive Text) -> Int -> GetDashboardEmbedUrlResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive Text) -> Int -> GetDashboardEmbedUrlResponse)
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
"RequestId")
Either
String
(Maybe (Sensitive Text) -> Int -> GetDashboardEmbedUrlResponse)
-> Either String (Maybe (Sensitive Text))
-> Either String (Int -> GetDashboardEmbedUrlResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EmbedUrl")
Either String (Int -> GetDashboardEmbedUrlResponse)
-> Either String Int -> Either String GetDashboardEmbedUrlResponse
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 GetDashboardEmbedUrl
instance Prelude.NFData GetDashboardEmbedUrl
instance Core.ToHeaders GetDashboardEmbedUrl where
toHeaders :: GetDashboardEmbedUrl -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetDashboardEmbedUrl -> 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.ToPath GetDashboardEmbedUrl where
toPath :: GetDashboardEmbedUrl -> ByteString
toPath GetDashboardEmbedUrl' {Maybe Bool
Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Text
EmbeddingIdentityType
identityType :: EmbeddingIdentityType
dashboardId :: Text
awsAccountId :: Text
resetDisabled :: Maybe Bool
userArn :: Maybe Text
undoRedoDisabled :: Maybe Bool
additionalDashboardIds :: Maybe (NonEmpty Text)
namespace :: Maybe Text
statePersistenceEnabled :: Maybe Bool
sessionLifetimeInMinutes :: Maybe Natural
$sel:identityType:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> EmbeddingIdentityType
$sel:dashboardId:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Text
$sel:awsAccountId:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Text
$sel:resetDisabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
$sel:userArn:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Text
$sel:undoRedoDisabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
$sel:additionalDashboardIds:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe (NonEmpty Text)
$sel:namespace:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Text
$sel:statePersistenceEnabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
$sel:sessionLifetimeInMinutes:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> 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
"/dashboards/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
dashboardId,
ByteString
"/embed-url"
]
instance Core.ToQuery GetDashboardEmbedUrl where
toQuery :: GetDashboardEmbedUrl -> QueryString
toQuery GetDashboardEmbedUrl' {Maybe Bool
Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Text
EmbeddingIdentityType
identityType :: EmbeddingIdentityType
dashboardId :: Text
awsAccountId :: Text
resetDisabled :: Maybe Bool
userArn :: Maybe Text
undoRedoDisabled :: Maybe Bool
additionalDashboardIds :: Maybe (NonEmpty Text)
namespace :: Maybe Text
statePersistenceEnabled :: Maybe Bool
sessionLifetimeInMinutes :: Maybe Natural
$sel:identityType:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> EmbeddingIdentityType
$sel:dashboardId:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Text
$sel:awsAccountId:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Text
$sel:resetDisabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
$sel:userArn:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Text
$sel:undoRedoDisabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
$sel:additionalDashboardIds:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe (NonEmpty Text)
$sel:namespace:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Text
$sel:statePersistenceEnabled:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Bool
$sel:sessionLifetimeInMinutes:GetDashboardEmbedUrl' :: GetDashboardEmbedUrl -> Maybe Natural
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"session-lifetime" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
sessionLifetimeInMinutes,
ByteString
"state-persistence-enabled"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
statePersistenceEnabled,
ByteString
"namespace" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
namespace,
ByteString
"additional-dashboard-ids"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> NonEmpty Text -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
(NonEmpty Text -> QueryString)
-> Maybe (NonEmpty Text) -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
additionalDashboardIds
),
ByteString
"undo-redo-disabled" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
undoRedoDisabled,
ByteString
"user-arn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
userArn,
ByteString
"reset-disabled" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
resetDisabled,
ByteString
"creds-type" ByteString -> EmbeddingIdentityType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: EmbeddingIdentityType
identityType
]
data GetDashboardEmbedUrlResponse = GetDashboardEmbedUrlResponse'
{
GetDashboardEmbedUrlResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
GetDashboardEmbedUrlResponse -> Maybe (Sensitive Text)
embedUrl :: Prelude.Maybe (Core.Sensitive Prelude.Text),
GetDashboardEmbedUrlResponse -> Int
status :: Prelude.Int
}
deriving (GetDashboardEmbedUrlResponse
-> GetDashboardEmbedUrlResponse -> Bool
(GetDashboardEmbedUrlResponse
-> GetDashboardEmbedUrlResponse -> Bool)
-> (GetDashboardEmbedUrlResponse
-> GetDashboardEmbedUrlResponse -> Bool)
-> Eq GetDashboardEmbedUrlResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDashboardEmbedUrlResponse
-> GetDashboardEmbedUrlResponse -> Bool
$c/= :: GetDashboardEmbedUrlResponse
-> GetDashboardEmbedUrlResponse -> Bool
== :: GetDashboardEmbedUrlResponse
-> GetDashboardEmbedUrlResponse -> Bool
$c== :: GetDashboardEmbedUrlResponse
-> GetDashboardEmbedUrlResponse -> Bool
Prelude.Eq, Int -> GetDashboardEmbedUrlResponse -> ShowS
[GetDashboardEmbedUrlResponse] -> ShowS
GetDashboardEmbedUrlResponse -> String
(Int -> GetDashboardEmbedUrlResponse -> ShowS)
-> (GetDashboardEmbedUrlResponse -> String)
-> ([GetDashboardEmbedUrlResponse] -> ShowS)
-> Show GetDashboardEmbedUrlResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDashboardEmbedUrlResponse] -> ShowS
$cshowList :: [GetDashboardEmbedUrlResponse] -> ShowS
show :: GetDashboardEmbedUrlResponse -> String
$cshow :: GetDashboardEmbedUrlResponse -> String
showsPrec :: Int -> GetDashboardEmbedUrlResponse -> ShowS
$cshowsPrec :: Int -> GetDashboardEmbedUrlResponse -> ShowS
Prelude.Show, (forall x.
GetDashboardEmbedUrlResponse -> Rep GetDashboardEmbedUrlResponse x)
-> (forall x.
Rep GetDashboardEmbedUrlResponse x -> GetDashboardEmbedUrlResponse)
-> Generic GetDashboardEmbedUrlResponse
forall x.
Rep GetDashboardEmbedUrlResponse x -> GetDashboardEmbedUrlResponse
forall x.
GetDashboardEmbedUrlResponse -> Rep GetDashboardEmbedUrlResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDashboardEmbedUrlResponse x -> GetDashboardEmbedUrlResponse
$cfrom :: forall x.
GetDashboardEmbedUrlResponse -> Rep GetDashboardEmbedUrlResponse x
Prelude.Generic)
newGetDashboardEmbedUrlResponse ::
Prelude.Int ->
GetDashboardEmbedUrlResponse
newGetDashboardEmbedUrlResponse :: Int -> GetDashboardEmbedUrlResponse
newGetDashboardEmbedUrlResponse Int
pStatus_ =
GetDashboardEmbedUrlResponse' :: Maybe Text
-> Maybe (Sensitive Text) -> Int -> GetDashboardEmbedUrlResponse
GetDashboardEmbedUrlResponse'
{ $sel:requestId:GetDashboardEmbedUrlResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:embedUrl:GetDashboardEmbedUrlResponse' :: Maybe (Sensitive Text)
embedUrl = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:status:GetDashboardEmbedUrlResponse' :: Int
status = Int
pStatus_
}
getDashboardEmbedUrlResponse_requestId :: Lens.Lens' GetDashboardEmbedUrlResponse (Prelude.Maybe Prelude.Text)
getDashboardEmbedUrlResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> GetDashboardEmbedUrlResponse -> f GetDashboardEmbedUrlResponse
getDashboardEmbedUrlResponse_requestId = (GetDashboardEmbedUrlResponse -> Maybe Text)
-> (GetDashboardEmbedUrlResponse
-> Maybe Text -> GetDashboardEmbedUrlResponse)
-> Lens
GetDashboardEmbedUrlResponse
GetDashboardEmbedUrlResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrlResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:GetDashboardEmbedUrlResponse' :: GetDashboardEmbedUrlResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: GetDashboardEmbedUrlResponse
s@GetDashboardEmbedUrlResponse' {} Maybe Text
a -> GetDashboardEmbedUrlResponse
s {$sel:requestId:GetDashboardEmbedUrlResponse' :: Maybe Text
requestId = Maybe Text
a} :: GetDashboardEmbedUrlResponse)
getDashboardEmbedUrlResponse_embedUrl :: Lens.Lens' GetDashboardEmbedUrlResponse (Prelude.Maybe Prelude.Text)
getDashboardEmbedUrlResponse_embedUrl :: (Maybe Text -> f (Maybe Text))
-> GetDashboardEmbedUrlResponse -> f GetDashboardEmbedUrlResponse
getDashboardEmbedUrlResponse_embedUrl = (GetDashboardEmbedUrlResponse -> Maybe (Sensitive Text))
-> (GetDashboardEmbedUrlResponse
-> Maybe (Sensitive Text) -> GetDashboardEmbedUrlResponse)
-> Lens
GetDashboardEmbedUrlResponse
GetDashboardEmbedUrlResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrlResponse' {Maybe (Sensitive Text)
embedUrl :: Maybe (Sensitive Text)
$sel:embedUrl:GetDashboardEmbedUrlResponse' :: GetDashboardEmbedUrlResponse -> Maybe (Sensitive Text)
embedUrl} -> Maybe (Sensitive Text)
embedUrl) (\s :: GetDashboardEmbedUrlResponse
s@GetDashboardEmbedUrlResponse' {} Maybe (Sensitive Text)
a -> GetDashboardEmbedUrlResponse
s {$sel:embedUrl:GetDashboardEmbedUrlResponse' :: Maybe (Sensitive Text)
embedUrl = Maybe (Sensitive Text)
a} :: GetDashboardEmbedUrlResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> GetDashboardEmbedUrlResponse -> f GetDashboardEmbedUrlResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> GetDashboardEmbedUrlResponse
-> f GetDashboardEmbedUrlResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
getDashboardEmbedUrlResponse_status :: Lens.Lens' GetDashboardEmbedUrlResponse Prelude.Int
getDashboardEmbedUrlResponse_status :: (Int -> f Int)
-> GetDashboardEmbedUrlResponse -> f GetDashboardEmbedUrlResponse
getDashboardEmbedUrlResponse_status = (GetDashboardEmbedUrlResponse -> Int)
-> (GetDashboardEmbedUrlResponse
-> Int -> GetDashboardEmbedUrlResponse)
-> Lens
GetDashboardEmbedUrlResponse GetDashboardEmbedUrlResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDashboardEmbedUrlResponse' {Int
status :: Int
$sel:status:GetDashboardEmbedUrlResponse' :: GetDashboardEmbedUrlResponse -> Int
status} -> Int
status) (\s :: GetDashboardEmbedUrlResponse
s@GetDashboardEmbedUrlResponse' {} Int
a -> GetDashboardEmbedUrlResponse
s {$sel:status:GetDashboardEmbedUrlResponse' :: Int
status = Int
a} :: GetDashboardEmbedUrlResponse)
instance Prelude.NFData GetDashboardEmbedUrlResponse