Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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.
- describeServices :: DescribeServices
- data DescribeServices
- dsFormatVersion :: Lens' DescribeServices (Maybe Text)
- dsNextToken :: Lens' DescribeServices (Maybe Text)
- dsServiceCode :: Lens' DescribeServices (Maybe Text)
- dsMaxResults :: Lens' DescribeServices (Maybe Natural)
- describeServicesResponse :: Int -> DescribeServicesResponse
- data DescribeServicesResponse
- dsrsFormatVersion :: Lens' DescribeServicesResponse (Maybe Text)
- dsrsNextToken :: Lens' DescribeServicesResponse (Maybe Text)
- dsrsServices :: Lens' DescribeServicesResponse [PricingService]
- dsrsResponseStatus :: Lens' DescribeServicesResponse Int
Creating a Request
describeServices :: DescribeServices Source #
Creates a value of DescribeServices
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsFormatVersion
- The format version that you want the response to be in. Valid values are:aws_v1
dsNextToken
- The pagination token that indicates the next set of results that you want to retrieve.dsServiceCode
- The code for the service whose information you want to retrieve, such asAmazonEC2
. You can use theServiceCode
to filter the results in aGetProducts
call. To retrieve a list of all services, leave this blank.dsMaxResults
- The maximum number of results that you want returned in the response.
data DescribeServices Source #
See: describeServices
smart constructor.
Request Lenses
dsFormatVersion :: Lens' DescribeServices (Maybe Text) Source #
The format version that you want the response to be in. Valid values are: aws_v1
dsNextToken :: Lens' DescribeServices (Maybe Text) Source #
The pagination token that indicates the next set of results that you want to retrieve.
dsServiceCode :: 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.
dsMaxResults :: Lens' DescribeServices (Maybe Natural) Source #
The maximum number of results that you want returned in the response.
Destructuring the Response
describeServicesResponse Source #
Creates a value of DescribeServicesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsrsFormatVersion
- The format version of the response. For example,aws_v1
.dsrsNextToken
- The pagination token for the next set of retreivable results.dsrsServices
- The service metadata for the service or services in the response.dsrsResponseStatus
- -- | The response status code.
data DescribeServicesResponse Source #
See: describeServicesResponse
smart constructor.
Response Lenses
dsrsFormatVersion :: Lens' DescribeServicesResponse (Maybe Text) Source #
The format version of the response. For example, aws_v1
.
dsrsNextToken :: Lens' DescribeServicesResponse (Maybe Text) Source #
The pagination token for the next set of retreivable results.
dsrsServices :: Lens' DescribeServicesResponse [PricingService] Source #
The service metadata for the service or services in the response.
dsrsResponseStatus :: Lens' DescribeServicesResponse Int Source #
- - | The response status code.