Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_name :: Lens' UpdateResource (Maybe Text)
- updateResource_bookingOptions :: Lens' UpdateResource (Maybe BookingOptions)
- 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.
UpdateResource' | |
|
Instances
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:name:UpdateResource'
, updateResource_name
- The name of the resource to be updated.
$sel:bookingOptions:UpdateResource'
, updateResource_bookingOptions
- The resource's booking options to be updated.
$sel:organizationId: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_name :: Lens' UpdateResource (Maybe Text) Source #
The name of the resource to be updated.
updateResource_bookingOptions :: Lens' UpdateResource (Maybe BookingOptions) Source #
The resource's booking options 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.
UpdateResourceResponse' | |
|
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.