{-# 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.DeleteDashboard
-- 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)
--
-- Deletes a dashboard.
module Amazonka.QuickSight.DeleteDashboard
  ( -- * Creating a Request
    DeleteDashboard (..),
    newDeleteDashboard,

    -- * Request Lenses
    deleteDashboard_versionNumber,
    deleteDashboard_awsAccountId,
    deleteDashboard_dashboardId,

    -- * Destructuring the Response
    DeleteDashboardResponse (..),
    newDeleteDashboardResponse,

    -- * Response Lenses
    deleteDashboardResponse_requestId,
    deleteDashboardResponse_arn,
    deleteDashboardResponse_dashboardId,
    deleteDashboardResponse_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:/ 'newDeleteDashboard' smart constructor.
data DeleteDashboard = DeleteDashboard'
  { -- | The version number of the dashboard. If the version number property is
    -- provided, only the specified version of the dashboard is deleted.
    DeleteDashboard -> Maybe Natural
versionNumber :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the Amazon Web Services account that contains the dashboard
    -- that you\'re deleting.
    DeleteDashboard -> Text
awsAccountId :: Prelude.Text,
    -- | The ID for the dashboard.
    DeleteDashboard -> Text
dashboardId :: Prelude.Text
  }
  deriving (DeleteDashboard -> DeleteDashboard -> Bool
(DeleteDashboard -> DeleteDashboard -> Bool)
-> (DeleteDashboard -> DeleteDashboard -> Bool)
-> Eq DeleteDashboard
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteDashboard -> DeleteDashboard -> Bool
$c/= :: DeleteDashboard -> DeleteDashboard -> Bool
== :: DeleteDashboard -> DeleteDashboard -> Bool
$c== :: DeleteDashboard -> DeleteDashboard -> Bool
Prelude.Eq, ReadPrec [DeleteDashboard]
ReadPrec DeleteDashboard
Int -> ReadS DeleteDashboard
ReadS [DeleteDashboard]
(Int -> ReadS DeleteDashboard)
-> ReadS [DeleteDashboard]
-> ReadPrec DeleteDashboard
-> ReadPrec [DeleteDashboard]
-> Read DeleteDashboard
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteDashboard]
$creadListPrec :: ReadPrec [DeleteDashboard]
readPrec :: ReadPrec DeleteDashboard
$creadPrec :: ReadPrec DeleteDashboard
readList :: ReadS [DeleteDashboard]
$creadList :: ReadS [DeleteDashboard]
readsPrec :: Int -> ReadS DeleteDashboard
$creadsPrec :: Int -> ReadS DeleteDashboard
Prelude.Read, Int -> DeleteDashboard -> ShowS
[DeleteDashboard] -> ShowS
DeleteDashboard -> String
(Int -> DeleteDashboard -> ShowS)
-> (DeleteDashboard -> String)
-> ([DeleteDashboard] -> ShowS)
-> Show DeleteDashboard
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteDashboard] -> ShowS
$cshowList :: [DeleteDashboard] -> ShowS
show :: DeleteDashboard -> String
$cshow :: DeleteDashboard -> String
showsPrec :: Int -> DeleteDashboard -> ShowS
$cshowsPrec :: Int -> DeleteDashboard -> ShowS
Prelude.Show, (forall x. DeleteDashboard -> Rep DeleteDashboard x)
-> (forall x. Rep DeleteDashboard x -> DeleteDashboard)
-> Generic DeleteDashboard
forall x. Rep DeleteDashboard x -> DeleteDashboard
forall x. DeleteDashboard -> Rep DeleteDashboard x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteDashboard x -> DeleteDashboard
$cfrom :: forall x. DeleteDashboard -> Rep DeleteDashboard x
Prelude.Generic)

-- |
-- Create a value of 'DeleteDashboard' 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:
--
-- 'versionNumber', 'deleteDashboard_versionNumber' - The version number of the dashboard. If the version number property is
-- provided, only the specified version of the dashboard is deleted.
--
-- 'awsAccountId', 'deleteDashboard_awsAccountId' - The ID of the Amazon Web Services account that contains the dashboard
-- that you\'re deleting.
--
-- 'dashboardId', 'deleteDashboard_dashboardId' - The ID for the dashboard.
newDeleteDashboard ::
  -- | 'awsAccountId'
  Prelude.Text ->
  -- | 'dashboardId'
  Prelude.Text ->
  DeleteDashboard
newDeleteDashboard :: Text -> Text -> DeleteDashboard
newDeleteDashboard Text
pAwsAccountId_ Text
pDashboardId_ =
  DeleteDashboard' :: Maybe Natural -> Text -> Text -> DeleteDashboard
DeleteDashboard'
    { $sel:versionNumber:DeleteDashboard' :: Maybe Natural
versionNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:awsAccountId:DeleteDashboard' :: Text
awsAccountId = Text
pAwsAccountId_,
      $sel:dashboardId:DeleteDashboard' :: Text
dashboardId = Text
pDashboardId_
    }

-- | The version number of the dashboard. If the version number property is
-- provided, only the specified version of the dashboard is deleted.
deleteDashboard_versionNumber :: Lens.Lens' DeleteDashboard (Prelude.Maybe Prelude.Natural)
deleteDashboard_versionNumber :: (Maybe Natural -> f (Maybe Natural))
-> DeleteDashboard -> f DeleteDashboard
deleteDashboard_versionNumber = (DeleteDashboard -> Maybe Natural)
-> (DeleteDashboard -> Maybe Natural -> DeleteDashboard)
-> Lens
     DeleteDashboard DeleteDashboard (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDashboard' {Maybe Natural
versionNumber :: Maybe Natural
$sel:versionNumber:DeleteDashboard' :: DeleteDashboard -> Maybe Natural
versionNumber} -> Maybe Natural
versionNumber) (\s :: DeleteDashboard
s@DeleteDashboard' {} Maybe Natural
a -> DeleteDashboard
s {$sel:versionNumber:DeleteDashboard' :: Maybe Natural
versionNumber = Maybe Natural
a} :: DeleteDashboard)

-- | The ID of the Amazon Web Services account that contains the dashboard
-- that you\'re deleting.
deleteDashboard_awsAccountId :: Lens.Lens' DeleteDashboard Prelude.Text
deleteDashboard_awsAccountId :: (Text -> f Text) -> DeleteDashboard -> f DeleteDashboard
deleteDashboard_awsAccountId = (DeleteDashboard -> Text)
-> (DeleteDashboard -> Text -> DeleteDashboard)
-> Lens DeleteDashboard DeleteDashboard Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDashboard' {Text
awsAccountId :: Text
$sel:awsAccountId:DeleteDashboard' :: DeleteDashboard -> Text
awsAccountId} -> Text
awsAccountId) (\s :: DeleteDashboard
s@DeleteDashboard' {} Text
a -> DeleteDashboard
s {$sel:awsAccountId:DeleteDashboard' :: Text
awsAccountId = Text
a} :: DeleteDashboard)

-- | The ID for the dashboard.
deleteDashboard_dashboardId :: Lens.Lens' DeleteDashboard Prelude.Text
deleteDashboard_dashboardId :: (Text -> f Text) -> DeleteDashboard -> f DeleteDashboard
deleteDashboard_dashboardId = (DeleteDashboard -> Text)
-> (DeleteDashboard -> Text -> DeleteDashboard)
-> Lens DeleteDashboard DeleteDashboard Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDashboard' {Text
dashboardId :: Text
$sel:dashboardId:DeleteDashboard' :: DeleteDashboard -> Text
dashboardId} -> Text
dashboardId) (\s :: DeleteDashboard
s@DeleteDashboard' {} Text
a -> DeleteDashboard
s {$sel:dashboardId:DeleteDashboard' :: Text
dashboardId = Text
a} :: DeleteDashboard)

instance Core.AWSRequest DeleteDashboard where
  type
    AWSResponse DeleteDashboard =
      DeleteDashboardResponse
  request :: DeleteDashboard -> Request DeleteDashboard
request = Service -> DeleteDashboard -> Request DeleteDashboard
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteDashboard
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteDashboard)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DeleteDashboard))
-> Logger
-> Service
-> Proxy DeleteDashboard
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteDashboard)))
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 Text -> Maybe Text -> Int -> DeleteDashboardResponse
DeleteDashboardResponse'
            (Maybe Text
 -> Maybe Text -> Maybe Text -> Int -> DeleteDashboardResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Maybe Text -> Int -> DeleteDashboardResponse)
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 Text -> Maybe Text -> Int -> DeleteDashboardResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DeleteDashboardResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Arn")
            Either String (Maybe Text -> Int -> DeleteDashboardResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DeleteDashboardResponse)
forall (f :: * -> *) a b. Applicative f => 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
"DashboardId")
            Either String (Int -> DeleteDashboardResponse)
-> Either String Int -> Either String DeleteDashboardResponse
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 DeleteDashboard

instance Prelude.NFData DeleteDashboard

instance Core.ToHeaders DeleteDashboard where
  toHeaders :: DeleteDashboard -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteDashboard -> 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 DeleteDashboard where
  toPath :: DeleteDashboard -> ByteString
toPath DeleteDashboard' {Maybe Natural
Text
dashboardId :: Text
awsAccountId :: Text
versionNumber :: Maybe Natural
$sel:dashboardId:DeleteDashboard' :: DeleteDashboard -> Text
$sel:awsAccountId:DeleteDashboard' :: DeleteDashboard -> Text
$sel:versionNumber:DeleteDashboard' :: DeleteDashboard -> 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
      ]

instance Core.ToQuery DeleteDashboard where
  toQuery :: DeleteDashboard -> QueryString
toQuery DeleteDashboard' {Maybe Natural
Text
dashboardId :: Text
awsAccountId :: Text
versionNumber :: Maybe Natural
$sel:dashboardId:DeleteDashboard' :: DeleteDashboard -> Text
$sel:awsAccountId:DeleteDashboard' :: DeleteDashboard -> Text
$sel:versionNumber:DeleteDashboard' :: DeleteDashboard -> Maybe Natural
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"version-number" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
versionNumber]

-- | /See:/ 'newDeleteDashboardResponse' smart constructor.
data DeleteDashboardResponse = DeleteDashboardResponse'
  { -- | The Amazon Web Services request ID for this operation.
    DeleteDashboardResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | The Secure Socket Layer (SSL) properties that apply for the resource.
    DeleteDashboardResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The ID of the dashboard.
    DeleteDashboardResponse -> Maybe Text
dashboardId :: Prelude.Maybe Prelude.Text,
    -- | The HTTP status of the request.
    DeleteDashboardResponse -> Int
status :: Prelude.Int
  }
  deriving (DeleteDashboardResponse -> DeleteDashboardResponse -> Bool
(DeleteDashboardResponse -> DeleteDashboardResponse -> Bool)
-> (DeleteDashboardResponse -> DeleteDashboardResponse -> Bool)
-> Eq DeleteDashboardResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteDashboardResponse -> DeleteDashboardResponse -> Bool
$c/= :: DeleteDashboardResponse -> DeleteDashboardResponse -> Bool
== :: DeleteDashboardResponse -> DeleteDashboardResponse -> Bool
$c== :: DeleteDashboardResponse -> DeleteDashboardResponse -> Bool
Prelude.Eq, ReadPrec [DeleteDashboardResponse]
ReadPrec DeleteDashboardResponse
Int -> ReadS DeleteDashboardResponse
ReadS [DeleteDashboardResponse]
(Int -> ReadS DeleteDashboardResponse)
-> ReadS [DeleteDashboardResponse]
-> ReadPrec DeleteDashboardResponse
-> ReadPrec [DeleteDashboardResponse]
-> Read DeleteDashboardResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteDashboardResponse]
$creadListPrec :: ReadPrec [DeleteDashboardResponse]
readPrec :: ReadPrec DeleteDashboardResponse
$creadPrec :: ReadPrec DeleteDashboardResponse
readList :: ReadS [DeleteDashboardResponse]
$creadList :: ReadS [DeleteDashboardResponse]
readsPrec :: Int -> ReadS DeleteDashboardResponse
$creadsPrec :: Int -> ReadS DeleteDashboardResponse
Prelude.Read, Int -> DeleteDashboardResponse -> ShowS
[DeleteDashboardResponse] -> ShowS
DeleteDashboardResponse -> String
(Int -> DeleteDashboardResponse -> ShowS)
-> (DeleteDashboardResponse -> String)
-> ([DeleteDashboardResponse] -> ShowS)
-> Show DeleteDashboardResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteDashboardResponse] -> ShowS
$cshowList :: [DeleteDashboardResponse] -> ShowS
show :: DeleteDashboardResponse -> String
$cshow :: DeleteDashboardResponse -> String
showsPrec :: Int -> DeleteDashboardResponse -> ShowS
$cshowsPrec :: Int -> DeleteDashboardResponse -> ShowS
Prelude.Show, (forall x.
 DeleteDashboardResponse -> Rep DeleteDashboardResponse x)
-> (forall x.
    Rep DeleteDashboardResponse x -> DeleteDashboardResponse)
-> Generic DeleteDashboardResponse
forall x. Rep DeleteDashboardResponse x -> DeleteDashboardResponse
forall x. DeleteDashboardResponse -> Rep DeleteDashboardResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteDashboardResponse x -> DeleteDashboardResponse
$cfrom :: forall x. DeleteDashboardResponse -> Rep DeleteDashboardResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteDashboardResponse' 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', 'deleteDashboardResponse_requestId' - The Amazon Web Services request ID for this operation.
--
-- 'arn', 'deleteDashboardResponse_arn' - The Secure Socket Layer (SSL) properties that apply for the resource.
--
-- 'dashboardId', 'deleteDashboardResponse_dashboardId' - The ID of the dashboard.
--
-- 'status', 'deleteDashboardResponse_status' - The HTTP status of the request.
newDeleteDashboardResponse ::
  -- | 'status'
  Prelude.Int ->
  DeleteDashboardResponse
newDeleteDashboardResponse :: Int -> DeleteDashboardResponse
newDeleteDashboardResponse Int
pStatus_ =
  DeleteDashboardResponse' :: Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DeleteDashboardResponse
DeleteDashboardResponse'
    { $sel:requestId:DeleteDashboardResponse' :: Maybe Text
requestId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DeleteDashboardResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dashboardId:DeleteDashboardResponse' :: Maybe Text
dashboardId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DeleteDashboardResponse' :: Int
status = Int
pStatus_
    }

-- | The Amazon Web Services request ID for this operation.
deleteDashboardResponse_requestId :: Lens.Lens' DeleteDashboardResponse (Prelude.Maybe Prelude.Text)
deleteDashboardResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> DeleteDashboardResponse -> f DeleteDashboardResponse
deleteDashboardResponse_requestId = (DeleteDashboardResponse -> Maybe Text)
-> (DeleteDashboardResponse
    -> Maybe Text -> DeleteDashboardResponse)
-> Lens
     DeleteDashboardResponse
     DeleteDashboardResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDashboardResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:DeleteDashboardResponse' :: DeleteDashboardResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: DeleteDashboardResponse
s@DeleteDashboardResponse' {} Maybe Text
a -> DeleteDashboardResponse
s {$sel:requestId:DeleteDashboardResponse' :: Maybe Text
requestId = Maybe Text
a} :: DeleteDashboardResponse)

-- | The Secure Socket Layer (SSL) properties that apply for the resource.
deleteDashboardResponse_arn :: Lens.Lens' DeleteDashboardResponse (Prelude.Maybe Prelude.Text)
deleteDashboardResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DeleteDashboardResponse -> f DeleteDashboardResponse
deleteDashboardResponse_arn = (DeleteDashboardResponse -> Maybe Text)
-> (DeleteDashboardResponse
    -> Maybe Text -> DeleteDashboardResponse)
-> Lens
     DeleteDashboardResponse
     DeleteDashboardResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDashboardResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DeleteDashboardResponse' :: DeleteDashboardResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DeleteDashboardResponse
s@DeleteDashboardResponse' {} Maybe Text
a -> DeleteDashboardResponse
s {$sel:arn:DeleteDashboardResponse' :: Maybe Text
arn = Maybe Text
a} :: DeleteDashboardResponse)

-- | The ID of the dashboard.
deleteDashboardResponse_dashboardId :: Lens.Lens' DeleteDashboardResponse (Prelude.Maybe Prelude.Text)
deleteDashboardResponse_dashboardId :: (Maybe Text -> f (Maybe Text))
-> DeleteDashboardResponse -> f DeleteDashboardResponse
deleteDashboardResponse_dashboardId = (DeleteDashboardResponse -> Maybe Text)
-> (DeleteDashboardResponse
    -> Maybe Text -> DeleteDashboardResponse)
-> Lens
     DeleteDashboardResponse
     DeleteDashboardResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDashboardResponse' {Maybe Text
dashboardId :: Maybe Text
$sel:dashboardId:DeleteDashboardResponse' :: DeleteDashboardResponse -> Maybe Text
dashboardId} -> Maybe Text
dashboardId) (\s :: DeleteDashboardResponse
s@DeleteDashboardResponse' {} Maybe Text
a -> DeleteDashboardResponse
s {$sel:dashboardId:DeleteDashboardResponse' :: Maybe Text
dashboardId = Maybe Text
a} :: DeleteDashboardResponse)

-- | The HTTP status of the request.
deleteDashboardResponse_status :: Lens.Lens' DeleteDashboardResponse Prelude.Int
deleteDashboardResponse_status :: (Int -> f Int)
-> DeleteDashboardResponse -> f DeleteDashboardResponse
deleteDashboardResponse_status = (DeleteDashboardResponse -> Int)
-> (DeleteDashboardResponse -> Int -> DeleteDashboardResponse)
-> Lens DeleteDashboardResponse DeleteDashboardResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDashboardResponse' {Int
status :: Int
$sel:status:DeleteDashboardResponse' :: DeleteDashboardResponse -> Int
status} -> Int
status) (\s :: DeleteDashboardResponse
s@DeleteDashboardResponse' {} Int
a -> DeleteDashboardResponse
s {$sel:status:DeleteDashboardResponse' :: Int
status = Int
a} :: DeleteDashboardResponse)

instance Prelude.NFData DeleteDashboardResponse