UNPKG

2.48 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';
7import {Readable} from 'stream';
8interface Blob {}
9declare class WorkMailMessageFlow extends Service {
10 /**
11 * Constructs a service object. This object has one method for each API operation.
12 */
13 constructor(options?: WorkMailMessageFlow.Types.ClientConfiguration)
14 config: Config & WorkMailMessageFlow.Types.ClientConfiguration;
15 /**
16 * Retrieves the raw content of an in-transit email message, in MIME format.
17 */
18 getRawMessageContent(params: WorkMailMessageFlow.Types.GetRawMessageContentRequest, callback?: (err: AWSError, data: WorkMailMessageFlow.Types.GetRawMessageContentResponse) => void): Request<WorkMailMessageFlow.Types.GetRawMessageContentResponse, AWSError>;
19 /**
20 * Retrieves the raw content of an in-transit email message, in MIME format.
21 */
22 getRawMessageContent(callback?: (err: AWSError, data: WorkMailMessageFlow.Types.GetRawMessageContentResponse) => void): Request<WorkMailMessageFlow.Types.GetRawMessageContentResponse, AWSError>;
23}
24declare namespace WorkMailMessageFlow {
25 export interface GetRawMessageContentRequest {
26 /**
27 * The identifier of the email message to retrieve.
28 */
29 messageId: messageIdType;
30 }
31 export interface GetRawMessageContentResponse {
32 /**
33 * The raw content of the email message, in MIME format.
34 */
35 messageContent: messageContentBlob;
36 }
37 export type messageContentBlob = Buffer|Uint8Array|Blob|string|Readable;
38 export type messageIdType = string;
39 /**
40 * 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.
41 */
42 export type apiVersion = "2019-05-01"|"latest"|string;
43 export interface ClientApiVersions {
44 /**
45 * 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.
46 */
47 apiVersion?: apiVersion;
48 }
49 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
50 /**
51 * Contains interfaces for use with the WorkMailMessageFlow client.
52 */
53 export import Types = WorkMailMessageFlow;
54}
55export = WorkMailMessageFlow;