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 |
Changes information about a Resource resource.
Synopsis
- data UpdateResource = UpdateResource' {}
- newUpdateResource :: Text -> Text -> UpdateResource
- updateResource_patchOperations :: Lens' UpdateResource (Maybe [PatchOperation])
- updateResource_restApiId :: Lens' UpdateResource Text
- updateResource_resourceId :: Lens' UpdateResource Text
- data Resource = Resource' {}
- newResource :: Resource
- resource_id :: Lens' Resource (Maybe Text)
- resource_parentId :: Lens' Resource (Maybe Text)
- resource_path :: Lens' Resource (Maybe Text)
- resource_pathPart :: Lens' Resource (Maybe Text)
- resource_resourceMethods :: Lens' Resource (Maybe (HashMap Text Method))
Creating a Request
data UpdateResource Source #
Request to change information about a Resource resource.
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:patchOperations:UpdateResource'
, updateResource_patchOperations
- For more information about supported patch operations, see
Patch Operations.
UpdateResource
, updateResource_restApiId
- The string identifier of the associated RestApi.
$sel:resourceId:UpdateResource'
, updateResource_resourceId
- The identifier of the Resource resource.
Request Lenses
updateResource_patchOperations :: Lens' UpdateResource (Maybe [PatchOperation]) Source #
For more information about supported patch operations, see Patch Operations.
updateResource_restApiId :: Lens' UpdateResource Text Source #
The string identifier of the associated RestApi.
updateResource_resourceId :: Lens' UpdateResource Text Source #
The identifier of the Resource resource.
Destructuring the Response
Represents an API resource.
See: newResource
smart constructor.
Resource' | |
|
Instances
newResource :: Resource Source #
Create a value of Resource
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:id:Resource'
, resource_id
- The resource's identifier.
$sel:parentId:Resource'
, resource_parentId
- The parent resource's identifier.
$sel:path:Resource'
, resource_path
- The full path for this resource.
$sel:pathPart:Resource'
, resource_pathPart
- The last path segment for this resource.
$sel:resourceMethods:Resource'
, resource_resourceMethods
- Gets an API resource's method of a given HTTP verb.