@aws-sdk/client-mwaa 3.35.0 → 3.36.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.
Files changed (126) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/MWAA.js +0 -1
  3. package/dist-cjs/MWAAClient.js +0 -1
  4. package/dist-cjs/commands/CreateCliTokenCommand.js +0 -1
  5. package/dist-cjs/commands/CreateEnvironmentCommand.js +0 -1
  6. package/dist-cjs/commands/CreateWebLoginTokenCommand.js +0 -1
  7. package/dist-cjs/commands/DeleteEnvironmentCommand.js +0 -1
  8. package/dist-cjs/commands/GetEnvironmentCommand.js +0 -1
  9. package/dist-cjs/commands/ListEnvironmentsCommand.js +0 -1
  10. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  11. package/dist-cjs/commands/PublishMetricsCommand.js +0 -1
  12. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  13. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  14. package/dist-cjs/commands/UpdateEnvironmentCommand.js +0 -1
  15. package/dist-cjs/endpoints.js +0 -1
  16. package/dist-cjs/index.js +0 -1
  17. package/dist-cjs/models/index.js +0 -1
  18. package/dist-cjs/models/models_0.js +0 -1
  19. package/dist-cjs/pagination/Interfaces.js +0 -1
  20. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +0 -1
  21. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  22. package/dist-cjs/runtimeConfig.browser.js +2 -3
  23. package/dist-cjs/runtimeConfig.js +3 -4
  24. package/dist-cjs/runtimeConfig.native.js +0 -1
  25. package/dist-cjs/runtimeConfig.shared.js +0 -1
  26. package/dist-es/MWAA.js +0 -1
  27. package/dist-es/MWAAClient.js +0 -1
  28. package/dist-es/commands/CreateCliTokenCommand.js +0 -1
  29. package/dist-es/commands/CreateEnvironmentCommand.js +0 -1
  30. package/dist-es/commands/CreateWebLoginTokenCommand.js +0 -1
  31. package/dist-es/commands/DeleteEnvironmentCommand.js +0 -1
  32. package/dist-es/commands/GetEnvironmentCommand.js +0 -1
  33. package/dist-es/commands/ListEnvironmentsCommand.js +0 -1
  34. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  35. package/dist-es/commands/PublishMetricsCommand.js +0 -1
  36. package/dist-es/commands/TagResourceCommand.js +0 -1
  37. package/dist-es/commands/UntagResourceCommand.js +0 -1
  38. package/dist-es/commands/UpdateEnvironmentCommand.js +0 -1
  39. package/dist-es/endpoints.js +0 -1
  40. package/dist-es/index.js +0 -1
  41. package/dist-es/models/index.js +0 -1
  42. package/dist-es/models/models_0.js +0 -1
  43. package/dist-es/pagination/Interfaces.js +0 -1
  44. package/dist-es/pagination/ListEnvironmentsPaginator.js +0 -1
  45. package/dist-es/protocols/Aws_restJson1.js +0 -1
  46. package/dist-es/runtimeConfig.browser.js +1 -2
  47. package/dist-es/runtimeConfig.js +2 -3
  48. package/dist-es/runtimeConfig.native.js +0 -1
  49. package/dist-es/runtimeConfig.shared.js +0 -1
  50. package/package.json +33 -30
  51. package/dist-cjs/MWAA.js.map +0 -1
  52. package/dist-cjs/MWAAClient.js.map +0 -1
  53. package/dist-cjs/commands/CreateCliTokenCommand.js.map +0 -1
  54. package/dist-cjs/commands/CreateEnvironmentCommand.js.map +0 -1
  55. package/dist-cjs/commands/CreateWebLoginTokenCommand.js.map +0 -1
  56. package/dist-cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
  57. package/dist-cjs/commands/GetEnvironmentCommand.js.map +0 -1
  58. package/dist-cjs/commands/ListEnvironmentsCommand.js.map +0 -1
  59. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  60. package/dist-cjs/commands/PublishMetricsCommand.js.map +0 -1
  61. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  62. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  63. package/dist-cjs/commands/UpdateEnvironmentCommand.js.map +0 -1
  64. package/dist-cjs/endpoints.js.map +0 -1
  65. package/dist-cjs/index.js.map +0 -1
  66. package/dist-cjs/models/index.js.map +0 -1
  67. package/dist-cjs/models/models_0.js.map +0 -1
  68. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  69. package/dist-cjs/pagination/ListEnvironmentsPaginator.js.map +0 -1
  70. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  71. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  72. package/dist-cjs/runtimeConfig.js.map +0 -1
  73. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  74. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  75. package/dist-es/MWAA.js.map +0 -1
  76. package/dist-es/MWAAClient.js.map +0 -1
  77. package/dist-es/commands/CreateCliTokenCommand.js.map +0 -1
  78. package/dist-es/commands/CreateEnvironmentCommand.js.map +0 -1
  79. package/dist-es/commands/CreateWebLoginTokenCommand.js.map +0 -1
  80. package/dist-es/commands/DeleteEnvironmentCommand.js.map +0 -1
  81. package/dist-es/commands/GetEnvironmentCommand.js.map +0 -1
  82. package/dist-es/commands/ListEnvironmentsCommand.js.map +0 -1
  83. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  84. package/dist-es/commands/PublishMetricsCommand.js.map +0 -1
  85. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  86. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  87. package/dist-es/commands/UpdateEnvironmentCommand.js.map +0 -1
  88. package/dist-es/endpoints.js.map +0 -1
  89. package/dist-es/index.js.map +0 -1
  90. package/dist-es/models/index.js.map +0 -1
  91. package/dist-es/models/models_0.js.map +0 -1
  92. package/dist-es/pagination/Interfaces.js.map +0 -1
  93. package/dist-es/pagination/ListEnvironmentsPaginator.js.map +0 -1
  94. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  95. package/dist-es/runtimeConfig.browser.js.map +0 -1
  96. package/dist-es/runtimeConfig.js.map +0 -1
  97. package/dist-es/runtimeConfig.native.js.map +0 -1
  98. package/dist-es/runtimeConfig.shared.js.map +0 -1
  99. package/jest.config.js +0 -4
  100. package/src/MWAA.ts +0 -406
  101. package/src/MWAAClient.ts +0 -276
  102. package/src/commands/CreateCliTokenCommand.ts +0 -95
  103. package/src/commands/CreateEnvironmentCommand.ts +0 -95
  104. package/src/commands/CreateWebLoginTokenCommand.ts +0 -95
  105. package/src/commands/DeleteEnvironmentCommand.ts +0 -95
  106. package/src/commands/GetEnvironmentCommand.ts +0 -95
  107. package/src/commands/ListEnvironmentsCommand.ts +0 -95
  108. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  109. package/src/commands/PublishMetricsCommand.ts +0 -95
  110. package/src/commands/TagResourceCommand.ts +0 -95
  111. package/src/commands/UntagResourceCommand.ts +0 -95
  112. package/src/commands/UpdateEnvironmentCommand.ts +0 -95
  113. package/src/endpoints.ts +0 -57
  114. package/src/index.ts +0 -16
  115. package/src/models/index.ts +0 -1
  116. package/src/models/models_0.ts +0 -1206
  117. package/src/pagination/Interfaces.ts +0 -8
  118. package/src/pagination/ListEnvironmentsPaginator.ts +0 -59
  119. package/src/protocols/Aws_restJson1.ts +0 -1772
  120. package/src/runtimeConfig.browser.ts +0 -41
  121. package/src/runtimeConfig.native.ts +0 -17
  122. package/src/runtimeConfig.shared.ts +0 -17
  123. package/src/runtimeConfig.ts +0 -46
  124. package/tsconfig.es.json +0 -10
  125. package/tsconfig.json +0 -33
  126. package/tsconfig.types.json +0 -9
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { PublishMetricsInput, PublishMetricsOutput } from "../models/models_0";
15
- import { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
16
- import {
17
- deserializeAws_restJson1PublishMetricsCommand,
18
- serializeAws_restJson1PublishMetricsCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface PublishMetricsCommandInput extends PublishMetricsInput {}
22
- export interface PublishMetricsCommandOutput extends PublishMetricsOutput, __MetadataBearer {}
23
-
24
- /**
25
- * An operation for publishing metrics from the customers to the Ops plane.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { MWAAClient, PublishMetricsCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
30
- * // const { MWAAClient, PublishMetricsCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
31
- * const client = new MWAAClient(config);
32
- * const command = new PublishMetricsCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link PublishMetricsCommandInput} for command's `input` shape.
37
- * @see {@link PublishMetricsCommandOutput} for command's `response` shape.
38
- * @see {@link MWAAClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class PublishMetricsCommand extends $Command<
42
- PublishMetricsCommandInput,
43
- PublishMetricsCommandOutput,
44
- MWAAClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: PublishMetricsCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: MWAAClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<PublishMetricsCommandInput, PublishMetricsCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "MWAAClient";
69
- const commandName = "PublishMetricsCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: PublishMetricsInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: PublishMetricsOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: PublishMetricsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1PublishMetricsCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PublishMetricsCommandOutput> {
90
- return deserializeAws_restJson1PublishMetricsCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { TagResourceInput, TagResourceOutput } from "../models/models_0";
15
- import { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
16
- import {
17
- deserializeAws_restJson1TagResourceCommand,
18
- serializeAws_restJson1TagResourceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface TagResourceCommandInput extends TagResourceInput {}
22
- export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. </p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { MWAAClient, TagResourceCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
30
- * // const { MWAAClient, TagResourceCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
31
- * const client = new MWAAClient(config);
32
- * const command = new TagResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link TagResourceCommandInput} for command's `input` shape.
37
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
38
- * @see {@link MWAAClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class TagResourceCommand extends $Command<
42
- TagResourceCommandInput,
43
- TagResourceCommandOutput,
44
- MWAAClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: TagResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: MWAAClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "MWAAClient";
69
- const commandName = "TagResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: TagResourceInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: TagResourceOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1TagResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
90
- return deserializeAws_restJson1TagResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UntagResourceInput, UntagResourceOutput } from "../models/models_0";
15
- import { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
16
- import {
17
- deserializeAws_restJson1UntagResourceCommand,
18
- serializeAws_restJson1UntagResourceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface UntagResourceCommandInput extends UntagResourceInput {}
22
- export interface UntagResourceCommandOutput extends UntagResourceOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, <code>"Environment": "Staging"</code>.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { MWAAClient, UntagResourceCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
30
- * // const { MWAAClient, UntagResourceCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
31
- * const client = new MWAAClient(config);
32
- * const command = new UntagResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link UntagResourceCommandInput} for command's `input` shape.
37
- * @see {@link UntagResourceCommandOutput} for command's `response` shape.
38
- * @see {@link MWAAClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class UntagResourceCommand extends $Command<
42
- UntagResourceCommandInput,
43
- UntagResourceCommandOutput,
44
- MWAAClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: UntagResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: MWAAClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "MWAAClient";
69
- const commandName = "UntagResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: UntagResourceInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: UntagResourceOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1UntagResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
90
- return deserializeAws_restJson1UntagResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UpdateEnvironmentInput, UpdateEnvironmentOutput } from "../models/models_0";
15
- import { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
16
- import {
17
- deserializeAws_restJson1UpdateEnvironmentCommand,
18
- serializeAws_restJson1UpdateEnvironmentCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface UpdateEnvironmentCommandInput extends UpdateEnvironmentInput {}
22
- export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { MWAAClient, UpdateEnvironmentCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
30
- * // const { MWAAClient, UpdateEnvironmentCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
31
- * const client = new MWAAClient(config);
32
- * const command = new UpdateEnvironmentCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link UpdateEnvironmentCommandInput} for command's `input` shape.
37
- * @see {@link UpdateEnvironmentCommandOutput} for command's `response` shape.
38
- * @see {@link MWAAClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class UpdateEnvironmentCommand extends $Command<
42
- UpdateEnvironmentCommandInput,
43
- UpdateEnvironmentCommandOutput,
44
- MWAAClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: UpdateEnvironmentCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: MWAAClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "MWAAClient";
69
- const commandName = "UpdateEnvironmentCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: UpdateEnvironmentInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: UpdateEnvironmentOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: UpdateEnvironmentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1UpdateEnvironmentCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateEnvironmentCommandOutput> {
90
- return deserializeAws_restJson1UpdateEnvironmentCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "airflow.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "airflow.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "airflow.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "airflow.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "airflow.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "airflow",
55
- regionHash,
56
- partitionHash,
57
- });
package/src/index.ts DELETED
@@ -1,16 +0,0 @@
1
- export * from "./MWAAClient";
2
- export * from "./MWAA";
3
- export * from "./commands/CreateCliTokenCommand";
4
- export * from "./commands/CreateEnvironmentCommand";
5
- export * from "./commands/CreateWebLoginTokenCommand";
6
- export * from "./commands/DeleteEnvironmentCommand";
7
- export * from "./commands/GetEnvironmentCommand";
8
- export * from "./commands/ListEnvironmentsCommand";
9
- export * from "./pagination/ListEnvironmentsPaginator";
10
- export * from "./commands/ListTagsForResourceCommand";
11
- export * from "./commands/PublishMetricsCommand";
12
- export * from "./commands/TagResourceCommand";
13
- export * from "./commands/UntagResourceCommand";
14
- export * from "./commands/UpdateEnvironmentCommand";
15
- export * from "./pagination/Interfaces";
16
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";