amazonka-workmail-1.6.0: Amazon WorkMail SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WorkMail.DescribeResource

Contents

Description

Returns the data available for the resource.

Synopsis

Creating a Request

describeResource Source #

Creates a value of DescribeResource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • drOrganizationId - The identifier associated with the organization for which the resource is described.
  • drResourceId - The identifier of the resource to be described.

data DescribeResource Source #

See: describeResource smart constructor.

Instances

Eq DescribeResource Source # 
Data DescribeResource Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeResource -> c DescribeResource #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeResource #

toConstr :: DescribeResource -> Constr #

dataTypeOf :: DescribeResource -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeResource) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeResource) #

gmapT :: (forall b. Data b => b -> b) -> DescribeResource -> DescribeResource #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeResource -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeResource -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeResource -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeResource -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeResource -> m DescribeResource #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeResource -> m DescribeResource #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeResource -> m DescribeResource #

Read DescribeResource Source # 
Show DescribeResource Source # 
Generic DescribeResource Source # 
Hashable DescribeResource Source # 
ToJSON DescribeResource Source # 
NFData DescribeResource Source # 

Methods

rnf :: DescribeResource -> () #

AWSRequest DescribeResource Source # 
ToHeaders DescribeResource Source # 
ToPath DescribeResource Source # 
ToQuery DescribeResource Source # 
type Rep DescribeResource Source # 
type Rep DescribeResource = D1 * (MetaData "DescribeResource" "Network.AWS.WorkMail.DescribeResource" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "DescribeResource'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_drOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_drResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DescribeResource Source # 

Request Lenses

drOrganizationId :: Lens' DescribeResource Text Source #

The identifier associated with the organization for which the resource is described.

drResourceId :: Lens' DescribeResource Text Source #

The identifier of the resource to be described.

Destructuring the Response

describeResourceResponse Source #

Creates a value of DescribeResourceResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • drrsEmail - The email of the described resource.
  • drrsState - The state of the resource: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to Amazon WorkMail).
  • drrsResourceId - The identifier of the described resource.
  • drrsDisabledDate - The date and time when a resource was registered from Amazon WorkMail, in UNIX epoch time format.
  • drrsName - The name of the described resource.
  • drrsType - The type of the described resource.
  • drrsEnabledDate - The date and time when a resource was registered to Amazon WorkMail, in UNIX epoch time format.
  • drrsBookingOptions - The booking options for the described resource.
  • drrsResponseStatus - -- | The response status code.

data DescribeResourceResponse Source #

See: describeResourceResponse smart constructor.

Instances

Eq DescribeResourceResponse Source # 
Data DescribeResourceResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeResourceResponse -> c DescribeResourceResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeResourceResponse #

toConstr :: DescribeResourceResponse -> Constr #

dataTypeOf :: DescribeResourceResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeResourceResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeResourceResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeResourceResponse -> DescribeResourceResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeResourceResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeResourceResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeResourceResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeResourceResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeResourceResponse -> m DescribeResourceResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeResourceResponse -> m DescribeResourceResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeResourceResponse -> m DescribeResourceResponse #

Read DescribeResourceResponse Source # 
Show DescribeResourceResponse Source # 
Generic DescribeResourceResponse Source # 
NFData DescribeResourceResponse Source # 
type Rep DescribeResourceResponse Source # 

Response Lenses

drrsEmail :: Lens' DescribeResourceResponse (Maybe Text) Source #

The email of the described resource.

drrsState :: Lens' DescribeResourceResponse (Maybe EntityState) Source #

The state of the resource: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to Amazon WorkMail).

drrsResourceId :: Lens' DescribeResourceResponse (Maybe Text) Source #

The identifier of the described resource.

drrsDisabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime) Source #

The date and time when a resource was registered from Amazon WorkMail, in UNIX epoch time format.

drrsName :: Lens' DescribeResourceResponse (Maybe Text) Source #

The name of the described resource.

drrsType :: Lens' DescribeResourceResponse (Maybe ResourceType) Source #

The type of the described resource.

drrsEnabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime) Source #

The date and time when a resource was registered to Amazon WorkMail, in UNIX epoch time format.

drrsBookingOptions :: Lens' DescribeResourceResponse (Maybe BookingOptions) Source #

The booking options for the described resource.