amazonka-support-1.4.3: 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.CreateCase

Contents

Description

Creates a new case in the AWS Support Center. This operation is modeled on the behavior of the AWS Support Center Create Case page. Its parameters require you to specify the following information:

  1. IssueType. The type of issue for the case. You can specify either "customer-service" or "technical." If you do not indicate a value, the default is "technical."
  2. ServiceCode. The code for an AWS service. You obtain the ServiceCode by calling DescribeServices.
  3. CategoryCode. The category for the service defined for the ServiceCode value. You also obtain the category code for a service by calling DescribeServices. Each AWS service defines its own set of category codes.
  4. SeverityCode. A value that indicates the urgency of the case, which in turn determines the response time according to your service level agreement with AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels.
  5. Subject. The Subject field on the AWS Support Center Create Case page.
  6. CommunicationBody. The Description field on the AWS Support Center Create Case page.
  7. AttachmentSetId. The ID of a set of attachments that has been created by using AddAttachmentsToSet.
  8. Language. The human language in which AWS Support handles the case. English and Japanese are currently supported.
  9. CcEmailAddresses. The AWS Support Center CC field on the Create Case page. You can list email addresses to be copied on any correspondence about the case. The account that opens the case is already identified by passing the AWS Credentials in the HTTP POST method or in a method or function call from one of the programming languages supported by an AWS SDK.

To add additional communication or attachments to an existing case, use AddCommunicationToCase.

A successful CreateCase request returns an AWS Support case number. Case numbers are used by the DescribeCases operation to retrieve existing AWS Support cases.

Synopsis

Creating a Request

createCase Source #

Creates a value of CreateCase with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateCase Source #

See: createCase smart constructor.

Instances

Eq CreateCase Source # 
Data CreateCase Source # 

Methods

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

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

toConstr :: CreateCase -> Constr #

dataTypeOf :: CreateCase -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateCase Source # 
Show CreateCase Source # 
Generic CreateCase Source # 

Associated Types

type Rep CreateCase :: * -> * #

Hashable CreateCase Source # 
ToJSON CreateCase Source # 
NFData CreateCase Source # 

Methods

rnf :: CreateCase -> () #

AWSRequest CreateCase Source # 
ToQuery CreateCase Source # 
ToPath CreateCase Source # 
ToHeaders CreateCase Source # 

Methods

toHeaders :: CreateCase -> [Header] #

type Rep CreateCase Source # 
type Rs CreateCase Source # 

Request Lenses

ccSeverityCode :: Lens' CreateCase (Maybe Text) Source #

The code for the severity level returned by the call to DescribeSeverityLevels.

The availability of severity levels depends on each customer's support subscription. In other words, your subscription may not necessarily require the urgent level of response time.

ccIssueType :: Lens' CreateCase (Maybe Text) Source #

The type of issue for the case. You can specify either "customer-service" or "technical." If you do not indicate a value, the default is "technical."

ccCcEmailAddresses :: Lens' CreateCase [Text] Source #

A list of email addresses that AWS Support copies on case correspondence.

ccLanguage :: Lens' CreateCase (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.

ccCategoryCode :: Lens' CreateCase (Maybe Text) Source #

The category of problem for the AWS Support case.

ccServiceCode :: Lens' CreateCase (Maybe Text) Source #

The code for the AWS service returned by the call to DescribeServices.

ccAttachmentSetId :: Lens' CreateCase (Maybe Text) Source #

The ID of a set of one or more attachments for the case. Create the set by using AddAttachmentsToSet.

ccSubject :: Lens' CreateCase Text Source #

The title of the AWS Support case.

ccCommunicationBody :: Lens' CreateCase Text Source #

The communication body text when you create an AWS Support case by calling CreateCase.

Destructuring the Response

createCaseResponse Source #

Creates a value of CreateCaseResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateCaseResponse Source #

The AWS Support case ID returned by a successful completion of the CreateCase operation.

See: createCaseResponse smart constructor.

Instances

Eq CreateCaseResponse Source # 
Data CreateCaseResponse Source # 

Methods

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

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

toConstr :: CreateCaseResponse -> Constr #

dataTypeOf :: CreateCaseResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateCaseResponse Source # 
Show CreateCaseResponse Source # 
Generic CreateCaseResponse Source # 
NFData CreateCaseResponse Source # 

Methods

rnf :: CreateCaseResponse -> () #

type Rep CreateCaseResponse Source # 
type Rep CreateCaseResponse = D1 (MetaData "CreateCaseResponse" "Network.AWS.Support.CreateCase" "amazonka-support-1.4.3-BqEDdV9WHGnL9AXuk5RgGM" False) (C1 (MetaCons "CreateCaseResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ccrsCaseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ccrsCaseId :: Lens' CreateCaseResponse (Maybe Text) Source #

The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47