@aws-sdk/client-mwaa 3.451.0 → 3.452.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-cjs/models/models_0.js +6 -1
- package/dist-cjs/protocols/Aws_restJson1.js +5 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +5 -0
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +1 -0
- package/dist-types/commands/GetEnvironmentCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +54 -4
- package/dist-types/ts3.4/models/models_0.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateEnvironmentInputFilterSensitiveLog = exports.GetEnvironmentOutputFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.CreateWebLoginTokenResponseFilterSensitiveLog = exports.CreateEnvironmentInputFilterSensitiveLog = exports.CreateCliTokenResponseFilterSensitiveLog = exports.Unit = exports.EnvironmentStatus = exports.UpdateStatus = exports.ValidationException = exports.InternalServerException = exports.WebserverAccessMode = exports.LoggingLevel = exports.ResourceNotFoundException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.UpdateEnvironmentInputFilterSensitiveLog = exports.GetEnvironmentOutputFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.CreateWebLoginTokenResponseFilterSensitiveLog = exports.CreateEnvironmentInputFilterSensitiveLog = exports.CreateCliTokenResponseFilterSensitiveLog = exports.Unit = exports.EnvironmentStatus = exports.UpdateStatus = exports.ValidationException = exports.InternalServerException = exports.WebserverAccessMode = exports.LoggingLevel = exports.EndpointManagement = exports.ResourceNotFoundException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const MWAAServiceException_1 = require("./MWAAServiceException");
|
|
6
6
|
class AccessDeniedException extends MWAAServiceException_1.MWAAServiceException {
|
|
@@ -30,6 +30,10 @@ class ResourceNotFoundException extends MWAAServiceException_1.MWAAServiceExcept
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
33
|
+
exports.EndpointManagement = {
|
|
34
|
+
CUSTOMER: "CUSTOMER",
|
|
35
|
+
SERVICE: "SERVICE",
|
|
36
|
+
};
|
|
33
37
|
exports.LoggingLevel = {
|
|
34
38
|
CRITICAL: "CRITICAL",
|
|
35
39
|
DEBUG: "DEBUG",
|
|
@@ -79,6 +83,7 @@ exports.EnvironmentStatus = {
|
|
|
79
83
|
CREATING_SNAPSHOT: "CREATING_SNAPSHOT",
|
|
80
84
|
DELETED: "DELETED",
|
|
81
85
|
DELETING: "DELETING",
|
|
86
|
+
PENDING: "PENDING",
|
|
82
87
|
ROLLING_BACK: "ROLLING_BACK",
|
|
83
88
|
UNAVAILABLE: "UNAVAILABLE",
|
|
84
89
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
@@ -41,6 +41,7 @@ const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
41
41
|
AirflowConfigurationOptions: (_) => (0, smithy_client_1._json)(_),
|
|
42
42
|
AirflowVersion: [],
|
|
43
43
|
DagS3Path: [],
|
|
44
|
+
EndpointManagement: [],
|
|
44
45
|
EnvironmentClass: [],
|
|
45
46
|
ExecutionRoleArn: [],
|
|
46
47
|
KmsKey: [],
|
|
@@ -836,8 +837,11 @@ const de_Environment = (output, context) => {
|
|
|
836
837
|
AirflowConfigurationOptions: smithy_client_1._json,
|
|
837
838
|
AirflowVersion: smithy_client_1.expectString,
|
|
838
839
|
Arn: smithy_client_1.expectString,
|
|
840
|
+
CeleryExecutorQueue: smithy_client_1.expectString,
|
|
839
841
|
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
840
842
|
DagS3Path: smithy_client_1.expectString,
|
|
843
|
+
DatabaseVpcEndpointService: smithy_client_1.expectString,
|
|
844
|
+
EndpointManagement: smithy_client_1.expectString,
|
|
841
845
|
EnvironmentClass: smithy_client_1.expectString,
|
|
842
846
|
ExecutionRoleArn: smithy_client_1.expectString,
|
|
843
847
|
KmsKey: smithy_client_1.expectString,
|
|
@@ -860,6 +864,7 @@ const de_Environment = (output, context) => {
|
|
|
860
864
|
Tags: smithy_client_1._json,
|
|
861
865
|
WebserverAccessMode: smithy_client_1.expectString,
|
|
862
866
|
WebserverUrl: smithy_client_1.expectString,
|
|
867
|
+
WebserverVpcEndpointService: smithy_client_1.expectString,
|
|
863
868
|
WeeklyMaintenanceWindowStart: smithy_client_1.expectString,
|
|
864
869
|
});
|
|
865
870
|
};
|
|
@@ -25,6 +25,10 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
25
25
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
export const EndpointManagement = {
|
|
29
|
+
CUSTOMER: "CUSTOMER",
|
|
30
|
+
SERVICE: "SERVICE",
|
|
31
|
+
};
|
|
28
32
|
export const LoggingLevel = {
|
|
29
33
|
CRITICAL: "CRITICAL",
|
|
30
34
|
DEBUG: "DEBUG",
|
|
@@ -72,6 +76,7 @@ export const EnvironmentStatus = {
|
|
|
72
76
|
CREATING_SNAPSHOT: "CREATING_SNAPSHOT",
|
|
73
77
|
DELETED: "DELETED",
|
|
74
78
|
DELETING: "DELETING",
|
|
79
|
+
PENDING: "PENDING",
|
|
75
80
|
ROLLING_BACK: "ROLLING_BACK",
|
|
76
81
|
UNAVAILABLE: "UNAVAILABLE",
|
|
77
82
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
@@ -37,6 +37,7 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
37
37
|
AirflowConfigurationOptions: (_) => _json(_),
|
|
38
38
|
AirflowVersion: [],
|
|
39
39
|
DagS3Path: [],
|
|
40
|
+
EndpointManagement: [],
|
|
40
41
|
EnvironmentClass: [],
|
|
41
42
|
ExecutionRoleArn: [],
|
|
42
43
|
KmsKey: [],
|
|
@@ -811,8 +812,11 @@ const de_Environment = (output, context) => {
|
|
|
811
812
|
AirflowConfigurationOptions: _json,
|
|
812
813
|
AirflowVersion: __expectString,
|
|
813
814
|
Arn: __expectString,
|
|
815
|
+
CeleryExecutorQueue: __expectString,
|
|
814
816
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
815
817
|
DagS3Path: __expectString,
|
|
818
|
+
DatabaseVpcEndpointService: __expectString,
|
|
819
|
+
EndpointManagement: __expectString,
|
|
816
820
|
EnvironmentClass: __expectString,
|
|
817
821
|
ExecutionRoleArn: __expectString,
|
|
818
822
|
KmsKey: __expectString,
|
|
@@ -835,6 +839,7 @@ const de_Environment = (output, context) => {
|
|
|
835
839
|
Tags: _json,
|
|
836
840
|
WebserverAccessMode: __expectString,
|
|
837
841
|
WebserverUrl: __expectString,
|
|
842
|
+
WebserverVpcEndpointService: __expectString,
|
|
838
843
|
WeeklyMaintenanceWindowStart: __expectString,
|
|
839
844
|
});
|
|
840
845
|
};
|
|
@@ -85,6 +85,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentOutput,
|
|
|
85
85
|
* WebserverAccessMode: "STRING_VALUE",
|
|
86
86
|
* MinWorkers: Number("int"),
|
|
87
87
|
* Schedulers: Number("int"),
|
|
88
|
+
* EndpointManagement: "STRING_VALUE",
|
|
88
89
|
* };
|
|
89
90
|
* const command = new CreateEnvironmentCommand(input);
|
|
90
91
|
* const response = await client.send(command);
|
|
@@ -110,6 +110,10 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentOutput, __Met
|
|
|
110
110
|
* // WebserverAccessMode: "STRING_VALUE",
|
|
111
111
|
* // MinWorkers: Number("int"),
|
|
112
112
|
* // Schedulers: Number("int"),
|
|
113
|
+
* // WebserverVpcEndpointService: "STRING_VALUE",
|
|
114
|
+
* // DatabaseVpcEndpointService: "STRING_VALUE",
|
|
115
|
+
* // CeleryExecutorQueue: "STRING_VALUE",
|
|
116
|
+
* // EndpointManagement: "STRING_VALUE",
|
|
113
117
|
* // },
|
|
114
118
|
* // };
|
|
115
119
|
*
|
|
@@ -50,6 +50,18 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
50
50
|
*/
|
|
51
51
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
* @enum
|
|
56
|
+
*/
|
|
57
|
+
export declare const EndpointManagement: {
|
|
58
|
+
readonly CUSTOMER: "CUSTOMER";
|
|
59
|
+
readonly SERVICE: "SERVICE";
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export type EndpointManagement = (typeof EndpointManagement)[keyof typeof EndpointManagement];
|
|
53
65
|
/**
|
|
54
66
|
* @public
|
|
55
67
|
* @enum
|
|
@@ -240,7 +252,8 @@ export interface CreateEnvironmentInput {
|
|
|
240
252
|
* @public
|
|
241
253
|
* <p>The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version.
|
|
242
254
|
* For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/airflow-versions.html">Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA)</a>.</p>
|
|
243
|
-
* <p>Valid values: <code>1.10.12</code>, <code>2.0.2</code>, <code>2.2.2</code>, <code>2.4.3</code>, <code>2.5.1</code>, <code>2.6.3</code>, <code>2.7.2</code
|
|
255
|
+
* <p>Valid values: <code>1.10.12</code>, <code>2.0.2</code>, <code>2.2.2</code>, <code>2.4.3</code>, <code>2.5.1</code>, <code>2.6.3</code>, <code>2.7.2</code>
|
|
256
|
+
* </p>
|
|
244
257
|
*/
|
|
245
258
|
AirflowVersion?: string;
|
|
246
259
|
/**
|
|
@@ -260,7 +273,7 @@ export interface CreateEnvironmentInput {
|
|
|
260
273
|
Tags?: Record<string, string>;
|
|
261
274
|
/**
|
|
262
275
|
* @public
|
|
263
|
-
* <p>
|
|
276
|
+
* <p>Defines the access mode for the Apache Airflow <i>web server</i>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
|
|
264
277
|
*/
|
|
265
278
|
WebserverAccessMode?: WebserverAccessMode;
|
|
266
279
|
/**
|
|
@@ -281,6 +294,14 @@ export interface CreateEnvironmentInput {
|
|
|
281
294
|
* </ul>
|
|
282
295
|
*/
|
|
283
296
|
Schedulers?: number;
|
|
297
|
+
/**
|
|
298
|
+
* @public
|
|
299
|
+
* <p>Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to <code>SERVICE</code>, Amazon MWAA will create and manage the required VPC endpoints in
|
|
300
|
+
* your VPC. If set to <code>CUSTOMER</code>, you must create, and manage, the VPC endpoints for your VPC. If you choose to create an environment in a shared VPC, you must set this value to <code>CUSTOMER</code>.
|
|
301
|
+
* In a shared VPC deployment, the environment will remain in <code>PENDING</code> status until you create the VPC endpoints. If you do not take action to
|
|
302
|
+
* create the endpoints within 72 hours, the status will change to <code>CREATE_FAILED</code>. You can delete the failed environment and create a new one.</p>
|
|
303
|
+
*/
|
|
304
|
+
EndpointManagement?: EndpointManagement;
|
|
284
305
|
}
|
|
285
306
|
/**
|
|
286
307
|
* @public
|
|
@@ -484,6 +505,7 @@ export declare const EnvironmentStatus: {
|
|
|
484
505
|
readonly CREATING_SNAPSHOT: "CREATING_SNAPSHOT";
|
|
485
506
|
readonly DELETED: "DELETED";
|
|
486
507
|
readonly DELETING: "DELETING";
|
|
508
|
+
readonly PENDING: "PENDING";
|
|
487
509
|
readonly ROLLING_BACK: "ROLLING_BACK";
|
|
488
510
|
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
489
511
|
readonly UPDATE_FAILED: "UPDATE_FAILED";
|
|
@@ -505,7 +527,8 @@ export interface Environment {
|
|
|
505
527
|
Name?: string;
|
|
506
528
|
/**
|
|
507
529
|
* @public
|
|
508
|
-
* <p>The status of the Amazon MWAA environment
|
|
530
|
+
* <p>The status of the Amazon MWAA environment.</p>
|
|
531
|
+
* <p>Valid values:</p>
|
|
509
532
|
* <ul>
|
|
510
533
|
* <li>
|
|
511
534
|
* <p>
|
|
@@ -527,6 +550,11 @@ export interface Environment {
|
|
|
527
550
|
* </li>
|
|
528
551
|
* <li>
|
|
529
552
|
* <p>
|
|
553
|
+
* <code>PENDING</code> - Indicates the request was successful, but the process to create the environment is paused until you create the required
|
|
554
|
+
* VPC endpoints in your VPC. After you create the VPC endpoints, the process resumes.</p>
|
|
555
|
+
* </li>
|
|
556
|
+
* <li>
|
|
557
|
+
* <p>
|
|
530
558
|
* <code>UPDATING</code> - Indicates the request to update the environment is in progress.</p>
|
|
531
559
|
* </li>
|
|
532
560
|
* <li>
|
|
@@ -702,7 +730,7 @@ export interface Environment {
|
|
|
702
730
|
Tags?: Record<string, string>;
|
|
703
731
|
/**
|
|
704
732
|
* @public
|
|
705
|
-
* <p>The Apache Airflow <i>
|
|
733
|
+
* <p>The Apache Airflow <i>web server</i> access mode. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
|
|
706
734
|
*/
|
|
707
735
|
WebserverAccessMode?: WebserverAccessMode;
|
|
708
736
|
/**
|
|
@@ -715,6 +743,28 @@ export interface Environment {
|
|
|
715
743
|
* <p>The number of Apache Airflow schedulers that run in your Amazon MWAA environment.</p>
|
|
716
744
|
*/
|
|
717
745
|
Schedulers?: number;
|
|
746
|
+
/**
|
|
747
|
+
* @public
|
|
748
|
+
* <p>The VPC endpoint for the environment's web server.</p>
|
|
749
|
+
*/
|
|
750
|
+
WebserverVpcEndpointService?: string;
|
|
751
|
+
/**
|
|
752
|
+
* @public
|
|
753
|
+
* <p>The VPC endpoint for the environment's Amazon RDS database.</p>
|
|
754
|
+
*/
|
|
755
|
+
DatabaseVpcEndpointService?: string;
|
|
756
|
+
/**
|
|
757
|
+
* @public
|
|
758
|
+
* <p>The queue ARN for the environment's <a href="https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/executor/celery.html">Celery Executor</a>. Amazon MWAA uses a Celery Executor
|
|
759
|
+
* to distribute tasks across multiple workers. When you create an environment in a shared VPC, you must provide access to the Celery Executor queue from your VPC.</p>
|
|
760
|
+
*/
|
|
761
|
+
CeleryExecutorQueue?: string;
|
|
762
|
+
/**
|
|
763
|
+
* @public
|
|
764
|
+
* <p>Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to <code>SERVICE</code>, Amazon MWAA will create and manage the required VPC endpoints in
|
|
765
|
+
* your VPC. If set to <code>CUSTOMER</code>, you must create, and manage, the VPC endpoints in your VPC.</p>
|
|
766
|
+
*/
|
|
767
|
+
EndpointManagement?: EndpointManagement;
|
|
718
768
|
}
|
|
719
769
|
/**
|
|
720
770
|
* @public
|
|
@@ -22,6 +22,12 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
22
22
|
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
+
export declare const EndpointManagement: {
|
|
26
|
+
readonly CUSTOMER: "CUSTOMER";
|
|
27
|
+
readonly SERVICE: "SERVICE";
|
|
28
|
+
};
|
|
29
|
+
export type EndpointManagement =
|
|
30
|
+
(typeof EndpointManagement)[keyof typeof EndpointManagement];
|
|
25
31
|
export declare const LoggingLevel: {
|
|
26
32
|
readonly CRITICAL: "CRITICAL";
|
|
27
33
|
readonly DEBUG: "DEBUG";
|
|
@@ -74,6 +80,7 @@ export interface CreateEnvironmentInput {
|
|
|
74
80
|
WebserverAccessMode?: WebserverAccessMode;
|
|
75
81
|
MinWorkers?: number;
|
|
76
82
|
Schedulers?: number;
|
|
83
|
+
EndpointManagement?: EndpointManagement;
|
|
77
84
|
}
|
|
78
85
|
export interface CreateEnvironmentOutput {
|
|
79
86
|
Arn?: string;
|
|
@@ -141,6 +148,7 @@ export declare const EnvironmentStatus: {
|
|
|
141
148
|
readonly CREATING_SNAPSHOT: "CREATING_SNAPSHOT";
|
|
142
149
|
readonly DELETED: "DELETED";
|
|
143
150
|
readonly DELETING: "DELETING";
|
|
151
|
+
readonly PENDING: "PENDING";
|
|
144
152
|
readonly ROLLING_BACK: "ROLLING_BACK";
|
|
145
153
|
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
146
154
|
readonly UPDATE_FAILED: "UPDATE_FAILED";
|
|
@@ -177,6 +185,10 @@ export interface Environment {
|
|
|
177
185
|
WebserverAccessMode?: WebserverAccessMode;
|
|
178
186
|
MinWorkers?: number;
|
|
179
187
|
Schedulers?: number;
|
|
188
|
+
WebserverVpcEndpointService?: string;
|
|
189
|
+
DatabaseVpcEndpointService?: string;
|
|
190
|
+
CeleryExecutorQueue?: string;
|
|
191
|
+
EndpointManagement?: EndpointManagement;
|
|
180
192
|
}
|
|
181
193
|
export interface GetEnvironmentOutput {
|
|
182
194
|
Environment?: Environment;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mwaa",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mwaa Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.452.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",
|