Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Gets all the usage plans of the caller's account.
This operation returns paginated results.
Synopsis
- getUsagePlans :: GetUsagePlans
- data GetUsagePlans
- gupKeyId :: Lens' GetUsagePlans (Maybe Text)
- gupLimit :: Lens' GetUsagePlans (Maybe Int)
- gupPosition :: Lens' GetUsagePlans (Maybe Text)
- getUsagePlansResponse :: Int -> GetUsagePlansResponse
- data GetUsagePlansResponse
- guprsItems :: Lens' GetUsagePlansResponse [UsagePlan]
- guprsPosition :: Lens' GetUsagePlansResponse (Maybe Text)
- guprsResponseStatus :: Lens' GetUsagePlansResponse Int
Creating a Request
getUsagePlans :: GetUsagePlans Source #
Creates a value of GetUsagePlans
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gupKeyId
- The identifier of the API key associated with the usage plans.gupLimit
- The maximum number of returned results per page. The default value is 25 and the maximum value is 500.gupPosition
- The current pagination position in the paged result set.
data GetUsagePlans Source #
The GET request to get all the usage plans of the caller's account.
See: getUsagePlans
smart constructor.
Instances
Request Lenses
gupKeyId :: Lens' GetUsagePlans (Maybe Text) Source #
The identifier of the API key associated with the usage plans.
gupLimit :: Lens' GetUsagePlans (Maybe Int) Source #
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
gupPosition :: Lens' GetUsagePlans (Maybe Text) Source #
The current pagination position in the paged result set.
Destructuring the Response
getUsagePlansResponse Source #
Creates a value of GetUsagePlansResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
guprsItems
- The current page of elements from this collection.guprsPosition
- Undocumented member.guprsResponseStatus
- -- | The response status code.
data GetUsagePlansResponse Source #
Represents a collection of usage plans for an AWS account.
See: getUsagePlansResponse
smart constructor.
Instances
Response Lenses
guprsItems :: Lens' GetUsagePlansResponse [UsagePlan] Source #
The current page of elements from this collection.
guprsPosition :: Lens' GetUsagePlansResponse (Maybe Text) Source #
Undocumented member.
guprsResponseStatus :: Lens' GetUsagePlansResponse Int Source #
- - | The response status code.