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 |
Creates a Resource resource.
Synopsis
- data CreateResource = CreateResource' {}
- newCreateResource :: Text -> Text -> Text -> CreateResource
- createResource_restApiId :: Lens' CreateResource Text
- createResource_parentId :: Lens' CreateResource Text
- createResource_pathPart :: Lens' CreateResource 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 CreateResource Source #
Requests API Gateway to create a Resource resource.
See: newCreateResource
smart constructor.
Instances
Create a value of CreateResource
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:
CreateResource
, createResource_restApiId
- The string identifier of the associated RestApi.
CreateResource
, createResource_parentId
- The parent resource's identifier.
CreateResource
, createResource_pathPart
- The last path segment for this resource.
Request Lenses
createResource_restApiId :: Lens' CreateResource Text Source #
The string identifier of the associated RestApi.
createResource_parentId :: Lens' CreateResource Text Source #
The parent resource's identifier.
createResource_pathPart :: Lens' CreateResource Text Source #
The last path segment for this 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.