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

Amazonka.WorkMail.CreateResource

Description

Creates a new Amazon 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
Eq CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Read CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Show CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Generic CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Associated Types

type Rep CreateResource :: Type -> Type #

NFData CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Methods

rnf :: CreateResource -> () #

Hashable CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

ToJSON CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

AWSRequest CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Associated Types

type AWSResponse 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

type Rep CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

type Rep CreateResource = D1 ('MetaData "CreateResource" "Amazonka.WorkMail.CreateResource" "libZSservicesZSamazonka-workmailZSamazonka-workmail" '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))))
type AWSResponse CreateResource Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

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:

$sel:organizationId:CreateResource', createResource_organizationId - The identifier associated with the organization for which the resource is created.

$sel:name:CreateResource', createResource_name - The name of the new resource.

$sel:type':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
Eq CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Read CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Show CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Generic CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Associated Types

type Rep CreateResourceResponse :: Type -> Type #

NFData CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

Methods

rnf :: CreateResourceResponse -> () #

type Rep CreateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateResource

type Rep CreateResourceResponse = D1 ('MetaData "CreateResourceResponse" "Amazonka.WorkMail.CreateResource" "libZSservicesZSamazonka-workmailZSamazonka-workmail" '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