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 resource types that can be shared by RAM.
Synopsis
- data ListResourceTypes = ListResourceTypes' {}
- newListResourceTypes :: ListResourceTypes
- listResourceTypes_maxResults :: Lens' ListResourceTypes (Maybe Natural)
- listResourceTypes_nextToken :: Lens' ListResourceTypes (Maybe Text)
- listResourceTypes_resourceRegionScope :: Lens' ListResourceTypes (Maybe ResourceRegionScopeFilter)
- data ListResourceTypesResponse = ListResourceTypesResponse' {}
- newListResourceTypesResponse :: Int -> ListResourceTypesResponse
- listResourceTypesResponse_nextToken :: Lens' ListResourceTypesResponse (Maybe Text)
- listResourceTypesResponse_resourceTypes :: Lens' ListResourceTypesResponse (Maybe [ServiceNameAndResourceType])
- listResourceTypesResponse_httpStatus :: Lens' ListResourceTypesResponse Int
Creating a Request
data ListResourceTypes Source #
See: newListResourceTypes
smart constructor.
ListResourceTypes' | |
|
Instances
newListResourceTypes :: ListResourceTypes Source #
Create a value of ListResourceTypes
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:ListResourceTypes'
, listResourceTypes_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.
ListResourceTypes
, listResourceTypes_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.
ListResourceTypes
, listResourceTypes_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
.
Request Lenses
listResourceTypes_maxResults :: Lens' ListResourceTypes (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.
listResourceTypes_nextToken :: Lens' ListResourceTypes (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.
listResourceTypes_resourceRegionScope :: Lens' ListResourceTypes (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
.
Destructuring the Response
data ListResourceTypesResponse Source #
See: newListResourceTypesResponse
smart constructor.
ListResourceTypesResponse' | |
|
Instances
newListResourceTypesResponse Source #
Create a value of ListResourceTypesResponse
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:
ListResourceTypes
, listResourceTypesResponse_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:resourceTypes:ListResourceTypesResponse'
, listResourceTypesResponse_resourceTypes
- An array of objects that contain information about the resource types
that can be shared using RAM.
$sel:httpStatus:ListResourceTypesResponse'
, listResourceTypesResponse_httpStatus
- The response's http status code.
Response Lenses
listResourceTypesResponse_nextToken :: Lens' ListResourceTypesResponse (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.
listResourceTypesResponse_resourceTypes :: Lens' ListResourceTypesResponse (Maybe [ServiceNameAndResourceType]) Source #
An array of objects that contain information about the resource types that can be shared using RAM.
listResourceTypesResponse_httpStatus :: Lens' ListResourceTypesResponse Int Source #
The response's http status code.