amazonka-workmail-1.6.1: 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 # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Data CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

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 # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Show CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Generic CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Associated Types

type Rep CreateResource :: Type -> Type #

Hashable CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

ToJSON CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

AWSRequest CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Associated Types

type Rs CreateResource :: Type #

ToHeaders CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

ToPath CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

ToQuery CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

NFData CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Methods

rnf :: CreateResource -> () #

type Rep CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

type Rep CreateResource = D1 (MetaData "CreateResource" "Network.AWS.WorkMail.CreateResource" "amazonka-workmail-1.6.1-9RRutGyw1Wr48gbVhlSAOF" False) (C1 (MetaCons "CreateResource'" PrefixI True) (S1 (MetaSel (Just "_crOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_crName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_crType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceType))))
type Rs CreateResource Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

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 # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Data CreateResourceResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

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 # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Show CreateResourceResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Generic CreateResourceResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Associated Types

type Rep CreateResourceResponse :: Type -> Type #

NFData CreateResourceResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

Methods

rnf :: CreateResourceResponse -> () #

type Rep CreateResourceResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.CreateResource

type Rep CreateResourceResponse = D1 (MetaData "CreateResourceResponse" "Network.AWS.WorkMail.CreateResource" "amazonka-workmail-1.6.1-9RRutGyw1Wr48gbVhlSAOF" False) (C1 (MetaCons "CreateResourceResponse'" PrefixI True) (S1 (MetaSel (Just "_crrsResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.