ó FRTc@svddlZddlmZddlmZddlmZddlmZddl m Z defd„ƒYZ dS( i˙˙˙˙N(tjson(tAWSQueryConnection(t RegionInfo(tJSONResponseError(t exceptionstSupportConnectionc Bs‚eZdZdZdZdZdZdZeZ i e j d6e j d6e j d6e jd 6e jd 6e jd 6e jd 6e jd 6e jd6Zd„Zd„Zd d„Zd d d d„Zd d d d d d d d„Zd„Zd d d d d d d d d d„ Zd d d d d„Zd d d„Zd d„Zd„Z d d„Z!d„Z"d„Z#d„Z$d d„Z%d„Z&RS(!s™ AWS Support The AWS Support API reference is intended for programmers who need detailed information about the AWS Support operations and data types. This service enables you to manage your AWS Support cases programmatically. It uses HTTP methods that return results in JSON format. The AWS Support service also exposes a set of `Trusted Advisor`_ features. You can retrieve a list of checks and their descriptions, get check results, specify checks to refresh, and get the refresh status of checks. The following list describes the AWS Support case management operations: + **Service names, issue categories, and available severity levels. **The DescribeServices and DescribeSeverityLevels operations return AWS service names, service codes, service categories, and problem severity levels. You use these values when you call the CreateCase operation. + **Case creation, case details, and case resolution.** The CreateCase, DescribeCases, DescribeAttachment, and ResolveCase operations create AWS Support cases, retrieve information about cases, and resolve cases. + **Case communication.** The DescribeCommunications, AddCommunicationToCase, and AddAttachmentsToSet operations retrieve and add communications and attachments to AWS Support cases. The following list describes the operations available from the AWS Support service for Trusted Advisor: + DescribeTrustedAdvisorChecks returns the list of checks that run against your AWS resources. + Using the `CheckId` for a specific check returned by DescribeTrustedAdvisorChecks, you can call DescribeTrustedAdvisorCheckResult to obtain the results for the check you specified. + DescribeTrustedAdvisorCheckSummaries returns summarized results for one or more Trusted Advisor checks. + RefreshTrustedAdvisorCheck requests that Trusted Advisor rerun a specified check. + DescribeTrustedAdvisorCheckRefreshStatuses reports the refresh status of one or more checks. For authentication of requests, AWS Support uses `Signature Version 4 Signing Process`_. See `About the AWS Support API`_ in the AWS Support User Guide for information about how to use this service to create and manage your support cases, and how to call Trusted Advisor for results of checks on your resources. s 2013-04-15s us-east-1ssupport.us-east-1.amazonaws.comtSupporttAWSSupport_20130415tCaseCreationLimitExceededtAttachmentLimitExceededtCaseIdNotFoundtDescribeAttachmentLimitExceededtAttachmentSetIdNotFoundtInternalServerErrortAttachmentSetExpiredtAttachmentIdNotFoundtAttachmentSetSizeLimitExceededcKs‚|jddƒ}|s3t||j|jƒ}nd|ksO|ddkr_|j|di}|dk r||ds cCs,i|d6}|jdddtj|ƒƒS(s€ Returns information about all available Trusted Advisor checks, including name, ID, category, description, and metadata. You must specify a language code; English ("en") and Japanese ("ja") are currently supported. The response contains a TrustedAdvisorCheckDescription for each check. :type language: string :param language: 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. R3RtDescribeTrustedAdvisorChecksR!(R"RR#(RR3R%((s@/opt/freeware/lib/python2.7/site-packages/boto/support/layer1.pytdescribe_trusted_advisor_checksOs cCs,i|d6}|jdddtj|ƒƒS(sŃ Requests a refresh of the Trusted Advisor check that has the specified check ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. The response contains a RefreshTrustedAdvisorCheckResult object, which contains these fields: + **Status.** The refresh status of the check: "none", "enqueued", "processing", "success", or "abandoned". + **MillisUntilNextRefreshable.** The amount of time, in milliseconds, until the check is eligible for refresh. + **CheckId.** The unique identifier for the check. :type check_id: string :param check_id: The unique identifier for the Trusted Advisor check. R]RtRefreshTrustedAdvisorCheckR!(R"RR#(RR_R%((s@/opt/freeware/lib/python2.7/site-packages/boto/support/layer1.pytrefresh_trusted_advisor_checkbs cCs>i}|dk r||dRPRRRVRXR\R`RbRdRfRhR"(((s@/opt/freeware/lib/python2.7/site-packages/boto/support/layer1.pyRsZ:           " +  f  R 3$   '    ( R{t boto.compatRtboto.connectionRtboto.regioninfoRtboto.exceptionRt boto.supportRR(((s@/opt/freeware/lib/python2.7/site-packages/boto/support/layer1.pyts