@aws-sdk/client-workmailmessageflow 3.296.0 → 3.297.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/WorkMailMessageFlow.d.ts +3 -0
- package/dist-types/WorkMailMessageFlowClient.d.ts +24 -4
- package/dist-types/commands/GetRawMessageContentCommand.d.ts +16 -0
- package/dist-types/commands/PutRawMessageContentCommand.d.ts +16 -0
- package/dist-types/models/WorkMailMessageFlowServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +18 -0
- package/package.json +3 -3
|
@@ -3,6 +3,7 @@ import { GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput } f
|
|
|
3
3
|
import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } from "./commands/PutRawMessageContentCommand";
|
|
4
4
|
import { WorkMailMessageFlowClient } from "./WorkMailMessageFlowClient";
|
|
5
5
|
/**
|
|
6
|
+
* @public
|
|
6
7
|
* <p>The WorkMail Message Flow API provides access to email messages as they are
|
|
7
8
|
* being
|
|
8
9
|
* sent and received by
|
|
@@ -11,12 +12,14 @@ import { WorkMailMessageFlowClient } from "./WorkMailMessageFlowClient";
|
|
|
11
12
|
*/
|
|
12
13
|
export declare class WorkMailMessageFlow extends WorkMailMessageFlowClient {
|
|
13
14
|
/**
|
|
15
|
+
* @public
|
|
14
16
|
* <p>Retrieves the raw content of an in-transit email message, in MIME format.</p>
|
|
15
17
|
*/
|
|
16
18
|
getRawMessageContent(args: GetRawMessageContentCommandInput, options?: __HttpHandlerOptions): Promise<GetRawMessageContentCommandOutput>;
|
|
17
19
|
getRawMessageContent(args: GetRawMessageContentCommandInput, cb: (err: any, data?: GetRawMessageContentCommandOutput) => void): void;
|
|
18
20
|
getRawMessageContent(args: GetRawMessageContentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRawMessageContentCommandOutput) => void): void;
|
|
19
21
|
/**
|
|
22
|
+
* @public
|
|
20
23
|
* <p>Updates the raw content of an in-transit email message, in MIME format.</p>
|
|
21
24
|
* <p>This example describes how to update in-transit email message. For more information and examples for using this API, see
|
|
22
25
|
* <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
|
|
@@ -10,15 +10,24 @@ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as
|
|
|
10
10
|
import { GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput } from "./commands/GetRawMessageContentCommand";
|
|
11
11
|
import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } from "./commands/PutRawMessageContentCommand";
|
|
12
12
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
13
16
|
export type ServiceInputTypes = GetRawMessageContentCommandInput | PutRawMessageContentCommandInput;
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
14
20
|
export type ServiceOutputTypes = GetRawMessageContentCommandOutput | PutRawMessageContentCommandOutput;
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
15
24
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
16
25
|
/**
|
|
17
26
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
18
27
|
*/
|
|
19
28
|
requestHandler?: __HttpHandler;
|
|
20
29
|
/**
|
|
21
|
-
* A constructor for a class implementing the {@link
|
|
30
|
+
* A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
|
|
22
31
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
23
32
|
* @internal
|
|
24
33
|
*/
|
|
@@ -108,7 +117,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
108
117
|
*/
|
|
109
118
|
logger?: __Logger;
|
|
110
119
|
/**
|
|
111
|
-
* The {@link
|
|
120
|
+
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
112
121
|
*/
|
|
113
122
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
114
123
|
/**
|
|
@@ -117,19 +126,30 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
117
126
|
*/
|
|
118
127
|
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
119
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
120
132
|
type WorkMailMessageFlowClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
121
133
|
/**
|
|
122
|
-
*
|
|
134
|
+
* @public
|
|
135
|
+
*
|
|
136
|
+
* The configuration interface of WorkMailMessageFlowClient class constructor that set the region, credentials and other options.
|
|
123
137
|
*/
|
|
124
138
|
export interface WorkMailMessageFlowClientConfig extends WorkMailMessageFlowClientConfigType {
|
|
125
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
126
143
|
type WorkMailMessageFlowClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
127
144
|
/**
|
|
128
|
-
*
|
|
145
|
+
* @public
|
|
146
|
+
*
|
|
147
|
+
* The resolved configuration interface of WorkMailMessageFlowClient class. This is resolved and normalized from the {@link WorkMailMessageFlowClientConfig | constructor configuration interface}.
|
|
129
148
|
*/
|
|
130
149
|
export interface WorkMailMessageFlowClientResolvedConfig extends WorkMailMessageFlowClientResolvedConfigType {
|
|
131
150
|
}
|
|
132
151
|
/**
|
|
152
|
+
* @public
|
|
133
153
|
* <p>The WorkMail Message Flow API provides access to email messages as they are
|
|
134
154
|
* being
|
|
135
155
|
* sent and received by
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { GetRawMessageContentRequest, GetRawMessageContentResponse } from "../models/models_0";
|
|
5
5
|
import { ServiceInputTypes, ServiceOutputTypes, WorkMailMessageFlowClientResolvedConfig } from "../WorkMailMessageFlowClient";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link GetRawMessageContentCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface GetRawMessageContentCommandInput extends GetRawMessageContentRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link GetRawMessageContentCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface GetRawMessageContentCommandOutput extends __WithSdkStreamMixin<GetRawMessageContentResponse, "messageContent">, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Retrieves the raw content of an in-transit email message, in MIME format.</p>
|
|
18
23
|
* @example
|
|
19
24
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -25,6 +30,8 @@ export interface GetRawMessageContentCommandOutput extends __WithSdkStreamMixin<
|
|
|
25
30
|
* const response = await client.send(command);
|
|
26
31
|
* ```
|
|
27
32
|
*
|
|
33
|
+
* @param GetRawMessageContentCommandInput - {@link GetRawMessageContentCommandInput}
|
|
34
|
+
* @returns {@link GetRawMessageContentCommandOutput}
|
|
28
35
|
* @see {@link GetRawMessageContentCommandInput} for command's `input` shape.
|
|
29
36
|
* @see {@link GetRawMessageContentCommandOutput} for command's `response` shape.
|
|
30
37
|
* @see {@link WorkMailMessageFlowClientResolvedConfig | config} for WorkMailMessageFlowClient's `config` shape.
|
|
@@ -37,11 +44,20 @@ export interface GetRawMessageContentCommandOutput extends __WithSdkStreamMixin<
|
|
|
37
44
|
export declare class GetRawMessageContentCommand extends $Command<GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput, WorkMailMessageFlowClientResolvedConfig> {
|
|
38
45
|
readonly input: GetRawMessageContentCommandInput;
|
|
39
46
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
40
50
|
constructor(input: GetRawMessageContentCommandInput);
|
|
41
51
|
/**
|
|
42
52
|
* @internal
|
|
43
53
|
*/
|
|
44
54
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkMailMessageFlowClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput>;
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
45
58
|
private serialize;
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
46
62
|
private deserialize;
|
|
47
63
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { PutRawMessageContentRequest, PutRawMessageContentResponse } from "../models/models_0";
|
|
5
5
|
import { ServiceInputTypes, ServiceOutputTypes, WorkMailMessageFlowClientResolvedConfig } from "../WorkMailMessageFlowClient";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link PutRawMessageContentCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface PutRawMessageContentCommandInput extends PutRawMessageContentRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link PutRawMessageContentCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface PutRawMessageContentCommandOutput extends PutRawMessageContentResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Updates the raw content of an in-transit email message, in MIME format.</p>
|
|
18
23
|
* <p>This example describes how to update in-transit email message. For more information and examples for using this API, see
|
|
19
24
|
* <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
|
|
@@ -38,6 +43,8 @@ export interface PutRawMessageContentCommandOutput extends PutRawMessageContentR
|
|
|
38
43
|
* const response = await client.send(command);
|
|
39
44
|
* ```
|
|
40
45
|
*
|
|
46
|
+
* @param PutRawMessageContentCommandInput - {@link PutRawMessageContentCommandInput}
|
|
47
|
+
* @returns {@link PutRawMessageContentCommandOutput}
|
|
41
48
|
* @see {@link PutRawMessageContentCommandInput} for command's `input` shape.
|
|
42
49
|
* @see {@link PutRawMessageContentCommandOutput} for command's `response` shape.
|
|
43
50
|
* @see {@link WorkMailMessageFlowClientResolvedConfig | config} for WorkMailMessageFlowClient's `config` shape.
|
|
@@ -76,11 +83,20 @@ export interface PutRawMessageContentCommandOutput extends PutRawMessageContentR
|
|
|
76
83
|
export declare class PutRawMessageContentCommand extends $Command<PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput, WorkMailMessageFlowClientResolvedConfig> {
|
|
77
84
|
readonly input: PutRawMessageContentCommandInput;
|
|
78
85
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
79
89
|
constructor(input: PutRawMessageContentCommandInput);
|
|
80
90
|
/**
|
|
81
91
|
* @internal
|
|
82
92
|
*/
|
|
83
93
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkMailMessageFlowClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput>;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
84
97
|
private serialize;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
85
101
|
private deserialize;
|
|
86
102
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
2
|
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
3
5
|
* Base exception class for all service exceptions from WorkMailMessageFlow service.
|
|
4
6
|
*/
|
|
5
7
|
export declare class WorkMailMessageFlowServiceException extends __ServiceException {
|
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Readable } from "stream";
|
|
4
4
|
import { WorkMailMessageFlowServiceException as __BaseException } from "./WorkMailMessageFlowServiceException";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
5
8
|
export interface GetRawMessageContentRequest {
|
|
6
9
|
/**
|
|
7
10
|
* <p>The identifier of the email message to retrieve.</p>
|
|
8
11
|
*/
|
|
9
12
|
messageId: string | undefined;
|
|
10
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
11
17
|
export interface GetRawMessageContentResponse {
|
|
12
18
|
/**
|
|
13
19
|
* <p>The raw content of the email message, in MIME format.</p>
|
|
@@ -15,6 +21,7 @@ export interface GetRawMessageContentResponse {
|
|
|
15
21
|
messageContent: Readable | ReadableStream | Blob | undefined;
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
24
|
+
* @public
|
|
18
25
|
* <p>The requested email message is not found.</p>
|
|
19
26
|
*/
|
|
20
27
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
@@ -26,6 +33,7 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
26
33
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
27
34
|
}
|
|
28
35
|
/**
|
|
36
|
+
* @public
|
|
29
37
|
* <p>WorkMail could not access the updated email content. Possible reasons:</p>
|
|
30
38
|
* <ul>
|
|
31
39
|
* <li>
|
|
@@ -53,6 +61,7 @@ export declare class InvalidContentLocation extends __BaseException {
|
|
|
53
61
|
constructor(opts: __ExceptionOptionType<InvalidContentLocation, __BaseException>);
|
|
54
62
|
}
|
|
55
63
|
/**
|
|
64
|
+
* @public
|
|
56
65
|
* <p>The requested email is not eligible for update. This is usually the case for a redirected email.</p>
|
|
57
66
|
*/
|
|
58
67
|
export declare class MessageFrozen extends __BaseException {
|
|
@@ -64,6 +73,7 @@ export declare class MessageFrozen extends __BaseException {
|
|
|
64
73
|
constructor(opts: __ExceptionOptionType<MessageFrozen, __BaseException>);
|
|
65
74
|
}
|
|
66
75
|
/**
|
|
76
|
+
* @public
|
|
67
77
|
* <p>The requested email could not be updated due to an error in the MIME content. Check the error message for more information about
|
|
68
78
|
* what caused the error.</p>
|
|
69
79
|
*/
|
|
@@ -76,6 +86,7 @@ export declare class MessageRejected extends __BaseException {
|
|
|
76
86
|
constructor(opts: __ExceptionOptionType<MessageRejected, __BaseException>);
|
|
77
87
|
}
|
|
78
88
|
/**
|
|
89
|
+
* @public
|
|
79
90
|
* <p>Amazon S3 object representing the updated message content, in MIME format.</p>
|
|
80
91
|
* <note>
|
|
81
92
|
* <p>The region for the S3 bucket containing the S3 object must match the region used for WorkMail operations. Also, for WorkMail to process
|
|
@@ -99,6 +110,7 @@ export interface S3Reference {
|
|
|
99
110
|
objectVersion?: string;
|
|
100
111
|
}
|
|
101
112
|
/**
|
|
113
|
+
* @public
|
|
102
114
|
* <p>Provides the MIME content of the updated email message as an S3 object. All MIME content must meet the following criteria:</p>
|
|
103
115
|
* <ul>
|
|
104
116
|
* <li>
|
|
@@ -133,6 +145,9 @@ export interface RawMessageContent {
|
|
|
133
145
|
*/
|
|
134
146
|
s3Reference: S3Reference | undefined;
|
|
135
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
136
151
|
export interface PutRawMessageContentRequest {
|
|
137
152
|
/**
|
|
138
153
|
* <p>The identifier of the email message being updated.</p>
|
|
@@ -143,6 +158,9 @@ export interface PutRawMessageContentRequest {
|
|
|
143
158
|
*/
|
|
144
159
|
content: RawMessageContent | undefined;
|
|
145
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
146
164
|
export interface PutRawMessageContentResponse {
|
|
147
165
|
}
|
|
148
166
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-workmailmessageflow",
|
|
3
3
|
"description": "AWS SDK for JavaScript Workmailmessageflow Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.297.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.297.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.296.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.297.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.296.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.296.0",
|