amazonka-support-1.4.5: Amazon Support SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Support.DescribeServices

Contents

Description

Returns the current list of AWS services and a list of service categories that applies to each one. You then use service names and categories in your CreateCase requests. Each AWS service has its own set of categories.

The service codes and category codes correspond to the values that are displayed in the Service and Category drop-down lists on the AWS Support Center Create Case page. The values in those fields, however, do not necessarily match the service codes and categories returned by the DescribeServices request. Always use the service codes and categories obtained programmatically. This practice ensures that you always have the most recent set of service and category codes.

Synopsis

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:

  • dsServiceCodeList - A JSON-formatted list of service codes available for AWS services.
  • dsLanguage - The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.

data DescribeServices Source #

See: describeServices smart constructor.

Instances

Eq DescribeServices Source # 
Data DescribeServices Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeServices -> c DescribeServices #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeServices #

toConstr :: DescribeServices -> Constr #

dataTypeOf :: DescribeServices -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeServices) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeServices) #

gmapT :: (forall b. Data b => b -> b) -> DescribeServices -> DescribeServices #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeServices -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeServices -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeServices -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeServices -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeServices -> m DescribeServices #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeServices -> m DescribeServices #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeServices -> m DescribeServices #

Read DescribeServices Source # 
Show DescribeServices Source # 
Generic DescribeServices Source # 
Hashable DescribeServices Source # 
ToJSON DescribeServices Source # 
NFData DescribeServices Source # 

Methods

rnf :: DescribeServices -> () #

AWSRequest DescribeServices Source # 
ToPath DescribeServices Source # 
ToHeaders DescribeServices Source # 
ToQuery DescribeServices Source # 
type Rep DescribeServices Source # 
type Rep DescribeServices = D1 (MetaData "DescribeServices" "Network.AWS.Support.DescribeServices" "amazonka-support-1.4.5-1rRJJQvCx2KFEHmU5CZ1We" False) (C1 (MetaCons "DescribeServices'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsServiceCodeList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_dsLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs DescribeServices Source # 

Request Lenses

dsServiceCodeList :: Lens' DescribeServices [Text] Source #

A JSON-formatted list of service codes available for AWS services.

dsLanguage :: Lens' DescribeServices (Maybe Text) Source #

The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.

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:

data DescribeServicesResponse Source #

The list of AWS services returned by the DescribeServices operation.

See: describeServicesResponse smart constructor.

Instances

Eq DescribeServicesResponse Source # 
Data DescribeServicesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeServicesResponse -> c DescribeServicesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeServicesResponse #

toConstr :: DescribeServicesResponse -> Constr #

dataTypeOf :: DescribeServicesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeServicesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeServicesResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeServicesResponse -> DescribeServicesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeServicesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeServicesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeServicesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeServicesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeServicesResponse -> m DescribeServicesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeServicesResponse -> m DescribeServicesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeServicesResponse -> m DescribeServicesResponse #

Read DescribeServicesResponse Source # 
Show DescribeServicesResponse Source # 
Generic DescribeServicesResponse Source # 
NFData DescribeServicesResponse Source # 
type Rep DescribeServicesResponse Source # 
type Rep DescribeServicesResponse = D1 (MetaData "DescribeServicesResponse" "Network.AWS.Support.DescribeServices" "amazonka-support-1.4.5-1rRJJQvCx2KFEHmU5CZ1We" False) (C1 (MetaCons "DescribeServicesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsrsServices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [SupportService]))) (S1 (MetaSel (Just Symbol "_dsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

dsrsServices :: Lens' DescribeServicesResponse [SupportService] Source #

A JSON-formatted list of AWS services.