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

Contents

Description

Creates a new Amazon WorkMail resource. The available types are equipment and room.

Synopsis

Creating a Request

createResource Source #

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

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

  • crOrganizationId - The identifier associated with the organization for which the resource is created.
  • crName - The name of the created resource.
  • crType - The type of the created resource.

data CreateResource Source #

See: createResource smart constructor.

Instances

Eq CreateResource Source # 
Data CreateResource Source # 

Methods

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

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

toConstr :: CreateResource -> Constr #

dataTypeOf :: CreateResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateResource Source # 
Show CreateResource Source # 
Generic CreateResource Source # 

Associated Types

type Rep CreateResource :: * -> * #

Hashable CreateResource Source # 
ToJSON CreateResource Source # 
NFData CreateResource Source # 

Methods

rnf :: CreateResource -> () #

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

Request Lenses

crOrganizationId :: Lens' CreateResource Text Source #

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

crName :: Lens' CreateResource Text Source #

The name of the created resource.

crType :: Lens' CreateResource ResourceType Source #

The type of the created resource.

Destructuring the Response

createResourceResponse Source #

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

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

data CreateResourceResponse Source #

See: createResourceResponse smart constructor.

Instances

Eq CreateResourceResponse Source # 
Data CreateResourceResponse Source # 

Methods

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

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

toConstr :: CreateResourceResponse -> Constr #

dataTypeOf :: CreateResourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateResourceResponse Source # 
Show CreateResourceResponse Source # 
Generic CreateResourceResponse Source # 
NFData CreateResourceResponse Source # 

Methods

rnf :: CreateResourceResponse -> () #

type Rep CreateResourceResponse Source # 
type Rep CreateResourceResponse = D1 * (MetaData "CreateResourceResponse" "Network.AWS.WorkMail.CreateResource" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "CreateResourceResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_crrsResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_crrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

crrsResourceId :: Lens' CreateResourceResponse (Maybe Text) Source #

The identifier of the created resource.

crrsResponseStatus :: Lens' CreateResourceResponse Int Source #

  • - | The response status code.