| 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.RedshiftServerLess.ListUsageLimits
Description
Lists all usage limits within Amazon Redshift Serverless.
This operation returns paginated results.
Synopsis
- data ListUsageLimits = ListUsageLimits' {}
- newListUsageLimits :: ListUsageLimits
- listUsageLimits_maxResults :: Lens' ListUsageLimits (Maybe Natural)
- listUsageLimits_nextToken :: Lens' ListUsageLimits (Maybe Text)
- listUsageLimits_resourceArn :: Lens' ListUsageLimits (Maybe Text)
- listUsageLimits_usageType :: Lens' ListUsageLimits (Maybe UsageLimitUsageType)
- data ListUsageLimitsResponse = ListUsageLimitsResponse' {
- nextToken :: Maybe Text
- usageLimits :: Maybe (NonEmpty UsageLimit)
- httpStatus :: Int
- newListUsageLimitsResponse :: Int -> ListUsageLimitsResponse
- listUsageLimitsResponse_nextToken :: Lens' ListUsageLimitsResponse (Maybe Text)
- listUsageLimitsResponse_usageLimits :: Lens' ListUsageLimitsResponse (Maybe (NonEmpty UsageLimit))
- listUsageLimitsResponse_httpStatus :: Lens' ListUsageLimitsResponse Int
Creating a Request
data ListUsageLimits Source #
See: newListUsageLimits smart constructor.
Constructors
| ListUsageLimits' | |
Fields
| |
Instances
newListUsageLimits :: ListUsageLimits Source #
Create a value of ListUsageLimits 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:ListUsageLimits', listUsageLimits_maxResults - An optional parameter that specifies the maximum number of results to
return. You can use nextToken to get the next page of results. The
default is 100.
ListUsageLimits, listUsageLimits_nextToken - If your initial ListUsageLimits operation returns a nextToken, you
can include the returned nextToken in following ListUsageLimits
operations, which returns results in the next page.
ListUsageLimits, listUsageLimits_resourceArn - The Amazon Resource Name (ARN) associated with the resource whose usage
limits you want to list.
ListUsageLimits, listUsageLimits_usageType - The Amazon Redshift Serverless feature whose limits you want to see.
Request Lenses
listUsageLimits_maxResults :: Lens' ListUsageLimits (Maybe Natural) Source #
An optional parameter that specifies the maximum number of results to
return. You can use nextToken to get the next page of results. The
default is 100.
listUsageLimits_nextToken :: Lens' ListUsageLimits (Maybe Text) Source #
If your initial ListUsageLimits operation returns a nextToken, you
can include the returned nextToken in following ListUsageLimits
operations, which returns results in the next page.
listUsageLimits_resourceArn :: Lens' ListUsageLimits (Maybe Text) Source #
The Amazon Resource Name (ARN) associated with the resource whose usage limits you want to list.
listUsageLimits_usageType :: Lens' ListUsageLimits (Maybe UsageLimitUsageType) Source #
The Amazon Redshift Serverless feature whose limits you want to see.
Destructuring the Response
data ListUsageLimitsResponse Source #
See: newListUsageLimitsResponse smart constructor.
Constructors
| ListUsageLimitsResponse' | |
Fields
| |
Instances
newListUsageLimitsResponse Source #
Create a value of ListUsageLimitsResponse 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:
ListUsageLimits, listUsageLimitsResponse_nextToken - When nextToken is returned, there are more results available. The
value of nextToken is a unique pagination token for each page. Make
the call again using the returned token to retrieve the next page.
$sel:usageLimits:ListUsageLimitsResponse', listUsageLimitsResponse_usageLimits - An array of returned usage limit objects.
$sel:httpStatus:ListUsageLimitsResponse', listUsageLimitsResponse_httpStatus - The response's http status code.
Response Lenses
listUsageLimitsResponse_nextToken :: Lens' ListUsageLimitsResponse (Maybe Text) Source #
When nextToken is returned, there are more results available. The
value of nextToken is a unique pagination token for each page. Make
the call again using the returned token to retrieve the next page.
listUsageLimitsResponse_usageLimits :: Lens' ListUsageLimitsResponse (Maybe (NonEmpty UsageLimit)) Source #
An array of returned usage limit objects.
listUsageLimitsResponse_httpStatus :: Lens' ListUsageLimitsResponse Int Source #
The response's http status code.