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 all resources that are associated with specified application. Results are paginated.
This operation returns paginated results.
Synopsis
- data ListAssociatedResources = ListAssociatedResources' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- application :: Text
- newListAssociatedResources :: Text -> ListAssociatedResources
- listAssociatedResources_nextToken :: Lens' ListAssociatedResources (Maybe Text)
- listAssociatedResources_maxResults :: Lens' ListAssociatedResources (Maybe Natural)
- listAssociatedResources_application :: Lens' ListAssociatedResources Text
- data ListAssociatedResourcesResponse = ListAssociatedResourcesResponse' {
- resources :: Maybe [ResourceInfo]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListAssociatedResourcesResponse :: Int -> ListAssociatedResourcesResponse
- listAssociatedResourcesResponse_resources :: Lens' ListAssociatedResourcesResponse (Maybe [ResourceInfo])
- listAssociatedResourcesResponse_nextToken :: Lens' ListAssociatedResourcesResponse (Maybe Text)
- listAssociatedResourcesResponse_httpStatus :: Lens' ListAssociatedResourcesResponse Int
Creating a Request
data ListAssociatedResources Source #
See: newListAssociatedResources
smart constructor.
ListAssociatedResources' | |
|
Instances
newListAssociatedResources Source #
Create a value of ListAssociatedResources
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:nextToken:ListAssociatedResources'
, listAssociatedResources_nextToken
- The token to use to get the next page of results after a previous API
call.
$sel:maxResults:ListAssociatedResources'
, listAssociatedResources_maxResults
- The upper bound of the number of results to return (cannot exceed 25).
If this parameter is omitted, it defaults to 25. This value is optional.
$sel:application:ListAssociatedResources'
, listAssociatedResources_application
- The name or ID of the application.
Request Lenses
listAssociatedResources_nextToken :: Lens' ListAssociatedResources (Maybe Text) Source #
The token to use to get the next page of results after a previous API call.
listAssociatedResources_maxResults :: Lens' ListAssociatedResources (Maybe Natural) Source #
The upper bound of the number of results to return (cannot exceed 25). If this parameter is omitted, it defaults to 25. This value is optional.
listAssociatedResources_application :: Lens' ListAssociatedResources Text Source #
The name or ID of the application.
Destructuring the Response
data ListAssociatedResourcesResponse Source #
See: newListAssociatedResourcesResponse
smart constructor.
ListAssociatedResourcesResponse' | |
|
Instances
newListAssociatedResourcesResponse Source #
Create a value of ListAssociatedResourcesResponse
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:resources:ListAssociatedResourcesResponse'
, listAssociatedResourcesResponse_resources
- Information about the resources.
$sel:nextToken:ListAssociatedResources'
, listAssociatedResourcesResponse_nextToken
- The token to use to get the next page of results after a previous API
call.
$sel:httpStatus:ListAssociatedResourcesResponse'
, listAssociatedResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listAssociatedResourcesResponse_resources :: Lens' ListAssociatedResourcesResponse (Maybe [ResourceInfo]) Source #
Information about the resources.
listAssociatedResourcesResponse_nextToken :: Lens' ListAssociatedResourcesResponse (Maybe Text) Source #
The token to use to get the next page of results after a previous API call.
listAssociatedResourcesResponse_httpStatus :: Lens' ListAssociatedResourcesResponse Int Source #
The response's http status code.