describe_cases
async
¶
describe_cases(
*,
config_overrides: Optional[AsyncSupportClientConfig] = None,
case_id_list: Optional[CaseIdList] = None,
display_id: Optional[DisplayId] = None,
after_time: Optional[AfterTime] = None,
before_time: Optional[BeforeTime] = None,
include_resolved_cases: Optional[IncludeResolvedCases] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
language: Optional[Language] = None,
include_communications: Optional[IncludeCommunications] = None,
dry_run: Optional[NullableBooleanType] = None,
) -> DescribeCasesResponse
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
nextTokenvalues, which specify where to paginate the returned records represented by theCaseDetailsobjects.
Case data is available for 24 months after creation. If a case was created more than 24 months ago, a request might return an error.
-
You must have an Amazon Web Services Business Support+, Amazon Web Services Enterprise Support, or Amazon Web Services Unified Operations plan to use the Amazon Web Services Support API. If you're in an Amazon Web Services Region that doesn't offer one of these Amazon Web Services Support plans, or if you haven't transitioned to one of these plans, you can use the Amazon Web Services Support API with a Business, Enterprise On-Ramp, or Enterprise Support plan.
-
If you call the Amazon Web Services Support API from an account that doesn't have an Amazon Web Services Business Support+, Amazon Web Services Enterprise Support, or Amazon Web Services Unified Operations plan, the
SubscriptionRequiredExceptionerror message appears. For information about changing your support plan, see Amazon Web Services Support.
Each Communication returned by this operation includes attachment information in two fields:
-
attachmentSet: returns only attachments that are 5 MB or smaller. Attachments larger than 5 MB are not included in this field. -
attachments: returns all attachments regardless of size.
Amazon Web Services recommends that you use the attachments field and download each attachment with GetAttachmentDownloadLink, which supports attachments of any size. The attachmentSet field and DescribeAttachment return only attachments that are 5 MB or smaller.
Parameters:
-
case_id_list(Optional[CaseIdList], default:None) –A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.
-
display_id(Optional[DisplayId], default:None) –The ID displayed for a case in the Amazon Web Services Support Center user interface.
-
after_time(Optional[AfterTime], default:None) –The start date for a filtered date search on support case communications. Case communications are available for 24 months after creation.
-
before_time(Optional[BeforeTime], default:None) –The end date for a filtered date search on support case communications. Case communications are available for 24 months after creation.
-
include_resolved_cases(Optional[IncludeResolvedCases], default:None) –Specifies whether to include resolved support cases in the
DescribeCasesresponse. By default, resolved cases aren't included. -
next_token(Optional[NextToken], default:None) –A resumption point for pagination.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return before paginating.
-
language(Optional[Language], default:None) –The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") , Chinese ("zh"), Spanish ("es"), Portuguese ("pt"), French ("fr"), Korean (“ko”), and Turkish ("tr"). You must specify the ISO 639-1 code for the
languageparameter if you want support in that language. -
include_communications(Optional[IncludeCommunications], default:None) –Specifies whether to include communications in the
DescribeCasesresponse. By default, communications are included. -
dry_run(Optional[NullableBooleanType], default:None) –Specifies whether to validate the request without actually returning case data. When set to
true, the request is validated but no cases are returned, and the operation returns aDryRunOperationException. When omitted or set tofalse, the request runs normally.
Raises:
-
CaseIdNotFound–The requested
caseIdcouldn't be located. -
DryRunOperationException–The request was valid, but the operation wasn't performed because
dryRunwas set totrue. -
InternalServerError–An internal server error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_support/_services/async_support.py
622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 | |