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 |
Returns the bundles that you can apply to an Amazon Lightsail instance when you create it.
A bundle describes the specifications of an instance, such as the monthly cost, amount of memory, the number of vCPUs, amount of storage space, and monthly network data transfer quota.
Bundles are referred to as instance plans in the Lightsail console.
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' {
- bundles :: Maybe [Bundle]
- nextPageToken :: Maybe Text
- httpStatus :: Int
- newGetBundlesResponse :: Int -> GetBundlesResponse
- getBundlesResponse_bundles :: Lens' GetBundlesResponse (Maybe [Bundle])
- getBundlesResponse_nextPageToken :: Lens' GetBundlesResponse (Maybe Text)
- 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 (unavailable)
bundles in the response of 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 (unavailable) bundles in the response of 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:bundles:GetBundlesResponse'
, getBundlesResponse_bundles
- An array of key-value pairs that contains information about the
available bundles.
$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:httpStatus:GetBundlesResponse'
, getBundlesResponse_httpStatus
- The response's http status code.
Response Lenses
getBundlesResponse_bundles :: Lens' GetBundlesResponse (Maybe [Bundle]) Source #
An array of key-value pairs that contains information about the available bundles.
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_httpStatus :: Lens' GetBundlesResponse Int Source #
The response's http status code.