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 |
Lists the resources that you added to a resource share or the resources that are shared with you.
This operation returns paginated results.
Synopsis
- data ListResources = ListResources' {}
- newListResources :: ResourceOwner -> ListResources
- listResources_maxResults :: Lens' ListResources (Maybe Natural)
- listResources_nextToken :: Lens' ListResources (Maybe Text)
- listResources_principal :: Lens' ListResources (Maybe Text)
- listResources_resourceArns :: Lens' ListResources (Maybe [Text])
- listResources_resourceRegionScope :: Lens' ListResources (Maybe ResourceRegionScopeFilter)
- listResources_resourceShareArns :: Lens' ListResources (Maybe [Text])
- listResources_resourceType :: Lens' ListResources (Maybe Text)
- listResources_resourceOwner :: Lens' ListResources ResourceOwner
- data ListResourcesResponse = ListResourcesResponse' {}
- newListResourcesResponse :: Int -> ListResourcesResponse
- listResourcesResponse_nextToken :: Lens' ListResourcesResponse (Maybe Text)
- listResourcesResponse_resources :: Lens' ListResourcesResponse (Maybe [Resource])
- listResourcesResponse_httpStatus :: Lens' ListResourcesResponse Int
Creating a Request
data ListResources Source #
See: newListResources
smart constructor.
ListResources' | |
|
Instances
Create a value of ListResources
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:maxResults:ListResources'
, listResources_maxResults
- Specifies the total number of results that you want included on each
page of the response. If you do not include this parameter, it defaults
to a value that is specific to the operation. If additional items exist
beyond the number you specify, the NextToken
response element is
returned with a value (not null). Include the specified value as the
NextToken
request parameter in the next call to the operation to get
the next part of the results. Note that the service might return fewer
results than the maximum even when there are more results available. You
should check NextToken
after every operation to ensure that you
receive all of the results.
ListResources
, listResources_nextToken
- Specifies that you want to receive the next page of results. Valid only
if you received a NextToken
response in the previous request. If you
did, it indicates that more output is available. Set this parameter to
the value provided by the previous call's NextToken
response to
request the next page of results.
$sel:principal:ListResources'
, listResources_principal
- Specifies that you want to list only the resource shares that are
associated with the specified principal.
$sel:resourceArns:ListResources'
, listResources_resourceArns
- Specifies that you want to list only the resource shares that include
resources with the specified
Amazon Resource Names (ARNs).
ListResources
, listResources_resourceRegionScope
- Specifies that you want the results to include only resources that have
the specified scope.
ALL
– the results include both global and regional resources or resource types.GLOBAL
– the results include only global resources or resource types.REGIONAL
– the results include only regional resources or resource types.
The default value is ALL
.
$sel:resourceShareArns:ListResources'
, listResources_resourceShareArns
- Specifies that you want to list only resources in the resource shares
identified by the specified
Amazon Resource Names (ARNs).
ListResources
, listResources_resourceType
- Specifies that you want to list only the resource shares that include
resources of the specified resource type.
For valid values, query the ListResourceTypes operation.
$sel:resourceOwner:ListResources'
, listResources_resourceOwner
- Specifies that you want to list only the resource shares that match the
following:
SELF
– resources that your account shares with other accountsOTHER-ACCOUNTS
– resources that other accounts share with your account
Request Lenses
listResources_maxResults :: Lens' ListResources (Maybe Natural) Source #
Specifies the total number of results that you want included on each
page of the response. If you do not include this parameter, it defaults
to a value that is specific to the operation. If additional items exist
beyond the number you specify, the NextToken
response element is
returned with a value (not null). Include the specified value as the
NextToken
request parameter in the next call to the operation to get
the next part of the results. Note that the service might return fewer
results than the maximum even when there are more results available. You
should check NextToken
after every operation to ensure that you
receive all of the results.
listResources_nextToken :: Lens' ListResources (Maybe Text) Source #
Specifies that you want to receive the next page of results. Valid only
if you received a NextToken
response in the previous request. If you
did, it indicates that more output is available. Set this parameter to
the value provided by the previous call's NextToken
response to
request the next page of results.
listResources_principal :: Lens' ListResources (Maybe Text) Source #
Specifies that you want to list only the resource shares that are associated with the specified principal.
listResources_resourceArns :: Lens' ListResources (Maybe [Text]) Source #
Specifies that you want to list only the resource shares that include resources with the specified Amazon Resource Names (ARNs).
listResources_resourceRegionScope :: Lens' ListResources (Maybe ResourceRegionScopeFilter) Source #
Specifies that you want the results to include only resources that have the specified scope.
ALL
– the results include both global and regional resources or resource types.GLOBAL
– the results include only global resources or resource types.REGIONAL
– the results include only regional resources or resource types.
The default value is ALL
.
listResources_resourceShareArns :: Lens' ListResources (Maybe [Text]) Source #
Specifies that you want to list only resources in the resource shares identified by the specified Amazon Resource Names (ARNs).
listResources_resourceType :: Lens' ListResources (Maybe Text) Source #
Specifies that you want to list only the resource shares that include resources of the specified resource type.
For valid values, query the ListResourceTypes operation.
listResources_resourceOwner :: Lens' ListResources ResourceOwner Source #
Specifies that you want to list only the resource shares that match the following:
SELF
– resources that your account shares with other accountsOTHER-ACCOUNTS
– resources that other accounts share with your account
Destructuring the Response
data ListResourcesResponse Source #
See: newListResourcesResponse
smart constructor.
ListResourcesResponse' | |
|
Instances
newListResourcesResponse Source #
Create a value of ListResourcesResponse
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:
ListResources
, listResourcesResponse_nextToken
- If present, this value indicates that more output is available than is
included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next
part of the output. You should repeat this until the NextToken
response element comes back as null
. This indicates that this is the
last page of results.
$sel:resources:ListResourcesResponse'
, listResourcesResponse_resources
- An array of objects that contain information about the resources.
$sel:httpStatus:ListResourcesResponse'
, listResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listResourcesResponse_nextToken :: Lens' ListResourcesResponse (Maybe Text) Source #
If present, this value indicates that more output is available than is
included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next
part of the output. You should repeat this until the NextToken
response element comes back as null
. This indicates that this is the
last page of results.
listResourcesResponse_resources :: Lens' ListResourcesResponse (Maybe [Resource]) Source #
An array of objects that contain information about the resources.
listResourcesResponse_httpStatus :: Lens' ListResourcesResponse Int Source #
The response's http status code.