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

Description

Updates data for the resource. To have the latest information, it must be preceded by a DescribeResource call. The dataset in the request should be the one expected when performing another DescribeResource call.

Synopsis

Creating a Request

data UpdateResource Source #

See: newUpdateResource smart constructor.

Constructors

UpdateResource' 

Fields

Instances

Instances details
ToJSON UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

ToHeaders UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

ToPath UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

ToQuery UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

AWSRequest UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

Associated Types

type AWSResponse UpdateResource #

Generic UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

Associated Types

type Rep UpdateResource :: Type -> Type #

Read UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

Show UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

NFData UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

Methods

rnf :: UpdateResource -> () #

Eq UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

Hashable UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

type AWSResponse UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

type Rep UpdateResource Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

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

newUpdateResource Source #

Create a value of UpdateResource 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:bookingOptions:UpdateResource', updateResource_bookingOptions - The resource's booking options to be updated.

UpdateResource, updateResource_name - The name of the resource to be updated.

UpdateResource, updateResource_organizationId - The identifier associated with the organization for which the resource is updated.

$sel:resourceId:UpdateResource', updateResource_resourceId - The identifier of the resource to be updated.

Request Lenses

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

The resource's booking options to be updated.

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

The name of the resource to be updated.

updateResource_organizationId :: Lens' UpdateResource Text Source #

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

updateResource_resourceId :: Lens' UpdateResource Text Source #

The identifier of the resource to be updated.

Destructuring the Response

data UpdateResourceResponse Source #

See: newUpdateResourceResponse smart constructor.

Constructors

UpdateResourceResponse' 

Fields

Instances

Instances details
Generic UpdateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

Associated Types

type Rep UpdateResourceResponse :: Type -> Type #

Read UpdateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

Show UpdateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

NFData UpdateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

Methods

rnf :: UpdateResourceResponse -> () #

Eq UpdateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

type Rep UpdateResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdateResource

type Rep UpdateResourceResponse = D1 ('MetaData "UpdateResourceResponse" "Amazonka.WorkMail.UpdateResource" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "UpdateResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateResourceResponse Source #

Create a value of UpdateResourceResponse 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:httpStatus:UpdateResourceResponse', updateResourceResponse_httpStatus - The response's http status code.

Response Lenses