@aws-sdk/client-mwaa 3.301.0 → 3.305.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://airflow.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://airflow.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -30,19 +30,17 @@ class ResourceNotFoundException extends MWAAServiceException_1.MWAAServiceExcept
30
30
  }
31
31
  }
32
32
  exports.ResourceNotFoundException = ResourceNotFoundException;
33
- var LoggingLevel;
34
- (function (LoggingLevel) {
35
- LoggingLevel["CRITICAL"] = "CRITICAL";
36
- LoggingLevel["DEBUG"] = "DEBUG";
37
- LoggingLevel["ERROR"] = "ERROR";
38
- LoggingLevel["INFO"] = "INFO";
39
- LoggingLevel["WARNING"] = "WARNING";
40
- })(LoggingLevel = exports.LoggingLevel || (exports.LoggingLevel = {}));
41
- var WebserverAccessMode;
42
- (function (WebserverAccessMode) {
43
- WebserverAccessMode["PRIVATE_ONLY"] = "PRIVATE_ONLY";
44
- WebserverAccessMode["PUBLIC_ONLY"] = "PUBLIC_ONLY";
45
- })(WebserverAccessMode = exports.WebserverAccessMode || (exports.WebserverAccessMode = {}));
33
+ exports.LoggingLevel = {
34
+ CRITICAL: "CRITICAL",
35
+ DEBUG: "DEBUG",
36
+ ERROR: "ERROR",
37
+ INFO: "INFO",
38
+ WARNING: "WARNING",
39
+ };
40
+ exports.WebserverAccessMode = {
41
+ PRIVATE_ONLY: "PRIVATE_ONLY",
42
+ PUBLIC_ONLY: "PUBLIC_ONLY",
43
+ };
46
44
  class InternalServerException extends MWAAServiceException_1.MWAAServiceException {
47
45
  constructor(opts) {
48
46
  super({
@@ -69,53 +67,50 @@ class ValidationException extends MWAAServiceException_1.MWAAServiceException {
69
67
  }
70
68
  }
71
69
  exports.ValidationException = ValidationException;
72
- var UpdateStatus;
73
- (function (UpdateStatus) {
74
- UpdateStatus["FAILED"] = "FAILED";
75
- UpdateStatus["PENDING"] = "PENDING";
76
- UpdateStatus["SUCCESS"] = "SUCCESS";
77
- })(UpdateStatus = exports.UpdateStatus || (exports.UpdateStatus = {}));
78
- var EnvironmentStatus;
79
- (function (EnvironmentStatus) {
80
- EnvironmentStatus["AVAILABLE"] = "AVAILABLE";
81
- EnvironmentStatus["CREATE_FAILED"] = "CREATE_FAILED";
82
- EnvironmentStatus["CREATING"] = "CREATING";
83
- EnvironmentStatus["DELETED"] = "DELETED";
84
- EnvironmentStatus["DELETING"] = "DELETING";
85
- EnvironmentStatus["UNAVAILABLE"] = "UNAVAILABLE";
86
- EnvironmentStatus["UPDATE_FAILED"] = "UPDATE_FAILED";
87
- EnvironmentStatus["UPDATING"] = "UPDATING";
88
- })(EnvironmentStatus = exports.EnvironmentStatus || (exports.EnvironmentStatus = {}));
89
- var Unit;
90
- (function (Unit) {
91
- Unit["BITS"] = "Bits";
92
- Unit["BITS_PER_SECOND"] = "Bits/Second";
93
- Unit["BYTES"] = "Bytes";
94
- Unit["BYTES_PER_SECOND"] = "Bytes/Second";
95
- Unit["COUNT"] = "Count";
96
- Unit["COUNT_PER_SECOND"] = "Count/Second";
97
- Unit["GIGABITS"] = "Gigabits";
98
- Unit["GIGABITS_PER_SECOND"] = "Gigabits/Second";
99
- Unit["GIGABYTES"] = "Gigabytes";
100
- Unit["GIGABYTES_PER_SECOND"] = "Gigabytes/Second";
101
- Unit["KILOBITS"] = "Kilobits";
102
- Unit["KILOBITS_PER_SECOND"] = "Kilobits/Second";
103
- Unit["KILOBYTES"] = "Kilobytes";
104
- Unit["KILOBYTES_PER_SECOND"] = "Kilobytes/Second";
105
- Unit["MEGABITS"] = "Megabits";
106
- Unit["MEGABITS_PER_SECOND"] = "Megabits/Second";
107
- Unit["MEGABYTES"] = "Megabytes";
108
- Unit["MEGABYTES_PER_SECOND"] = "Megabytes/Second";
109
- Unit["MICROSECONDS"] = "Microseconds";
110
- Unit["MILLISECONDS"] = "Milliseconds";
111
- Unit["NONE"] = "None";
112
- Unit["PERCENT"] = "Percent";
113
- Unit["SECONDS"] = "Seconds";
114
- Unit["TERABITS"] = "Terabits";
115
- Unit["TERABITS_PER_SECOND"] = "Terabits/Second";
116
- Unit["TERABYTES"] = "Terabytes";
117
- Unit["TERABYTES_PER_SECOND"] = "Terabytes/Second";
118
- })(Unit = exports.Unit || (exports.Unit = {}));
70
+ exports.UpdateStatus = {
71
+ FAILED: "FAILED",
72
+ PENDING: "PENDING",
73
+ SUCCESS: "SUCCESS",
74
+ };
75
+ exports.EnvironmentStatus = {
76
+ AVAILABLE: "AVAILABLE",
77
+ CREATE_FAILED: "CREATE_FAILED",
78
+ CREATING: "CREATING",
79
+ DELETED: "DELETED",
80
+ DELETING: "DELETING",
81
+ UNAVAILABLE: "UNAVAILABLE",
82
+ UPDATE_FAILED: "UPDATE_FAILED",
83
+ UPDATING: "UPDATING",
84
+ };
85
+ exports.Unit = {
86
+ BITS: "Bits",
87
+ BITS_PER_SECOND: "Bits/Second",
88
+ BYTES: "Bytes",
89
+ BYTES_PER_SECOND: "Bytes/Second",
90
+ COUNT: "Count",
91
+ COUNT_PER_SECOND: "Count/Second",
92
+ GIGABITS: "Gigabits",
93
+ GIGABITS_PER_SECOND: "Gigabits/Second",
94
+ GIGABYTES: "Gigabytes",
95
+ GIGABYTES_PER_SECOND: "Gigabytes/Second",
96
+ KILOBITS: "Kilobits",
97
+ KILOBITS_PER_SECOND: "Kilobits/Second",
98
+ KILOBYTES: "Kilobytes",
99
+ KILOBYTES_PER_SECOND: "Kilobytes/Second",
100
+ MEGABITS: "Megabits",
101
+ MEGABITS_PER_SECOND: "Megabits/Second",
102
+ MEGABYTES: "Megabytes",
103
+ MEGABYTES_PER_SECOND: "Megabytes/Second",
104
+ MICROSECONDS: "Microseconds",
105
+ MILLISECONDS: "Milliseconds",
106
+ NONE: "None",
107
+ PERCENT: "Percent",
108
+ SECONDS: "Seconds",
109
+ TERABITS: "Terabits",
110
+ TERABITS_PER_SECOND: "Terabits/Second",
111
+ TERABYTES: "Terabytes",
112
+ TERABYTES_PER_SECOND: "Terabytes/Second",
113
+ };
119
114
  const CreateCliTokenResponseFilterSensitiveLog = (obj) => ({
120
115
  ...obj,
121
116
  ...(obj.CliToken && { CliToken: smithy_client_1.SENSITIVE_STRING }),
@@ -62,6 +62,10 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
62
62
  ...(input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path }),
63
63
  ...(input.Schedulers != null && { Schedulers: input.Schedulers }),
64
64
  ...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
65
+ ...(input.StartupScriptS3ObjectVersion != null && {
66
+ StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
67
+ }),
68
+ ...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
65
69
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
66
70
  ...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
67
71
  ...(input.WeeklyMaintenanceWindowStart != null && {
@@ -331,6 +335,10 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
331
335
  ...(input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path }),
332
336
  ...(input.Schedulers != null && { Schedulers: input.Schedulers }),
333
337
  ...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
338
+ ...(input.StartupScriptS3ObjectVersion != null && {
339
+ StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
340
+ }),
341
+ ...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
334
342
  ...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
335
343
  ...(input.WeeklyMaintenanceWindowStart != null && {
336
344
  WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
@@ -978,6 +986,8 @@ const deserializeAws_restJson1Environment = (output, context) => {
978
986
  Schedulers: (0, smithy_client_1.expectInt32)(output.Schedulers),
979
987
  ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn),
980
988
  SourceBucketArn: (0, smithy_client_1.expectString)(output.SourceBucketArn),
989
+ StartupScriptS3ObjectVersion: (0, smithy_client_1.expectString)(output.StartupScriptS3ObjectVersion),
990
+ StartupScriptS3Path: (0, smithy_client_1.expectString)(output.StartupScriptS3Path),
981
991
  Status: (0, smithy_client_1.expectString)(output.Status),
982
992
  Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
983
993
  WebserverAccessMode: (0, smithy_client_1.expectString)(output.WebserverAccessMode),
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://airflow.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://airflow.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -25,19 +25,17 @@ export class ResourceNotFoundException extends __BaseException {
25
25
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
26
26
  }
27
27
  }
28
- export var LoggingLevel;
29
- (function (LoggingLevel) {
30
- LoggingLevel["CRITICAL"] = "CRITICAL";
31
- LoggingLevel["DEBUG"] = "DEBUG";
32
- LoggingLevel["ERROR"] = "ERROR";
33
- LoggingLevel["INFO"] = "INFO";
34
- LoggingLevel["WARNING"] = "WARNING";
35
- })(LoggingLevel || (LoggingLevel = {}));
36
- export var WebserverAccessMode;
37
- (function (WebserverAccessMode) {
38
- WebserverAccessMode["PRIVATE_ONLY"] = "PRIVATE_ONLY";
39
- WebserverAccessMode["PUBLIC_ONLY"] = "PUBLIC_ONLY";
40
- })(WebserverAccessMode || (WebserverAccessMode = {}));
28
+ export const LoggingLevel = {
29
+ CRITICAL: "CRITICAL",
30
+ DEBUG: "DEBUG",
31
+ ERROR: "ERROR",
32
+ INFO: "INFO",
33
+ WARNING: "WARNING",
34
+ };
35
+ export const WebserverAccessMode = {
36
+ PRIVATE_ONLY: "PRIVATE_ONLY",
37
+ PUBLIC_ONLY: "PUBLIC_ONLY",
38
+ };
41
39
  export class InternalServerException extends __BaseException {
42
40
  constructor(opts) {
43
41
  super({
@@ -62,53 +60,50 @@ export class ValidationException extends __BaseException {
62
60
  Object.setPrototypeOf(this, ValidationException.prototype);
63
61
  }
64
62
  }
65
- export var UpdateStatus;
66
- (function (UpdateStatus) {
67
- UpdateStatus["FAILED"] = "FAILED";
68
- UpdateStatus["PENDING"] = "PENDING";
69
- UpdateStatus["SUCCESS"] = "SUCCESS";
70
- })(UpdateStatus || (UpdateStatus = {}));
71
- export var EnvironmentStatus;
72
- (function (EnvironmentStatus) {
73
- EnvironmentStatus["AVAILABLE"] = "AVAILABLE";
74
- EnvironmentStatus["CREATE_FAILED"] = "CREATE_FAILED";
75
- EnvironmentStatus["CREATING"] = "CREATING";
76
- EnvironmentStatus["DELETED"] = "DELETED";
77
- EnvironmentStatus["DELETING"] = "DELETING";
78
- EnvironmentStatus["UNAVAILABLE"] = "UNAVAILABLE";
79
- EnvironmentStatus["UPDATE_FAILED"] = "UPDATE_FAILED";
80
- EnvironmentStatus["UPDATING"] = "UPDATING";
81
- })(EnvironmentStatus || (EnvironmentStatus = {}));
82
- export var Unit;
83
- (function (Unit) {
84
- Unit["BITS"] = "Bits";
85
- Unit["BITS_PER_SECOND"] = "Bits/Second";
86
- Unit["BYTES"] = "Bytes";
87
- Unit["BYTES_PER_SECOND"] = "Bytes/Second";
88
- Unit["COUNT"] = "Count";
89
- Unit["COUNT_PER_SECOND"] = "Count/Second";
90
- Unit["GIGABITS"] = "Gigabits";
91
- Unit["GIGABITS_PER_SECOND"] = "Gigabits/Second";
92
- Unit["GIGABYTES"] = "Gigabytes";
93
- Unit["GIGABYTES_PER_SECOND"] = "Gigabytes/Second";
94
- Unit["KILOBITS"] = "Kilobits";
95
- Unit["KILOBITS_PER_SECOND"] = "Kilobits/Second";
96
- Unit["KILOBYTES"] = "Kilobytes";
97
- Unit["KILOBYTES_PER_SECOND"] = "Kilobytes/Second";
98
- Unit["MEGABITS"] = "Megabits";
99
- Unit["MEGABITS_PER_SECOND"] = "Megabits/Second";
100
- Unit["MEGABYTES"] = "Megabytes";
101
- Unit["MEGABYTES_PER_SECOND"] = "Megabytes/Second";
102
- Unit["MICROSECONDS"] = "Microseconds";
103
- Unit["MILLISECONDS"] = "Milliseconds";
104
- Unit["NONE"] = "None";
105
- Unit["PERCENT"] = "Percent";
106
- Unit["SECONDS"] = "Seconds";
107
- Unit["TERABITS"] = "Terabits";
108
- Unit["TERABITS_PER_SECOND"] = "Terabits/Second";
109
- Unit["TERABYTES"] = "Terabytes";
110
- Unit["TERABYTES_PER_SECOND"] = "Terabytes/Second";
111
- })(Unit || (Unit = {}));
63
+ export const UpdateStatus = {
64
+ FAILED: "FAILED",
65
+ PENDING: "PENDING",
66
+ SUCCESS: "SUCCESS",
67
+ };
68
+ export const EnvironmentStatus = {
69
+ AVAILABLE: "AVAILABLE",
70
+ CREATE_FAILED: "CREATE_FAILED",
71
+ CREATING: "CREATING",
72
+ DELETED: "DELETED",
73
+ DELETING: "DELETING",
74
+ UNAVAILABLE: "UNAVAILABLE",
75
+ UPDATE_FAILED: "UPDATE_FAILED",
76
+ UPDATING: "UPDATING",
77
+ };
78
+ export const Unit = {
79
+ BITS: "Bits",
80
+ BITS_PER_SECOND: "Bits/Second",
81
+ BYTES: "Bytes",
82
+ BYTES_PER_SECOND: "Bytes/Second",
83
+ COUNT: "Count",
84
+ COUNT_PER_SECOND: "Count/Second",
85
+ GIGABITS: "Gigabits",
86
+ GIGABITS_PER_SECOND: "Gigabits/Second",
87
+ GIGABYTES: "Gigabytes",
88
+ GIGABYTES_PER_SECOND: "Gigabytes/Second",
89
+ KILOBITS: "Kilobits",
90
+ KILOBITS_PER_SECOND: "Kilobits/Second",
91
+ KILOBYTES: "Kilobytes",
92
+ KILOBYTES_PER_SECOND: "Kilobytes/Second",
93
+ MEGABITS: "Megabits",
94
+ MEGABITS_PER_SECOND: "Megabits/Second",
95
+ MEGABYTES: "Megabytes",
96
+ MEGABYTES_PER_SECOND: "Megabytes/Second",
97
+ MICROSECONDS: "Microseconds",
98
+ MILLISECONDS: "Milliseconds",
99
+ NONE: "None",
100
+ PERCENT: "Percent",
101
+ SECONDS: "Seconds",
102
+ TERABITS: "Terabits",
103
+ TERABITS_PER_SECOND: "Terabits/Second",
104
+ TERABYTES: "Terabytes",
105
+ TERABYTES_PER_SECOND: "Terabytes/Second",
106
+ };
112
107
  export const CreateCliTokenResponseFilterSensitiveLog = (obj) => ({
113
108
  ...obj,
114
109
  ...(obj.CliToken && { CliToken: SENSITIVE_STRING }),
@@ -58,6 +58,10 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
58
58
  ...(input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path }),
59
59
  ...(input.Schedulers != null && { Schedulers: input.Schedulers }),
60
60
  ...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
61
+ ...(input.StartupScriptS3ObjectVersion != null && {
62
+ StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
63
+ }),
64
+ ...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
61
65
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
62
66
  ...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
63
67
  ...(input.WeeklyMaintenanceWindowStart != null && {
@@ -318,6 +322,10 @@ export const serializeAws_restJson1UpdateEnvironmentCommand = async (input, cont
318
322
  ...(input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path }),
319
323
  ...(input.Schedulers != null && { Schedulers: input.Schedulers }),
320
324
  ...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
325
+ ...(input.StartupScriptS3ObjectVersion != null && {
326
+ StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
327
+ }),
328
+ ...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
321
329
  ...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
322
330
  ...(input.WeeklyMaintenanceWindowStart != null && {
323
331
  WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
@@ -953,6 +961,8 @@ const deserializeAws_restJson1Environment = (output, context) => {
953
961
  Schedulers: __expectInt32(output.Schedulers),
954
962
  ServiceRoleArn: __expectString(output.ServiceRoleArn),
955
963
  SourceBucketArn: __expectString(output.SourceBucketArn),
964
+ StartupScriptS3ObjectVersion: __expectString(output.StartupScriptS3ObjectVersion),
965
+ StartupScriptS3Path: __expectString(output.StartupScriptS3Path),
956
966
  Status: __expectString(output.Status),
957
967
  Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
958
968
  WebserverAccessMode: __expectString(output.WebserverAccessMode),
@@ -43,6 +43,8 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentOutput,
43
43
  * PluginsS3ObjectVersion: "STRING_VALUE",
44
44
  * RequirementsS3Path: "STRING_VALUE",
45
45
  * RequirementsS3ObjectVersion: "STRING_VALUE",
46
+ * StartupScriptS3Path: "STRING_VALUE",
47
+ * StartupScriptS3ObjectVersion: "STRING_VALUE",
46
48
  * AirflowConfigurationOptions: { // AirflowConfigurationOptions
47
49
  * "<keys>": "STRING_VALUE",
48
50
  * },
@@ -36,6 +36,8 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentOutput,
36
36
  * PluginsS3ObjectVersion: "STRING_VALUE",
37
37
  * RequirementsS3Path: "STRING_VALUE",
38
38
  * RequirementsS3ObjectVersion: "STRING_VALUE",
39
+ * StartupScriptS3Path: "STRING_VALUE",
40
+ * StartupScriptS3ObjectVersion: "STRING_VALUE",
39
41
  * AirflowConfigurationOptions: { // AirflowConfigurationOptions
40
42
  * "<keys>": "STRING_VALUE",
41
43
  * },
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region: string;
15
+ Region?: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;