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.UpdateResource

Contents

Description

Updates data for the resource. It must be preceded by a describe call in order to have the latest information. The dataset in the request should be the one expected when performing another describe call.

Synopsis

Creating a Request

updateResource Source #

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

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

  • urName - The name of the resource to be updated.
  • urBookingOptions - The resource's booking options to be updated.
  • urOrganizationId - The identifier associated with the organization for which the resource is updated.
  • urResourceId - The identifier of the resource to be updated.

data UpdateResource Source #

See: updateResource smart constructor.

Instances

Eq UpdateResource Source # 
Data UpdateResource Source # 

Methods

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

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

toConstr :: UpdateResource -> Constr #

dataTypeOf :: UpdateResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateResource Source # 
Show UpdateResource Source # 
Generic UpdateResource Source # 

Associated Types

type Rep UpdateResource :: * -> * #

Hashable UpdateResource Source # 
ToJSON UpdateResource Source # 
NFData UpdateResource Source # 

Methods

rnf :: UpdateResource -> () #

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

Request Lenses

urName :: Lens' UpdateResource (Maybe Text) Source #

The name of the resource to be updated.

urBookingOptions :: Lens' UpdateResource (Maybe BookingOptions) Source #

The resource's booking options to be updated.

urOrganizationId :: Lens' UpdateResource Text Source #

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

urResourceId :: Lens' UpdateResource Text Source #

The identifier of the resource to be updated.

Destructuring the Response

updateResourceResponse Source #

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

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

data UpdateResourceResponse Source #

See: updateResourceResponse smart constructor.

Instances

Eq UpdateResourceResponse Source # 
Data UpdateResourceResponse Source # 

Methods

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

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

toConstr :: UpdateResourceResponse -> Constr #

dataTypeOf :: UpdateResourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateResourceResponse Source # 
Show UpdateResourceResponse Source # 
Generic UpdateResourceResponse Source # 
NFData UpdateResourceResponse Source # 

Methods

rnf :: UpdateResourceResponse -> () #

type Rep UpdateResourceResponse Source # 
type Rep UpdateResourceResponse = D1 * (MetaData "UpdateResourceResponse" "Network.AWS.WorkMail.UpdateResource" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" True) (C1 * (MetaCons "UpdateResourceResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_urrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

urrsResponseStatus :: Lens' UpdateResourceResponse Int Source #

  • - | The response status code.