| 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.APIGateway.Types.Resource
Description
Synopsis
- 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))
Documentation
Represents an API resource.
See: newResource smart constructor.
Constructors
| Resource' | |
Fields
| |
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.