Support ******* Client ====== class Support.Client A low-level client representing AWS Support The *Amazon Web Services Support API Reference* is intended for programmers who need detailed information about the Amazon Web Services Support operations and data types. You can use the API to manage your support cases programmatically. The Amazon Web Services Support API uses HTTP methods that return results in JSON format. Note: * 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. You can also use the Amazon Web Services Support API to access features for Trusted Advisor. You can return a list of checks and their descriptions, get check results, specify checks to refresh, and get the refresh status of checks. You can manage your support cases with the following Amazon Web Services Support API operations: * The CreateCase, DescribeCases, DescribeAttachment, and ResolveCase operations create Amazon Web Services Support cases, retrieve information about cases, and resolve cases. * The DescribeCommunications, AddCommunicationToCase, and AddAttachmentsToSet operations retrieve and add communications and attachments to Amazon Web Services Support cases. * The DescribeServices and DescribeSeverityLevels operations return Amazon Web Service names, service codes, service categories, and problem severity levels. You use these values when you call the CreateCase operation. You can also use the Amazon Web Services Support API to call the Trusted Advisor operations. For more information, see Trusted Advisor in the *Amazon Web Services Support User Guide*. For authentication of requests, Amazon Web Services Support uses Signature Version 4 Signing Process. For more information about this service and the endpoints to use, see About the Amazon Web Services Support API in the *Amazon Web Services Support User Guide*. import boto3 client = boto3.client('support') These are the available methods: * add_attachments_to_set * add_communication_to_case * can_paginate * close * create_case * describe_attachment * describe_cases * describe_communications * describe_create_case_options * describe_services * describe_severity_levels * describe_supported_languages * describe_trusted_advisor_check_refresh_statuses * describe_trusted_advisor_check_result * describe_trusted_advisor_check_summaries * describe_trusted_advisor_checks * get_paginator * get_waiter * refresh_trusted_advisor_check * resolve_case Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * DescribeCases * DescribeCommunications Support / Paginator / DescribeCases DescribeCases ************* class Support.Paginator.DescribeCases paginator = client.get_paginator('describe_cases') paginate(**kwargs) Creates an iterator that will paginate through responses from "Support.Client.describe_cases()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( caseIdList=[ 'string', ], displayId='string', afterTime='string', beforeTime='string', includeResolvedCases=True|False, language='string', includeCommunications=True|False, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **caseIdList** (*list*) -- A list of ID numbers of the support cases you want returned. The maximum number of cases is 100. * *(string) --* * **displayId** (*string*) -- The ID displayed for a case in the Amazon Web Services Support Center user interface. * **afterTime** (*string*) -- The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation. * **beforeTime** (*string*) -- The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation. * **includeResolvedCases** (*boolean*) -- Specifies whether to include resolved support cases in the "DescribeCases" response. By default, resolved cases aren't included. * **language** (*string*) -- The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. * **includeCommunications** (*boolean*) -- Specifies whether to include communications in the "DescribeCases" response. By default, communications are included. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'cases': [ { 'caseId': 'string', 'displayId': 'string', 'subject': 'string', 'status': 'string', 'serviceCode': 'string', 'categoryCode': 'string', 'severityCode': 'string', 'submittedBy': 'string', 'timeCreated': 'string', 'recentCommunications': { 'communications': [ { 'caseId': 'string', 'body': 'string', 'submittedBy': 'string', 'timeCreated': 'string', 'attachmentSet': [ { 'attachmentId': 'string', 'fileName': 'string' }, ] }, ], 'nextToken': 'string' }, 'ccEmailAddresses': [ 'string', ], 'language': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* Returns an array of CaseDetails objects and a "nextToken" that defines a point for pagination in the result set. * **cases** *(list) --* The details for the cases that match the request. * *(dict) --* A JSON-formatted object that contains the metadata for a support case. It is contained in the response from a DescribeCases request. **CaseDetails** contains the following fields: * **caseId** - The 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*. * **categoryCode** - The category of problem for the support case. Corresponds to the "CategoryCode" values returned by a call to DescribeServices. * **displayId** - The identifier for the case on pages in the Amazon Web Services Support Center. * **language** - The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. * **nextToken** - A resumption point for pagination. * **recentCommunications** - One or more Communication objects. Fields of these objects are "attachments", "body", "caseId", "submittedBy", and "timeCreated". * **serviceCode** - The identifier for the Amazon Web Services service that corresponds to the service code defined in the call to DescribeServices. * **severityCode** - The severity code assigned to the case. Contains one of the values returned by the call to DescribeSeverityLevels. The possible values are: "low", "normal", "high", "urgent", and "critical". * **status** - The status of the case in the Amazon Web Services Support Center. Valid values: * "all-open" * "customer-action-completed" * "opened" * "pending-customer-action" * "reopened" * "resolved" * "unassigned" * "work-in-progress" * **subject** - The subject line of the case. * **submittedBy** - The email address of the account that submitted the case. * **timeCreated** - The time the case was created, in ISO-8601 format. * **caseId** *(string) --* The 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* * **displayId** *(string) --* The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. * **subject** *(string) --* The subject line for the case in the Amazon Web Services Support Center. * **status** *(string) --* The status of the case. Valid values: * "all-open" * "customer-action-completed" * "opened" * "pending-customer-action" * "reopened" * "resolved" * "unassigned" * "work-in-progress" * **serviceCode** *(string) --* The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by calling DescribeServices. * **categoryCode** *(string) --* The category of problem for the support case. * **severityCode** *(string) --* The code for the severity level returned by the call to DescribeSeverityLevels. * **submittedBy** *(string) --* The email address of the account that submitted the case. * **timeCreated** *(string) --* The time that the case was created in the Amazon Web Services Support Center. * **recentCommunications** *(dict) --* The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any attachments to the communications. Also includes a "nextToken" that you can use to retrieve earlier communications. * **communications** *(list) --* The five most recent communications associated with the case. * *(dict) --* A communication associated with a support case. The communication consists of the case ID, the message body, attachment information, the submitter of the communication, and the date and time of the communication. * **caseId** *(string) --* The 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* * **body** *(string) --* The text of the communication between the customer and Amazon Web Services Support. * **submittedBy** *(string) --* The identity of the account that submitted, or responded to, the support case. Customer entries include the IAM role as well as the email address (for example, "AdminRole (Role) ). Entries from the Amazon Web Services Support team display "Amazon Web Services," and don't show an email address. * **timeCreated** *(string) --* The time the communication was created. * **attachmentSet** *(list) --* Information about the attachments to the case communication. * *(dict) --* The file name and ID of an attachment to a case communication. You can use the ID to retrieve the attachment with the DescribeAttachment operation. * **attachmentId** *(string) --* The ID of the attachment. * **fileName** *(string) --* The file name of the attachment. * **nextToken** *(string) --* A resumption point for pagination. * **ccEmailAddresses** *(list) --* The email addresses that receive copies of communication about the case. * *(string) --* * **language** *(string) --* The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. * **NextToken** *(string) --* A token to resume pagination. Support / Paginator / DescribeCommunications DescribeCommunications ********************** class Support.Paginator.DescribeCommunications paginator = client.get_paginator('describe_communications') paginate(**kwargs) Creates an iterator that will paginate through responses from "Support.Client.describe_communications()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( caseId='string', beforeTime='string', afterTime='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **caseId** (*string*) -- **[REQUIRED]** The 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* * **beforeTime** (*string*) -- The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation. * **afterTime** (*string*) -- The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'communications': [ { 'caseId': 'string', 'body': 'string', 'submittedBy': 'string', 'timeCreated': 'string', 'attachmentSet': [ { 'attachmentId': 'string', 'fileName': 'string' }, ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* The communications returned by the DescribeCommunications operation. * **communications** *(list) --* The communications for the case. * *(dict) --* A communication associated with a support case. The communication consists of the case ID, the message body, attachment information, the submitter of the communication, and the date and time of the communication. * **caseId** *(string) --* The 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* * **body** *(string) --* The text of the communication between the customer and Amazon Web Services Support. * **submittedBy** *(string) --* The identity of the account that submitted, or responded to, the support case. Customer entries include the IAM role as well as the email address (for example, "AdminRole (Role) ). Entries from the Amazon Web Services Support team display "Amazon Web Services," and don't show an email address. * **timeCreated** *(string) --* The time the communication was created. * **attachmentSet** *(list) --* Information about the attachments to the case communication. * *(dict) --* The file name and ID of an attachment to a case communication. You can use the ID to retrieve the attachment with the DescribeAttachment operation. * **attachmentId** *(string) --* The ID of the attachment. * **fileName** *(string) --* The file name of the attachment. * **NextToken** *(string) --* A token to resume pagination. Support / Client / get_paginator get_paginator ************* Support.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. Support / Client / describe_trusted_advisor_check_result describe_trusted_advisor_check_result ************************************* Support.Client.describe_trusted_advisor_check_result(**kwargs) Returns the results of the Trusted Advisor check that has the specified check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation. The response contains a TrustedAdvisorCheckResult object, which contains these three objects: * TrustedAdvisorCategorySpecificSummary * TrustedAdvisorResourceDetail * TrustedAdvisorResourcesSummary In addition, the response contains these fields: * **status** - The alert status of the check can be "ok" (green), "warning" (yellow), "error" (red), or "not_available". * **timestamp** - The time of the last refresh of the check. * **checkId** - The unique identifier for the check. Note: * 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. To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the *Amazon Web Services Support User Guide*. See also: AWS API Documentation **Request Syntax** response = client.describe_trusted_advisor_check_result( checkId='string', language='string' ) Parameters: * **checkId** (*string*) -- **[REQUIRED]** The unique identifier for the Trusted Advisor check. * **language** (*string*) -- The ISO 639-1 code for the language that you want your check results to appear in. The Amazon Web Services Support API currently supports the following languages for Trusted Advisor: * Chinese, Simplified - "zh" * Chinese, Traditional - "zh_TW" * English - "en" * French - "fr" * German - "de" * Indonesian - "id" * Italian - "it" * Japanese - "ja" * Korean - "ko" * Portuguese, Brazilian - "pt_BR" * Spanish - "es" Return type: dict Returns: **Response Syntax** { 'result': { 'checkId': 'string', 'timestamp': 'string', 'status': 'string', 'resourcesSummary': { 'resourcesProcessed': 123, 'resourcesFlagged': 123, 'resourcesIgnored': 123, 'resourcesSuppressed': 123 }, 'categorySpecificSummary': { 'costOptimizing': { 'estimatedMonthlySavings': 123.0, 'estimatedPercentMonthlySavings': 123.0 } }, 'flaggedResources': [ { 'status': 'string', 'region': 'string', 'resourceId': 'string', 'isSuppressed': True|False, 'metadata': [ 'string', ] }, ] } } **Response Structure** * *(dict) --* The result of the Trusted Advisor check returned by the DescribeTrustedAdvisorCheckResult operation. * **result** *(dict) --* The detailed results of the Trusted Advisor check. * **checkId** *(string) --* The unique identifier for the Trusted Advisor check. * **timestamp** *(string) --* The time of the last refresh of the check. * **status** *(string) --* The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available". * **resourcesSummary** *(dict) --* Details about Amazon Web Services resources that were analyzed in a call to Trusted Advisor DescribeTrustedAdvisorCheckSummaries. * **resourcesProcessed** *(integer) --* The number of Amazon Web Services resources that were analyzed by the Trusted Advisor check. * **resourcesFlagged** *(integer) --* The number of Amazon Web Services resources that were flagged (listed) by the Trusted Advisor check. * **resourcesIgnored** *(integer) --* The number of Amazon Web Services resources ignored by Trusted Advisor because information was unavailable. * **resourcesSuppressed** *(integer) --* The number of Amazon Web Services resources ignored by Trusted Advisor because they were marked as suppressed by the user. * **categorySpecificSummary** *(dict) --* Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported. * **costOptimizing** *(dict) --* The summary information about cost savings for a Trusted Advisor check that is in the Cost Optimizing category. * **estimatedMonthlySavings** *(float) --* The estimated monthly savings that might be realized if the recommended operations are taken. * **estimatedPercentMonthlySavings** *(float) --* The estimated percentage of savings that might be realized if the recommended operations are taken. * **flaggedResources** *(list) --* The details about each resource listed in the check result. * *(dict) --* Contains information about a resource identified by a Trusted Advisor check. * **status** *(string) --* The status code for the resource identified in the Trusted Advisor check. * **region** *(string) --* The Amazon Web Services Region in which the identified resource is located. * **resourceId** *(string) --* The unique identifier for the identified resource. * **isSuppressed** *(boolean) --* Specifies whether the Amazon Web Services resource was ignored by Trusted Advisor because it was marked as suppressed by the user. * **metadata** *(list) --* Additional information about the identified resource. The exact metadata and its order can be obtained by inspecting the TrustedAdvisorCheckDescription object returned by the call to DescribeTrustedAdvisorChecks. **Metadata** contains all the data that is shown in the Excel download, even in those cases where the UI shows just summary data. * *(string) --* **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.ThrottlingException" Support / Client / add_communication_to_case add_communication_to_case ************************* Support.Client.add_communication_to_case(**kwargs) Adds additional customer communication to an Amazon Web Services Support case. Use the "caseId" parameter to identify the case to which to add communication. You can list a set of email addresses to copy on the communication by using the "ccEmailAddresses" parameter. The "communicationBody" value contains the text of the communication. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.add_communication_to_case( caseId='string', communicationBody='string', ccEmailAddresses=[ 'string', ], attachmentSetId='string' ) Parameters: * **caseId** (*string*) -- The 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* * **communicationBody** (*string*) -- **[REQUIRED]** The body of an email communication to add to the support case. * **ccEmailAddresses** (*list*) -- The email addresses in the CC line of an email to be added to the support case. * *(string) --* * **attachmentSetId** (*string*) -- The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling AddAttachmentsToSet Return type: dict Returns: **Response Syntax** { 'result': True|False } **Response Structure** * *(dict) --* The result of the AddCommunicationToCase operation. * **result** *(boolean) --* True if AddCommunicationToCase succeeds. Otherwise, returns an error. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.CaseIdNotFound" * "Support.Client.exceptions.AttachmentSetIdNotFound" * "Support.Client.exceptions.AttachmentSetExpired" Support / Client / create_case create_case *********** Support.Client.create_case(**kwargs) Creates a case in the Amazon Web Services Support Center. This operation is similar to how you create a case in the Amazon Web Services Support Center Create Case page. The Amazon Web Services Support API doesn't support requesting service limit increases. You can submit a service limit increase in the following ways: * Submit a request from the Amazon Web Services Support Center Create Case page. * Use the Service Quotas RequestServiceQuotaIncrease operation. A successful "CreateCase" request returns an Amazon Web Services Support case number. You can use the DescribeCases operation and specify the case number to get existing Amazon Web Services Support cases. After you create a case, use the AddCommunicationToCase operation to add additional communication or attachments to an existing case. The "caseId" is separate from the "displayId" that appears in the Amazon Web Services Support Center. Use the DescribeCases operation to get the "displayId". Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.create_case( subject='string', serviceCode='string', severityCode='string', categoryCode='string', communicationBody='string', ccEmailAddresses=[ 'string', ], language='string', issueType='string', attachmentSetId='string' ) Parameters: * **subject** (*string*) -- **[REQUIRED]** The title of the support case. The title appears in the **Subject** field on the Amazon Web Services Support Center Create Case page. * **serviceCode** (*string*) -- The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible "serviceCode" values. * **severityCode** (*string*) -- A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the DescribeSeverityLevels operation to get the possible values for "severityCode". For more information, see SeverityLevel and Choosing a Severity in the *Amazon Web Services Support User Guide*. Note: The availability of severity levels depends on the support plan for the Amazon Web Services account. * **categoryCode** (*string*) -- The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes. * **communicationBody** (*string*) -- **[REQUIRED]** The communication body text that describes the issue. This text appears in the **Description** field on the Amazon Web Services Support Center Create Case page. * **ccEmailAddresses** (*list*) -- A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the Amazon Web Services SDKs. * *(string) --* * **language** (*string*) -- The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. * **issueType** (*string*) -- The type of issue for the case. You can specify "customer-service" or "technical". If you don't specify a value, the default is "technical". * **attachmentSetId** (*string*) -- The ID of a set of one or more attachments for the case. Create the set by using the AddAttachmentsToSet operation. Return type: dict Returns: **Response Syntax** { 'caseId': 'string' } **Response Structure** * *(dict) --* The support case ID returned by a successful completion of the CreateCase operation. * **caseId** *(string) --* The support case ID requested or returned in the call. The case ID is an alphanumeric string in the following format: case-*12345678910-2013-c4c1d2bf33c5cf47* **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.CaseCreationLimitExceeded" * "Support.Client.exceptions.AttachmentSetIdNotFound" * "Support.Client.exceptions.AttachmentSetExpired" Support / Client / can_paginate can_paginate ************ Support.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. Support / Client / add_attachments_to_set add_attachments_to_set ********************** Support.Client.add_attachments_to_set(**kwargs) Adds one or more attachments to an attachment set. An attachment set is a temporary container for attachments that you add to a case or case communication. The set is available for 1 hour after it's created. The "expiryTime" returned in the response is when the set expires. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.add_attachments_to_set( attachmentSetId='string', attachments=[ { 'fileName': 'string', 'data': b'bytes' }, ] ) Parameters: * **attachmentSetId** (*string*) -- The ID of the attachment set. If an "attachmentSetId" is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an "attachmentSetId" is specified, the attachments are added to the specified set, if it exists. * **attachments** (*list*) -- **[REQUIRED]** One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment. In the "Attachment" object, use the "data" parameter to specify the contents of the attachment file. In the previous request syntax, the value for "data" appear as "blob", which is represented as a base64-encoded string. The value for "fileName" is the name of the attachment, such as "troubleshoot-screenshot.png". * *(dict) --* An attachment to a case communication. The attachment consists of the file name and the content of the file. Each attachment file size should not exceed 5 MB. File types that are supported include the following: pdf, jpeg,.doc, .log, .text * **fileName** *(string) --* The name of the attachment file. * **data** *(bytes) --* The content of the attachment file. Return type: dict Returns: **Response Syntax** { 'attachmentSetId': 'string', 'expiryTime': 'string' } **Response Structure** * *(dict) --* The ID and expiry time of the attachment set returned by the AddAttachmentsToSet operation. * **attachmentSetId** *(string) --* The ID of the attachment set. If an "attachmentSetId" was not specified, a new attachment set is created, and the ID of the set is returned in the response. If an "attachmentSetId" was specified, the attachments are added to the specified set, if it exists. * **expiryTime** *(string) --* The time and date when the attachment set expires. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.AttachmentSetIdNotFound" * "Support.Client.exceptions.AttachmentSetExpired" * "Support.Client.exceptions.AttachmentSetSizeLimitExceeded" * "Support.Client.exceptions.AttachmentLimitExceeded" Support / Client / describe_trusted_advisor_check_summaries describe_trusted_advisor_check_summaries **************************************** Support.Client.describe_trusted_advisor_check_summaries(**kwargs) Returns the results for the Trusted Advisor check summaries for the check IDs that you specified. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation. The response contains an array of TrustedAdvisorCheckSummary objects. Note: * 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. To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the *Amazon Web Services Support User Guide*. See also: AWS API Documentation **Request Syntax** response = client.describe_trusted_advisor_check_summaries( checkIds=[ 'string', ] ) Parameters: **checkIds** (*list*) -- **[REQUIRED]** The IDs of the Trusted Advisor checks. * *(string) --* Return type: dict Returns: **Response Syntax** { 'summaries': [ { 'checkId': 'string', 'timestamp': 'string', 'status': 'string', 'hasFlaggedResources': True|False, 'resourcesSummary': { 'resourcesProcessed': 123, 'resourcesFlagged': 123, 'resourcesIgnored': 123, 'resourcesSuppressed': 123 }, 'categorySpecificSummary': { 'costOptimizing': { 'estimatedMonthlySavings': 123.0, 'estimatedPercentMonthlySavings': 123.0 } } }, ] } **Response Structure** * *(dict) --* The summaries of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckSummaries operation. * **summaries** *(list) --* The summary information for the requested Trusted Advisor checks. * *(dict) --* A summary of a Trusted Advisor check result, including the alert status, last refresh, and number of resources examined. * **checkId** *(string) --* The unique identifier for the Trusted Advisor check. * **timestamp** *(string) --* The time of the last refresh of the check. * **status** *(string) --* The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available". * **hasFlaggedResources** *(boolean) --* Specifies whether the Trusted Advisor check has flagged resources. * **resourcesSummary** *(dict) --* Details about Amazon Web Services resources that were analyzed in a call to Trusted Advisor DescribeTrustedAdvisorCheckSummaries. * **resourcesProcessed** *(integer) --* The number of Amazon Web Services resources that were analyzed by the Trusted Advisor check. * **resourcesFlagged** *(integer) --* The number of Amazon Web Services resources that were flagged (listed) by the Trusted Advisor check. * **resourcesIgnored** *(integer) --* The number of Amazon Web Services resources ignored by Trusted Advisor because information was unavailable. * **resourcesSuppressed** *(integer) --* The number of Amazon Web Services resources ignored by Trusted Advisor because they were marked as suppressed by the user. * **categorySpecificSummary** *(dict) --* Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported. * **costOptimizing** *(dict) --* The summary information about cost savings for a Trusted Advisor check that is in the Cost Optimizing category. * **estimatedMonthlySavings** *(float) --* The estimated monthly savings that might be realized if the recommended operations are taken. * **estimatedPercentMonthlySavings** *(float) --* The estimated percentage of savings that might be realized if the recommended operations are taken. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.ThrottlingException" Support / Client / describe_services describe_services ***************** Support.Client.describe_services(**kwargs) 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. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.describe_services( serviceCodeList=[ 'string', ], language='string' ) Parameters: * **serviceCodeList** (*list*) -- A JSON-formatted list of service codes available for Amazon Web Services services. * *(string) --* * **language** (*string*) -- The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. Return type: dict Returns: **Response Syntax** { 'services': [ { 'code': 'string', 'name': 'string', 'categories': [ { 'code': 'string', 'name': 'string' }, ] }, ] } **Response Structure** * *(dict) --* The list of Amazon Web Services services returned by the DescribeServices operation. * **services** *(list) --* A JSON-formatted list of Amazon Web Services services. * *(dict) --* Information about an Amazon Web Services service returned by the DescribeServices operation. * **code** *(string) --* The code for an Amazon Web Services service returned by the DescribeServices response. The "name" element contains the corresponding friendly name. * **name** *(string) --* The friendly name for an Amazon Web Services service. The "code" element contains the corresponding code. * **categories** *(list) --* A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to Amazon Web Services Support when you call CreateCase. * *(dict) --* A JSON-formatted name/value pair that represents the category name and category code of the problem, selected from the DescribeServices response for each Amazon Web Services service. * **code** *(string) --* The category code for the support case. * **name** *(string) --* The category name for the support case. **Exceptions** * "Support.Client.exceptions.InternalServerError" Support / Client / describe_communications describe_communications *********************** Support.Client.describe_communications(**kwargs) Returns communications and attachments for one or more support cases. Use the "afterTime" and "beforeTime" parameters to filter by date. You can use the "caseId" parameter to restrict the results to a specific case. Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request for data might cause an error. You can use the "maxResults" and "nextToken" parameters to control the pagination of the results. Set "maxResults" to the number of cases that you want to display on each page, and use "nextToken" to specify the resumption of pagination. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.describe_communications( caseId='string', beforeTime='string', afterTime='string', nextToken='string', maxResults=123 ) Parameters: * **caseId** (*string*) -- **[REQUIRED]** The 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* * **beforeTime** (*string*) -- The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation. * **afterTime** (*string*) -- The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation. * **nextToken** (*string*) -- A resumption point for pagination. * **maxResults** (*integer*) -- The maximum number of results to return before paginating. Return type: dict Returns: **Response Syntax** { 'communications': [ { 'caseId': 'string', 'body': 'string', 'submittedBy': 'string', 'timeCreated': 'string', 'attachmentSet': [ { 'attachmentId': 'string', 'fileName': 'string' }, ] }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* The communications returned by the DescribeCommunications operation. * **communications** *(list) --* The communications for the case. * *(dict) --* A communication associated with a support case. The communication consists of the case ID, the message body, attachment information, the submitter of the communication, and the date and time of the communication. * **caseId** *(string) --* The 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* * **body** *(string) --* The text of the communication between the customer and Amazon Web Services Support. * **submittedBy** *(string) --* The identity of the account that submitted, or responded to, the support case. Customer entries include the IAM role as well as the email address (for example, "AdminRole (Role) ). Entries from the Amazon Web Services Support team display "Amazon Web Services," and don't show an email address. * **timeCreated** *(string) --* The time the communication was created. * **attachmentSet** *(list) --* Information about the attachments to the case communication. * *(dict) --* The file name and ID of an attachment to a case communication. You can use the ID to retrieve the attachment with the DescribeAttachment operation. * **attachmentId** *(string) --* The ID of the attachment. * **fileName** *(string) --* The file name of the attachment. * **nextToken** *(string) --* A resumption point for pagination. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.CaseIdNotFound" Support / Client / describe_trusted_advisor_checks describe_trusted_advisor_checks ******************************* Support.Client.describe_trusted_advisor_checks(**kwargs) Returns information about all available Trusted Advisor checks, including the name, ID, category, description, and metadata. You must specify a language code. The response contains a TrustedAdvisorCheckDescription object for each check. You must set the Amazon Web Services Region to us- east-1. Note: * 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. * The names and descriptions for Trusted Advisor checks are subject to change. We recommend that you specify the check ID in your code to uniquely identify a check. To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the *Amazon Web Services Support User Guide*. See also: AWS API Documentation **Request Syntax** response = client.describe_trusted_advisor_checks( language='string' ) Parameters: **language** (*string*) -- **[REQUIRED]** The ISO 639-1 code for the language that you want your checks to appear in. The Amazon Web Services Support API currently supports the following languages for Trusted Advisor: * Chinese, Simplified - "zh" * Chinese, Traditional - "zh_TW" * English - "en" * French - "fr" * German - "de" * Indonesian - "id" * Italian - "it" * Japanese - "ja" * Korean - "ko" * Portuguese, Brazilian - "pt_BR" * Spanish - "es" Return type: dict Returns: **Response Syntax** { 'checks': [ { 'id': 'string', 'name': 'string', 'description': 'string', 'category': 'string', 'metadata': [ 'string', ] }, ] } **Response Structure** * *(dict) --* Information about the Trusted Advisor checks returned by the DescribeTrustedAdvisorChecks operation. * **checks** *(list) --* Information about all available Trusted Advisor checks. * *(dict) --* The description and metadata for a Trusted Advisor check. * **id** *(string) --* The unique identifier for the Trusted Advisor check. * **name** *(string) --* The display name for the Trusted Advisor check. * **description** *(string) --* The description of the Trusted Advisor check, which includes the alert criteria and recommended operations (contains HTML markup). * **category** *(string) --* The category of the Trusted Advisor check. * **metadata** *(list) --* The column headings for the data returned by the Trusted Advisor check. The order of the headings corresponds to the order of the data in the **Metadata** element of the TrustedAdvisorResourceDetail for the check. **Metadata** contains all the data that is shown in the Excel download, even in those cases where the UI shows just summary data. * *(string) --* **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.ThrottlingException" Support / Client / describe_create_case_options describe_create_case_options **************************** Support.Client.describe_create_case_options(**kwargs) Returns a list of CreateCaseOption types along with the corresponding supported hours and language availability. You can specify the "language" "categoryCode", "issueType" and "serviceCode" used to retrieve the CreateCaseOptions. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.describe_create_case_options( issueType='string', serviceCode='string', language='string', categoryCode='string' ) Parameters: * **issueType** (*string*) -- **[REQUIRED]** The type of issue for the case. You can specify "customer- service" or "technical". If you don't specify a value, the default is "technical". * **serviceCode** (*string*) -- **[REQUIRED]** The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible "serviceCode" values. * **language** (*string*) -- **[REQUIRED]** The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. * **categoryCode** (*string*) -- **[REQUIRED]** The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes. Return type: dict Returns: **Response Syntax** { 'languageAvailability': 'string', 'communicationTypes': [ { 'type': 'string', 'supportedHours': [ { 'startTime': 'string', 'endTime': 'string' }, ], 'datesWithoutSupport': [ { 'startDateTime': 'string', 'endDateTime': 'string' }, ] }, ] } **Response Structure** * *(dict) --* * **languageAvailability** *(string) --* Language availability can be any of the following: * available * best_effort * unavailable * **communicationTypes** *(list) --* A JSON-formatted array that contains the available communication type options, along with the available support timeframes for the given inputs. * *(dict) --* A JSON-formatted object that contains the CommunicationTypeOptions for creating a case for a certain communication channel. It is contained in the response from a DescribeCreateCaseOptions request. **CommunicationTypeOptions** contains the following fields: * **datesWithoutSupport** - A JSON-formatted list containing date and time ranges for periods without support in UTC time. Date and time format is RFC 3339 : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. * **supportedHours** - A JSON-formatted list containing time ranges when support are available. Time format is RFC 3339 : 'HH:mm:ss.SSS'. * **type** - A string value indicating the communication type that the aforementioned rules apply to. At the moment the type value can assume one of 3 values at the moment "chat", "web" and "call". * **type** *(string) --* A string value indicating the communication type. At the moment the type value can assume one of 3 values at the moment chat, web and call. * **supportedHours** *(list) --* A JSON-formatted list containing time ranges when support is available. * *(dict) --* Time range object with "startTime" and "endTime" range in RFC 3339 format. "'HH:mm:ss.SSS'". * **startTime** *(string) --* Start Time. RFC 3339 format "'HH:mm:ss.SSS'". * **endTime** *(string) --* End Time. RFC 3339 format "'HH:mm:ss.SSS'". * **datesWithoutSupport** *(list) --* A JSON-formatted list containing date and time ranges for periods without support * *(dict) --* Date and time (UTC) format in RFC 3339 : 'yyyy-MM- dd'T'HH:mm:ss.SSSZZ'. * **startDateTime** *(string) --* A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : 'yyyy-MM- dd'T'HH:mm:ss.SSSZZ'. * **endDateTime** *(string) --* End Date Time (UTC). RFC 3339 format : 'yyyy-MM- dd'T'HH:mm:ss.SSSZZ'. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.ThrottlingException" Support / Client / get_waiter get_waiter ********** Support.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" Support / Client / describe_attachment describe_attachment ******************* Support.Client.describe_attachment(**kwargs) Returns the attachment that has the specified ID. Attachments can include screenshots, error logs, or other files that describe your issue. Attachment IDs are generated by the case management system when you add an attachment to a case or case communication. Attachment IDs are returned in the AttachmentDetails objects that are returned by the DescribeCommunications operation. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.describe_attachment( attachmentId='string' ) Parameters: **attachmentId** (*string*) -- **[REQUIRED]** The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation. Return type: dict Returns: **Response Syntax** { 'attachment': { 'fileName': 'string', 'data': b'bytes' } } **Response Structure** * *(dict) --* The content and file name of the attachment returned by the DescribeAttachment operation. * **attachment** *(dict) --* This object includes the attachment content and file name. In the previous response syntax, the value for the "data" parameter appears as "blob", which is represented as a base64-encoded string. The value for "fileName" is the name of the attachment, such as "troubleshoot-screenshot.png". * **fileName** *(string) --* The name of the attachment file. * **data** *(bytes) --* The content of the attachment file. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.DescribeAttachmentLimitExceeded" * "Support.Client.exceptions.AttachmentIdNotFound" Support / Client / describe_supported_languages describe_supported_languages **************************** Support.Client.describe_supported_languages(**kwargs) Returns a list of supported languages for a specified "categoryCode", "issueType" and "serviceCode". The returned supported languages will include a ISO 639-1 code for the "language", and the language display name. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.describe_supported_languages( issueType='string', serviceCode='string', categoryCode='string' ) Parameters: * **issueType** (*string*) -- **[REQUIRED]** The type of issue for the case. You can specify "customer- service" or "technical". * **serviceCode** (*string*) -- **[REQUIRED]** The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible "serviceCode" values. * **categoryCode** (*string*) -- **[REQUIRED]** The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes. Return type: dict Returns: **Response Syntax** { 'supportedLanguages': [ { 'code': 'string', 'language': 'string', 'display': 'string' }, ] } **Response Structure** * *(dict) --* * **supportedLanguages** *(list) --* A JSON-formatted array that contains the available ISO 639-1 language codes. * *(dict) --* A JSON-formatted object that contains the available ISO 639-1 language "code", "language" name and langauge "display" value. The language code is what should be used in the CreateCase call. * **code** *(string) --* 2 digit ISO 639-1 code. e.g. "en" * **language** *(string) --* Full language description e.g. "ENGLISH" * **display** *(string) --* Language display value e.g. "ENGLISH" **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.ThrottlingException" Support / Client / refresh_trusted_advisor_check refresh_trusted_advisor_check ***************************** Support.Client.refresh_trusted_advisor_check(**kwargs) Refreshes the Trusted Advisor check that you specify using the check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation. Some checks are refreshed automatically. If you call the "RefreshTrustedAdvisorCheck" operation to refresh them, you might see the "InvalidParameterValue" error. The response contains a TrustedAdvisorCheckRefreshStatus object. Note: * 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. To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the *Amazon Web Services Support User Guide*. See also: AWS API Documentation **Request Syntax** response = client.refresh_trusted_advisor_check( checkId='string' ) Parameters: **checkId** (*string*) -- **[REQUIRED]** The unique identifier for the Trusted Advisor check to refresh. Note: Specifying the check ID of a check that is automatically refreshed causes an "InvalidParameterValue" error. Return type: dict Returns: **Response Syntax** { 'status': { 'checkId': 'string', 'status': 'string', 'millisUntilNextRefreshable': 123 } } **Response Structure** * *(dict) --* The current refresh status of a Trusted Advisor check. * **status** *(dict) --* The current refresh status for a check, including the amount of time until the check is eligible for refresh. * **checkId** *(string) --* The unique identifier for the Trusted Advisor check. * **status** *(string) --* The status of the Trusted Advisor check for which a refresh has been requested: * "none" - The check is not refreshed or the non-success status exceeds the timeout * "enqueued" - The check refresh requests has entered the refresh queue * "processing" - The check refresh request is picked up by the rule processing engine * "success" - The check is successfully refreshed * "abandoned" - The check refresh has failed * **millisUntilNextRefreshable** *(integer) --* The amount of time, in milliseconds, until the Trusted Advisor check is eligible for refresh. **Exceptions** * "Support.Client.exceptions.InternalServerError" Support / Client / resolve_case resolve_case ************ Support.Client.resolve_case(**kwargs) Resolves a support case. This operation takes a "caseId" and returns the initial and final state of the case. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.resolve_case( caseId='string' ) Parameters: **caseId** (*string*) -- The 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* Return type: dict Returns: **Response Syntax** { 'initialCaseStatus': 'string', 'finalCaseStatus': 'string' } **Response Structure** * *(dict) --* The status of the case returned by the ResolveCase operation. * **initialCaseStatus** *(string) --* The status of the case when the ResolveCase request was sent. * **finalCaseStatus** *(string) --* The status of the case after the ResolveCase request was processed. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.CaseIdNotFound" Support / Client / describe_cases describe_cases ************** Support.Client.describe_cases(**kwargs) Returns a list of cases that you specify by passing one or more case IDs. You can use the "afterTime" and "beforeTime" parameters to filter the cases by date. You can set values for the "includeResolvedCases" and "includeCommunications" parameters to specify how much information to return. The response returns the following in JSON format: * One or more CaseDetails data types. * One or more "nextToken" values, which specify where to paginate the returned records represented by the "CaseDetails" objects. Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request might return an error. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.describe_cases( caseIdList=[ 'string', ], displayId='string', afterTime='string', beforeTime='string', includeResolvedCases=True|False, nextToken='string', maxResults=123, language='string', includeCommunications=True|False ) Parameters: * **caseIdList** (*list*) -- A list of ID numbers of the support cases you want returned. The maximum number of cases is 100. * *(string) --* * **displayId** (*string*) -- The ID displayed for a case in the Amazon Web Services Support Center user interface. * **afterTime** (*string*) -- The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation. * **beforeTime** (*string*) -- The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation. * **includeResolvedCases** (*boolean*) -- Specifies whether to include resolved support cases in the "DescribeCases" response. By default, resolved cases aren't included. * **nextToken** (*string*) -- A resumption point for pagination. * **maxResults** (*integer*) -- The maximum number of results to return before paginating. * **language** (*string*) -- The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. * **includeCommunications** (*boolean*) -- Specifies whether to include communications in the "DescribeCases" response. By default, communications are included. Return type: dict Returns: **Response Syntax** { 'cases': [ { 'caseId': 'string', 'displayId': 'string', 'subject': 'string', 'status': 'string', 'serviceCode': 'string', 'categoryCode': 'string', 'severityCode': 'string', 'submittedBy': 'string', 'timeCreated': 'string', 'recentCommunications': { 'communications': [ { 'caseId': 'string', 'body': 'string', 'submittedBy': 'string', 'timeCreated': 'string', 'attachmentSet': [ { 'attachmentId': 'string', 'fileName': 'string' }, ] }, ], 'nextToken': 'string' }, 'ccEmailAddresses': [ 'string', ], 'language': 'string' }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* Returns an array of CaseDetails objects and a "nextToken" that defines a point for pagination in the result set. * **cases** *(list) --* The details for the cases that match the request. * *(dict) --* A JSON-formatted object that contains the metadata for a support case. It is contained in the response from a DescribeCases request. **CaseDetails** contains the following fields: * **caseId** - The 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*. * **categoryCode** - The category of problem for the support case. Corresponds to the "CategoryCode" values returned by a call to DescribeServices. * **displayId** - The identifier for the case on pages in the Amazon Web Services Support Center. * **language** - The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. * **nextToken** - A resumption point for pagination. * **recentCommunications** - One or more Communication objects. Fields of these objects are "attachments", "body", "caseId", "submittedBy", and "timeCreated". * **serviceCode** - The identifier for the Amazon Web Services service that corresponds to the service code defined in the call to DescribeServices. * **severityCode** - The severity code assigned to the case. Contains one of the values returned by the call to DescribeSeverityLevels. The possible values are: "low", "normal", "high", "urgent", and "critical". * **status** - The status of the case in the Amazon Web Services Support Center. Valid values: * "all-open" * "customer-action-completed" * "opened" * "pending-customer-action" * "reopened" * "resolved" * "unassigned" * "work-in-progress" * **subject** - The subject line of the case. * **submittedBy** - The email address of the account that submitted the case. * **timeCreated** - The time the case was created, in ISO-8601 format. * **caseId** *(string) --* The 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* * **displayId** *(string) --* The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. * **subject** *(string) --* The subject line for the case in the Amazon Web Services Support Center. * **status** *(string) --* The status of the case. Valid values: * "all-open" * "customer-action-completed" * "opened" * "pending-customer-action" * "reopened" * "resolved" * "unassigned" * "work-in-progress" * **serviceCode** *(string) --* The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by calling DescribeServices. * **categoryCode** *(string) --* The category of problem for the support case. * **severityCode** *(string) --* The code for the severity level returned by the call to DescribeSeverityLevels. * **submittedBy** *(string) --* The email address of the account that submitted the case. * **timeCreated** *(string) --* The time that the case was created in the Amazon Web Services Support Center. * **recentCommunications** *(dict) --* The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any attachments to the communications. Also includes a "nextToken" that you can use to retrieve earlier communications. * **communications** *(list) --* The five most recent communications associated with the case. * *(dict) --* A communication associated with a support case. The communication consists of the case ID, the message body, attachment information, the submitter of the communication, and the date and time of the communication. * **caseId** *(string) --* The 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* * **body** *(string) --* The text of the communication between the customer and Amazon Web Services Support. * **submittedBy** *(string) --* The identity of the account that submitted, or responded to, the support case. Customer entries include the IAM role as well as the email address (for example, "AdminRole (Role) ). Entries from the Amazon Web Services Support team display "Amazon Web Services," and don't show an email address. * **timeCreated** *(string) --* The time the communication was created. * **attachmentSet** *(list) --* Information about the attachments to the case communication. * *(dict) --* The file name and ID of an attachment to a case communication. You can use the ID to retrieve the attachment with the DescribeAttachment operation. * **attachmentId** *(string) --* The ID of the attachment. * **fileName** *(string) --* The file name of the attachment. * **nextToken** *(string) --* A resumption point for pagination. * **ccEmailAddresses** *(list) --* The email addresses that receive copies of communication about the case. * *(string) --* * **language** *(string) --* The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. * **nextToken** *(string) --* A resumption point for pagination. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.CaseIdNotFound" Support / Client / describe_severity_levels describe_severity_levels ************************ Support.Client.describe_severity_levels(**kwargs) Returns the list of severity levels that you can assign to a support case. The severity level for a case is also a field in the CaseDetails data type that you include for a CreateCase request. Note: * 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. See also: AWS API Documentation **Request Syntax** response = client.describe_severity_levels( language='string' ) Parameters: **language** (*string*) -- The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the "language" parameter if you want support in that language. Return type: dict Returns: **Response Syntax** { 'severityLevels': [ { 'code': 'string', 'name': 'string' }, ] } **Response Structure** * *(dict) --* The list of severity levels returned by the DescribeSeverityLevels operation. * **severityLevels** *(list) --* The available severity levels for the support case. Available severity levels are defined by your service level agreement with Amazon Web Services. * *(dict) --* A code and name pair that represents the severity level of a support case. The available values depend on the support plan for the account. For more information, see Choosing a severity in the *Amazon Web Services Support User Guide*. * **code** *(string) --* The code for case severity level. Valid values: "low" | "normal" | "high" | "urgent" | "critical" * **name** *(string) --* The name of the severity level that corresponds to the severity level code. Note: The values returned by the API are different from the values that appear in the Amazon Web Services Support Center. For example, the API uses the code "low", but the name appears as General guidance in Support Center.The following are the API code names and how they appear in the console: * "low" - General guidance * "normal" - System impaired * "high" - Production system impaired * "urgent" - Production system down * "critical" - Business-critical system down For more information, see Choosing a severity in the *Amazon Web Services Support User Guide*. **Exceptions** * "Support.Client.exceptions.InternalServerError" Support / Client / close close ***** Support.Client.close() Closes underlying endpoint connections. Support / Client / describe_trusted_advisor_check_refresh_statuses describe_trusted_advisor_check_refresh_statuses *********************************************** Support.Client.describe_trusted_advisor_check_refresh_statuses(**kwargs) Returns the refresh status of the Trusted Advisor checks that have the specified check IDs. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation. Some checks are refreshed automatically, and you can't return their refresh statuses by using the "DescribeTrustedAdvisorCheckRefreshStatuses" operation. If you call this operation for these checks, you might see an "InvalidParameterValue" error. Note: * 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. To call the Trusted Advisor operations in the Amazon Web Services Support API, you must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe (Ireland) endpoints don't support the Trusted Advisor operations. For more information, see About the Amazon Web Services Support API in the *Amazon Web Services Support User Guide*. See also: AWS API Documentation **Request Syntax** response = client.describe_trusted_advisor_check_refresh_statuses( checkIds=[ 'string', ] ) Parameters: **checkIds** (*list*) -- **[REQUIRED]** The IDs of the Trusted Advisor checks to get the status. Note: If you specify the check ID of a check that is automatically refreshed, you might see an "InvalidParameterValue" error. * *(string) --* Return type: dict Returns: **Response Syntax** { 'statuses': [ { 'checkId': 'string', 'status': 'string', 'millisUntilNextRefreshable': 123 }, ] } **Response Structure** * *(dict) --* The statuses of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckRefreshStatuses operation. * **statuses** *(list) --* The refresh status of the specified Trusted Advisor checks. * *(dict) --* The refresh status of a Trusted Advisor check. * **checkId** *(string) --* The unique identifier for the Trusted Advisor check. * **status** *(string) --* The status of the Trusted Advisor check for which a refresh has been requested: * "none" - The check is not refreshed or the non-success status exceeds the timeout * "enqueued" - The check refresh requests has entered the refresh queue * "processing" - The check refresh request is picked up by the rule processing engine * "success" - The check is successfully refreshed * "abandoned" - The check refresh has failed * **millisUntilNextRefreshable** *(integer) --* The amount of time, in milliseconds, until the Trusted Advisor check is eligible for refresh. **Exceptions** * "Support.Client.exceptions.InternalServerError" * "Support.Client.exceptions.ThrottlingException"