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 metadata for one service or a list of the metadata for all
services. Use this without a service code to get the service codes for
all services. Use it with a service code, such as AmazonEC2
, to get
information specific to that service, such as the attribute names
available for that service. For example, some of the attribute names
available for EC2 are volumeType
, maxIopsVolume
, operation
,
locationType
, and instanceCapacity10xlarge
.
This operation returns paginated results.
Synopsis
- data DescribeServices = DescribeServices' {}
- newDescribeServices :: DescribeServices
- describeServices_formatVersion :: Lens' DescribeServices (Maybe Text)
- describeServices_nextToken :: Lens' DescribeServices (Maybe Text)
- describeServices_serviceCode :: Lens' DescribeServices (Maybe Text)
- describeServices_maxResults :: Lens' DescribeServices (Maybe Natural)
- data DescribeServicesResponse = DescribeServicesResponse' {
- formatVersion :: Maybe Text
- nextToken :: Maybe Text
- services :: Maybe [PricingService]
- httpStatus :: Int
- newDescribeServicesResponse :: Int -> DescribeServicesResponse
- describeServicesResponse_formatVersion :: Lens' DescribeServicesResponse (Maybe Text)
- describeServicesResponse_nextToken :: Lens' DescribeServicesResponse (Maybe Text)
- describeServicesResponse_services :: Lens' DescribeServicesResponse (Maybe [PricingService])
- describeServicesResponse_httpStatus :: Lens' DescribeServicesResponse Int
Creating a Request
data DescribeServices Source #
See: newDescribeServices
smart constructor.
DescribeServices' | |
|
Instances
newDescribeServices :: DescribeServices Source #
Create a value of DescribeServices
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:formatVersion:DescribeServices'
, describeServices_formatVersion
- The format version that you want the response to be in.
Valid values are: aws_v1
$sel:nextToken:DescribeServices'
, describeServices_nextToken
- The pagination token that indicates the next set of results that you
want to retrieve.
$sel:serviceCode:DescribeServices'
, describeServices_serviceCode
- The code for the service whose information you want to retrieve, such as
AmazonEC2
. You can use the ServiceCode
to filter the results in a
GetProducts
call. To retrieve a list of all services, leave this
blank.
$sel:maxResults:DescribeServices'
, describeServices_maxResults
- The maximum number of results that you want returned in the response.
Request Lenses
describeServices_formatVersion :: Lens' DescribeServices (Maybe Text) Source #
The format version that you want the response to be in.
Valid values are: aws_v1
describeServices_nextToken :: Lens' DescribeServices (Maybe Text) Source #
The pagination token that indicates the next set of results that you want to retrieve.
describeServices_serviceCode :: Lens' DescribeServices (Maybe Text) Source #
The code for the service whose information you want to retrieve, such as
AmazonEC2
. You can use the ServiceCode
to filter the results in a
GetProducts
call. To retrieve a list of all services, leave this
blank.
describeServices_maxResults :: Lens' DescribeServices (Maybe Natural) Source #
The maximum number of results that you want returned in the response.
Destructuring the Response
data DescribeServicesResponse Source #
See: newDescribeServicesResponse
smart constructor.
DescribeServicesResponse' | |
|
Instances
newDescribeServicesResponse Source #
Create a value of DescribeServicesResponse
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:formatVersion:DescribeServices'
, describeServicesResponse_formatVersion
- The format version of the response. For example, aws_v1
.
$sel:nextToken:DescribeServices'
, describeServicesResponse_nextToken
- The pagination token for the next set of retreivable results.
$sel:services:DescribeServicesResponse'
, describeServicesResponse_services
- The service metadata for the service or services in the response.
$sel:httpStatus:DescribeServicesResponse'
, describeServicesResponse_httpStatus
- The response's http status code.
Response Lenses
describeServicesResponse_formatVersion :: Lens' DescribeServicesResponse (Maybe Text) Source #
The format version of the response. For example, aws_v1
.
describeServicesResponse_nextToken :: Lens' DescribeServicesResponse (Maybe Text) Source #
The pagination token for the next set of retreivable results.
describeServicesResponse_services :: Lens' DescribeServicesResponse (Maybe [PricingService]) Source #
The service metadata for the service or services in the response.
describeServicesResponse_httpStatus :: Lens' DescribeServicesResponse Int Source #
The response's http status code.