Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
GetResources' | |
|
Instances
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
.
$sel:limit:GetResources'
, getResources_limit
- The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetResources'
, getResources_position
- The current pagination position in the paged result set.
$sel:restApiId:GetResources'
, getResources_restApiId
- [Required] 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 #
- Required
- The string identifier of the associated RestApi.
Destructuring the Response
data GetResourcesResponse Source #
Represents a collection of Resource resources.
See: newGetResourcesResponse
smart constructor.
Instances
newGetResourcesResponse Source #
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:
$sel:items:GetResourcesResponse'
, getResourcesResponse_items
- The current page of elements from this collection.
$sel:position: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.