| 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 |
Network.AWS.APIGateway.GetUsagePlans
Description
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 #
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 ofUsagePlanresources to be returned as the result.gupPosition- The zero-based array index specifying the position of the to-be-retrievedUsagePlanresource.
data GetUsagePlans #
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) #
The identifier of the API key associated with the usage plans.
gupLimit :: Lens' GetUsagePlans (Maybe Int) #
The number of UsagePlan resources to be returned as the result.
gupPosition :: Lens' GetUsagePlans (Maybe Text) #
The zero-based array index specifying the position of the to-be-retrieved UsagePlan resource.
Destructuring the Response
Arguments
| :: Int | |
| -> GetUsagePlansResponse |
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 #
Represents a collection of usage plans for an AWS account.
See: getUsagePlansResponse smart constructor.
Response Lenses
guprsItems :: Lens' GetUsagePlansResponse [UsagePlan] #
Gets the current item when enumerating the collection of UsagePlan .
guprsPosition :: Lens' GetUsagePlansResponse (Maybe Text) #
Undocumented member.
guprsResponseStatus :: Lens' GetUsagePlansResponse Int #
- - | The response status code.