{-# 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.WorkMail.DescribeResource
(
DescribeResource (..),
newDescribeResource,
describeResource_organizationId,
describeResource_resourceId,
DescribeResourceResponse (..),
newDescribeResourceResponse,
describeResourceResponse_email,
describeResourceResponse_state,
describeResourceResponse_resourceId,
describeResourceResponse_disabledDate,
describeResourceResponse_name,
describeResourceResponse_type,
describeResourceResponse_enabledDate,
describeResourceResponse_bookingOptions,
describeResourceResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WorkMail.Types
data DescribeResource = DescribeResource'
{
DescribeResource -> Text
organizationId :: Prelude.Text,
DescribeResource -> Text
resourceId :: Prelude.Text
}
deriving (DescribeResource -> DescribeResource -> Bool
(DescribeResource -> DescribeResource -> Bool)
-> (DescribeResource -> DescribeResource -> Bool)
-> Eq DescribeResource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeResource -> DescribeResource -> Bool
$c/= :: DescribeResource -> DescribeResource -> Bool
== :: DescribeResource -> DescribeResource -> Bool
$c== :: DescribeResource -> DescribeResource -> Bool
Prelude.Eq, ReadPrec [DescribeResource]
ReadPrec DescribeResource
Int -> ReadS DescribeResource
ReadS [DescribeResource]
(Int -> ReadS DescribeResource)
-> ReadS [DescribeResource]
-> ReadPrec DescribeResource
-> ReadPrec [DescribeResource]
-> Read DescribeResource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeResource]
$creadListPrec :: ReadPrec [DescribeResource]
readPrec :: ReadPrec DescribeResource
$creadPrec :: ReadPrec DescribeResource
readList :: ReadS [DescribeResource]
$creadList :: ReadS [DescribeResource]
readsPrec :: Int -> ReadS DescribeResource
$creadsPrec :: Int -> ReadS DescribeResource
Prelude.Read, Int -> DescribeResource -> ShowS
[DescribeResource] -> ShowS
DescribeResource -> String
(Int -> DescribeResource -> ShowS)
-> (DescribeResource -> String)
-> ([DescribeResource] -> ShowS)
-> Show DescribeResource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeResource] -> ShowS
$cshowList :: [DescribeResource] -> ShowS
show :: DescribeResource -> String
$cshow :: DescribeResource -> String
showsPrec :: Int -> DescribeResource -> ShowS
$cshowsPrec :: Int -> DescribeResource -> ShowS
Prelude.Show, (forall x. DescribeResource -> Rep DescribeResource x)
-> (forall x. Rep DescribeResource x -> DescribeResource)
-> Generic DescribeResource
forall x. Rep DescribeResource x -> DescribeResource
forall x. DescribeResource -> Rep DescribeResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeResource x -> DescribeResource
$cfrom :: forall x. DescribeResource -> Rep DescribeResource x
Prelude.Generic)
newDescribeResource ::
Prelude.Text ->
Prelude.Text ->
DescribeResource
newDescribeResource :: Text -> Text -> DescribeResource
newDescribeResource Text
pOrganizationId_ Text
pResourceId_ =
DescribeResource' :: Text -> Text -> DescribeResource
DescribeResource'
{ $sel:organizationId:DescribeResource' :: Text
organizationId =
Text
pOrganizationId_,
$sel:resourceId:DescribeResource' :: Text
resourceId = Text
pResourceId_
}
describeResource_organizationId :: Lens.Lens' DescribeResource Prelude.Text
describeResource_organizationId :: (Text -> f Text) -> DescribeResource -> f DescribeResource
describeResource_organizationId = (DescribeResource -> Text)
-> (DescribeResource -> Text -> DescribeResource)
-> Lens DescribeResource DescribeResource Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResource' {Text
organizationId :: Text
$sel:organizationId:DescribeResource' :: DescribeResource -> Text
organizationId} -> Text
organizationId) (\s :: DescribeResource
s@DescribeResource' {} Text
a -> DescribeResource
s {$sel:organizationId:DescribeResource' :: Text
organizationId = Text
a} :: DescribeResource)
describeResource_resourceId :: Lens.Lens' DescribeResource Prelude.Text
describeResource_resourceId :: (Text -> f Text) -> DescribeResource -> f DescribeResource
describeResource_resourceId = (DescribeResource -> Text)
-> (DescribeResource -> Text -> DescribeResource)
-> Lens DescribeResource DescribeResource Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResource' {Text
resourceId :: Text
$sel:resourceId:DescribeResource' :: DescribeResource -> Text
resourceId} -> Text
resourceId) (\s :: DescribeResource
s@DescribeResource' {} Text
a -> DescribeResource
s {$sel:resourceId:DescribeResource' :: Text
resourceId = Text
a} :: DescribeResource)
instance Core.AWSRequest DescribeResource where
type
AWSResponse DescribeResource =
DescribeResourceResponse
request :: DescribeResource -> Request DescribeResource
request = Service -> DescribeResource -> Request DescribeResource
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeResource
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeResource)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeResource))
-> Logger
-> Service
-> Proxy DescribeResource
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeResource)))
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 EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse
DescribeResourceResponse'
(Maybe Text
-> Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
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
"Email")
Either
String
(Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
-> Either String (Maybe EntityState)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe EntityState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"State")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
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
"ResourceId")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DisabledDate")
Either
String
(Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
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
"Name")
Either
String
(Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse)
-> Either String (Maybe ResourceType)
-> Either
String
(Maybe POSIX
-> Maybe BookingOptions -> Int -> DescribeResourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ResourceType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Type")
Either
String
(Maybe POSIX
-> Maybe BookingOptions -> Int -> DescribeResourceResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe BookingOptions -> Int -> DescribeResourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EnabledDate")
Either
String (Maybe BookingOptions -> Int -> DescribeResourceResponse)
-> Either String (Maybe BookingOptions)
-> Either String (Int -> DescribeResourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe BookingOptions)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"BookingOptions")
Either String (Int -> DescribeResourceResponse)
-> Either String Int -> Either String DescribeResourceResponse
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 DescribeResource
instance Prelude.NFData DescribeResource
instance Core.ToHeaders DescribeResource where
toHeaders :: DescribeResource -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeResource -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"WorkMailService.DescribeResource" ::
Prelude.ByteString
),
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 DescribeResource where
toJSON :: DescribeResource -> Value
toJSON DescribeResource' {Text
resourceId :: Text
organizationId :: Text
$sel:resourceId:DescribeResource' :: DescribeResource -> Text
$sel:organizationId:DescribeResource' :: DescribeResource -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"OrganizationId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
organizationId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceId)
]
)
instance Core.ToPath DescribeResource where
toPath :: DescribeResource -> ByteString
toPath = ByteString -> DescribeResource -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeResource where
toQuery :: DescribeResource -> QueryString
toQuery = QueryString -> DescribeResource -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeResourceResponse = DescribeResourceResponse'
{
DescribeResourceResponse -> Maybe Text
email :: Prelude.Maybe Prelude.Text,
DescribeResourceResponse -> Maybe EntityState
state :: Prelude.Maybe EntityState,
DescribeResourceResponse -> Maybe Text
resourceId :: Prelude.Maybe Prelude.Text,
DescribeResourceResponse -> Maybe POSIX
disabledDate :: Prelude.Maybe Core.POSIX,
DescribeResourceResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeResourceResponse -> Maybe ResourceType
type' :: Prelude.Maybe ResourceType,
DescribeResourceResponse -> Maybe POSIX
enabledDate :: Prelude.Maybe Core.POSIX,
DescribeResourceResponse -> Maybe BookingOptions
bookingOptions :: Prelude.Maybe BookingOptions,
DescribeResourceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeResourceResponse -> DescribeResourceResponse -> Bool
(DescribeResourceResponse -> DescribeResourceResponse -> Bool)
-> (DescribeResourceResponse -> DescribeResourceResponse -> Bool)
-> Eq DescribeResourceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeResourceResponse -> DescribeResourceResponse -> Bool
$c/= :: DescribeResourceResponse -> DescribeResourceResponse -> Bool
== :: DescribeResourceResponse -> DescribeResourceResponse -> Bool
$c== :: DescribeResourceResponse -> DescribeResourceResponse -> Bool
Prelude.Eq, ReadPrec [DescribeResourceResponse]
ReadPrec DescribeResourceResponse
Int -> ReadS DescribeResourceResponse
ReadS [DescribeResourceResponse]
(Int -> ReadS DescribeResourceResponse)
-> ReadS [DescribeResourceResponse]
-> ReadPrec DescribeResourceResponse
-> ReadPrec [DescribeResourceResponse]
-> Read DescribeResourceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeResourceResponse]
$creadListPrec :: ReadPrec [DescribeResourceResponse]
readPrec :: ReadPrec DescribeResourceResponse
$creadPrec :: ReadPrec DescribeResourceResponse
readList :: ReadS [DescribeResourceResponse]
$creadList :: ReadS [DescribeResourceResponse]
readsPrec :: Int -> ReadS DescribeResourceResponse
$creadsPrec :: Int -> ReadS DescribeResourceResponse
Prelude.Read, Int -> DescribeResourceResponse -> ShowS
[DescribeResourceResponse] -> ShowS
DescribeResourceResponse -> String
(Int -> DescribeResourceResponse -> ShowS)
-> (DescribeResourceResponse -> String)
-> ([DescribeResourceResponse] -> ShowS)
-> Show DescribeResourceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeResourceResponse] -> ShowS
$cshowList :: [DescribeResourceResponse] -> ShowS
show :: DescribeResourceResponse -> String
$cshow :: DescribeResourceResponse -> String
showsPrec :: Int -> DescribeResourceResponse -> ShowS
$cshowsPrec :: Int -> DescribeResourceResponse -> ShowS
Prelude.Show, (forall x.
DescribeResourceResponse -> Rep DescribeResourceResponse x)
-> (forall x.
Rep DescribeResourceResponse x -> DescribeResourceResponse)
-> Generic DescribeResourceResponse
forall x.
Rep DescribeResourceResponse x -> DescribeResourceResponse
forall x.
DescribeResourceResponse -> Rep DescribeResourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeResourceResponse x -> DescribeResourceResponse
$cfrom :: forall x.
DescribeResourceResponse -> Rep DescribeResourceResponse x
Prelude.Generic)
newDescribeResourceResponse ::
Prelude.Int ->
DescribeResourceResponse
newDescribeResourceResponse :: Int -> DescribeResourceResponse
newDescribeResourceResponse Int
pHttpStatus_ =
DescribeResourceResponse' :: Maybe Text
-> Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ResourceType
-> Maybe POSIX
-> Maybe BookingOptions
-> Int
-> DescribeResourceResponse
DescribeResourceResponse'
{ $sel:email:DescribeResourceResponse' :: Maybe Text
email = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:state:DescribeResourceResponse' :: Maybe EntityState
state = Maybe EntityState
forall a. Maybe a
Prelude.Nothing,
$sel:resourceId:DescribeResourceResponse' :: Maybe Text
resourceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:disabledDate:DescribeResourceResponse' :: Maybe POSIX
disabledDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeResourceResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':DescribeResourceResponse' :: Maybe ResourceType
type' = Maybe ResourceType
forall a. Maybe a
Prelude.Nothing,
$sel:enabledDate:DescribeResourceResponse' :: Maybe POSIX
enabledDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:bookingOptions:DescribeResourceResponse' :: Maybe BookingOptions
bookingOptions = Maybe BookingOptions
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeResourceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeResourceResponse_email :: Lens.Lens' DescribeResourceResponse (Prelude.Maybe Prelude.Text)
describeResourceResponse_email :: (Maybe Text -> f (Maybe Text))
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_email = (DescribeResourceResponse -> Maybe Text)
-> (DescribeResourceResponse
-> Maybe Text -> DescribeResourceResponse)
-> Lens
DescribeResourceResponse
DescribeResourceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Maybe Text
email :: Maybe Text
$sel:email:DescribeResourceResponse' :: DescribeResourceResponse -> Maybe Text
email} -> Maybe Text
email) (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Maybe Text
a -> DescribeResourceResponse
s {$sel:email:DescribeResourceResponse' :: Maybe Text
email = Maybe Text
a} :: DescribeResourceResponse)
describeResourceResponse_state :: Lens.Lens' DescribeResourceResponse (Prelude.Maybe EntityState)
describeResourceResponse_state :: (Maybe EntityState -> f (Maybe EntityState))
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_state = (DescribeResourceResponse -> Maybe EntityState)
-> (DescribeResourceResponse
-> Maybe EntityState -> DescribeResourceResponse)
-> Lens
DescribeResourceResponse
DescribeResourceResponse
(Maybe EntityState)
(Maybe EntityState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Maybe EntityState
state :: Maybe EntityState
$sel:state:DescribeResourceResponse' :: DescribeResourceResponse -> Maybe EntityState
state} -> Maybe EntityState
state) (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Maybe EntityState
a -> DescribeResourceResponse
s {$sel:state:DescribeResourceResponse' :: Maybe EntityState
state = Maybe EntityState
a} :: DescribeResourceResponse)
describeResourceResponse_resourceId :: Lens.Lens' DescribeResourceResponse (Prelude.Maybe Prelude.Text)
describeResourceResponse_resourceId :: (Maybe Text -> f (Maybe Text))
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_resourceId = (DescribeResourceResponse -> Maybe Text)
-> (DescribeResourceResponse
-> Maybe Text -> DescribeResourceResponse)
-> Lens
DescribeResourceResponse
DescribeResourceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Maybe Text
resourceId :: Maybe Text
$sel:resourceId:DescribeResourceResponse' :: DescribeResourceResponse -> Maybe Text
resourceId} -> Maybe Text
resourceId) (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Maybe Text
a -> DescribeResourceResponse
s {$sel:resourceId:DescribeResourceResponse' :: Maybe Text
resourceId = Maybe Text
a} :: DescribeResourceResponse)
describeResourceResponse_disabledDate :: Lens.Lens' DescribeResourceResponse (Prelude.Maybe Prelude.UTCTime)
describeResourceResponse_disabledDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_disabledDate = (DescribeResourceResponse -> Maybe POSIX)
-> (DescribeResourceResponse
-> Maybe POSIX -> DescribeResourceResponse)
-> Lens
DescribeResourceResponse
DescribeResourceResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Maybe POSIX
disabledDate :: Maybe POSIX
$sel:disabledDate:DescribeResourceResponse' :: DescribeResourceResponse -> Maybe POSIX
disabledDate} -> Maybe POSIX
disabledDate) (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Maybe POSIX
a -> DescribeResourceResponse
s {$sel:disabledDate:DescribeResourceResponse' :: Maybe POSIX
disabledDate = Maybe POSIX
a} :: DescribeResourceResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeResourceResponse -> f DescribeResourceResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeResourceResponse
-> f DescribeResourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeResourceResponse_name :: Lens.Lens' DescribeResourceResponse (Prelude.Maybe Prelude.Text)
describeResourceResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_name = (DescribeResourceResponse -> Maybe Text)
-> (DescribeResourceResponse
-> Maybe Text -> DescribeResourceResponse)
-> Lens
DescribeResourceResponse
DescribeResourceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeResourceResponse' :: DescribeResourceResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Maybe Text
a -> DescribeResourceResponse
s {$sel:name:DescribeResourceResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeResourceResponse)
describeResourceResponse_type :: Lens.Lens' DescribeResourceResponse (Prelude.Maybe ResourceType)
describeResourceResponse_type :: (Maybe ResourceType -> f (Maybe ResourceType))
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_type = (DescribeResourceResponse -> Maybe ResourceType)
-> (DescribeResourceResponse
-> Maybe ResourceType -> DescribeResourceResponse)
-> Lens
DescribeResourceResponse
DescribeResourceResponse
(Maybe ResourceType)
(Maybe ResourceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Maybe ResourceType
type' :: Maybe ResourceType
$sel:type':DescribeResourceResponse' :: DescribeResourceResponse -> Maybe ResourceType
type'} -> Maybe ResourceType
type') (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Maybe ResourceType
a -> DescribeResourceResponse
s {$sel:type':DescribeResourceResponse' :: Maybe ResourceType
type' = Maybe ResourceType
a} :: DescribeResourceResponse)
describeResourceResponse_enabledDate :: Lens.Lens' DescribeResourceResponse (Prelude.Maybe Prelude.UTCTime)
describeResourceResponse_enabledDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_enabledDate = (DescribeResourceResponse -> Maybe POSIX)
-> (DescribeResourceResponse
-> Maybe POSIX -> DescribeResourceResponse)
-> Lens
DescribeResourceResponse
DescribeResourceResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Maybe POSIX
enabledDate :: Maybe POSIX
$sel:enabledDate:DescribeResourceResponse' :: DescribeResourceResponse -> Maybe POSIX
enabledDate} -> Maybe POSIX
enabledDate) (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Maybe POSIX
a -> DescribeResourceResponse
s {$sel:enabledDate:DescribeResourceResponse' :: Maybe POSIX
enabledDate = Maybe POSIX
a} :: DescribeResourceResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeResourceResponse -> f DescribeResourceResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeResourceResponse
-> f DescribeResourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeResourceResponse_bookingOptions :: Lens.Lens' DescribeResourceResponse (Prelude.Maybe BookingOptions)
describeResourceResponse_bookingOptions :: (Maybe BookingOptions -> f (Maybe BookingOptions))
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_bookingOptions = (DescribeResourceResponse -> Maybe BookingOptions)
-> (DescribeResourceResponse
-> Maybe BookingOptions -> DescribeResourceResponse)
-> Lens
DescribeResourceResponse
DescribeResourceResponse
(Maybe BookingOptions)
(Maybe BookingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Maybe BookingOptions
bookingOptions :: Maybe BookingOptions
$sel:bookingOptions:DescribeResourceResponse' :: DescribeResourceResponse -> Maybe BookingOptions
bookingOptions} -> Maybe BookingOptions
bookingOptions) (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Maybe BookingOptions
a -> DescribeResourceResponse
s {$sel:bookingOptions:DescribeResourceResponse' :: Maybe BookingOptions
bookingOptions = Maybe BookingOptions
a} :: DescribeResourceResponse)
describeResourceResponse_httpStatus :: Lens.Lens' DescribeResourceResponse Prelude.Int
describeResourceResponse_httpStatus :: (Int -> f Int)
-> DescribeResourceResponse -> f DescribeResourceResponse
describeResourceResponse_httpStatus = (DescribeResourceResponse -> Int)
-> (DescribeResourceResponse -> Int -> DescribeResourceResponse)
-> Lens DescribeResourceResponse DescribeResourceResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourceResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeResourceResponse' :: DescribeResourceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeResourceResponse
s@DescribeResourceResponse' {} Int
a -> DescribeResourceResponse
s {$sel:httpStatus:DescribeResourceResponse' :: Int
httpStatus = Int
a} :: DescribeResourceResponse)
instance Prelude.NFData DescribeResourceResponse