| 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.GetResources
Description
Lists information about a collection of Resource resources.
This operation returns paginated results.
Synopsis
- data GetResources = GetResources' {}
- newGetResources :: Text -> GetResources
- getResources_embed :: Lens' GetResources (Maybe [Text])
- getResources_limit :: Lens' GetResources (Maybe Int)
- getResources_position :: Lens' GetResources (Maybe Text)
- getResources_restApiId :: Lens' GetResources Text
- data GetResourcesResponse = GetResourcesResponse' {}
- newGetResourcesResponse :: Int -> GetResourcesResponse
- getResourcesResponse_items :: Lens' GetResourcesResponse (Maybe [Resource])
- getResourcesResponse_position :: Lens' GetResourcesResponse (Maybe Text)
- getResourcesResponse_httpStatus :: Lens' GetResourcesResponse Int
Creating a Request
data GetResources Source #
Request to list information about a collection of resources.
See: newGetResources smart constructor.
Constructors
| GetResources' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetResources |
Create a value of GetResources 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:GetResources', getResources_embed - A query parameter used to retrieve the specified resources embedded in
the returned Resources resource 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?embed=methods.
GetResources, getResources_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
GetResources, getResources_position - The current pagination position in the paged result set.
GetResources, getResources_restApiId - The string identifier of the associated RestApi.
Request Lenses
getResources_embed :: Lens' GetResources (Maybe [Text]) Source #
A query parameter used to retrieve the specified resources embedded in
the returned Resources resource 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?embed=methods.
getResources_limit :: Lens' GetResources (Maybe Int) Source #
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
getResources_position :: Lens' GetResources (Maybe Text) Source #
The current pagination position in the paged result set.
getResources_restApiId :: Lens' GetResources Text Source #
The string identifier of the associated RestApi.
Destructuring the Response
data GetResourcesResponse Source #
Represents a collection of Resource resources.
See: newGetResourcesResponse smart constructor.
Constructors
| GetResourcesResponse' | |
Instances
newGetResourcesResponse Source #
Arguments
| :: Int | |
| -> GetResourcesResponse |
Create a value of GetResourcesResponse 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:
GetResourcesResponse, getResourcesResponse_items - The current page of elements from this collection.
GetResources, getResourcesResponse_position - Undocumented member.
$sel:httpStatus:GetResourcesResponse', getResourcesResponse_httpStatus - The response's http status code.
Response Lenses
getResourcesResponse_items :: Lens' GetResourcesResponse (Maybe [Resource]) Source #
The current page of elements from this collection.
getResourcesResponse_position :: Lens' GetResourcesResponse (Maybe Text) Source #
Undocumented member.
getResourcesResponse_httpStatus :: Lens' GetResourcesResponse Int Source #
The response's http status code.