amazonka-support-1.6.1: Amazon Support SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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:

  • 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."
  • serviceCode. The code for an AWS service. You obtain the serviceCode by calling DescribeServices .
  • 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.
  • 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 .
  • subject. The Subject field on the AWS Support Center Create Case page.
  • communicationBody. The Description field on the AWS Support Center Create Case page.
  • attachmentSetId. The ID of a set of attachments that has been created by using AddAttachmentsToSet .
  • language. The human language in which AWS Support handles the case. English and Japanese are currently supported.
  • 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 .

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:

  • ccSeverityCode - The code for the severity level returned by the call to DescribeSeverityLevels .
  • ccIssueType - 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 - A list of email addresses that AWS Support copies on case correspondence.
  • ccLanguage - 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 - The category of problem for the AWS Support case.
  • ccServiceCode - The code for the AWS service returned by the call to DescribeServices .
  • ccAttachmentSetId - The ID of a set of one or more attachments for the case. Create the set by using AddAttachmentsToSet .
  • ccSubject - The title of the AWS Support case.
  • ccCommunicationBody - The communication body text when you create an AWS Support case by calling CreateCase .

data CreateCase Source #

See: createCase smart constructor.

Instances
Eq CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Data CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

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 # 
Instance details

Defined in Network.AWS.Support.CreateCase

Show CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Generic CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Associated Types

type Rep CreateCase :: Type -> Type #

Hashable CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

ToJSON CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

AWSRequest CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Associated Types

type Rs CreateCase :: Type #

ToHeaders CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Methods

toHeaders :: CreateCase -> [Header] #

ToPath CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

ToQuery CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

NFData CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Methods

rnf :: CreateCase -> () #

type Rep CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

type Rs CreateCase Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Request Lenses

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

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

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:

  • ccrsCaseId - 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
  • ccrsResponseStatus - -- | The response status code.

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 # 
Instance details

Defined in Network.AWS.Support.CreateCase

Data CreateCaseResponse Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

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 # 
Instance details

Defined in Network.AWS.Support.CreateCase

Show CreateCaseResponse Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Generic CreateCaseResponse Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Associated Types

type Rep CreateCaseResponse :: Type -> Type #

NFData CreateCaseResponse Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

Methods

rnf :: CreateCaseResponse -> () #

type Rep CreateCaseResponse Source # 
Instance details

Defined in Network.AWS.Support.CreateCase

type Rep CreateCaseResponse = D1 (MetaData "CreateCaseResponse" "Network.AWS.Support.CreateCase" "amazonka-support-1.6.1-4xuMxu0WF4O4DAikataxy0" False) (C1 (MetaCons "CreateCaseResponse'" PrefixI True) (S1 (MetaSel (Just "_ccrsCaseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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

ccrsResponseStatus :: Lens' CreateCaseResponse Int Source #

  • - | The response status code.