| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data UpdateResource = UpdateResource' {}
- newUpdateResource :: Text -> Text -> UpdateResource
- updateResource_bookingOptions :: Lens' UpdateResource (Maybe BookingOptions)
- updateResource_name :: Lens' UpdateResource (Maybe Text)
- updateResource_organizationId :: Lens' UpdateResource Text
- updateResource_resourceId :: Lens' UpdateResource Text
- data UpdateResourceResponse = UpdateResourceResponse' {
- httpStatus :: Int
- newUpdateResourceResponse :: Int -> UpdateResourceResponse
- updateResourceResponse_httpStatus :: Lens' UpdateResourceResponse Int
Creating a Request
data UpdateResource Source #
See: newUpdateResource smart constructor.
Constructors
| UpdateResource' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateResource |
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
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
updateResourceResponse_httpStatus :: Lens' UpdateResourceResponse Int Source #
The response's http status code.