UNPKG

48.4 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Support extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Support.Types.ClientConfiguration)
13 config: Config & Support.Types.ClientConfiguration;
14 /**
15 * Adds one or more attachments to an 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. An attachment set is a temporary container for attachments that are to be added to a case or case communication. The set is available for one hour after it is created; the expiryTime returned in the response indicates when the set expires. The maximum number of attachments in a set is 3, and the maximum size of any attachment in the set is 5 MB.
16 */
17 addAttachmentsToSet(params: Support.Types.AddAttachmentsToSetRequest, callback?: (err: AWSError, data: Support.Types.AddAttachmentsToSetResponse) => void): Request<Support.Types.AddAttachmentsToSetResponse, AWSError>;
18 /**
19 * Adds one or more attachments to an 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. An attachment set is a temporary container for attachments that are to be added to a case or case communication. The set is available for one hour after it is created; the expiryTime returned in the response indicates when the set expires. The maximum number of attachments in a set is 3, and the maximum size of any attachment in the set is 5 MB.
20 */
21 addAttachmentsToSet(callback?: (err: AWSError, data: Support.Types.AddAttachmentsToSetResponse) => void): Request<Support.Types.AddAttachmentsToSetResponse, AWSError>;
22 /**
23 * Adds additional customer communication to an AWS Support case. You use the caseId value to identify the case to add communication to. You can list a set of email addresses to copy on the communication using the ccEmailAddresses value. The communicationBody value contains the text of the communication. The response indicates the success or failure of the request. This operation implements a subset of the features of the AWS Support Center.
24 */
25 addCommunicationToCase(params: Support.Types.AddCommunicationToCaseRequest, callback?: (err: AWSError, data: Support.Types.AddCommunicationToCaseResponse) => void): Request<Support.Types.AddCommunicationToCaseResponse, AWSError>;
26 /**
27 * Adds additional customer communication to an AWS Support case. You use the caseId value to identify the case to add communication to. You can list a set of email addresses to copy on the communication using the ccEmailAddresses value. The communicationBody value contains the text of the communication. The response indicates the success or failure of the request. This operation implements a subset of the features of the AWS Support Center.
28 */
29 addCommunicationToCase(callback?: (err: AWSError, data: Support.Types.AddCommunicationToCaseResponse) => void): Request<Support.Types.AddCommunicationToCaseResponse, AWSError>;
30 /**
31 * 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." Service limit increases are not supported by the Support API; you must submit service limit increase requests in Support Center. The caseId is not the displayId that appears in Support Center. You can use the DescribeCases API to get the displayId. serviceCode. The code for an AWS service. You can get the possible serviceCode values by calling DescribeServices. categoryCode. The category for the service defined for the serviceCode value. You also get 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 can get the possible severityCode values by calling DescribeSeverityLevels. For more information about the meaning of the codes, see SeverityLevel and Choosing a Severity. 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. To add additional communication or attachments to an existing case, use AddCommunicationToCase. A successful CreateCase request returns an AWS Support case number. Case numbers are used by the DescribeCases operation to retrieve existing AWS Support cases.
32 */
33 createCase(params: Support.Types.CreateCaseRequest, callback?: (err: AWSError, data: Support.Types.CreateCaseResponse) => void): Request<Support.Types.CreateCaseResponse, AWSError>;
34 /**
35 * 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." Service limit increases are not supported by the Support API; you must submit service limit increase requests in Support Center. The caseId is not the displayId that appears in Support Center. You can use the DescribeCases API to get the displayId. serviceCode. The code for an AWS service. You can get the possible serviceCode values by calling DescribeServices. categoryCode. The category for the service defined for the serviceCode value. You also get 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 can get the possible severityCode values by calling DescribeSeverityLevels. For more information about the meaning of the codes, see SeverityLevel and Choosing a Severity. 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. To add additional communication or attachments to an existing case, use AddCommunicationToCase. A successful CreateCase request returns an AWS Support case number. Case numbers are used by the DescribeCases operation to retrieve existing AWS Support cases.
36 */
37 createCase(callback?: (err: AWSError, data: Support.Types.CreateCaseResponse) => void): Request<Support.Types.CreateCaseResponse, AWSError>;
38 /**
39 * Returns the attachment that has the specified ID. 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.
40 */
41 describeAttachment(params: Support.Types.DescribeAttachmentRequest, callback?: (err: AWSError, data: Support.Types.DescribeAttachmentResponse) => void): Request<Support.Types.DescribeAttachmentResponse, AWSError>;
42 /**
43 * Returns the attachment that has the specified ID. 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.
44 */
45 describeAttachment(callback?: (err: AWSError, data: Support.Types.DescribeAttachmentResponse) => void): Request<Support.Types.DescribeAttachmentResponse, AWSError>;
46 /**
47 * Returns a list of cases that you specify by passing one or more case IDs. In addition, you can filter the cases by date by setting values for the afterTime and beforeTime request parameters. You can set values for the includeResolvedCases and includeCommunications request parameters to control how much information is returned. 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. 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.
48 */
49 describeCases(params: Support.Types.DescribeCasesRequest, callback?: (err: AWSError, data: Support.Types.DescribeCasesResponse) => void): Request<Support.Types.DescribeCasesResponse, AWSError>;
50 /**
51 * Returns a list of cases that you specify by passing one or more case IDs. In addition, you can filter the cases by date by setting values for the afterTime and beforeTime request parameters. You can set values for the includeResolvedCases and includeCommunications request parameters to control how much information is returned. 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. 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.
52 */
53 describeCases(callback?: (err: AWSError, data: Support.Types.DescribeCasesResponse) => void): Request<Support.Types.DescribeCasesResponse, AWSError>;
54 /**
55 * Returns communications (and attachments) for one or more support cases. You can use the afterTime and beforeTime parameters to filter by date. You can use the caseId parameter to restrict the results to a particular 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 result set. Set maxResults to the number of cases you want displayed on each page, and use nextToken to specify the resumption of pagination.
56 */
57 describeCommunications(params: Support.Types.DescribeCommunicationsRequest, callback?: (err: AWSError, data: Support.Types.DescribeCommunicationsResponse) => void): Request<Support.Types.DescribeCommunicationsResponse, AWSError>;
58 /**
59 * Returns communications (and attachments) for one or more support cases. You can use the afterTime and beforeTime parameters to filter by date. You can use the caseId parameter to restrict the results to a particular 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 result set. Set maxResults to the number of cases you want displayed on each page, and use nextToken to specify the resumption of pagination.
60 */
61 describeCommunications(callback?: (err: AWSError, data: Support.Types.DescribeCommunicationsResponse) => void): Request<Support.Types.DescribeCommunicationsResponse, AWSError>;
62 /**
63 * Returns the current list of AWS services and a list of service categories that applies to each one. You then use service names and categories in your CreateCase requests. Each AWS service has its own set of categories. The service codes and category codes correspond to the values that are displayed in the Service and Category drop-down lists on the AWS Support Center Create Case page. The values in those fields, however, do not necessarily match the service codes and categories returned by the DescribeServices request. Always use the service codes and categories obtained programmatically. This practice ensures that you always have the most recent set of service and category codes.
64 */
65 describeServices(params: Support.Types.DescribeServicesRequest, callback?: (err: AWSError, data: Support.Types.DescribeServicesResponse) => void): Request<Support.Types.DescribeServicesResponse, AWSError>;
66 /**
67 * Returns the current list of AWS services and a list of service categories that applies to each one. You then use service names and categories in your CreateCase requests. Each AWS service has its own set of categories. The service codes and category codes correspond to the values that are displayed in the Service and Category drop-down lists on the AWS Support Center Create Case page. The values in those fields, however, do not necessarily match the service codes and categories returned by the DescribeServices request. Always use the service codes and categories obtained programmatically. This practice ensures that you always have the most recent set of service and category codes.
68 */
69 describeServices(callback?: (err: AWSError, data: Support.Types.DescribeServicesResponse) => void): Request<Support.Types.DescribeServicesResponse, AWSError>;
70 /**
71 * Returns the list of severity levels that you can assign to an AWS Support case. The severity level for a case is also a field in the CaseDetails data type included in any CreateCase request.
72 */
73 describeSeverityLevels(params: Support.Types.DescribeSeverityLevelsRequest, callback?: (err: AWSError, data: Support.Types.DescribeSeverityLevelsResponse) => void): Request<Support.Types.DescribeSeverityLevelsResponse, AWSError>;
74 /**
75 * Returns the list of severity levels that you can assign to an AWS Support case. The severity level for a case is also a field in the CaseDetails data type included in any CreateCase request.
76 */
77 describeSeverityLevels(callback?: (err: AWSError, data: Support.Types.DescribeSeverityLevelsResponse) => void): Request<Support.Types.DescribeSeverityLevelsResponse, AWSError>;
78 /**
79 * Returns the refresh status of the Trusted Advisor checks that have the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. Some checks are refreshed automatically, and their refresh statuses cannot be retrieved by using this operation. Use of the DescribeTrustedAdvisorCheckRefreshStatuses operation for these checks causes an InvalidParameterValue error.
80 */
81 describeTrustedAdvisorCheckRefreshStatuses(params: Support.Types.DescribeTrustedAdvisorCheckRefreshStatusesRequest, callback?: (err: AWSError, data: Support.Types.DescribeTrustedAdvisorCheckRefreshStatusesResponse) => void): Request<Support.Types.DescribeTrustedAdvisorCheckRefreshStatusesResponse, AWSError>;
82 /**
83 * Returns the refresh status of the Trusted Advisor checks that have the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. Some checks are refreshed automatically, and their refresh statuses cannot be retrieved by using this operation. Use of the DescribeTrustedAdvisorCheckRefreshStatuses operation for these checks causes an InvalidParameterValue error.
84 */
85 describeTrustedAdvisorCheckRefreshStatuses(callback?: (err: AWSError, data: Support.Types.DescribeTrustedAdvisorCheckRefreshStatusesResponse) => void): Request<Support.Types.DescribeTrustedAdvisorCheckRefreshStatusesResponse, AWSError>;
86 /**
87 * Returns the results of the Trusted Advisor check that has the specified check ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. 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: "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.
88 */
89 describeTrustedAdvisorCheckResult(params: Support.Types.DescribeTrustedAdvisorCheckResultRequest, callback?: (err: AWSError, data: Support.Types.DescribeTrustedAdvisorCheckResultResponse) => void): Request<Support.Types.DescribeTrustedAdvisorCheckResultResponse, AWSError>;
90 /**
91 * Returns the results of the Trusted Advisor check that has the specified check ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. 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: "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.
92 */
93 describeTrustedAdvisorCheckResult(callback?: (err: AWSError, data: Support.Types.DescribeTrustedAdvisorCheckResultResponse) => void): Request<Support.Types.DescribeTrustedAdvisorCheckResultResponse, AWSError>;
94 /**
95 * Returns the summaries of the results of the Trusted Advisor checks that have the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. The response contains an array of TrustedAdvisorCheckSummary objects.
96 */
97 describeTrustedAdvisorCheckSummaries(params: Support.Types.DescribeTrustedAdvisorCheckSummariesRequest, callback?: (err: AWSError, data: Support.Types.DescribeTrustedAdvisorCheckSummariesResponse) => void): Request<Support.Types.DescribeTrustedAdvisorCheckSummariesResponse, AWSError>;
98 /**
99 * Returns the summaries of the results of the Trusted Advisor checks that have the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. The response contains an array of TrustedAdvisorCheckSummary objects.
100 */
101 describeTrustedAdvisorCheckSummaries(callback?: (err: AWSError, data: Support.Types.DescribeTrustedAdvisorCheckSummariesResponse) => void): Request<Support.Types.DescribeTrustedAdvisorCheckSummariesResponse, AWSError>;
102 /**
103 * 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. The region must be set to us-east-1.
104 */
105 describeTrustedAdvisorChecks(params: Support.Types.DescribeTrustedAdvisorChecksRequest, callback?: (err: AWSError, data: Support.Types.DescribeTrustedAdvisorChecksResponse) => void): Request<Support.Types.DescribeTrustedAdvisorChecksResponse, AWSError>;
106 /**
107 * 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. The region must be set to us-east-1.
108 */
109 describeTrustedAdvisorChecks(callback?: (err: AWSError, data: Support.Types.DescribeTrustedAdvisorChecksResponse) => void): Request<Support.Types.DescribeTrustedAdvisorChecksResponse, AWSError>;
110 /**
111 * Requests a refresh of the Trusted Advisor check that has the specified check ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. Some checks are refreshed automatically, and they cannot be refreshed by using this operation. Use of the RefreshTrustedAdvisorCheck operation for these checks causes an InvalidParameterValue error. The response contains a TrustedAdvisorCheckRefreshStatus object, which contains these fields: status. The refresh status of the check: 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. The amount of time, in milliseconds, until the check is eligible for refresh. checkId. The unique identifier for the check.
112 */
113 refreshTrustedAdvisorCheck(params: Support.Types.RefreshTrustedAdvisorCheckRequest, callback?: (err: AWSError, data: Support.Types.RefreshTrustedAdvisorCheckResponse) => void): Request<Support.Types.RefreshTrustedAdvisorCheckResponse, AWSError>;
114 /**
115 * Requests a refresh of the Trusted Advisor check that has the specified check ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. Some checks are refreshed automatically, and they cannot be refreshed by using this operation. Use of the RefreshTrustedAdvisorCheck operation for these checks causes an InvalidParameterValue error. The response contains a TrustedAdvisorCheckRefreshStatus object, which contains these fields: status. The refresh status of the check: 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. The amount of time, in milliseconds, until the check is eligible for refresh. checkId. The unique identifier for the check.
116 */
117 refreshTrustedAdvisorCheck(callback?: (err: AWSError, data: Support.Types.RefreshTrustedAdvisorCheckResponse) => void): Request<Support.Types.RefreshTrustedAdvisorCheckResponse, AWSError>;
118 /**
119 * Takes a caseId and returns the initial state of the case along with the state of the case after the call to ResolveCase completed.
120 */
121 resolveCase(params: Support.Types.ResolveCaseRequest, callback?: (err: AWSError, data: Support.Types.ResolveCaseResponse) => void): Request<Support.Types.ResolveCaseResponse, AWSError>;
122 /**
123 * Takes a caseId and returns the initial state of the case along with the state of the case after the call to ResolveCase completed.
124 */
125 resolveCase(callback?: (err: AWSError, data: Support.Types.ResolveCaseResponse) => void): Request<Support.Types.ResolveCaseResponse, AWSError>;
126}
127declare namespace Support {
128 export interface AddAttachmentsToSetRequest {
129 /**
130 * 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.
131 */
132 attachmentSetId?: AttachmentSetId;
133 /**
134 * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.
135 */
136 attachments: Attachments;
137 }
138 export interface AddAttachmentsToSetResponse {
139 /**
140 * 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.
141 */
142 attachmentSetId?: AttachmentSetId;
143 /**
144 * The time and date when the attachment set expires.
145 */
146 expiryTime?: ExpiryTime;
147 }
148 export interface AddCommunicationToCaseRequest {
149 /**
150 * 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
151 */
152 caseId?: CaseId;
153 /**
154 * The body of an email communication to add to the support case.
155 */
156 communicationBody: CommunicationBody;
157 /**
158 * The email addresses in the CC line of an email to be added to the support case.
159 */
160 ccEmailAddresses?: CcEmailAddressList;
161 /**
162 * The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling AddAttachmentsToSet
163 */
164 attachmentSetId?: AttachmentSetId;
165 }
166 export interface AddCommunicationToCaseResponse {
167 /**
168 * True if AddCommunicationToCase succeeds. Otherwise, returns an error.
169 */
170 result?: Result;
171 }
172 export type AfterTime = string;
173 export interface Attachment {
174 /**
175 * The name of the attachment file.
176 */
177 fileName?: FileName;
178 /**
179 * The content of the attachment file.
180 */
181 data?: Data;
182 }
183 export interface AttachmentDetails {
184 /**
185 * The ID of the attachment.
186 */
187 attachmentId?: AttachmentId;
188 /**
189 * The file name of the attachment.
190 */
191 fileName?: FileName;
192 }
193 export type AttachmentId = string;
194 export type AttachmentSet = AttachmentDetails[];
195 export type AttachmentSetId = string;
196 export type Attachments = Attachment[];
197 export type BeforeTime = string;
198 export type Boolean = boolean;
199 export interface CaseDetails {
200 /**
201 * 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
202 */
203 caseId?: CaseId;
204 /**
205 * The ID displayed for the case in the AWS Support Center. This is a numeric string.
206 */
207 displayId?: DisplayId;
208 /**
209 * The subject line for the case in the AWS Support Center.
210 */
211 subject?: Subject;
212 /**
213 * The status of the case. Valid values: resolved | pending-customer-action | opened | unassigned | work-in-progress.
214 */
215 status?: Status;
216 /**
217 * The code for the AWS service. You can get a list of codes and the corresponding service names by calling DescribeServices.
218 */
219 serviceCode?: ServiceCode;
220 /**
221 * The category of problem for the AWS Support case.
222 */
223 categoryCode?: CategoryCode;
224 /**
225 * The code for the severity level returned by the call to DescribeSeverityLevels.
226 */
227 severityCode?: SeverityCode;
228 /**
229 * The email address of the account that submitted the case.
230 */
231 submittedBy?: SubmittedBy;
232 /**
233 * The time that the case was case created in the AWS Support Center.
234 */
235 timeCreated?: TimeCreated;
236 /**
237 * The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications. Also includes a nextToken that you can use to retrieve earlier communications.
238 */
239 recentCommunications?: RecentCaseCommunications;
240 /**
241 * The email addresses that receive copies of communication about the case.
242 */
243 ccEmailAddresses?: CcEmailAddressList;
244 /**
245 * 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.
246 */
247 language?: Language;
248 }
249 export type CaseId = string;
250 export type CaseIdList = CaseId[];
251 export type CaseList = CaseDetails[];
252 export type CaseStatus = string;
253 export interface Category {
254 /**
255 * The category code for the support case.
256 */
257 code?: CategoryCode;
258 /**
259 * The category name for the support case.
260 */
261 name?: CategoryName;
262 }
263 export type CategoryCode = string;
264 export type CategoryList = Category[];
265 export type CategoryName = string;
266 export type CcEmailAddress = string;
267 export type CcEmailAddressList = CcEmailAddress[];
268 export interface Communication {
269 /**
270 * 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
271 */
272 caseId?: CaseId;
273 /**
274 * The text of the communication between the customer and AWS Support.
275 */
276 body?: CommunicationBody;
277 /**
278 * The identity of the account that submitted, or responded to, the support case. Customer entries include the role or IAM user as well as the email address. For example, "AdminRole (Role) &lt;someone@example.com&gt;. Entries from the AWS Support team display "Amazon Web Services," and do not show an email address.
279 */
280 submittedBy?: SubmittedBy;
281 /**
282 * The time the communication was created.
283 */
284 timeCreated?: TimeCreated;
285 /**
286 * Information about the attachments to the case communication.
287 */
288 attachmentSet?: AttachmentSet;
289 }
290 export type CommunicationBody = string;
291 export type CommunicationList = Communication[];
292 export interface CreateCaseRequest {
293 /**
294 * The title of the AWS Support case.
295 */
296 subject: Subject;
297 /**
298 * The code for the AWS service returned by the call to DescribeServices.
299 */
300 serviceCode?: ServiceCode;
301 /**
302 * The code for the severity level returned by the call to DescribeSeverityLevels. The availability of severity levels depends on the support plan for the account.
303 */
304 severityCode?: SeverityCode;
305 /**
306 * The category of problem for the AWS Support case.
307 */
308 categoryCode?: CategoryCode;
309 /**
310 * The communication body text when you create an AWS Support case by calling CreateCase.
311 */
312 communicationBody: CommunicationBody;
313 /**
314 * A list of email addresses that AWS Support copies on case correspondence.
315 */
316 ccEmailAddresses?: CcEmailAddressList;
317 /**
318 * 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.
319 */
320 language?: Language;
321 /**
322 * 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." Service limit increases are not supported by the Support API; you must submit service limit increase requests in Support Center.
323 */
324 issueType?: IssueType;
325 /**
326 * The ID of a set of one or more attachments for the case. Create the set by using AddAttachmentsToSet.
327 */
328 attachmentSetId?: AttachmentSetId;
329 }
330 export interface CreateCaseResponse {
331 /**
332 * 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
333 */
334 caseId?: CaseId;
335 }
336 export type Data = Buffer|Uint8Array|Blob|string;
337 export interface DescribeAttachmentRequest {
338 /**
339 * The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation.
340 */
341 attachmentId: AttachmentId;
342 }
343 export interface DescribeAttachmentResponse {
344 /**
345 * The attachment content and file name.
346 */
347 attachment?: Attachment;
348 }
349 export interface DescribeCasesRequest {
350 /**
351 * A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.
352 */
353 caseIdList?: CaseIdList;
354 /**
355 * The ID displayed for a case in the AWS Support Center user interface.
356 */
357 displayId?: DisplayId;
358 /**
359 * The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
360 */
361 afterTime?: AfterTime;
362 /**
363 * The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
364 */
365 beforeTime?: BeforeTime;
366 /**
367 * Specifies whether resolved support cases should be included in the DescribeCases results. The default is false.
368 */
369 includeResolvedCases?: IncludeResolvedCases;
370 /**
371 * A resumption point for pagination.
372 */
373 nextToken?: NextToken;
374 /**
375 * The maximum number of results to return before paginating.
376 */
377 maxResults?: MaxResults;
378 /**
379 * 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.
380 */
381 language?: Language;
382 /**
383 * Specifies whether communications should be included in the DescribeCases results. The default is true.
384 */
385 includeCommunications?: IncludeCommunications;
386 }
387 export interface DescribeCasesResponse {
388 /**
389 * The details for the cases that match the request.
390 */
391 cases?: CaseList;
392 /**
393 * A resumption point for pagination.
394 */
395 nextToken?: NextToken;
396 }
397 export interface DescribeCommunicationsRequest {
398 /**
399 * 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
400 */
401 caseId: CaseId;
402 /**
403 * The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
404 */
405 beforeTime?: BeforeTime;
406 /**
407 * The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
408 */
409 afterTime?: AfterTime;
410 /**
411 * A resumption point for pagination.
412 */
413 nextToken?: NextToken;
414 /**
415 * The maximum number of results to return before paginating.
416 */
417 maxResults?: MaxResults;
418 }
419 export interface DescribeCommunicationsResponse {
420 /**
421 * The communications for the case.
422 */
423 communications?: CommunicationList;
424 /**
425 * A resumption point for pagination.
426 */
427 nextToken?: NextToken;
428 }
429 export interface DescribeServicesRequest {
430 /**
431 * A JSON-formatted list of service codes available for AWS services.
432 */
433 serviceCodeList?: ServiceCodeList;
434 /**
435 * 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.
436 */
437 language?: Language;
438 }
439 export interface DescribeServicesResponse {
440 /**
441 * A JSON-formatted list of AWS services.
442 */
443 services?: ServiceList;
444 }
445 export interface DescribeSeverityLevelsRequest {
446 /**
447 * 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.
448 */
449 language?: Language;
450 }
451 export interface DescribeSeverityLevelsResponse {
452 /**
453 * The available severity levels for the support case. Available severity levels are defined by your service level agreement with AWS.
454 */
455 severityLevels?: SeverityLevelsList;
456 }
457 export interface DescribeTrustedAdvisorCheckRefreshStatusesRequest {
458 /**
459 * The IDs of the Trusted Advisor checks to get the status of. Note: Specifying the check ID of a check that is automatically refreshed causes an InvalidParameterValue error.
460 */
461 checkIds: StringList;
462 }
463 export interface DescribeTrustedAdvisorCheckRefreshStatusesResponse {
464 /**
465 * The refresh status of the specified Trusted Advisor checks.
466 */
467 statuses: TrustedAdvisorCheckRefreshStatusList;
468 }
469 export interface DescribeTrustedAdvisorCheckResultRequest {
470 /**
471 * The unique identifier for the Trusted Advisor check.
472 */
473 checkId: String;
474 /**
475 * 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.
476 */
477 language?: String;
478 }
479 export interface DescribeTrustedAdvisorCheckResultResponse {
480 /**
481 * The detailed results of the Trusted Advisor check.
482 */
483 result?: TrustedAdvisorCheckResult;
484 }
485 export interface DescribeTrustedAdvisorCheckSummariesRequest {
486 /**
487 * The IDs of the Trusted Advisor checks.
488 */
489 checkIds: StringList;
490 }
491 export interface DescribeTrustedAdvisorCheckSummariesResponse {
492 /**
493 * The summary information for the requested Trusted Advisor checks.
494 */
495 summaries: TrustedAdvisorCheckSummaryList;
496 }
497 export interface DescribeTrustedAdvisorChecksRequest {
498 /**
499 * 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.
500 */
501 language: String;
502 }
503 export interface DescribeTrustedAdvisorChecksResponse {
504 /**
505 * Information about all available Trusted Advisor checks.
506 */
507 checks: TrustedAdvisorCheckList;
508 }
509 export type DisplayId = string;
510 export type Double = number;
511 export type ExpiryTime = string;
512 export type FileName = string;
513 export type IncludeCommunications = boolean;
514 export type IncludeResolvedCases = boolean;
515 export type IssueType = string;
516 export type Language = string;
517 export type Long = number;
518 export type MaxResults = number;
519 export type NextToken = string;
520 export interface RecentCaseCommunications {
521 /**
522 * The five most recent communications associated with the case.
523 */
524 communications?: CommunicationList;
525 /**
526 * A resumption point for pagination.
527 */
528 nextToken?: NextToken;
529 }
530 export interface RefreshTrustedAdvisorCheckRequest {
531 /**
532 * 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.
533 */
534 checkId: String;
535 }
536 export interface RefreshTrustedAdvisorCheckResponse {
537 /**
538 * The current refresh status for a check, including the amount of time until the check is eligible for refresh.
539 */
540 status: TrustedAdvisorCheckRefreshStatus;
541 }
542 export interface ResolveCaseRequest {
543 /**
544 * 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
545 */
546 caseId?: CaseId;
547 }
548 export interface ResolveCaseResponse {
549 /**
550 * The status of the case when the ResolveCase request was sent.
551 */
552 initialCaseStatus?: CaseStatus;
553 /**
554 * The status of the case after the ResolveCase request was processed.
555 */
556 finalCaseStatus?: CaseStatus;
557 }
558 export type Result = boolean;
559 export interface Service {
560 /**
561 * The code for an AWS service returned by the DescribeServices response. The name element contains the corresponding friendly name.
562 */
563 code?: ServiceCode;
564 /**
565 * The friendly name for an AWS service. The code element contains the corresponding code.
566 */
567 name?: ServiceName;
568 /**
569 * 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 AWS Support when you call CreateCase.
570 */
571 categories?: CategoryList;
572 }
573 export type ServiceCode = string;
574 export type ServiceCodeList = ServiceCode[];
575 export type ServiceList = Service[];
576 export type ServiceName = string;
577 export type SeverityCode = string;
578 export interface SeverityLevel {
579 /**
580 * The code for case severity level. Valid values: low | normal | high | urgent | critical
581 */
582 code?: SeverityLevelCode;
583 /**
584 * The name of the severity level that corresponds to the severity level code. The values returned by the API differ from the values that are displayed in the AWS Support Center. For example, for the code "low", the API name is "Low", but the name in the Support Center is "General guidance". These are the Support Center code/name mappings: 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
585 */
586 name?: SeverityLevelName;
587 }
588 export type SeverityLevelCode = string;
589 export type SeverityLevelName = string;
590 export type SeverityLevelsList = SeverityLevel[];
591 export type Status = string;
592 export type String = string;
593 export type StringList = String[];
594 export type Subject = string;
595 export type SubmittedBy = string;
596 export type TimeCreated = string;
597 export interface TrustedAdvisorCategorySpecificSummary {
598 /**
599 * The summary information about cost savings for a Trusted Advisor check that is in the Cost Optimizing category.
600 */
601 costOptimizing?: TrustedAdvisorCostOptimizingSummary;
602 }
603 export interface TrustedAdvisorCheckDescription {
604 /**
605 * The unique identifier for the Trusted Advisor check.
606 */
607 id: String;
608 /**
609 * The display name for the Trusted Advisor check.
610 */
611 name: String;
612 /**
613 * The description of the Trusted Advisor check, which includes the alert criteria and recommended actions (contains HTML markup).
614 */
615 description: String;
616 /**
617 * The category of the Trusted Advisor check.
618 */
619 category: String;
620 /**
621 * 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.
622 */
623 metadata: StringList;
624 }
625 export type TrustedAdvisorCheckList = TrustedAdvisorCheckDescription[];
626 export interface TrustedAdvisorCheckRefreshStatus {
627 /**
628 * The unique identifier for the Trusted Advisor check.
629 */
630 checkId: String;
631 /**
632 * 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
633 */
634 status: String;
635 /**
636 * The amount of time, in milliseconds, until the Trusted Advisor check is eligible for refresh.
637 */
638 millisUntilNextRefreshable: Long;
639 }
640 export type TrustedAdvisorCheckRefreshStatusList = TrustedAdvisorCheckRefreshStatus[];
641 export interface TrustedAdvisorCheckResult {
642 /**
643 * The unique identifier for the Trusted Advisor check.
644 */
645 checkId: String;
646 /**
647 * The time of the last refresh of the check.
648 */
649 timestamp: String;
650 /**
651 * The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
652 */
653 status: String;
654 resourcesSummary: TrustedAdvisorResourcesSummary;
655 /**
656 * Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
657 */
658 categorySpecificSummary: TrustedAdvisorCategorySpecificSummary;
659 /**
660 * The details about each resource listed in the check result.
661 */
662 flaggedResources: TrustedAdvisorResourceDetailList;
663 }
664 export interface TrustedAdvisorCheckSummary {
665 /**
666 * The unique identifier for the Trusted Advisor check.
667 */
668 checkId: String;
669 /**
670 * The time of the last refresh of the check.
671 */
672 timestamp: String;
673 /**
674 * The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
675 */
676 status: String;
677 /**
678 * Specifies whether the Trusted Advisor check has flagged resources.
679 */
680 hasFlaggedResources?: Boolean;
681 resourcesSummary: TrustedAdvisorResourcesSummary;
682 /**
683 * Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
684 */
685 categorySpecificSummary: TrustedAdvisorCategorySpecificSummary;
686 }
687 export type TrustedAdvisorCheckSummaryList = TrustedAdvisorCheckSummary[];
688 export interface TrustedAdvisorCostOptimizingSummary {
689 /**
690 * The estimated monthly savings that might be realized if the recommended actions are taken.
691 */
692 estimatedMonthlySavings: Double;
693 /**
694 * The estimated percentage of savings that might be realized if the recommended actions are taken.
695 */
696 estimatedPercentMonthlySavings: Double;
697 }
698 export interface TrustedAdvisorResourceDetail {
699 /**
700 * The status code for the resource identified in the Trusted Advisor check.
701 */
702 status: String;
703 /**
704 * The AWS region in which the identified resource is located.
705 */
706 region?: String;
707 /**
708 * The unique identifier for the identified resource.
709 */
710 resourceId: String;
711 /**
712 * Specifies whether the AWS resource was ignored by Trusted Advisor because it was marked as suppressed by the user.
713 */
714 isSuppressed?: Boolean;
715 /**
716 * 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.
717 */
718 metadata: StringList;
719 }
720 export type TrustedAdvisorResourceDetailList = TrustedAdvisorResourceDetail[];
721 export interface TrustedAdvisorResourcesSummary {
722 /**
723 * The number of AWS resources that were analyzed by the Trusted Advisor check.
724 */
725 resourcesProcessed: Long;
726 /**
727 * The number of AWS resources that were flagged (listed) by the Trusted Advisor check.
728 */
729 resourcesFlagged: Long;
730 /**
731 * The number of AWS resources ignored by Trusted Advisor because information was unavailable.
732 */
733 resourcesIgnored: Long;
734 /**
735 * The number of AWS resources ignored by Trusted Advisor because they were marked as suppressed by the user.
736 */
737 resourcesSuppressed: Long;
738 }
739 /**
740 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
741 */
742 export type apiVersion = "2013-04-15"|"latest"|string;
743 export interface ClientApiVersions {
744 /**
745 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
746 */
747 apiVersion?: apiVersion;
748 }
749 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
750 /**
751 * Contains interfaces for use with the Support client.
752 */
753 export import Types = Support;
754}
755export = Support;