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 current list of Amazon Web Services services and a list of service categories for each service. You then use service names and categories in your CreateCase requests. Each Amazon Web Services service has its own set of categories.
The service codes and category codes correspond to the values that
appear in the Service and Category lists on the Amazon Web
Services Support Center
Create Case
page. The values in those fields don't necessarily match the service
codes and categories returned by the DescribeServices
operation.
Always use the service codes and categories that the DescribeServices
operation returns, so that you have the most recent set of service and
category codes.
- You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
- If you call the Amazon Web Services Support API from an account that
doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
plan, the
SubscriptionRequiredException
error message appears. For information about changing your support plan, see Amazon Web Services Support.
Synopsis
- data DescribeServices = DescribeServices' {}
- newDescribeServices :: DescribeServices
- describeServices_language :: Lens' DescribeServices (Maybe Text)
- describeServices_serviceCodeList :: Lens' DescribeServices (Maybe [Text])
- data DescribeServicesResponse = DescribeServicesResponse' {
- services :: Maybe [SupportService]
- httpStatus :: Int
- newDescribeServicesResponse :: Int -> DescribeServicesResponse
- describeServicesResponse_services :: Lens' DescribeServicesResponse (Maybe [SupportService])
- 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:
DescribeServices
, describeServices_language
- The language in which Amazon Web Services Support handles the case.
Amazon Web Services Support currently supports English ("en") and
Japanese ("ja"). You must specify the ISO 639-1 code for the
language
parameter if you want support in that language.
$sel:serviceCodeList:DescribeServices'
, describeServices_serviceCodeList
- A JSON-formatted list of service codes available for Amazon Web Services
services.
Request Lenses
describeServices_language :: Lens' DescribeServices (Maybe Text) Source #
The language in which Amazon Web Services Support handles the case.
Amazon Web Services Support currently supports English ("en") and
Japanese ("ja"). You must specify the ISO 639-1 code for the
language
parameter if you want support in that language.
describeServices_serviceCodeList :: Lens' DescribeServices (Maybe [Text]) Source #
A JSON-formatted list of service codes available for Amazon Web Services services.
Destructuring the Response
data DescribeServicesResponse Source #
The list of Amazon Web Services services returned by the DescribeServices operation.
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:services:DescribeServicesResponse'
, describeServicesResponse_services
- A JSON-formatted list of Amazon Web Services services.
$sel:httpStatus:DescribeServicesResponse'
, describeServicesResponse_httpStatus
- The response's http status code.
Response Lenses
describeServicesResponse_services :: Lens' DescribeServicesResponse (Maybe [SupportService]) Source #
A JSON-formatted list of Amazon Web Services services.
describeServicesResponse_httpStatus :: Lens' DescribeServicesResponse Int Source #
The response's http status code.