@aws-sdk/client-workmailmessageflow 3.934.0 → 3.936.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-es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "./WorkMailMessageFlowClient";
2
2
  export * from "./WorkMailMessageFlow";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/errors";
5
5
  export { WorkMailMessageFlowServiceException } from "./models/WorkMailMessageFlowServiceException";
@@ -0,0 +1,49 @@
1
+ import { WorkMailMessageFlowServiceException as __BaseException } from "./WorkMailMessageFlowServiceException";
2
+ export class ResourceNotFoundException extends __BaseException {
3
+ name = "ResourceNotFoundException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "ResourceNotFoundException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
12
+ }
13
+ }
14
+ export class InvalidContentLocation extends __BaseException {
15
+ name = "InvalidContentLocation";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "InvalidContentLocation",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, InvalidContentLocation.prototype);
24
+ }
25
+ }
26
+ export class MessageFrozen extends __BaseException {
27
+ name = "MessageFrozen";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "MessageFrozen",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, MessageFrozen.prototype);
36
+ }
37
+ }
38
+ export class MessageRejected extends __BaseException {
39
+ name = "MessageRejected";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "MessageRejected",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, MessageRejected.prototype);
48
+ }
49
+ }
@@ -1,49 +1 @@
1
- import { WorkMailMessageFlowServiceException as __BaseException } from "./WorkMailMessageFlowServiceException";
2
- export class ResourceNotFoundException extends __BaseException {
3
- name = "ResourceNotFoundException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "ResourceNotFoundException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
12
- }
13
- }
14
- export class InvalidContentLocation extends __BaseException {
15
- name = "InvalidContentLocation";
16
- $fault = "client";
17
- constructor(opts) {
18
- super({
19
- name: "InvalidContentLocation",
20
- $fault: "client",
21
- ...opts,
22
- });
23
- Object.setPrototypeOf(this, InvalidContentLocation.prototype);
24
- }
25
- }
26
- export class MessageFrozen extends __BaseException {
27
- name = "MessageFrozen";
28
- $fault = "client";
29
- constructor(opts) {
30
- super({
31
- name: "MessageFrozen",
32
- $fault: "client",
33
- ...opts,
34
- });
35
- Object.setPrototypeOf(this, MessageFrozen.prototype);
36
- }
37
- }
38
- export class MessageRejected extends __BaseException {
39
- name = "MessageRejected";
40
- $fault = "client";
41
- constructor(opts) {
42
- super({
43
- name: "MessageRejected",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, MessageRejected.prototype);
48
- }
49
- }
1
+ export {};
@@ -27,7 +27,7 @@ const _sR = "s3Reference";
27
27
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.workmailmessageflow";
28
28
  const n0 = "com.amazonaws.workmailmessageflow";
29
29
  import { TypeRegistry } from "@smithy/core/schema";
30
- import { InvalidContentLocation as __InvalidContentLocation, MessageFrozen as __MessageFrozen, MessageRejected as __MessageRejected, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/index";
30
+ import { InvalidContentLocation as __InvalidContentLocation, MessageFrozen as __MessageFrozen, MessageRejected as __MessageRejected, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/errors";
31
31
  import { WorkMailMessageFlowServiceException as __WorkMailMessageFlowServiceException } from "../models/WorkMailMessageFlowServiceException";
32
32
  export var messageContentBlob = [
33
33
  0,
@@ -13,5 +13,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
13
13
  export type { RuntimeExtension } from "./runtimeExtensions";
14
14
  export type { WorkMailMessageFlowExtensionConfiguration } from "./extensionConfiguration";
15
15
  export * from "./commands";
16
- export * from "./models";
16
+ export * from "./models/errors";
17
+ export type * from "./models/models_0";
17
18
  export { WorkMailMessageFlowServiceException } from "./models/WorkMailMessageFlowServiceException";
@@ -0,0 +1,67 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { WorkMailMessageFlowServiceException as __BaseException } from "./WorkMailMessageFlowServiceException";
3
+ /**
4
+ * <p>The requested email message is not found.</p>
5
+ * @public
6
+ */
7
+ export declare class ResourceNotFoundException extends __BaseException {
8
+ readonly name: "ResourceNotFoundException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>WorkMail could not access the updated email content. Possible reasons:</p>
17
+ * <ul>
18
+ * <li>
19
+ * <p>You made the request in a region other than your S3 bucket region.</p>
20
+ * </li>
21
+ * <li>
22
+ * <p>The <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-owner-condition.html">S3 bucket owner</a> is not the
23
+ * same as the calling AWS account.</p>
24
+ * </li>
25
+ * <li>
26
+ * <p>You have an incomplete or missing S3 bucket policy. For more information about policies, see
27
+ * <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
28
+ * Updating message content with AWS Lambda
29
+ * </a> in the <i>WorkMail Administrator
30
+ * Guide</i>.</p>
31
+ * </li>
32
+ * </ul>
33
+ * @public
34
+ */
35
+ export declare class InvalidContentLocation extends __BaseException {
36
+ readonly name: "InvalidContentLocation";
37
+ readonly $fault: "client";
38
+ /**
39
+ * @internal
40
+ */
41
+ constructor(opts: __ExceptionOptionType<InvalidContentLocation, __BaseException>);
42
+ }
43
+ /**
44
+ * <p>The requested email is not eligible for update. This is usually the case for a redirected email.</p>
45
+ * @public
46
+ */
47
+ export declare class MessageFrozen extends __BaseException {
48
+ readonly name: "MessageFrozen";
49
+ readonly $fault: "client";
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(opts: __ExceptionOptionType<MessageFrozen, __BaseException>);
54
+ }
55
+ /**
56
+ * <p>The requested email could not be updated due to an error in the MIME content. Check the error message for more information about
57
+ * what caused the error.</p>
58
+ * @public
59
+ */
60
+ export declare class MessageRejected extends __BaseException {
61
+ readonly name: "MessageRejected";
62
+ readonly $fault: "client";
63
+ /**
64
+ * @internal
65
+ */
66
+ constructor(opts: __ExceptionOptionType<MessageRejected, __BaseException>);
67
+ }
@@ -1,6 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
1
  import { StreamingBlobTypes } from "@smithy/types";
3
- import { WorkMailMessageFlowServiceException as __BaseException } from "./WorkMailMessageFlowServiceException";
4
2
  /**
5
3
  * @public
6
4
  */
@@ -21,71 +19,6 @@ export interface GetRawMessageContentResponse {
21
19
  */
22
20
  messageContent: StreamingBlobTypes | undefined;
23
21
  }
24
- /**
25
- * <p>The requested email message is not found.</p>
26
- * @public
27
- */
28
- export declare class ResourceNotFoundException extends __BaseException {
29
- readonly name: "ResourceNotFoundException";
30
- readonly $fault: "client";
31
- /**
32
- * @internal
33
- */
34
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
35
- }
36
- /**
37
- * <p>WorkMail could not access the updated email content. Possible reasons:</p>
38
- * <ul>
39
- * <li>
40
- * <p>You made the request in a region other than your S3 bucket region.</p>
41
- * </li>
42
- * <li>
43
- * <p>The <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-owner-condition.html">S3 bucket owner</a> is not the
44
- * same as the calling AWS account.</p>
45
- * </li>
46
- * <li>
47
- * <p>You have an incomplete or missing S3 bucket policy. For more information about policies, see
48
- * <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
49
- * Updating message content with AWS Lambda
50
- * </a> in the <i>WorkMail Administrator
51
- * Guide</i>.</p>
52
- * </li>
53
- * </ul>
54
- * @public
55
- */
56
- export declare class InvalidContentLocation extends __BaseException {
57
- readonly name: "InvalidContentLocation";
58
- readonly $fault: "client";
59
- /**
60
- * @internal
61
- */
62
- constructor(opts: __ExceptionOptionType<InvalidContentLocation, __BaseException>);
63
- }
64
- /**
65
- * <p>The requested email is not eligible for update. This is usually the case for a redirected email.</p>
66
- * @public
67
- */
68
- export declare class MessageFrozen extends __BaseException {
69
- readonly name: "MessageFrozen";
70
- readonly $fault: "client";
71
- /**
72
- * @internal
73
- */
74
- constructor(opts: __ExceptionOptionType<MessageFrozen, __BaseException>);
75
- }
76
- /**
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
78
- * what caused the error.</p>
79
- * @public
80
- */
81
- export declare class MessageRejected extends __BaseException {
82
- readonly name: "MessageRejected";
83
- readonly $fault: "client";
84
- /**
85
- * @internal
86
- */
87
- constructor(opts: __ExceptionOptionType<MessageRejected, __BaseException>);
88
- }
89
22
  /**
90
23
  * <p>Amazon S3 object representing the updated message content, in MIME format.</p>
91
24
  * <note>
@@ -4,5 +4,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { WorkMailMessageFlowExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
8
9
  export { WorkMailMessageFlowServiceException } from "./models/WorkMailMessageFlowServiceException";
@@ -0,0 +1,26 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { WorkMailMessageFlowServiceException as __BaseException } from "./WorkMailMessageFlowServiceException";
3
+ export declare class ResourceNotFoundException extends __BaseException {
4
+ readonly name: "ResourceNotFoundException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
8
+ );
9
+ }
10
+ export declare class InvalidContentLocation extends __BaseException {
11
+ readonly name: "InvalidContentLocation";
12
+ readonly $fault: "client";
13
+ constructor(
14
+ opts: __ExceptionOptionType<InvalidContentLocation, __BaseException>
15
+ );
16
+ }
17
+ export declare class MessageFrozen extends __BaseException {
18
+ readonly name: "MessageFrozen";
19
+ readonly $fault: "client";
20
+ constructor(opts: __ExceptionOptionType<MessageFrozen, __BaseException>);
21
+ }
22
+ export declare class MessageRejected extends __BaseException {
23
+ readonly name: "MessageRejected";
24
+ readonly $fault: "client";
25
+ constructor(opts: __ExceptionOptionType<MessageRejected, __BaseException>);
26
+ }
@@ -1,36 +1,10 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
1
  import { StreamingBlobTypes } from "@smithy/types";
3
- import { WorkMailMessageFlowServiceException as __BaseException } from "./WorkMailMessageFlowServiceException";
4
2
  export interface GetRawMessageContentRequest {
5
3
  messageId: string | undefined;
6
4
  }
7
5
  export interface GetRawMessageContentResponse {
8
6
  messageContent: StreamingBlobTypes | undefined;
9
7
  }
10
- export declare class ResourceNotFoundException extends __BaseException {
11
- readonly name: "ResourceNotFoundException";
12
- readonly $fault: "client";
13
- constructor(
14
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
15
- );
16
- }
17
- export declare class InvalidContentLocation extends __BaseException {
18
- readonly name: "InvalidContentLocation";
19
- readonly $fault: "client";
20
- constructor(
21
- opts: __ExceptionOptionType<InvalidContentLocation, __BaseException>
22
- );
23
- }
24
- export declare class MessageFrozen extends __BaseException {
25
- readonly name: "MessageFrozen";
26
- readonly $fault: "client";
27
- constructor(opts: __ExceptionOptionType<MessageFrozen, __BaseException>);
28
- }
29
- export declare class MessageRejected extends __BaseException {
30
- readonly name: "MessageRejected";
31
- readonly $fault: "client";
32
- constructor(opts: __ExceptionOptionType<MessageRejected, __BaseException>);
33
- }
34
8
  export interface S3Reference {
35
9
  bucket: string | undefined;
36
10
  key: string | undefined;
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.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-workmailmessageflow",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";