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 a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned.
This operation returns paginated results.
Synopsis
- data DescribeInstanceTypeOfferings = DescribeInstanceTypeOfferings' {
- dryRun :: Maybe Bool
- filters :: Maybe [Filter]
- locationType :: Maybe LocationType
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- newDescribeInstanceTypeOfferings :: DescribeInstanceTypeOfferings
- describeInstanceTypeOfferings_dryRun :: Lens' DescribeInstanceTypeOfferings (Maybe Bool)
- describeInstanceTypeOfferings_filters :: Lens' DescribeInstanceTypeOfferings (Maybe [Filter])
- describeInstanceTypeOfferings_locationType :: Lens' DescribeInstanceTypeOfferings (Maybe LocationType)
- describeInstanceTypeOfferings_maxResults :: Lens' DescribeInstanceTypeOfferings (Maybe Natural)
- describeInstanceTypeOfferings_nextToken :: Lens' DescribeInstanceTypeOfferings (Maybe Text)
- data DescribeInstanceTypeOfferingsResponse = DescribeInstanceTypeOfferingsResponse' {}
- newDescribeInstanceTypeOfferingsResponse :: Int -> DescribeInstanceTypeOfferingsResponse
- describeInstanceTypeOfferingsResponse_instanceTypeOfferings :: Lens' DescribeInstanceTypeOfferingsResponse (Maybe [InstanceTypeOffering])
- describeInstanceTypeOfferingsResponse_nextToken :: Lens' DescribeInstanceTypeOfferingsResponse (Maybe Text)
- describeInstanceTypeOfferingsResponse_httpStatus :: Lens' DescribeInstanceTypeOfferingsResponse Int
Creating a Request
data DescribeInstanceTypeOfferings Source #
See: newDescribeInstanceTypeOfferings
smart constructor.
DescribeInstanceTypeOfferings' | |
|
Instances
newDescribeInstanceTypeOfferings :: DescribeInstanceTypeOfferings Source #
Create a value of DescribeInstanceTypeOfferings
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:dryRun:DescribeInstanceTypeOfferings'
, describeInstanceTypeOfferings_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
$sel:filters:DescribeInstanceTypeOfferings'
, describeInstanceTypeOfferings_filters
- One or more filters. Filter names and values are case-sensitive.
location
- This depends on the location type. For example, if the location type isregion
(default), the location is the Region code (for example,us-east-2
.)instance-type
- The instance type. For example,c5.2xlarge
.
DescribeInstanceTypeOfferings
, describeInstanceTypeOfferings_locationType
- The location type.
$sel:maxResults:DescribeInstanceTypeOfferings'
, describeInstanceTypeOfferings_maxResults
- The maximum number of results to return for the request in a single
page. The remaining results can be seen by sending another request with
the next token value.
DescribeInstanceTypeOfferings
, describeInstanceTypeOfferings_nextToken
- The token to retrieve the next page of results.
Request Lenses
describeInstanceTypeOfferings_dryRun :: Lens' DescribeInstanceTypeOfferings (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
describeInstanceTypeOfferings_filters :: Lens' DescribeInstanceTypeOfferings (Maybe [Filter]) Source #
One or more filters. Filter names and values are case-sensitive.
location
- This depends on the location type. For example, if the location type isregion
(default), the location is the Region code (for example,us-east-2
.)instance-type
- The instance type. For example,c5.2xlarge
.
describeInstanceTypeOfferings_locationType :: Lens' DescribeInstanceTypeOfferings (Maybe LocationType) Source #
The location type.
describeInstanceTypeOfferings_maxResults :: Lens' DescribeInstanceTypeOfferings (Maybe Natural) Source #
The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the next token value.
describeInstanceTypeOfferings_nextToken :: Lens' DescribeInstanceTypeOfferings (Maybe Text) Source #
The token to retrieve the next page of results.
Destructuring the Response
data DescribeInstanceTypeOfferingsResponse Source #
See: newDescribeInstanceTypeOfferingsResponse
smart constructor.
DescribeInstanceTypeOfferingsResponse' | |
|
Instances
newDescribeInstanceTypeOfferingsResponse Source #
Create a value of DescribeInstanceTypeOfferingsResponse
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:instanceTypeOfferings:DescribeInstanceTypeOfferingsResponse'
, describeInstanceTypeOfferingsResponse_instanceTypeOfferings
- The instance types offered.
DescribeInstanceTypeOfferings
, describeInstanceTypeOfferingsResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
$sel:httpStatus:DescribeInstanceTypeOfferingsResponse'
, describeInstanceTypeOfferingsResponse_httpStatus
- The response's http status code.
Response Lenses
describeInstanceTypeOfferingsResponse_instanceTypeOfferings :: Lens' DescribeInstanceTypeOfferingsResponse (Maybe [InstanceTypeOffering]) Source #
The instance types offered.
describeInstanceTypeOfferingsResponse_nextToken :: Lens' DescribeInstanceTypeOfferingsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
describeInstanceTypeOfferingsResponse_httpStatus :: Lens' DescribeInstanceTypeOfferingsResponse Int Source #
The response's http status code.