{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.QuickSight.GetDashboardEmbedUrl
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Generates a session URL and authorization code that you can use to embed
-- an Amazon Amazon QuickSight read-only dashboard in your web server code.
-- Before you use this command, make sure that you have configured the
-- dashboards and permissions.
--
-- Currently, you can use @GetDashboardEmbedURL@ only from the server, not
-- from the user\'s browser. The following rules apply to the combination
-- of URL and authorization code:
--
-- -   They must be used together.
--
-- -   They can be used one time only.
--
-- -   They are valid for 5 minutes after you run this command.
--
-- -   The resulting user session is valid for 10 hours.
--
-- For more information, see
-- <https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics-deprecated.html Embedding Analytics Using GetDashboardEmbedUrl>
-- in the /Amazon QuickSight User Guide/.
--
-- For more information about the high-level steps for embedding and for an
-- interactive demo of the ways you can customize embedding, visit the
-- <https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html Amazon QuickSight Developer Portal>.
module Amazonka.QuickSight.GetDashboardEmbedUrl
  ( -- * Creating a Request
    GetDashboardEmbedUrl (..),
    newGetDashboardEmbedUrl,

    -- * Request Lenses
    getDashboardEmbedUrl_sessionLifetimeInMinutes,
    getDashboardEmbedUrl_statePersistenceEnabled,
    getDashboardEmbedUrl_namespace,
    getDashboardEmbedUrl_additionalDashboardIds,
    getDashboardEmbedUrl_undoRedoDisabled,
    getDashboardEmbedUrl_userArn,
    getDashboardEmbedUrl_resetDisabled,
    getDashboardEmbedUrl_awsAccountId,
    getDashboardEmbedUrl_dashboardId,
    getDashboardEmbedUrl_identityType,

    -- * Destructuring the Response
    GetDashboardEmbedUrlResponse (..),
    newGetDashboardEmbedUrlResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newGetDashboardEmbedUrl' smart constructor.
data GetDashboardEmbedUrl = GetDashboardEmbedUrl'
  { -- | How many minutes the session is valid. The session lifetime must be
    -- 15-600 minutes.
    GetDashboardEmbedUrl -> Maybe Natural
sessionLifetimeInMinutes :: Prelude.Maybe Prelude.Natural,
    -- | Adds persistence of state for the user session in an embedded dashboard.
    -- Persistence applies to the sheet and the parameter settings. These are
    -- control settings that the dashboard subscriber (Amazon QuickSight
    -- reader) chooses while viewing the dashboard. If this is set to @TRUE@,
    -- the settings are the same when the subscriber reopens the same dashboard
    -- URL. The state is stored in Amazon QuickSight, not in a browser cookie.
    -- If this is set to FALSE, the state of the user session is not persisted.
    -- The default is @FALSE@.
    GetDashboardEmbedUrl -> Maybe Bool
statePersistenceEnabled :: Prelude.Maybe Prelude.Bool,
    -- | The Amazon QuickSight namespace that contains the dashboard IDs in this
    -- request. If you\'re not using a custom namespace, set
    -- @Namespace = default@.
    GetDashboardEmbedUrl -> Maybe Text
namespace :: Prelude.Maybe Prelude.Text,
    -- | A list of one or more dashboard IDs that you want to add to a session
    -- that includes anonymous users. The @IdentityType@ parameter must be set
    -- to @ANONYMOUS@ for this to work, because other identity types
    -- authenticate as Amazon QuickSight or IAMusers. For example, if you set
    -- \"@--dashboard-id dash_id1 --dashboard-id dash_id2 dash_id3 identity-type ANONYMOUS@\",
    -- the session can access all three dashboards.
    GetDashboardEmbedUrl -> Maybe (NonEmpty Text)
additionalDashboardIds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | Remove the undo\/redo button on the embedded dashboard. The default is
    -- FALSE, which enables the undo\/redo button.
    GetDashboardEmbedUrl -> Maybe Bool
undoRedoDisabled :: Prelude.Maybe Prelude.Bool,
    -- | The Amazon QuickSight user\'s Amazon Resource Name (ARN), for use with
    -- @QUICKSIGHT@ identity type. You can use this for any Amazon QuickSight
    -- users in your account (readers, authors, or admins) authenticated as one
    -- of the following:
    --
    -- -   Active Directory (AD) users or group members
    --
    -- -   Invited nonfederated users
    --
    -- -   IAMusers and IAMrole-based sessions authenticated through Federated
    --     Single Sign-On using SAML, OpenID Connect, or IAMfederation.
    --
    -- Omit this parameter for users in the third group – IAMusers and IAM
    -- role-based sessions.
    GetDashboardEmbedUrl -> Maybe Text
userArn :: Prelude.Maybe Prelude.Text,
    -- | Remove the reset button on the embedded dashboard. The default is FALSE,
    -- which enables the reset button.
    GetDashboardEmbedUrl -> Maybe Bool
resetDisabled :: Prelude.Maybe Prelude.Bool,
    -- | The ID for the Amazon Web Services account that contains the dashboard
    -- that you\'re embedding.
    GetDashboardEmbedUrl -> Text
awsAccountId :: Prelude.Text,
    -- | The ID for the dashboard, also added to the Identity and Access
    -- Management (IAM) policy.
    GetDashboardEmbedUrl -> Text
dashboardId :: Prelude.Text,
    -- | The authentication method that the user uses to sign in.
    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)

-- |
-- Create a value of 'GetDashboardEmbedUrl' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'sessionLifetimeInMinutes', 'getDashboardEmbedUrl_sessionLifetimeInMinutes' - How many minutes the session is valid. The session lifetime must be
-- 15-600 minutes.
--
-- 'statePersistenceEnabled', 'getDashboardEmbedUrl_statePersistenceEnabled' - Adds persistence of state for the user session in an embedded dashboard.
-- Persistence applies to the sheet and the parameter settings. These are
-- control settings that the dashboard subscriber (Amazon QuickSight
-- reader) chooses while viewing the dashboard. If this is set to @TRUE@,
-- the settings are the same when the subscriber reopens the same dashboard
-- URL. The state is stored in Amazon QuickSight, not in a browser cookie.
-- If this is set to FALSE, the state of the user session is not persisted.
-- The default is @FALSE@.
--
-- 'namespace', 'getDashboardEmbedUrl_namespace' - The Amazon QuickSight namespace that contains the dashboard IDs in this
-- request. If you\'re not using a custom namespace, set
-- @Namespace = default@.
--
-- 'additionalDashboardIds', 'getDashboardEmbedUrl_additionalDashboardIds' - A list of one or more dashboard IDs that you want to add to a session
-- that includes anonymous users. The @IdentityType@ parameter must be set
-- to @ANONYMOUS@ for this to work, because other identity types
-- authenticate as Amazon QuickSight or IAMusers. For example, if you set
-- \"@--dashboard-id dash_id1 --dashboard-id dash_id2 dash_id3 identity-type ANONYMOUS@\",
-- the session can access all three dashboards.
--
-- 'undoRedoDisabled', 'getDashboardEmbedUrl_undoRedoDisabled' - Remove the undo\/redo button on the embedded dashboard. The default is
-- FALSE, which enables the undo\/redo button.
--
-- 'userArn', 'getDashboardEmbedUrl_userArn' - The Amazon QuickSight user\'s Amazon Resource Name (ARN), for use with
-- @QUICKSIGHT@ identity type. You can use this for any Amazon QuickSight
-- users in your account (readers, authors, or admins) authenticated as one
-- of the following:
--
-- -   Active Directory (AD) users or group members
--
-- -   Invited nonfederated users
--
-- -   IAMusers and IAMrole-based sessions authenticated through Federated
--     Single Sign-On using SAML, OpenID Connect, or IAMfederation.
--
-- Omit this parameter for users in the third group – IAMusers and IAM
-- role-based sessions.
--
-- 'resetDisabled', 'getDashboardEmbedUrl_resetDisabled' - Remove the reset button on the embedded dashboard. The default is FALSE,
-- which enables the reset button.
--
-- 'awsAccountId', 'getDashboardEmbedUrl_awsAccountId' - The ID for the Amazon Web Services account that contains the dashboard
-- that you\'re embedding.
--
-- 'dashboardId', 'getDashboardEmbedUrl_dashboardId' - The ID for the dashboard, also added to the Identity and Access
-- Management (IAM) policy.
--
-- 'identityType', 'getDashboardEmbedUrl_identityType' - The authentication method that the user uses to sign in.
newGetDashboardEmbedUrl ::
  -- | 'awsAccountId'
  Prelude.Text ->
  -- | 'dashboardId'
  Prelude.Text ->
  -- | 'identityType'
  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_
      }

-- | How many minutes the session is valid. The session lifetime must be
-- 15-600 minutes.
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)

-- | Adds persistence of state for the user session in an embedded dashboard.
-- Persistence applies to the sheet and the parameter settings. These are
-- control settings that the dashboard subscriber (Amazon QuickSight
-- reader) chooses while viewing the dashboard. If this is set to @TRUE@,
-- the settings are the same when the subscriber reopens the same dashboard
-- URL. The state is stored in Amazon QuickSight, not in a browser cookie.
-- If this is set to FALSE, the state of the user session is not persisted.
-- The default is @FALSE@.
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)

-- | The Amazon QuickSight namespace that contains the dashboard IDs in this
-- request. If you\'re not using a custom namespace, set
-- @Namespace = default@.
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)

-- | A list of one or more dashboard IDs that you want to add to a session
-- that includes anonymous users. The @IdentityType@ parameter must be set
-- to @ANONYMOUS@ for this to work, because other identity types
-- authenticate as Amazon QuickSight or IAMusers. For example, if you set
-- \"@--dashboard-id dash_id1 --dashboard-id dash_id2 dash_id3 identity-type ANONYMOUS@\",
-- the session can access all three dashboards.
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

-- | Remove the undo\/redo button on the embedded dashboard. The default is
-- FALSE, which enables the undo\/redo button.
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)

-- | The Amazon QuickSight user\'s Amazon Resource Name (ARN), for use with
-- @QUICKSIGHT@ identity type. You can use this for any Amazon QuickSight
-- users in your account (readers, authors, or admins) authenticated as one
-- of the following:
--
-- -   Active Directory (AD) users or group members
--
-- -   Invited nonfederated users
--
-- -   IAMusers and IAMrole-based sessions authenticated through Federated
--     Single Sign-On using SAML, OpenID Connect, or IAMfederation.
--
-- Omit this parameter for users in the third group – IAMusers and IAM
-- role-based sessions.
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)

-- | Remove the reset button on the embedded dashboard. The default is FALSE,
-- which enables the reset button.
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)

-- | The ID for the Amazon Web Services account that contains the dashboard
-- that you\'re embedding.
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)

-- | The ID for the dashboard, also added to the Identity and Access
-- Management (IAM) policy.
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)

-- | The authentication method that the user uses to sign in.
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
      ]

-- | Output returned from the @GetDashboardEmbedUrl@ operation.
--
-- /See:/ 'newGetDashboardEmbedUrlResponse' smart constructor.
data GetDashboardEmbedUrlResponse = GetDashboardEmbedUrlResponse'
  { -- | The Amazon Web Services request ID for this operation.
    GetDashboardEmbedUrlResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | A single-use URL that you can put into your server-side webpage to embed
    -- your dashboard. This URL is valid for 5 minutes. The API operation
    -- provides the URL with an @auth_code@ value that enables one (and only
    -- one) sign-on to a user session that is valid for 10 hours.
    GetDashboardEmbedUrlResponse -> Maybe (Sensitive Text)
embedUrl :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The HTTP status of the request.
    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)

-- |
-- Create a value of 'GetDashboardEmbedUrlResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'requestId', 'getDashboardEmbedUrlResponse_requestId' - The Amazon Web Services request ID for this operation.
--
-- 'embedUrl', 'getDashboardEmbedUrlResponse_embedUrl' - A single-use URL that you can put into your server-side webpage to embed
-- your dashboard. This URL is valid for 5 minutes. The API operation
-- provides the URL with an @auth_code@ value that enables one (and only
-- one) sign-on to a user session that is valid for 10 hours.
--
-- 'status', 'getDashboardEmbedUrlResponse_status' - The HTTP status of the request.
newGetDashboardEmbedUrlResponse ::
  -- | 'status'
  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_
    }

-- | The Amazon Web Services request ID for this operation.
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)

-- | A single-use URL that you can put into your server-side webpage to embed
-- your dashboard. This URL is valid for 5 minutes. The API operation
-- provides the URL with an @auth_code@ value that enables one (and only
-- one) sign-on to a user session that is valid for 10 hours.
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

-- | The HTTP status of the request.
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