amazonka-workmail-2.0: Amazon WorkMail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkMail.CreateResource

Description

Creates a new WorkMail resource.

Synopsis

Creating a Request

data CreateResource Source #

See: newCreateResource smart constructor.

Constructors

CreateResource' 

Fields

  • organizationId :: Text

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

  • name :: Text

    The name of the new resource.

  • type' :: ResourceType

    The type of the new resource. The available types are equipment and room.

Instances

Instances details
ToJSON CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

ToHeaders CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

ToPath CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

ToQuery CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

AWSRequest CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Associated Types

type AWSResponse CreateResource #

Generic CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Associated Types

type Rep CreateResource :: Type -> Type #

Read CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Show CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

NFData CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Methods

rnf :: CreateResource -> () #

Eq CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Hashable CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

type AWSResponse CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

type Rep CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

type Rep CreateResource = D1 ('MetaData "CreateResource" "Amazonka.WorkMail.CreateResource" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "CreateResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceType))))

newCreateResource Source #

Create a value of CreateResource with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateResource, createResource_organizationId - The identifier associated with the organization for which the resource is created.

CreateResource, createResource_name - The name of the new resource.

CreateResource, createResource_type - The type of the new resource. The available types are equipment and room.

Request Lenses

createResource_organizationId :: Lens' CreateResource Text Source #

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

createResource_name :: Lens' CreateResource Text Source #

The name of the new resource.

createResource_type :: Lens' CreateResource ResourceType Source #

The type of the new resource. The available types are equipment and room.

Destructuring the Response

data CreateResourceResponse Source #

See: newCreateResourceResponse smart constructor.

Constructors

CreateResourceResponse' 

Fields

Instances

Instances details
Generic CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Associated Types

type Rep CreateResourceResponse :: Type -> Type #

Read CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Show CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

NFData CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Methods

rnf :: CreateResourceResponse -> () #

Eq CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

type Rep CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

type Rep CreateResourceResponse = D1 ('MetaData "CreateResourceResponse" "Amazonka.WorkMail.CreateResource" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "CreateResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateResourceResponse Source #

Create a value of CreateResourceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:resourceId:CreateResourceResponse', createResourceResponse_resourceId - The identifier of the new resource.

$sel:httpStatus:CreateResourceResponse', createResourceResponse_httpStatus - The response's http status code.

Response Lenses