{-# 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.IoTSiteWise.CreateDashboard
(
CreateDashboard (..),
newCreateDashboard,
createDashboard_clientToken,
createDashboard_dashboardDescription,
createDashboard_tags,
createDashboard_projectId,
createDashboard_dashboardName,
createDashboard_dashboardDefinition,
CreateDashboardResponse (..),
newCreateDashboardResponse,
createDashboardResponse_httpStatus,
createDashboardResponse_dashboardId,
createDashboardResponse_dashboardArn,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTSiteWise.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateDashboard = CreateDashboard'
{
CreateDashboard -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateDashboard -> Maybe Text
dashboardDescription :: Prelude.Maybe Prelude.Text,
CreateDashboard -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateDashboard -> Text
projectId :: Prelude.Text,
CreateDashboard -> Text
dashboardName :: Prelude.Text,
CreateDashboard -> Text
dashboardDefinition :: Prelude.Text
}
deriving (CreateDashboard -> CreateDashboard -> Bool
(CreateDashboard -> CreateDashboard -> Bool)
-> (CreateDashboard -> CreateDashboard -> Bool)
-> Eq CreateDashboard
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDashboard -> CreateDashboard -> Bool
$c/= :: CreateDashboard -> CreateDashboard -> Bool
== :: CreateDashboard -> CreateDashboard -> Bool
$c== :: CreateDashboard -> CreateDashboard -> Bool
Prelude.Eq, ReadPrec [CreateDashboard]
ReadPrec CreateDashboard
Int -> ReadS CreateDashboard
ReadS [CreateDashboard]
(Int -> ReadS CreateDashboard)
-> ReadS [CreateDashboard]
-> ReadPrec CreateDashboard
-> ReadPrec [CreateDashboard]
-> Read CreateDashboard
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDashboard]
$creadListPrec :: ReadPrec [CreateDashboard]
readPrec :: ReadPrec CreateDashboard
$creadPrec :: ReadPrec CreateDashboard
readList :: ReadS [CreateDashboard]
$creadList :: ReadS [CreateDashboard]
readsPrec :: Int -> ReadS CreateDashboard
$creadsPrec :: Int -> ReadS CreateDashboard
Prelude.Read, Int -> CreateDashboard -> ShowS
[CreateDashboard] -> ShowS
CreateDashboard -> String
(Int -> CreateDashboard -> ShowS)
-> (CreateDashboard -> String)
-> ([CreateDashboard] -> ShowS)
-> Show CreateDashboard
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDashboard] -> ShowS
$cshowList :: [CreateDashboard] -> ShowS
show :: CreateDashboard -> String
$cshow :: CreateDashboard -> String
showsPrec :: Int -> CreateDashboard -> ShowS
$cshowsPrec :: Int -> CreateDashboard -> ShowS
Prelude.Show, (forall x. CreateDashboard -> Rep CreateDashboard x)
-> (forall x. Rep CreateDashboard x -> CreateDashboard)
-> Generic CreateDashboard
forall x. Rep CreateDashboard x -> CreateDashboard
forall x. CreateDashboard -> Rep CreateDashboard x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDashboard x -> CreateDashboard
$cfrom :: forall x. CreateDashboard -> Rep CreateDashboard x
Prelude.Generic)
newCreateDashboard ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateDashboard
newCreateDashboard :: Text -> Text -> Text -> CreateDashboard
newCreateDashboard
Text
pProjectId_
Text
pDashboardName_
Text
pDashboardDefinition_ =
CreateDashboard' :: Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> CreateDashboard
CreateDashboard'
{ $sel:clientToken:CreateDashboard' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dashboardDescription:CreateDashboard' :: Maybe Text
dashboardDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDashboard' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:projectId:CreateDashboard' :: Text
projectId = Text
pProjectId_,
$sel:dashboardName:CreateDashboard' :: Text
dashboardName = Text
pDashboardName_,
$sel:dashboardDefinition:CreateDashboard' :: Text
dashboardDefinition = Text
pDashboardDefinition_
}
createDashboard_clientToken :: Lens.Lens' CreateDashboard (Prelude.Maybe Prelude.Text)
createDashboard_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateDashboard -> f CreateDashboard
createDashboard_clientToken = (CreateDashboard -> Maybe Text)
-> (CreateDashboard -> Maybe Text -> CreateDashboard)
-> Lens CreateDashboard CreateDashboard (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboard' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateDashboard' :: CreateDashboard -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateDashboard
s@CreateDashboard' {} Maybe Text
a -> CreateDashboard
s {$sel:clientToken:CreateDashboard' :: Maybe Text
clientToken = Maybe Text
a} :: CreateDashboard)
createDashboard_dashboardDescription :: Lens.Lens' CreateDashboard (Prelude.Maybe Prelude.Text)
createDashboard_dashboardDescription :: (Maybe Text -> f (Maybe Text))
-> CreateDashboard -> f CreateDashboard
createDashboard_dashboardDescription = (CreateDashboard -> Maybe Text)
-> (CreateDashboard -> Maybe Text -> CreateDashboard)
-> Lens CreateDashboard CreateDashboard (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboard' {Maybe Text
dashboardDescription :: Maybe Text
$sel:dashboardDescription:CreateDashboard' :: CreateDashboard -> Maybe Text
dashboardDescription} -> Maybe Text
dashboardDescription) (\s :: CreateDashboard
s@CreateDashboard' {} Maybe Text
a -> CreateDashboard
s {$sel:dashboardDescription:CreateDashboard' :: Maybe Text
dashboardDescription = Maybe Text
a} :: CreateDashboard)
createDashboard_tags :: Lens.Lens' CreateDashboard (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createDashboard_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDashboard -> f CreateDashboard
createDashboard_tags = (CreateDashboard -> Maybe (HashMap Text Text))
-> (CreateDashboard
-> Maybe (HashMap Text Text) -> CreateDashboard)
-> Lens
CreateDashboard
CreateDashboard
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboard' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateDashboard' :: CreateDashboard -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateDashboard
s@CreateDashboard' {} Maybe (HashMap Text Text)
a -> CreateDashboard
s {$sel:tags:CreateDashboard' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateDashboard) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDashboard -> f CreateDashboard)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDashboard
-> f CreateDashboard
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDashboard_projectId :: Lens.Lens' CreateDashboard Prelude.Text
createDashboard_projectId :: (Text -> f Text) -> CreateDashboard -> f CreateDashboard
createDashboard_projectId = (CreateDashboard -> Text)
-> (CreateDashboard -> Text -> CreateDashboard)
-> Lens CreateDashboard CreateDashboard Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboard' {Text
projectId :: Text
$sel:projectId:CreateDashboard' :: CreateDashboard -> Text
projectId} -> Text
projectId) (\s :: CreateDashboard
s@CreateDashboard' {} Text
a -> CreateDashboard
s {$sel:projectId:CreateDashboard' :: Text
projectId = Text
a} :: CreateDashboard)
createDashboard_dashboardName :: Lens.Lens' CreateDashboard Prelude.Text
createDashboard_dashboardName :: (Text -> f Text) -> CreateDashboard -> f CreateDashboard
createDashboard_dashboardName = (CreateDashboard -> Text)
-> (CreateDashboard -> Text -> CreateDashboard)
-> Lens CreateDashboard CreateDashboard Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboard' {Text
dashboardName :: Text
$sel:dashboardName:CreateDashboard' :: CreateDashboard -> Text
dashboardName} -> Text
dashboardName) (\s :: CreateDashboard
s@CreateDashboard' {} Text
a -> CreateDashboard
s {$sel:dashboardName:CreateDashboard' :: Text
dashboardName = Text
a} :: CreateDashboard)
createDashboard_dashboardDefinition :: Lens.Lens' CreateDashboard Prelude.Text
createDashboard_dashboardDefinition :: (Text -> f Text) -> CreateDashboard -> f CreateDashboard
createDashboard_dashboardDefinition = (CreateDashboard -> Text)
-> (CreateDashboard -> Text -> CreateDashboard)
-> Lens CreateDashboard CreateDashboard Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboard' {Text
dashboardDefinition :: Text
$sel:dashboardDefinition:CreateDashboard' :: CreateDashboard -> Text
dashboardDefinition} -> Text
dashboardDefinition) (\s :: CreateDashboard
s@CreateDashboard' {} Text
a -> CreateDashboard
s {$sel:dashboardDefinition:CreateDashboard' :: Text
dashboardDefinition = Text
a} :: CreateDashboard)
instance Core.AWSRequest CreateDashboard where
type
AWSResponse CreateDashboard =
CreateDashboardResponse
request :: CreateDashboard -> Request CreateDashboard
request = Service -> CreateDashboard -> Request CreateDashboard
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDashboard
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateDashboard)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateDashboard))
-> Logger
-> Service
-> Proxy CreateDashboard
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateDashboard)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Int -> Text -> Text -> CreateDashboardResponse
CreateDashboardResponse'
(Int -> Text -> Text -> CreateDashboardResponse)
-> Either String Int
-> Either String (Text -> Text -> CreateDashboardResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either String (Text -> Text -> CreateDashboardResponse)
-> Either String Text
-> Either String (Text -> CreateDashboardResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"dashboardId")
Either String (Text -> CreateDashboardResponse)
-> Either String Text -> Either String CreateDashboardResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"dashboardArn")
)
instance Prelude.Hashable CreateDashboard
instance Prelude.NFData CreateDashboard
instance Core.ToHeaders CreateDashboard where
toHeaders :: CreateDashboard -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateDashboard -> 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.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateDashboard where
toJSON :: CreateDashboard -> Value
toJSON CreateDashboard' {Maybe Text
Maybe (HashMap Text Text)
Text
dashboardDefinition :: Text
dashboardName :: Text
projectId :: Text
tags :: Maybe (HashMap Text Text)
dashboardDescription :: Maybe Text
clientToken :: Maybe Text
$sel:dashboardDefinition:CreateDashboard' :: CreateDashboard -> Text
$sel:dashboardName:CreateDashboard' :: CreateDashboard -> Text
$sel:projectId:CreateDashboard' :: CreateDashboard -> Text
$sel:tags:CreateDashboard' :: CreateDashboard -> Maybe (HashMap Text Text)
$sel:dashboardDescription:CreateDashboard' :: CreateDashboard -> Maybe Text
$sel:clientToken:CreateDashboard' :: CreateDashboard -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"clientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientToken,
(Text
"dashboardDescription" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
dashboardDescription,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"projectId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
projectId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"dashboardName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
dashboardName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"dashboardDefinition" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
dashboardDefinition)
]
)
instance Core.ToPath CreateDashboard where
toPath :: CreateDashboard -> ByteString
toPath = ByteString -> CreateDashboard -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/dashboards"
instance Core.ToQuery CreateDashboard where
toQuery :: CreateDashboard -> QueryString
toQuery = QueryString -> CreateDashboard -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateDashboardResponse = CreateDashboardResponse'
{
CreateDashboardResponse -> Int
httpStatus :: Prelude.Int,
CreateDashboardResponse -> Text
dashboardId :: Prelude.Text,
CreateDashboardResponse -> Text
dashboardArn :: Prelude.Text
}
deriving (CreateDashboardResponse -> CreateDashboardResponse -> Bool
(CreateDashboardResponse -> CreateDashboardResponse -> Bool)
-> (CreateDashboardResponse -> CreateDashboardResponse -> Bool)
-> Eq CreateDashboardResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDashboardResponse -> CreateDashboardResponse -> Bool
$c/= :: CreateDashboardResponse -> CreateDashboardResponse -> Bool
== :: CreateDashboardResponse -> CreateDashboardResponse -> Bool
$c== :: CreateDashboardResponse -> CreateDashboardResponse -> Bool
Prelude.Eq, ReadPrec [CreateDashboardResponse]
ReadPrec CreateDashboardResponse
Int -> ReadS CreateDashboardResponse
ReadS [CreateDashboardResponse]
(Int -> ReadS CreateDashboardResponse)
-> ReadS [CreateDashboardResponse]
-> ReadPrec CreateDashboardResponse
-> ReadPrec [CreateDashboardResponse]
-> Read CreateDashboardResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDashboardResponse]
$creadListPrec :: ReadPrec [CreateDashboardResponse]
readPrec :: ReadPrec CreateDashboardResponse
$creadPrec :: ReadPrec CreateDashboardResponse
readList :: ReadS [CreateDashboardResponse]
$creadList :: ReadS [CreateDashboardResponse]
readsPrec :: Int -> ReadS CreateDashboardResponse
$creadsPrec :: Int -> ReadS CreateDashboardResponse
Prelude.Read, Int -> CreateDashboardResponse -> ShowS
[CreateDashboardResponse] -> ShowS
CreateDashboardResponse -> String
(Int -> CreateDashboardResponse -> ShowS)
-> (CreateDashboardResponse -> String)
-> ([CreateDashboardResponse] -> ShowS)
-> Show CreateDashboardResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDashboardResponse] -> ShowS
$cshowList :: [CreateDashboardResponse] -> ShowS
show :: CreateDashboardResponse -> String
$cshow :: CreateDashboardResponse -> String
showsPrec :: Int -> CreateDashboardResponse -> ShowS
$cshowsPrec :: Int -> CreateDashboardResponse -> ShowS
Prelude.Show, (forall x.
CreateDashboardResponse -> Rep CreateDashboardResponse x)
-> (forall x.
Rep CreateDashboardResponse x -> CreateDashboardResponse)
-> Generic CreateDashboardResponse
forall x. Rep CreateDashboardResponse x -> CreateDashboardResponse
forall x. CreateDashboardResponse -> Rep CreateDashboardResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDashboardResponse x -> CreateDashboardResponse
$cfrom :: forall x. CreateDashboardResponse -> Rep CreateDashboardResponse x
Prelude.Generic)
newCreateDashboardResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
CreateDashboardResponse
newCreateDashboardResponse :: Int -> Text -> Text -> CreateDashboardResponse
newCreateDashboardResponse
Int
pHttpStatus_
Text
pDashboardId_
Text
pDashboardArn_ =
CreateDashboardResponse' :: Int -> Text -> Text -> CreateDashboardResponse
CreateDashboardResponse'
{ $sel:httpStatus:CreateDashboardResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:dashboardId:CreateDashboardResponse' :: Text
dashboardId = Text
pDashboardId_,
$sel:dashboardArn:CreateDashboardResponse' :: Text
dashboardArn = Text
pDashboardArn_
}
createDashboardResponse_httpStatus :: Lens.Lens' CreateDashboardResponse Prelude.Int
createDashboardResponse_httpStatus :: (Int -> f Int)
-> CreateDashboardResponse -> f CreateDashboardResponse
createDashboardResponse_httpStatus = (CreateDashboardResponse -> Int)
-> (CreateDashboardResponse -> Int -> CreateDashboardResponse)
-> Lens CreateDashboardResponse CreateDashboardResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboardResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDashboardResponse' :: CreateDashboardResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDashboardResponse
s@CreateDashboardResponse' {} Int
a -> CreateDashboardResponse
s {$sel:httpStatus:CreateDashboardResponse' :: Int
httpStatus = Int
a} :: CreateDashboardResponse)
createDashboardResponse_dashboardId :: Lens.Lens' CreateDashboardResponse Prelude.Text
createDashboardResponse_dashboardId :: (Text -> f Text)
-> CreateDashboardResponse -> f CreateDashboardResponse
createDashboardResponse_dashboardId = (CreateDashboardResponse -> Text)
-> (CreateDashboardResponse -> Text -> CreateDashboardResponse)
-> Lens CreateDashboardResponse CreateDashboardResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboardResponse' {Text
dashboardId :: Text
$sel:dashboardId:CreateDashboardResponse' :: CreateDashboardResponse -> Text
dashboardId} -> Text
dashboardId) (\s :: CreateDashboardResponse
s@CreateDashboardResponse' {} Text
a -> CreateDashboardResponse
s {$sel:dashboardId:CreateDashboardResponse' :: Text
dashboardId = Text
a} :: CreateDashboardResponse)
createDashboardResponse_dashboardArn :: Lens.Lens' CreateDashboardResponse Prelude.Text
createDashboardResponse_dashboardArn :: (Text -> f Text)
-> CreateDashboardResponse -> f CreateDashboardResponse
createDashboardResponse_dashboardArn = (CreateDashboardResponse -> Text)
-> (CreateDashboardResponse -> Text -> CreateDashboardResponse)
-> Lens CreateDashboardResponse CreateDashboardResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDashboardResponse' {Text
dashboardArn :: Text
$sel:dashboardArn:CreateDashboardResponse' :: CreateDashboardResponse -> Text
dashboardArn} -> Text
dashboardArn) (\s :: CreateDashboardResponse
s@CreateDashboardResponse' {} Text
a -> CreateDashboardResponse
s {$sel:dashboardArn:CreateDashboardResponse' :: Text
dashboardArn = Text
a} :: CreateDashboardResponse)
instance Prelude.NFData CreateDashboardResponse