Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Updates data for the resource. It must be preceded by a describe call in order to have the latest information. The dataset in the request should be the one expected when performing another describe call.
- updateResource :: Text -> Text -> UpdateResource
- data UpdateResource
- urName :: Lens' UpdateResource (Maybe Text)
- urBookingOptions :: Lens' UpdateResource (Maybe BookingOptions)
- urOrganizationId :: Lens' UpdateResource Text
- urResourceId :: Lens' UpdateResource Text
- updateResourceResponse :: Int -> UpdateResourceResponse
- data UpdateResourceResponse
- urrsResponseStatus :: Lens' UpdateResourceResponse Int
Creating a Request
Creates a value of UpdateResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urName
- The name of the resource to be updated.urBookingOptions
- The resource's booking options to be updated.urOrganizationId
- The identifier associated with the organization for which the resource is updated.urResourceId
- The identifier of the resource to be updated.
data UpdateResource Source #
See: updateResource
smart constructor.
Request Lenses
urBookingOptions :: Lens' UpdateResource (Maybe BookingOptions) Source #
The resource's booking options to be updated.
urOrganizationId :: Lens' UpdateResource Text Source #
The identifier associated with the organization for which the resource is updated.
urResourceId :: Lens' UpdateResource Text Source #
The identifier of the resource to be updated.
Destructuring the Response
updateResourceResponse Source #
Creates a value of UpdateResourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urrsResponseStatus
- -- | The response status code.
data UpdateResourceResponse Source #
See: updateResourceResponse
smart constructor.
Response Lenses
urrsResponseStatus :: Lens' UpdateResourceResponse Int Source #
- - | The response status code.