Copyright | (c) 2013-2021 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 |
Returns the list of bundles that are available for purchase. A bundle describes the specs for your virtual private server (or instance).
This operation returns paginated results.
Synopsis
- data GetBundles = GetBundles' {}
- newGetBundles :: GetBundles
- getBundles_includeInactive :: Lens' GetBundles (Maybe Bool)
- getBundles_pageToken :: Lens' GetBundles (Maybe Text)
- data GetBundlesResponse = GetBundlesResponse' {
- nextPageToken :: Maybe Text
- bundles :: Maybe [Bundle]
- httpStatus :: Int
- newGetBundlesResponse :: Int -> GetBundlesResponse
- getBundlesResponse_nextPageToken :: Lens' GetBundlesResponse (Maybe Text)
- getBundlesResponse_bundles :: Lens' GetBundlesResponse (Maybe [Bundle])
- getBundlesResponse_httpStatus :: Lens' GetBundlesResponse Int
Creating a Request
data GetBundles Source #
See: newGetBundles
smart constructor.
GetBundles' | |
|
Instances
newGetBundles :: GetBundles Source #
Create a value of GetBundles
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:includeInactive:GetBundles'
, getBundles_includeInactive
- A Boolean value that indicates whether to include inactive bundle
results in your request.
$sel:pageToken:GetBundles'
, getBundles_pageToken
- The token to advance to the next page of results from your request.
To get a page token, perform an initial GetBundles
request. If your
results are paginated, the response will return a next page token that
you can specify as the page token in a subsequent request.
Request Lenses
getBundles_includeInactive :: Lens' GetBundles (Maybe Bool) Source #
A Boolean value that indicates whether to include inactive bundle results in your request.
getBundles_pageToken :: Lens' GetBundles (Maybe Text) Source #
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetBundles
request. If your
results are paginated, the response will return a next page token that
you can specify as the page token in a subsequent request.
Destructuring the Response
data GetBundlesResponse Source #
See: newGetBundlesResponse
smart constructor.
GetBundlesResponse' | |
|
Instances
newGetBundlesResponse Source #
Create a value of GetBundlesResponse
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:nextPageToken:GetBundlesResponse'
, getBundlesResponse_nextPageToken
- The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetBundles
request
and specify the next page token using the pageToken
parameter.
$sel:bundles:GetBundlesResponse'
, getBundlesResponse_bundles
- An array of key-value pairs that contains information about the
available bundles.
$sel:httpStatus:GetBundlesResponse'
, getBundlesResponse_httpStatus
- The response's http status code.
Response Lenses
getBundlesResponse_nextPageToken :: Lens' GetBundlesResponse (Maybe Text) Source #
The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetBundles
request
and specify the next page token using the pageToken
parameter.
getBundlesResponse_bundles :: Lens' GetBundlesResponse (Maybe [Bundle]) Source #
An array of key-value pairs that contains information about the available bundles.
getBundlesResponse_httpStatus :: Lens' GetBundlesResponse Int Source #
The response's http status code.