@aws-sdk/client-workmailmessageflow 3.36.0 → 3.36.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
18
 
8
19
 
@@ -4,13 +4,6 @@ exports.WorkMailMessageFlow = void 0;
4
4
  const GetRawMessageContentCommand_1 = require("./commands/GetRawMessageContentCommand");
5
5
  const PutRawMessageContentCommand_1 = require("./commands/PutRawMessageContentCommand");
6
6
  const WorkMailMessageFlowClient_1 = require("./WorkMailMessageFlowClient");
7
- /**
8
- * <p>The WorkMail Message Flow API provides access to email messages as they are
9
- * being
10
- * sent and received by
11
- * a
12
- * WorkMail organization.</p>
13
- */
14
7
  class WorkMailMessageFlow extends WorkMailMessageFlowClient_1.WorkMailMessageFlowClient {
15
8
  getRawMessageContent(args, optionsOrCb, cb) {
16
9
  const command = new GetRawMessageContentCommand_1.GetRawMessageContentCommand(args);
@@ -10,13 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <p>The WorkMail Message Flow API provides access to email messages as they are
15
- * being
16
- * sent and received by
17
- * a
18
- * WorkMail organization.</p>
19
- */
20
13
  class WorkMailMessageFlowClient extends smithy_client_1.Client {
21
14
  constructor(configuration) {
22
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -35,11 +28,6 @@ class WorkMailMessageFlowClient extends smithy_client_1.Client {
35
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
36
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
37
30
  }
38
- /**
39
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
40
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
41
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
42
- */
43
31
  destroy() {
44
32
  super.destroy();
45
33
  }
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Retrieves the raw content of an in-transit email message, in MIME format.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { WorkMailMessageFlowClient, GetRawMessageContentCommand } from "@aws-sdk/client-workmailmessageflow"; // ES Modules import
14
- * // const { WorkMailMessageFlowClient, GetRawMessageContentCommand } = require("@aws-sdk/client-workmailmessageflow"); // CommonJS import
15
- * const client = new WorkMailMessageFlowClient(config);
16
- * const command = new GetRawMessageContentCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetRawMessageContentCommandInput} for command's `input` shape.
21
- * @see {@link GetRawMessageContentCommandOutput} for command's `response` shape.
22
- * @see {@link WorkMailMessageFlowClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetRawMessageContentCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,48 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Updates the raw content of an in-transit email message, in MIME format.</p>
10
- * <p>This example describes how to update in-transit email message. For more information and examples for using this API, see
11
- * <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
12
- * Updating message content with AWS Lambda</a>.</p>
13
- *
14
- *
15
- * <note>
16
- * <p>Updates to an in-transit message only appear when you call <code>PutRawMessageContent</code> from an AWS Lambda function
17
- * configured with a synchronous <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/lambda.html#synchronous-rules">
18
- * Run Lambda</a> rule. If you call <code>PutRawMessageContent</code> on a delivered or sent message, the message remains unchanged,
19
- * even though <a href="https://docs.aws.amazon.com/workmail/latest/APIReference/API_messageflow_GetRawMessageContent.html">GetRawMessageContent</a> returns an updated
20
- * message.
21
- * </p>
22
- * </note>
23
- * @example
24
- * Use a bare-bones client and the command you need to make an API call.
25
- * ```javascript
26
- * import { WorkMailMessageFlowClient, PutRawMessageContentCommand } from "@aws-sdk/client-workmailmessageflow"; // ES Modules import
27
- * // const { WorkMailMessageFlowClient, PutRawMessageContentCommand } = require("@aws-sdk/client-workmailmessageflow"); // CommonJS import
28
- * const client = new WorkMailMessageFlowClient(config);
29
- * const command = new PutRawMessageContentCommand(input);
30
- * const response = await client.send(command);
31
- * ```
32
- *
33
- * @see {@link PutRawMessageContentCommandInput} for command's `input` shape.
34
- * @see {@link PutRawMessageContentCommandOutput} for command's `response` shape.
35
- * @see {@link WorkMailMessageFlowClientResolvedConfig | config} for command's `input` shape.
36
- *
37
- */
38
8
  class PutRawMessageContentCommand extends smithy_client_1.Command {
39
- // Start section: command_properties
40
- // End section: command_properties
41
9
  constructor(input) {
42
- // Start section: command_constructor
43
10
  super();
44
11
  this.input = input;
45
- // End section: command_constructor
46
12
  }
47
- /**
48
- * @internal
49
- */
50
13
  resolveMiddleware(clientStack, configuration, options) {
51
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
52
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -3,90 +3,60 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutRawMessageContentResponse = exports.PutRawMessageContentRequest = exports.RawMessageContent = exports.S3Reference = exports.MessageRejected = exports.MessageFrozen = exports.InvalidContentLocation = exports.ResourceNotFoundException = exports.GetRawMessageContentResponse = exports.GetRawMessageContentRequest = void 0;
4
4
  var GetRawMessageContentRequest;
5
5
  (function (GetRawMessageContentRequest) {
6
- /**
7
- * @internal
8
- */
9
6
  GetRawMessageContentRequest.filterSensitiveLog = (obj) => ({
10
7
  ...obj,
11
8
  });
12
9
  })(GetRawMessageContentRequest = exports.GetRawMessageContentRequest || (exports.GetRawMessageContentRequest = {}));
13
10
  var GetRawMessageContentResponse;
14
11
  (function (GetRawMessageContentResponse) {
15
- /**
16
- * @internal
17
- */
18
12
  GetRawMessageContentResponse.filterSensitiveLog = (obj) => ({
19
13
  ...obj,
20
14
  });
21
15
  })(GetRawMessageContentResponse = exports.GetRawMessageContentResponse || (exports.GetRawMessageContentResponse = {}));
22
16
  var ResourceNotFoundException;
23
17
  (function (ResourceNotFoundException) {
24
- /**
25
- * @internal
26
- */
27
18
  ResourceNotFoundException.filterSensitiveLog = (obj) => ({
28
19
  ...obj,
29
20
  });
30
21
  })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
31
22
  var InvalidContentLocation;
32
23
  (function (InvalidContentLocation) {
33
- /**
34
- * @internal
35
- */
36
24
  InvalidContentLocation.filterSensitiveLog = (obj) => ({
37
25
  ...obj,
38
26
  });
39
27
  })(InvalidContentLocation = exports.InvalidContentLocation || (exports.InvalidContentLocation = {}));
40
28
  var MessageFrozen;
41
29
  (function (MessageFrozen) {
42
- /**
43
- * @internal
44
- */
45
30
  MessageFrozen.filterSensitiveLog = (obj) => ({
46
31
  ...obj,
47
32
  });
48
33
  })(MessageFrozen = exports.MessageFrozen || (exports.MessageFrozen = {}));
49
34
  var MessageRejected;
50
35
  (function (MessageRejected) {
51
- /**
52
- * @internal
53
- */
54
36
  MessageRejected.filterSensitiveLog = (obj) => ({
55
37
  ...obj,
56
38
  });
57
39
  })(MessageRejected = exports.MessageRejected || (exports.MessageRejected = {}));
58
40
  var S3Reference;
59
41
  (function (S3Reference) {
60
- /**
61
- * @internal
62
- */
63
42
  S3Reference.filterSensitiveLog = (obj) => ({
64
43
  ...obj,
65
44
  });
66
45
  })(S3Reference = exports.S3Reference || (exports.S3Reference = {}));
67
46
  var RawMessageContent;
68
47
  (function (RawMessageContent) {
69
- /**
70
- * @internal
71
- */
72
48
  RawMessageContent.filterSensitiveLog = (obj) => ({
73
49
  ...obj,
74
50
  });
75
51
  })(RawMessageContent = exports.RawMessageContent || (exports.RawMessageContent = {}));
76
52
  var PutRawMessageContentRequest;
77
53
  (function (PutRawMessageContentRequest) {
78
- /**
79
- * @internal
80
- */
81
54
  PutRawMessageContentRequest.filterSensitiveLog = (obj) => ({
82
55
  ...obj,
83
56
  });
84
57
  })(PutRawMessageContentRequest = exports.PutRawMessageContentRequest || (exports.PutRawMessageContentRequest = {}));
85
58
  var PutRawMessageContentResponse;
86
59
  (function (PutRawMessageContentResponse) {
87
- /**
88
- * @internal
89
- */
90
60
  PutRawMessageContentResponse.filterSensitiveLog = (obj) => ({
91
61
  ...obj,
92
62
  });
@@ -249,14 +249,12 @@ const deserializeMetadata = (output) => {
249
249
  cfId: output.headers["x-amz-cf-id"],
250
250
  });
251
251
  };
252
- // Collect low-level response body stream to Uint8Array.
253
252
  const collectBody = (streamBody = new Uint8Array(), context) => {
254
253
  if (streamBody instanceof Uint8Array) {
255
254
  return Promise.resolve(streamBody);
256
255
  }
257
256
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
258
257
  };
259
- // Encode Uint8Array data into string with utf-8.
260
258
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
261
259
  const isSerializableHeaderValue = (value) => value !== undefined &&
262
260
  value !== null &&
@@ -269,9 +267,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
269
267
  }
270
268
  return {};
271
269
  });
272
- /**
273
- * Load an error code for the aws.rest-json-1.1 protocol.
274
- */
275
270
  const loadRestJsonErrorCode = (output, data) => {
276
271
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
277
272
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -2,36 +2,13 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput } from "./commands/GetRawMessageContentCommand";
3
3
  import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } from "./commands/PutRawMessageContentCommand";
4
4
  import { WorkMailMessageFlowClient } from "./WorkMailMessageFlowClient";
5
- /**
6
- * <p>The WorkMail Message Flow API provides access to email messages as they are
7
- * being
8
- * sent and received by
9
- * a
10
- * WorkMail organization.</p>
11
- */
5
+
12
6
  export declare class WorkMailMessageFlow extends WorkMailMessageFlowClient {
13
- /**
14
- * <p>Retrieves the raw content of an in-transit email message, in MIME format.</p>
15
- */
7
+
16
8
  getRawMessageContent(args: GetRawMessageContentCommandInput, options?: __HttpHandlerOptions): Promise<GetRawMessageContentCommandOutput>;
17
9
  getRawMessageContent(args: GetRawMessageContentCommandInput, cb: (err: any, data?: GetRawMessageContentCommandOutput) => void): void;
18
10
  getRawMessageContent(args: GetRawMessageContentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRawMessageContentCommandOutput) => void): void;
19
- /**
20
- * <p>Updates the raw content of an in-transit email message, in MIME format.</p>
21
- * <p>This example describes how to update in-transit email message. For more information and examples for using this API, see
22
- * <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
23
- * Updating message content with AWS Lambda</a>.</p>
24
- *
25
- *
26
- * <note>
27
- * <p>Updates to an in-transit message only appear when you call <code>PutRawMessageContent</code> from an AWS Lambda function
28
- * configured with a synchronous <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/lambda.html#synchronous-rules">
29
- * Run Lambda</a> rule. If you call <code>PutRawMessageContent</code> on a delivered or sent message, the message remains unchanged,
30
- * even though <a href="https://docs.aws.amazon.com/workmail/latest/APIReference/API_messageflow_GetRawMessageContent.html">GetRawMessageContent</a> returns an updated
31
- * message.
32
- * </p>
33
- * </note>
34
- */
11
+
35
12
  putRawMessageContent(args: PutRawMessageContentCommandInput, options?: __HttpHandlerOptions): Promise<PutRawMessageContentCommandOutput>;
36
13
  putRawMessageContent(args: PutRawMessageContentCommandInput, cb: (err: any, data?: PutRawMessageContentCommandOutput) => void): void;
37
14
  putRawMessageContent(args: PutRawMessageContentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRawMessageContentCommandOutput) => void): void;
@@ -11,128 +11,59 @@ import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } f
11
11
  export declare type ServiceInputTypes = GetRawMessageContentCommandInput | PutRawMessageContentCommandInput;
12
12
  export declare type ServiceOutputTypes = GetRawMessageContentCommandOutput | PutRawMessageContentCommandOutput;
13
13
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
14
- /**
15
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
16
- */
14
+
17
15
  requestHandler?: __HttpHandler;
18
- /**
19
- * A constructor for a class implementing the {@link __Hash} interface
20
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
21
- * @internal
22
- */
16
+
23
17
  sha256?: __HashConstructor;
24
- /**
25
- * The function that will be used to convert strings into HTTP endpoints.
26
- * @internal
27
- */
18
+
28
19
  urlParser?: __UrlParser;
29
- /**
30
- * A function that can calculate the length of a request body.
31
- * @internal
32
- */
20
+
33
21
  bodyLengthChecker?: (body: any) => number | undefined;
34
- /**
35
- * A function that converts a stream into an array of bytes.
36
- * @internal
37
- */
22
+
38
23
  streamCollector?: __StreamCollector;
39
- /**
40
- * The function that will be used to convert a base64-encoded string to a byte array.
41
- * @internal
42
- */
24
+
43
25
  base64Decoder?: __Decoder;
44
- /**
45
- * The function that will be used to convert binary data to a base64-encoded string.
46
- * @internal
47
- */
26
+
48
27
  base64Encoder?: __Encoder;
49
- /**
50
- * The function that will be used to convert a UTF8-encoded string to a byte array.
51
- * @internal
52
- */
28
+
53
29
  utf8Decoder?: __Decoder;
54
- /**
55
- * The function that will be used to convert binary data to a UTF-8 encoded string.
56
- * @internal
57
- */
30
+
58
31
  utf8Encoder?: __Encoder;
59
- /**
60
- * The runtime environment.
61
- * @internal
62
- */
32
+
63
33
  runtime?: string;
64
- /**
65
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
66
- * trait of an operation.
67
- */
34
+
68
35
  disableHostPrefix?: boolean;
69
- /**
70
- * Value for how many times a request will be made at most in case of retry.
71
- */
36
+
72
37
  maxAttempts?: number | __Provider<number>;
73
- /**
74
- * Specifies which retry algorithm to use.
75
- */
38
+
76
39
  retryMode?: string | __Provider<string>;
77
- /**
78
- * Optional logger for logging debug/info/warn/error.
79
- */
40
+
80
41
  logger?: __Logger;
81
- /**
82
- * Unique service identifier.
83
- * @internal
84
- */
42
+
85
43
  serviceId?: string;
86
- /**
87
- * The AWS region to which this client will send requests
88
- */
44
+
89
45
  region?: string | __Provider<string>;
90
- /**
91
- * Default credentials provider; Not available in browser runtime.
92
- * @internal
93
- */
46
+
94
47
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
95
- /**
96
- * Fetch related hostname, signing name or signing region with given region.
97
- * @internal
98
- */
48
+
99
49
  regionInfoProvider?: RegionInfoProvider;
100
- /**
101
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
102
- * @internal
103
- */
50
+
104
51
  defaultUserAgentProvider?: Provider<__UserAgent>;
105
52
  }
106
53
  declare type WorkMailMessageFlowClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
107
- /**
108
- * The configuration interface of WorkMailMessageFlowClient class constructor that set the region, credentials and other options.
109
- */
54
+
110
55
  export interface WorkMailMessageFlowClientConfig extends WorkMailMessageFlowClientConfigType {
111
56
  }
112
57
  declare type WorkMailMessageFlowClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
113
- /**
114
- * The resolved configuration interface of WorkMailMessageFlowClient class. This is resolved and normalized from the {@link WorkMailMessageFlowClientConfig | constructor configuration interface}.
115
- */
58
+
116
59
  export interface WorkMailMessageFlowClientResolvedConfig extends WorkMailMessageFlowClientResolvedConfigType {
117
60
  }
118
- /**
119
- * <p>The WorkMail Message Flow API provides access to email messages as they are
120
- * being
121
- * sent and received by
122
- * a
123
- * WorkMail organization.</p>
124
- */
61
+
125
62
  export declare class WorkMailMessageFlowClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WorkMailMessageFlowClientResolvedConfig> {
126
- /**
127
- * The resolved configuration of WorkMailMessageFlowClient class. This is resolved and normalized from the {@link WorkMailMessageFlowClientConfig | constructor configuration interface}.
128
- */
63
+
129
64
  readonly config: WorkMailMessageFlowClientResolvedConfig;
130
65
  constructor(configuration: WorkMailMessageFlowClientConfig);
131
- /**
132
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
133
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
134
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
135
- */
66
+
136
67
  destroy(): void;
137
68
  }
138
69
  export {};
@@ -6,29 +6,11 @@ export interface GetRawMessageContentCommandInput extends GetRawMessageContentRe
6
6
  }
7
7
  export interface GetRawMessageContentCommandOutput extends GetRawMessageContentResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Retrieves the raw content of an in-transit email message, in MIME format.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { WorkMailMessageFlowClient, GetRawMessageContentCommand } from "@aws-sdk/client-workmailmessageflow"; // ES Modules import
15
- * // const { WorkMailMessageFlowClient, GetRawMessageContentCommand } = require("@aws-sdk/client-workmailmessageflow"); // CommonJS import
16
- * const client = new WorkMailMessageFlowClient(config);
17
- * const command = new GetRawMessageContentCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetRawMessageContentCommandInput} for command's `input` shape.
22
- * @see {@link GetRawMessageContentCommandOutput} for command's `response` shape.
23
- * @see {@link WorkMailMessageFlowClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class GetRawMessageContentCommand extends $Command<GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput, WorkMailMessageFlowClientResolvedConfig> {
27
11
  readonly input: GetRawMessageContentCommandInput;
28
12
  constructor(input: GetRawMessageContentCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkMailMessageFlowClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,42 +6,11 @@ export interface PutRawMessageContentCommandInput extends PutRawMessageContentRe
6
6
  }
7
7
  export interface PutRawMessageContentCommandOutput extends PutRawMessageContentResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Updates the raw content of an in-transit email message, in MIME format.</p>
11
- * <p>This example describes how to update in-transit email message. For more information and examples for using this API, see
12
- * <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
13
- * Updating message content with AWS Lambda</a>.</p>
14
- *
15
- *
16
- * <note>
17
- * <p>Updates to an in-transit message only appear when you call <code>PutRawMessageContent</code> from an AWS Lambda function
18
- * configured with a synchronous <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/lambda.html#synchronous-rules">
19
- * Run Lambda</a> rule. If you call <code>PutRawMessageContent</code> on a delivered or sent message, the message remains unchanged,
20
- * even though <a href="https://docs.aws.amazon.com/workmail/latest/APIReference/API_messageflow_GetRawMessageContent.html">GetRawMessageContent</a> returns an updated
21
- * message.
22
- * </p>
23
- * </note>
24
- * @example
25
- * Use a bare-bones client and the command you need to make an API call.
26
- * ```javascript
27
- * import { WorkMailMessageFlowClient, PutRawMessageContentCommand } from "@aws-sdk/client-workmailmessageflow"; // ES Modules import
28
- * // const { WorkMailMessageFlowClient, PutRawMessageContentCommand } = require("@aws-sdk/client-workmailmessageflow"); // CommonJS import
29
- * const client = new WorkMailMessageFlowClient(config);
30
- * const command = new PutRawMessageContentCommand(input);
31
- * const response = await client.send(command);
32
- * ```
33
- *
34
- * @see {@link PutRawMessageContentCommandInput} for command's `input` shape.
35
- * @see {@link PutRawMessageContentCommandOutput} for command's `response` shape.
36
- * @see {@link WorkMailMessageFlowClientResolvedConfig | config} for command's `input` shape.
37
- *
38
- */
9
+
39
10
  export declare class PutRawMessageContentCommand extends $Command<PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput, WorkMailMessageFlowClientResolvedConfig> {
40
11
  readonly input: PutRawMessageContentCommandInput;
41
12
  constructor(input: PutRawMessageContentCommandInput);
42
- /**
43
- * @internal
44
- */
13
+
45
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkMailMessageFlowClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput>;
46
15
  private serialize;
47
16
  private deserialize;
@@ -1,194 +1,97 @@
1
- /// <reference types="node" />
1
+
2
2
  import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
3
  import { Readable } from "stream";
4
4
  export interface GetRawMessageContentRequest {
5
- /**
6
- * <p>The identifier of the email message to retrieve.</p>
7
- */
5
+
8
6
  messageId: string | undefined;
9
7
  }
10
8
  export declare namespace GetRawMessageContentRequest {
11
- /**
12
- * @internal
13
- */
9
+
14
10
  const filterSensitiveLog: (obj: GetRawMessageContentRequest) => any;
15
11
  }
16
12
  export interface GetRawMessageContentResponse {
17
- /**
18
- * <p>The raw content of the email message, in MIME format.</p>
19
- */
13
+
20
14
  messageContent: Readable | ReadableStream | Blob | undefined;
21
15
  }
22
16
  export declare namespace GetRawMessageContentResponse {
23
- /**
24
- * @internal
25
- */
17
+
26
18
  const filterSensitiveLog: (obj: GetRawMessageContentResponse) => any;
27
19
  }
28
- /**
29
- * <p>The requested email message is not found.</p>
30
- */
20
+
31
21
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
32
22
  name: "ResourceNotFoundException";
33
23
  $fault: "client";
34
24
  message?: string;
35
25
  }
36
26
  export declare namespace ResourceNotFoundException {
37
- /**
38
- * @internal
39
- */
27
+
40
28
  const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
41
29
  }
42
- /**
43
- * <p>WorkMail could not access the updated email content. Possible reasons:</p>
44
- * <ul>
45
- * <li>
46
- * <p>You made the request in a region other than your S3 bucket region.</p>
47
- * </li>
48
- * <li>
49
- * <p>The <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-owner-condition.html">S3 bucket owner</a> is not the
50
- * same as the calling AWS account.</p>
51
- * </li>
52
- * <li>
53
- * <p>You have an incomplete or missing S3 bucket policy. For more information about policies, see
54
- * <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
55
- * Updating message content with AWS Lambda
56
- * </a> in the <i>WorkMail Administrator
57
- * Guide</i>.</p>
58
- * </li>
59
- * </ul>
60
- */
30
+
61
31
  export interface InvalidContentLocation extends __SmithyException, $MetadataBearer {
62
32
  name: "InvalidContentLocation";
63
33
  $fault: "client";
64
34
  message?: string;
65
35
  }
66
36
  export declare namespace InvalidContentLocation {
67
- /**
68
- * @internal
69
- */
37
+
70
38
  const filterSensitiveLog: (obj: InvalidContentLocation) => any;
71
39
  }
72
- /**
73
- * <p>The requested email is not eligible for update. This is usually the case for a redirected email.</p>
74
- */
40
+
75
41
  export interface MessageFrozen extends __SmithyException, $MetadataBearer {
76
42
  name: "MessageFrozen";
77
43
  $fault: "client";
78
44
  message?: string;
79
45
  }
80
46
  export declare namespace MessageFrozen {
81
- /**
82
- * @internal
83
- */
47
+
84
48
  const filterSensitiveLog: (obj: MessageFrozen) => any;
85
49
  }
86
- /**
87
- * <p>The requested email could not be updated due to an error in the MIME content. Check the error message for more information about
88
- * what caused the error.</p>
89
- */
50
+
90
51
  export interface MessageRejected extends __SmithyException, $MetadataBearer {
91
52
  name: "MessageRejected";
92
53
  $fault: "client";
93
54
  message?: string;
94
55
  }
95
56
  export declare namespace MessageRejected {
96
- /**
97
- * @internal
98
- */
57
+
99
58
  const filterSensitiveLog: (obj: MessageRejected) => any;
100
59
  }
101
- /**
102
- * <p>Amazon S3 object representing the updated message content, in MIME format.</p>
103
- * <note>
104
- * <p>The region for the S3 bucket containing the S3 object must match the region used for WorkMail operations. Also, for WorkMail to process
105
- * an S3 object, it must have permission to access that object. For more information, see
106
- * <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
107
- * Updating message content with AWS Lambda</a>.</p>
108
- * </note>
109
- */
60
+
110
61
  export interface S3Reference {
111
- /**
112
- * <p>The S3 bucket name.</p>
113
- */
62
+
114
63
  bucket: string | undefined;
115
- /**
116
- * <p>The S3 key object name.</p>
117
- */
64
+
118
65
  key: string | undefined;
119
- /**
120
- * <p>If you enable versioning for the bucket, you can specify the object version.</p>
121
- */
66
+
122
67
  objectVersion?: string;
123
68
  }
124
69
  export declare namespace S3Reference {
125
- /**
126
- * @internal
127
- */
70
+
128
71
  const filterSensitiveLog: (obj: S3Reference) => any;
129
72
  }
130
- /**
131
- * <p>Provides the MIME content of the updated email message as an S3 object. All MIME content must meet the following criteria:</p>
132
- * <ul>
133
- * <li>
134
- * <p>Each part of a multipart MIME message must be formatted properly.</p>
135
- * </li>
136
- * <li>
137
- * <p>Attachments must be of a content type that Amazon SES supports. For more information, see
138
- * <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types-appendix.html">Unsupported Attachment Types</a>.</p>
139
- * </li>
140
- * <li>
141
- * <p>If any of the MIME parts in a message contain content that is outside of the 7-bit ASCII character range, we recommend
142
- * encoding that content.</p>
143
- * </li>
144
- * <li>
145
- * <p>Per <a href="https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6">RFC 5321</a>, the maximum length of each line of
146
- * text, including the <CRLF>, must not exceed 1,000 characters.</p>
147
- * </li>
148
- * <li>
149
- * <p>The message must contain all the required header fields. Check the returned error message for more information.</p>
150
- * </li>
151
- * <li>
152
- * <p>The value of immutable headers must remain unchanged. Check the returned error message for more information.</p>
153
- * </li>
154
- * <li>
155
- * <p>Certain unique headers can only appear once. Check the returned error message for more information.</p>
156
- * </li>
157
- * </ul>
158
- */
73
+
159
74
  export interface RawMessageContent {
160
- /**
161
- * <p>The S3 reference of an email message.</p>
162
- */
75
+
163
76
  s3Reference: S3Reference | undefined;
164
77
  }
165
78
  export declare namespace RawMessageContent {
166
- /**
167
- * @internal
168
- */
79
+
169
80
  const filterSensitiveLog: (obj: RawMessageContent) => any;
170
81
  }
171
82
  export interface PutRawMessageContentRequest {
172
- /**
173
- * <p>The identifier of the email message being updated.</p>
174
- */
83
+
175
84
  messageId: string | undefined;
176
- /**
177
- * <p>Describes the raw message content of the updated email message.</p>
178
- */
85
+
179
86
  content: RawMessageContent | undefined;
180
87
  }
181
88
  export declare namespace PutRawMessageContentRequest {
182
- /**
183
- * @internal
184
- */
89
+
185
90
  const filterSensitiveLog: (obj: PutRawMessageContentRequest) => any;
186
91
  }
187
92
  export interface PutRawMessageContentResponse {
188
93
  }
189
94
  export declare namespace PutRawMessageContentResponse {
190
- /**
191
- * @internal
192
- */
95
+
193
96
  const filterSensitiveLog: (obj: PutRawMessageContentResponse) => any;
194
97
  }
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,8 +1,6 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,7 +1,5 @@
1
1
  import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: WorkMailMessageFlowClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
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.36.0",
4
+ "version": "3.36.1",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "^1.0.0",
23
23
  "@aws-crypto/sha256-js": "^1.0.0",
24
- "@aws-sdk/client-sts": "3.36.0",
24
+ "@aws-sdk/client-sts": "3.36.1",
25
25
  "@aws-sdk/config-resolver": "3.36.0",
26
- "@aws-sdk/credential-provider-node": "3.36.0",
26
+ "@aws-sdk/credential-provider-node": "3.36.1",
27
27
  "@aws-sdk/fetch-http-handler": "3.36.0",
28
28
  "@aws-sdk/hash-node": "3.36.0",
29
29
  "@aws-sdk/invalid-dependency": "3.36.0",