| 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 |
Amazonka.Pricing.DescribeServices
Description
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_maxResults :: Lens' DescribeServices (Maybe Natural)
- describeServices_nextToken :: Lens' DescribeServices (Maybe Text)
- describeServices_serviceCode :: Lens' DescribeServices (Maybe Text)
- 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.
Constructors
| DescribeServices' | |
Fields
| |
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:
DescribeServices, describeServices_formatVersion - The format version that you want the response to be in.
Valid values are: aws_v1
$sel:maxResults:DescribeServices', describeServices_maxResults - The maximum number of results that you want returned in the response.
DescribeServices, describeServices_nextToken - The pagination token that indicates the next set of results that you
want to retrieve.
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.
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_maxResults :: Lens' DescribeServices (Maybe Natural) Source #
The maximum number of results that you want returned in the response.
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.
Destructuring the Response
data DescribeServicesResponse Source #
See: newDescribeServicesResponse smart constructor.
Constructors
| DescribeServicesResponse' | |
Fields
| |
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:
DescribeServices, describeServicesResponse_formatVersion - The format version of the response. For example, aws_v1.
DescribeServices, describeServicesResponse_nextToken - The pagination token for the next set of retrievable 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 retrievable 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.