{-# 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.DescribePortal
(
DescribePortal (..),
newDescribePortal,
describePortal_portalId,
DescribePortalResponse (..),
newDescribePortalResponse,
describePortalResponse_portalAuthMode,
describePortalResponse_portalDescription,
describePortalResponse_notificationSenderEmail,
describePortalResponse_portalLogoImageLocation,
describePortalResponse_alarms,
describePortalResponse_roleArn,
describePortalResponse_httpStatus,
describePortalResponse_portalId,
describePortalResponse_portalArn,
describePortalResponse_portalName,
describePortalResponse_portalClientId,
describePortalResponse_portalStartUrl,
describePortalResponse_portalContactEmail,
describePortalResponse_portalStatus,
describePortalResponse_portalCreationDate,
describePortalResponse_portalLastUpdateDate,
)
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 DescribePortal = DescribePortal'
{
DescribePortal -> Text
portalId :: Prelude.Text
}
deriving (DescribePortal -> DescribePortal -> Bool
(DescribePortal -> DescribePortal -> Bool)
-> (DescribePortal -> DescribePortal -> Bool) -> Eq DescribePortal
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePortal -> DescribePortal -> Bool
$c/= :: DescribePortal -> DescribePortal -> Bool
== :: DescribePortal -> DescribePortal -> Bool
$c== :: DescribePortal -> DescribePortal -> Bool
Prelude.Eq, ReadPrec [DescribePortal]
ReadPrec DescribePortal
Int -> ReadS DescribePortal
ReadS [DescribePortal]
(Int -> ReadS DescribePortal)
-> ReadS [DescribePortal]
-> ReadPrec DescribePortal
-> ReadPrec [DescribePortal]
-> Read DescribePortal
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePortal]
$creadListPrec :: ReadPrec [DescribePortal]
readPrec :: ReadPrec DescribePortal
$creadPrec :: ReadPrec DescribePortal
readList :: ReadS [DescribePortal]
$creadList :: ReadS [DescribePortal]
readsPrec :: Int -> ReadS DescribePortal
$creadsPrec :: Int -> ReadS DescribePortal
Prelude.Read, Int -> DescribePortal -> ShowS
[DescribePortal] -> ShowS
DescribePortal -> String
(Int -> DescribePortal -> ShowS)
-> (DescribePortal -> String)
-> ([DescribePortal] -> ShowS)
-> Show DescribePortal
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePortal] -> ShowS
$cshowList :: [DescribePortal] -> ShowS
show :: DescribePortal -> String
$cshow :: DescribePortal -> String
showsPrec :: Int -> DescribePortal -> ShowS
$cshowsPrec :: Int -> DescribePortal -> ShowS
Prelude.Show, (forall x. DescribePortal -> Rep DescribePortal x)
-> (forall x. Rep DescribePortal x -> DescribePortal)
-> Generic DescribePortal
forall x. Rep DescribePortal x -> DescribePortal
forall x. DescribePortal -> Rep DescribePortal x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribePortal x -> DescribePortal
$cfrom :: forall x. DescribePortal -> Rep DescribePortal x
Prelude.Generic)
newDescribePortal ::
Prelude.Text ->
DescribePortal
newDescribePortal :: Text -> DescribePortal
newDescribePortal Text
pPortalId_ =
DescribePortal' :: Text -> DescribePortal
DescribePortal' {$sel:portalId:DescribePortal' :: Text
portalId = Text
pPortalId_}
describePortal_portalId :: Lens.Lens' DescribePortal Prelude.Text
describePortal_portalId :: (Text -> f Text) -> DescribePortal -> f DescribePortal
describePortal_portalId = (DescribePortal -> Text)
-> (DescribePortal -> Text -> DescribePortal)
-> Lens DescribePortal DescribePortal Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortal' {Text
portalId :: Text
$sel:portalId:DescribePortal' :: DescribePortal -> Text
portalId} -> Text
portalId) (\s :: DescribePortal
s@DescribePortal' {} Text
a -> DescribePortal
s {$sel:portalId:DescribePortal' :: Text
portalId = Text
a} :: DescribePortal)
instance Core.AWSRequest DescribePortal where
type
AWSResponse DescribePortal =
DescribePortalResponse
request :: DescribePortal -> Request DescribePortal
request = Service -> DescribePortal -> Request DescribePortal
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribePortal
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribePortal)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribePortal))
-> Logger
-> Service
-> Proxy DescribePortal
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribePortal)))
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 AuthMode
-> Maybe Text
-> Maybe Text
-> Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse
DescribePortalResponse'
(Maybe AuthMode
-> Maybe Text
-> Maybe Text
-> Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String (Maybe AuthMode)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe AuthMode)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"portalAuthMode")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
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
"portalDescription")
Either
String
(Maybe Text
-> Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
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
"notificationSenderEmail")
Either
String
(Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String (Maybe ImageLocation)
-> Either
String
(Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ImageLocation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"portalLogoImageLocation")
Either
String
(Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String (Maybe Alarms)
-> Either
String
(Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Alarms)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"alarms")
Either
String
(Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
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
"roleArn")
Either
String
(Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String Int
-> Either
String
(Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
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))
Either
String
(Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
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
"portalId")
Either
String
(Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
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
"portalArn")
Either
String
(Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
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
"portalName")
Either
String
(Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
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
"portalClientId")
Either
String
(Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse)
-> Either String Text
-> Either
String
(Text -> PortalStatus -> POSIX -> POSIX -> DescribePortalResponse)
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
"portalStartUrl")
Either
String
(Text -> PortalStatus -> POSIX -> POSIX -> DescribePortalResponse)
-> Either String Text
-> Either
String (PortalStatus -> POSIX -> POSIX -> DescribePortalResponse)
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
"portalContactEmail")
Either
String (PortalStatus -> POSIX -> POSIX -> DescribePortalResponse)
-> Either String PortalStatus
-> Either String (POSIX -> POSIX -> DescribePortalResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String PortalStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"portalStatus")
Either String (POSIX -> POSIX -> DescribePortalResponse)
-> Either String POSIX
-> Either String (POSIX -> DescribePortalResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"portalCreationDate")
Either String (POSIX -> DescribePortalResponse)
-> Either String POSIX -> Either String DescribePortalResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"portalLastUpdateDate")
)
instance Prelude.Hashable DescribePortal
instance Prelude.NFData DescribePortal
instance Core.ToHeaders DescribePortal where
toHeaders :: DescribePortal -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribePortal -> 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.ToPath DescribePortal where
toPath :: DescribePortal -> ByteString
toPath DescribePortal' {Text
portalId :: Text
$sel:portalId:DescribePortal' :: DescribePortal -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/portals/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
portalId]
instance Core.ToQuery DescribePortal where
toQuery :: DescribePortal -> QueryString
toQuery = QueryString -> DescribePortal -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribePortalResponse = DescribePortalResponse'
{
DescribePortalResponse -> Maybe AuthMode
portalAuthMode :: Prelude.Maybe AuthMode,
DescribePortalResponse -> Maybe Text
portalDescription :: Prelude.Maybe Prelude.Text,
DescribePortalResponse -> Maybe Text
notificationSenderEmail :: Prelude.Maybe Prelude.Text,
DescribePortalResponse -> Maybe ImageLocation
portalLogoImageLocation :: Prelude.Maybe ImageLocation,
DescribePortalResponse -> Maybe Alarms
alarms :: Prelude.Maybe Alarms,
DescribePortalResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
DescribePortalResponse -> Int
httpStatus :: Prelude.Int,
DescribePortalResponse -> Text
portalId :: Prelude.Text,
DescribePortalResponse -> Text
portalArn :: Prelude.Text,
DescribePortalResponse -> Text
portalName :: Prelude.Text,
DescribePortalResponse -> Text
portalClientId :: Prelude.Text,
DescribePortalResponse -> Text
portalStartUrl :: Prelude.Text,
DescribePortalResponse -> Text
portalContactEmail :: Prelude.Text,
DescribePortalResponse -> PortalStatus
portalStatus :: PortalStatus,
DescribePortalResponse -> POSIX
portalCreationDate :: Core.POSIX,
DescribePortalResponse -> POSIX
portalLastUpdateDate :: Core.POSIX
}
deriving (DescribePortalResponse -> DescribePortalResponse -> Bool
(DescribePortalResponse -> DescribePortalResponse -> Bool)
-> (DescribePortalResponse -> DescribePortalResponse -> Bool)
-> Eq DescribePortalResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePortalResponse -> DescribePortalResponse -> Bool
$c/= :: DescribePortalResponse -> DescribePortalResponse -> Bool
== :: DescribePortalResponse -> DescribePortalResponse -> Bool
$c== :: DescribePortalResponse -> DescribePortalResponse -> Bool
Prelude.Eq, ReadPrec [DescribePortalResponse]
ReadPrec DescribePortalResponse
Int -> ReadS DescribePortalResponse
ReadS [DescribePortalResponse]
(Int -> ReadS DescribePortalResponse)
-> ReadS [DescribePortalResponse]
-> ReadPrec DescribePortalResponse
-> ReadPrec [DescribePortalResponse]
-> Read DescribePortalResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePortalResponse]
$creadListPrec :: ReadPrec [DescribePortalResponse]
readPrec :: ReadPrec DescribePortalResponse
$creadPrec :: ReadPrec DescribePortalResponse
readList :: ReadS [DescribePortalResponse]
$creadList :: ReadS [DescribePortalResponse]
readsPrec :: Int -> ReadS DescribePortalResponse
$creadsPrec :: Int -> ReadS DescribePortalResponse
Prelude.Read, Int -> DescribePortalResponse -> ShowS
[DescribePortalResponse] -> ShowS
DescribePortalResponse -> String
(Int -> DescribePortalResponse -> ShowS)
-> (DescribePortalResponse -> String)
-> ([DescribePortalResponse] -> ShowS)
-> Show DescribePortalResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePortalResponse] -> ShowS
$cshowList :: [DescribePortalResponse] -> ShowS
show :: DescribePortalResponse -> String
$cshow :: DescribePortalResponse -> String
showsPrec :: Int -> DescribePortalResponse -> ShowS
$cshowsPrec :: Int -> DescribePortalResponse -> ShowS
Prelude.Show, (forall x. DescribePortalResponse -> Rep DescribePortalResponse x)
-> (forall x.
Rep DescribePortalResponse x -> DescribePortalResponse)
-> Generic DescribePortalResponse
forall x. Rep DescribePortalResponse x -> DescribePortalResponse
forall x. DescribePortalResponse -> Rep DescribePortalResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribePortalResponse x -> DescribePortalResponse
$cfrom :: forall x. DescribePortalResponse -> Rep DescribePortalResponse x
Prelude.Generic)
newDescribePortalResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
PortalStatus ->
Prelude.UTCTime ->
Prelude.UTCTime ->
DescribePortalResponse
newDescribePortalResponse :: Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> UTCTime
-> UTCTime
-> DescribePortalResponse
newDescribePortalResponse
Int
pHttpStatus_
Text
pPortalId_
Text
pPortalArn_
Text
pPortalName_
Text
pPortalClientId_
Text
pPortalStartUrl_
Text
pPortalContactEmail_
PortalStatus
pPortalStatus_
UTCTime
pPortalCreationDate_
UTCTime
pPortalLastUpdateDate_ =
DescribePortalResponse' :: Maybe AuthMode
-> Maybe Text
-> Maybe Text
-> Maybe ImageLocation
-> Maybe Alarms
-> Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> PortalStatus
-> POSIX
-> POSIX
-> DescribePortalResponse
DescribePortalResponse'
{ $sel:portalAuthMode:DescribePortalResponse' :: Maybe AuthMode
portalAuthMode =
Maybe AuthMode
forall a. Maybe a
Prelude.Nothing,
$sel:portalDescription:DescribePortalResponse' :: Maybe Text
portalDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:notificationSenderEmail:DescribePortalResponse' :: Maybe Text
notificationSenderEmail = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:portalLogoImageLocation:DescribePortalResponse' :: Maybe ImageLocation
portalLogoImageLocation = Maybe ImageLocation
forall a. Maybe a
Prelude.Nothing,
$sel:alarms:DescribePortalResponse' :: Maybe Alarms
alarms = Maybe Alarms
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:DescribePortalResponse' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribePortalResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:portalId:DescribePortalResponse' :: Text
portalId = Text
pPortalId_,
$sel:portalArn:DescribePortalResponse' :: Text
portalArn = Text
pPortalArn_,
$sel:portalName:DescribePortalResponse' :: Text
portalName = Text
pPortalName_,
$sel:portalClientId:DescribePortalResponse' :: Text
portalClientId = Text
pPortalClientId_,
$sel:portalStartUrl:DescribePortalResponse' :: Text
portalStartUrl = Text
pPortalStartUrl_,
$sel:portalContactEmail:DescribePortalResponse' :: Text
portalContactEmail = Text
pPortalContactEmail_,
$sel:portalStatus:DescribePortalResponse' :: PortalStatus
portalStatus = PortalStatus
pPortalStatus_,
$sel:portalCreationDate:DescribePortalResponse' :: POSIX
portalCreationDate =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pPortalCreationDate_,
$sel:portalLastUpdateDate:DescribePortalResponse' :: POSIX
portalLastUpdateDate =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pPortalLastUpdateDate_
}
describePortalResponse_portalAuthMode :: Lens.Lens' DescribePortalResponse (Prelude.Maybe AuthMode)
describePortalResponse_portalAuthMode :: (Maybe AuthMode -> f (Maybe AuthMode))
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalAuthMode = (DescribePortalResponse -> Maybe AuthMode)
-> (DescribePortalResponse
-> Maybe AuthMode -> DescribePortalResponse)
-> Lens
DescribePortalResponse
DescribePortalResponse
(Maybe AuthMode)
(Maybe AuthMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Maybe AuthMode
portalAuthMode :: Maybe AuthMode
$sel:portalAuthMode:DescribePortalResponse' :: DescribePortalResponse -> Maybe AuthMode
portalAuthMode} -> Maybe AuthMode
portalAuthMode) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Maybe AuthMode
a -> DescribePortalResponse
s {$sel:portalAuthMode:DescribePortalResponse' :: Maybe AuthMode
portalAuthMode = Maybe AuthMode
a} :: DescribePortalResponse)
describePortalResponse_portalDescription :: Lens.Lens' DescribePortalResponse (Prelude.Maybe Prelude.Text)
describePortalResponse_portalDescription :: (Maybe Text -> f (Maybe Text))
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalDescription = (DescribePortalResponse -> Maybe Text)
-> (DescribePortalResponse -> Maybe Text -> DescribePortalResponse)
-> Lens
DescribePortalResponse
DescribePortalResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Maybe Text
portalDescription :: Maybe Text
$sel:portalDescription:DescribePortalResponse' :: DescribePortalResponse -> Maybe Text
portalDescription} -> Maybe Text
portalDescription) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Maybe Text
a -> DescribePortalResponse
s {$sel:portalDescription:DescribePortalResponse' :: Maybe Text
portalDescription = Maybe Text
a} :: DescribePortalResponse)
describePortalResponse_notificationSenderEmail :: Lens.Lens' DescribePortalResponse (Prelude.Maybe Prelude.Text)
describePortalResponse_notificationSenderEmail :: (Maybe Text -> f (Maybe Text))
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_notificationSenderEmail = (DescribePortalResponse -> Maybe Text)
-> (DescribePortalResponse -> Maybe Text -> DescribePortalResponse)
-> Lens
DescribePortalResponse
DescribePortalResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Maybe Text
notificationSenderEmail :: Maybe Text
$sel:notificationSenderEmail:DescribePortalResponse' :: DescribePortalResponse -> Maybe Text
notificationSenderEmail} -> Maybe Text
notificationSenderEmail) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Maybe Text
a -> DescribePortalResponse
s {$sel:notificationSenderEmail:DescribePortalResponse' :: Maybe Text
notificationSenderEmail = Maybe Text
a} :: DescribePortalResponse)
describePortalResponse_portalLogoImageLocation :: Lens.Lens' DescribePortalResponse (Prelude.Maybe ImageLocation)
describePortalResponse_portalLogoImageLocation :: (Maybe ImageLocation -> f (Maybe ImageLocation))
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalLogoImageLocation = (DescribePortalResponse -> Maybe ImageLocation)
-> (DescribePortalResponse
-> Maybe ImageLocation -> DescribePortalResponse)
-> Lens
DescribePortalResponse
DescribePortalResponse
(Maybe ImageLocation)
(Maybe ImageLocation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Maybe ImageLocation
portalLogoImageLocation :: Maybe ImageLocation
$sel:portalLogoImageLocation:DescribePortalResponse' :: DescribePortalResponse -> Maybe ImageLocation
portalLogoImageLocation} -> Maybe ImageLocation
portalLogoImageLocation) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Maybe ImageLocation
a -> DescribePortalResponse
s {$sel:portalLogoImageLocation:DescribePortalResponse' :: Maybe ImageLocation
portalLogoImageLocation = Maybe ImageLocation
a} :: DescribePortalResponse)
describePortalResponse_alarms :: Lens.Lens' DescribePortalResponse (Prelude.Maybe Alarms)
describePortalResponse_alarms :: (Maybe Alarms -> f (Maybe Alarms))
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_alarms = (DescribePortalResponse -> Maybe Alarms)
-> (DescribePortalResponse
-> Maybe Alarms -> DescribePortalResponse)
-> Lens
DescribePortalResponse
DescribePortalResponse
(Maybe Alarms)
(Maybe Alarms)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Maybe Alarms
alarms :: Maybe Alarms
$sel:alarms:DescribePortalResponse' :: DescribePortalResponse -> Maybe Alarms
alarms} -> Maybe Alarms
alarms) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Maybe Alarms
a -> DescribePortalResponse
s {$sel:alarms:DescribePortalResponse' :: Maybe Alarms
alarms = Maybe Alarms
a} :: DescribePortalResponse)
describePortalResponse_roleArn :: Lens.Lens' DescribePortalResponse (Prelude.Maybe Prelude.Text)
describePortalResponse_roleArn :: (Maybe Text -> f (Maybe Text))
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_roleArn = (DescribePortalResponse -> Maybe Text)
-> (DescribePortalResponse -> Maybe Text -> DescribePortalResponse)
-> Lens
DescribePortalResponse
DescribePortalResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DescribePortalResponse' :: DescribePortalResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Maybe Text
a -> DescribePortalResponse
s {$sel:roleArn:DescribePortalResponse' :: Maybe Text
roleArn = Maybe Text
a} :: DescribePortalResponse)
describePortalResponse_httpStatus :: Lens.Lens' DescribePortalResponse Prelude.Int
describePortalResponse_httpStatus :: (Int -> f Int)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_httpStatus = (DescribePortalResponse -> Int)
-> (DescribePortalResponse -> Int -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribePortalResponse' :: DescribePortalResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Int
a -> DescribePortalResponse
s {$sel:httpStatus:DescribePortalResponse' :: Int
httpStatus = Int
a} :: DescribePortalResponse)
describePortalResponse_portalId :: Lens.Lens' DescribePortalResponse Prelude.Text
describePortalResponse_portalId :: (Text -> f Text)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalId = (DescribePortalResponse -> Text)
-> (DescribePortalResponse -> Text -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Text
portalId :: Text
$sel:portalId:DescribePortalResponse' :: DescribePortalResponse -> Text
portalId} -> Text
portalId) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Text
a -> DescribePortalResponse
s {$sel:portalId:DescribePortalResponse' :: Text
portalId = Text
a} :: DescribePortalResponse)
describePortalResponse_portalArn :: Lens.Lens' DescribePortalResponse Prelude.Text
describePortalResponse_portalArn :: (Text -> f Text)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalArn = (DescribePortalResponse -> Text)
-> (DescribePortalResponse -> Text -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Text
portalArn :: Text
$sel:portalArn:DescribePortalResponse' :: DescribePortalResponse -> Text
portalArn} -> Text
portalArn) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Text
a -> DescribePortalResponse
s {$sel:portalArn:DescribePortalResponse' :: Text
portalArn = Text
a} :: DescribePortalResponse)
describePortalResponse_portalName :: Lens.Lens' DescribePortalResponse Prelude.Text
describePortalResponse_portalName :: (Text -> f Text)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalName = (DescribePortalResponse -> Text)
-> (DescribePortalResponse -> Text -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Text
portalName :: Text
$sel:portalName:DescribePortalResponse' :: DescribePortalResponse -> Text
portalName} -> Text
portalName) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Text
a -> DescribePortalResponse
s {$sel:portalName:DescribePortalResponse' :: Text
portalName = Text
a} :: DescribePortalResponse)
describePortalResponse_portalClientId :: Lens.Lens' DescribePortalResponse Prelude.Text
describePortalResponse_portalClientId :: (Text -> f Text)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalClientId = (DescribePortalResponse -> Text)
-> (DescribePortalResponse -> Text -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Text
portalClientId :: Text
$sel:portalClientId:DescribePortalResponse' :: DescribePortalResponse -> Text
portalClientId} -> Text
portalClientId) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Text
a -> DescribePortalResponse
s {$sel:portalClientId:DescribePortalResponse' :: Text
portalClientId = Text
a} :: DescribePortalResponse)
describePortalResponse_portalStartUrl :: Lens.Lens' DescribePortalResponse Prelude.Text
describePortalResponse_portalStartUrl :: (Text -> f Text)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalStartUrl = (DescribePortalResponse -> Text)
-> (DescribePortalResponse -> Text -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Text
portalStartUrl :: Text
$sel:portalStartUrl:DescribePortalResponse' :: DescribePortalResponse -> Text
portalStartUrl} -> Text
portalStartUrl) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Text
a -> DescribePortalResponse
s {$sel:portalStartUrl:DescribePortalResponse' :: Text
portalStartUrl = Text
a} :: DescribePortalResponse)
describePortalResponse_portalContactEmail :: Lens.Lens' DescribePortalResponse Prelude.Text
describePortalResponse_portalContactEmail :: (Text -> f Text)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalContactEmail = (DescribePortalResponse -> Text)
-> (DescribePortalResponse -> Text -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {Text
portalContactEmail :: Text
$sel:portalContactEmail:DescribePortalResponse' :: DescribePortalResponse -> Text
portalContactEmail} -> Text
portalContactEmail) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} Text
a -> DescribePortalResponse
s {$sel:portalContactEmail:DescribePortalResponse' :: Text
portalContactEmail = Text
a} :: DescribePortalResponse)
describePortalResponse_portalStatus :: Lens.Lens' DescribePortalResponse PortalStatus
describePortalResponse_portalStatus :: (PortalStatus -> f PortalStatus)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalStatus = (DescribePortalResponse -> PortalStatus)
-> (DescribePortalResponse
-> PortalStatus -> DescribePortalResponse)
-> Lens
DescribePortalResponse
DescribePortalResponse
PortalStatus
PortalStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {PortalStatus
portalStatus :: PortalStatus
$sel:portalStatus:DescribePortalResponse' :: DescribePortalResponse -> PortalStatus
portalStatus} -> PortalStatus
portalStatus) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} PortalStatus
a -> DescribePortalResponse
s {$sel:portalStatus:DescribePortalResponse' :: PortalStatus
portalStatus = PortalStatus
a} :: DescribePortalResponse)
describePortalResponse_portalCreationDate :: Lens.Lens' DescribePortalResponse Prelude.UTCTime
describePortalResponse_portalCreationDate :: (UTCTime -> f UTCTime)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalCreationDate = (DescribePortalResponse -> POSIX)
-> (DescribePortalResponse -> POSIX -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {POSIX
portalCreationDate :: POSIX
$sel:portalCreationDate:DescribePortalResponse' :: DescribePortalResponse -> POSIX
portalCreationDate} -> POSIX
portalCreationDate) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} POSIX
a -> DescribePortalResponse
s {$sel:portalCreationDate:DescribePortalResponse' :: POSIX
portalCreationDate = POSIX
a} :: DescribePortalResponse) ((POSIX -> f POSIX)
-> DescribePortalResponse -> f DescribePortalResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribePortalResponse
-> f DescribePortalResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describePortalResponse_portalLastUpdateDate :: Lens.Lens' DescribePortalResponse Prelude.UTCTime
describePortalResponse_portalLastUpdateDate :: (UTCTime -> f UTCTime)
-> DescribePortalResponse -> f DescribePortalResponse
describePortalResponse_portalLastUpdateDate = (DescribePortalResponse -> POSIX)
-> (DescribePortalResponse -> POSIX -> DescribePortalResponse)
-> Lens DescribePortalResponse DescribePortalResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePortalResponse' {POSIX
portalLastUpdateDate :: POSIX
$sel:portalLastUpdateDate:DescribePortalResponse' :: DescribePortalResponse -> POSIX
portalLastUpdateDate} -> POSIX
portalLastUpdateDate) (\s :: DescribePortalResponse
s@DescribePortalResponse' {} POSIX
a -> DescribePortalResponse
s {$sel:portalLastUpdateDate:DescribePortalResponse' :: POSIX
portalLastUpdateDate = POSIX
a} :: DescribePortalResponse) ((POSIX -> f POSIX)
-> DescribePortalResponse -> f DescribePortalResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribePortalResponse
-> f DescribePortalResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Prelude.NFData DescribePortalResponse