Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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.
- 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 number ofUsagePlan
resources to be returned as the result.gupPosition
- The zero-based array index specifying the position of the to-be-retrievedUsagePlan
resource.
data GetUsagePlans Source #
The GET request to get all the usage plans of the caller's account.
See: getUsagePlans
smart constructor.
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 number of UsagePlan
resources to be returned as the result.
gupPosition :: Lens' GetUsagePlans (Maybe Text) Source #
The zero-based array index specifying the position of the to-be-retrieved UsagePlan
resource.
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
- Gets the current item when enumerating the collection ofUsagePlan
.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.
Response Lenses
guprsItems :: Lens' GetUsagePlansResponse [UsagePlan] Source #
Gets the current item when enumerating the collection of UsagePlan
.
guprsPosition :: Lens' GetUsagePlansResponse (Maybe Text) Source #
Undocumented member.
guprsResponseStatus :: Lens' GetUsagePlansResponse Int Source #
- - | The response status code.