| 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.GetResource
Description
Lists information about a resource.
Synopsis
- data GetResource = GetResource' {}
- newGetResource :: Text -> Text -> GetResource
- getResource_embed :: Lens' GetResource (Maybe [Text])
- getResource_restApiId :: Lens' GetResource Text
- getResource_resourceId :: Lens' GetResource 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 GetResource Source #
Request to list information about a resource.
See: newGetResource smart constructor.
Constructors
| GetResource' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetResource |
Create a value of GetResource 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:embed:GetResource', getResource_embed - A query parameter to retrieve the specified resources embedded in the
returned Resource representation in the response. This embed parameter
value is a list of comma-separated strings. Currently, the request
supports only retrieval of the embedded Method resources this way. The
query parameter value must be a single-valued list and contain the
"methods" string. For example,
GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.
GetResource, getResource_restApiId - The string identifier of the associated RestApi.
$sel:resourceId:GetResource', getResource_resourceId - The identifier for the Resource resource.
Request Lenses
getResource_embed :: Lens' GetResource (Maybe [Text]) Source #
A query parameter to retrieve the specified resources embedded in the
returned Resource representation in the response. This embed parameter
value is a list of comma-separated strings. Currently, the request
supports only retrieval of the embedded Method resources this way. The
query parameter value must be a single-valued list and contain the
"methods" string. For example,
GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.
getResource_restApiId :: Lens' GetResource Text Source #
The string identifier of the associated RestApi.
getResource_resourceId :: Lens' GetResource Text Source #
The identifier for the Resource resource.
Destructuring the Response
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.