@aws-sdk/client-mwaa-serverless 3.933.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 (131) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +325 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1324 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +56 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +41 -0
  11. package/dist-es/MWAAServerless.js +37 -0
  12. package/dist-es/MWAAServerlessClient.js +50 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/CreateWorkflowCommand.js +16 -0
  16. package/dist-es/commands/DeleteWorkflowCommand.js +16 -0
  17. package/dist-es/commands/GetTaskInstanceCommand.js +16 -0
  18. package/dist-es/commands/GetWorkflowCommand.js +16 -0
  19. package/dist-es/commands/GetWorkflowRunCommand.js +16 -0
  20. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  21. package/dist-es/commands/ListTaskInstancesCommand.js +16 -0
  22. package/dist-es/commands/ListWorkflowRunsCommand.js +16 -0
  23. package/dist-es/commands/ListWorkflowVersionsCommand.js +16 -0
  24. package/dist-es/commands/ListWorkflowsCommand.js +16 -0
  25. package/dist-es/commands/StartWorkflowRunCommand.js +16 -0
  26. package/dist-es/commands/StopWorkflowRunCommand.js +16 -0
  27. package/dist-es/commands/TagResourceCommand.js +16 -0
  28. package/dist-es/commands/UntagResourceCommand.js +16 -0
  29. package/dist-es/commands/UpdateWorkflowCommand.js +16 -0
  30. package/dist-es/commands/index.js +15 -0
  31. package/dist-es/endpoint/EndpointParameters.js +11 -0
  32. package/dist-es/endpoint/endpointResolver.js +14 -0
  33. package/dist-es/endpoint/ruleset.js +4 -0
  34. package/dist-es/extensionConfiguration.js +1 -0
  35. package/dist-es/index.js +6 -0
  36. package/dist-es/models/MWAAServerlessServiceException.js +8 -0
  37. package/dist-es/models/index.js +1 -0
  38. package/dist-es/models/models_0.js +193 -0
  39. package/dist-es/pagination/Interfaces.js +1 -0
  40. package/dist-es/pagination/ListTaskInstancesPaginator.js +4 -0
  41. package/dist-es/pagination/ListWorkflowRunsPaginator.js +4 -0
  42. package/dist-es/pagination/ListWorkflowVersionsPaginator.js +4 -0
  43. package/dist-es/pagination/ListWorkflowsPaginator.js +4 -0
  44. package/dist-es/pagination/index.js +5 -0
  45. package/dist-es/runtimeConfig.browser.js +34 -0
  46. package/dist-es/runtimeConfig.js +51 -0
  47. package/dist-es/runtimeConfig.native.js +11 -0
  48. package/dist-es/runtimeConfig.shared.js +37 -0
  49. package/dist-es/runtimeExtensions.js +9 -0
  50. package/dist-es/schemas/schemas_0.js +771 -0
  51. package/dist-types/MWAAServerless.d.ts +116 -0
  52. package/dist-types/MWAAServerlessClient.d.ts +211 -0
  53. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  54. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  55. package/dist-types/commands/CreateWorkflowCommand.d.ts +131 -0
  56. package/dist-types/commands/DeleteWorkflowCommand.d.ts +94 -0
  57. package/dist-types/commands/GetTaskInstanceCommand.d.ts +110 -0
  58. package/dist-types/commands/GetWorkflowCommand.d.ts +126 -0
  59. package/dist-types/commands/GetWorkflowRunCommand.d.ts +115 -0
  60. package/dist-types/commands/ListTagsForResourceCommand.d.ts +94 -0
  61. package/dist-types/commands/ListTaskInstancesCommand.d.ts +103 -0
  62. package/dist-types/commands/ListWorkflowRunsCommand.d.ts +106 -0
  63. package/dist-types/commands/ListWorkflowVersionsCommand.d.ts +109 -0
  64. package/dist-types/commands/ListWorkflowsCommand.d.ts +102 -0
  65. package/dist-types/commands/StartWorkflowRunCommand.d.ts +105 -0
  66. package/dist-types/commands/StopWorkflowRunCommand.d.ts +96 -0
  67. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  68. package/dist-types/commands/UntagResourceCommand.d.ts +93 -0
  69. package/dist-types/commands/UpdateWorkflowCommand.d.ts +123 -0
  70. package/dist-types/commands/index.d.ts +15 -0
  71. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  72. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  73. package/dist-types/endpoint/ruleset.d.ts +2 -0
  74. package/dist-types/extensionConfiguration.d.ts +9 -0
  75. package/dist-types/index.d.ts +14 -0
  76. package/dist-types/models/MWAAServerlessServiceException.d.ts +14 -0
  77. package/dist-types/models/index.d.ts +1 -0
  78. package/dist-types/models/models_0.d.ts +1363 -0
  79. package/dist-types/pagination/Interfaces.d.ts +8 -0
  80. package/dist-types/pagination/ListTaskInstancesPaginator.d.ts +7 -0
  81. package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +7 -0
  82. package/dist-types/pagination/ListWorkflowVersionsPaginator.d.ts +7 -0
  83. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +7 -0
  84. package/dist-types/pagination/index.d.ts +5 -0
  85. package/dist-types/runtimeConfig.browser.d.ts +51 -0
  86. package/dist-types/runtimeConfig.d.ts +51 -0
  87. package/dist-types/runtimeConfig.native.d.ts +50 -0
  88. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  89. package/dist-types/runtimeExtensions.d.ts +17 -0
  90. package/dist-types/schemas/schemas_0.d.ts +81 -0
  91. package/dist-types/ts3.4/MWAAServerless.d.ts +263 -0
  92. package/dist-types/ts3.4/MWAAServerlessClient.d.ts +214 -0
  93. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  94. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  95. package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +50 -0
  96. package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +50 -0
  97. package/dist-types/ts3.4/commands/GetTaskInstanceCommand.d.ts +50 -0
  98. package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +47 -0
  99. package/dist-types/ts3.4/commands/GetWorkflowRunCommand.d.ts +50 -0
  100. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  101. package/dist-types/ts3.4/commands/ListTaskInstancesCommand.d.ts +51 -0
  102. package/dist-types/ts3.4/commands/ListWorkflowRunsCommand.d.ts +50 -0
  103. package/dist-types/ts3.4/commands/ListWorkflowVersionsCommand.d.ts +51 -0
  104. package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +50 -0
  105. package/dist-types/ts3.4/commands/StartWorkflowRunCommand.d.ts +50 -0
  106. package/dist-types/ts3.4/commands/StopWorkflowRunCommand.d.ts +50 -0
  107. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  108. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  109. package/dist-types/ts3.4/commands/UpdateWorkflowCommand.d.ts +50 -0
  110. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  111. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  112. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  113. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  114. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  115. package/dist-types/ts3.4/index.d.ts +9 -0
  116. package/dist-types/ts3.4/models/MWAAServerlessServiceException.d.ts +9 -0
  117. package/dist-types/ts3.4/models/index.d.ts +1 -0
  118. package/dist-types/ts3.4/models/models_0.d.ts +396 -0
  119. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  120. package/dist-types/ts3.4/pagination/ListTaskInstancesPaginator.d.ts +11 -0
  121. package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +11 -0
  122. package/dist-types/ts3.4/pagination/ListWorkflowVersionsPaginator.d.ts +11 -0
  123. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +11 -0
  124. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  125. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  126. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  127. package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
  128. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +25 -0
  129. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  130. package/dist-types/ts3.4/schemas/schemas_0.d.ts +87 -0
  131. package/package.json +99 -0
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const config_resolver_1 = require("@smithy/config-resolver");
9
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
12
+ const util_retry_1 = require("@smithy/util-retry");
13
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
15
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
+ const getRuntimeConfig = (config) => {
17
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
19
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
+ return {
21
+ ...clientSharedValues,
22
+ ...config,
23
+ runtime: "browser",
24
+ defaultsMode,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
37
+ };
38
+ };
39
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const core_1 = require("@aws-sdk/core");
7
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
8
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
+ const config_resolver_1 = require("@smithy/config-resolver");
10
+ const hash_node_1 = require("@smithy/hash-node");
11
+ const middleware_retry_1 = require("@smithy/middleware-retry");
12
+ const node_config_provider_1 = require("@smithy/node-config-provider");
13
+ const node_http_handler_1 = require("@smithy/node-http-handler");
14
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
15
+ const util_retry_1 = require("@smithy/util-retry");
16
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
+ const smithy_client_1 = require("@smithy/smithy-client");
18
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
+ const smithy_client_2 = require("@smithy/smithy-client");
20
+ const getRuntimeConfig = (config) => {
21
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ const loaderConfig = {
27
+ profile: config?.profile,
28
+ logger: clientSharedValues.logger,
29
+ };
30
+ return {
31
+ ...clientSharedValues,
32
+ ...config,
33
+ runtime: "node",
34
+ defaultsMode,
35
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
36
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
37
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
38
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
39
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
40
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
41
+ region: config?.region ??
42
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
43
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
44
+ retryMode: config?.retryMode ??
45
+ (0, node_config_provider_1.loadConfig)({
46
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
47
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
48
+ }, config),
49
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
50
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
51
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
52
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
53
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
54
+ };
55
+ };
56
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const url_parser_1 = require("@smithy/url-parser");
8
+ const util_base64_1 = require("@smithy/util-base64");
9
+ const util_utf8_1 = require("@smithy/util-utf8");
10
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const getRuntimeConfig = (config) => {
13
+ return {
14
+ apiVersion: "2024-07-26",
15
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
16
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
17
+ disableHostPrefix: config?.disableHostPrefix ?? false,
18
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
19
+ extensions: config?.extensions ?? [],
20
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultMWAAServerlessHttpAuthSchemeProvider,
21
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
22
+ {
23
+ schemeId: "aws.auth#sigv4",
24
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
25
+ signer: new core_1.AwsSdkSigV4Signer(),
26
+ },
27
+ ],
28
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_0Protocol({
31
+ defaultNamespace: "com.amazonaws.mwaaserverless",
32
+ serviceTarget: "AmazonMWAAServerless",
33
+ awsQueryCompatible: false,
34
+ }),
35
+ serviceId: config?.serviceId ?? "MWAA Serverless",
36
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
37
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
39
+ };
40
+ };
41
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,37 @@
1
+ import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { CreateWorkflowCommand, } from "./commands/CreateWorkflowCommand";
3
+ import { DeleteWorkflowCommand, } from "./commands/DeleteWorkflowCommand";
4
+ import { GetTaskInstanceCommand, } from "./commands/GetTaskInstanceCommand";
5
+ import { GetWorkflowCommand } from "./commands/GetWorkflowCommand";
6
+ import { GetWorkflowRunCommand, } from "./commands/GetWorkflowRunCommand";
7
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
8
+ import { ListTaskInstancesCommand, } from "./commands/ListTaskInstancesCommand";
9
+ import { ListWorkflowRunsCommand, } from "./commands/ListWorkflowRunsCommand";
10
+ import { ListWorkflowsCommand, } from "./commands/ListWorkflowsCommand";
11
+ import { ListWorkflowVersionsCommand, } from "./commands/ListWorkflowVersionsCommand";
12
+ import { StartWorkflowRunCommand, } from "./commands/StartWorkflowRunCommand";
13
+ import { StopWorkflowRunCommand, } from "./commands/StopWorkflowRunCommand";
14
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
15
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
16
+ import { UpdateWorkflowCommand, } from "./commands/UpdateWorkflowCommand";
17
+ import { MWAAServerlessClient } from "./MWAAServerlessClient";
18
+ const commands = {
19
+ CreateWorkflowCommand,
20
+ DeleteWorkflowCommand,
21
+ GetTaskInstanceCommand,
22
+ GetWorkflowCommand,
23
+ GetWorkflowRunCommand,
24
+ ListTagsForResourceCommand,
25
+ ListTaskInstancesCommand,
26
+ ListWorkflowRunsCommand,
27
+ ListWorkflowsCommand,
28
+ ListWorkflowVersionsCommand,
29
+ StartWorkflowRunCommand,
30
+ StopWorkflowRunCommand,
31
+ TagResourceCommand,
32
+ UntagResourceCommand,
33
+ UpdateWorkflowCommand,
34
+ };
35
+ export class MWAAServerless extends MWAAServerlessClient {
36
+ }
37
+ createAggregatedClient(commands, MWAAServerless);
@@ -0,0 +1,50 @@
1
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
+ import { resolveRegionConfig } from "@smithy/config-resolver";
6
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
9
+ import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
10
+ import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
11
+ import { Client as __Client, } from "@smithy/smithy-client";
12
+ import { defaultMWAAServerlessHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
13
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
14
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
15
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
16
+ export { __Client };
17
+ export class MWAAServerlessClient extends __Client {
18
+ config;
19
+ constructor(...[configuration]) {
20
+ const _config_0 = __getRuntimeConfig(configuration || {});
21
+ super(_config_0);
22
+ this.initConfig = _config_0;
23
+ const _config_1 = resolveClientEndpointParameters(_config_0);
24
+ const _config_2 = resolveUserAgentConfig(_config_1);
25
+ const _config_3 = resolveRetryConfig(_config_2);
26
+ const _config_4 = resolveRegionConfig(_config_3);
27
+ const _config_5 = resolveHostHeaderConfig(_config_4);
28
+ const _config_6 = resolveEndpointConfig(_config_5);
29
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
30
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
31
+ this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
33
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
34
+ this.middlewareStack.use(getRetryPlugin(this.config));
35
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
36
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
37
+ this.middlewareStack.use(getLoggerPlugin(this.config));
38
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
39
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
40
+ httpAuthSchemeParametersProvider: defaultMWAAServerlessHttpAuthSchemeParametersProvider,
41
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
42
+ "aws.auth#sigv4": config.credentials,
43
+ }),
44
+ }));
45
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
46
+ }
47
+ destroy() {
48
+ super.destroy();
49
+ }
50
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,41 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
+ export const defaultMWAAServerlessHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: (await normalizeProvider(config.region)()) ||
7
+ (() => {
8
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
+ })(),
10
+ };
11
+ };
12
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
13
+ return {
14
+ schemeId: "aws.auth#sigv4",
15
+ signingProperties: {
16
+ name: "airflow-serverless",
17
+ region: authParameters.region,
18
+ },
19
+ propertiesExtractor: (config, context) => ({
20
+ signingProperties: {
21
+ config,
22
+ context,
23
+ },
24
+ }),
25
+ };
26
+ }
27
+ export const defaultMWAAServerlessHttpAuthSchemeProvider = (authParameters) => {
28
+ const options = [];
29
+ switch (authParameters.operation) {
30
+ default: {
31
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
32
+ }
33
+ }
34
+ return options;
35
+ };
36
+ export const resolveHttpAuthSchemeConfig = (config) => {
37
+ const config_0 = resolveAwsSdkSigV4Config(config);
38
+ return Object.assign(config_0, {
39
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
40
+ });
41
+ };
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateWorkflow } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateWorkflowCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "CreateWorkflow", {})
13
+ .n("MWAAServerlessClient", "CreateWorkflowCommand")
14
+ .sc(CreateWorkflow)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteWorkflow } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteWorkflowCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "DeleteWorkflow", {})
13
+ .n("MWAAServerlessClient", "DeleteWorkflowCommand")
14
+ .sc(DeleteWorkflow)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetTaskInstance } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetTaskInstanceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "GetTaskInstance", {})
13
+ .n("MWAAServerlessClient", "GetTaskInstanceCommand")
14
+ .sc(GetTaskInstance)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetWorkflow } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetWorkflowCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "GetWorkflow", {})
13
+ .n("MWAAServerlessClient", "GetWorkflowCommand")
14
+ .sc(GetWorkflow)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetWorkflowRun } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetWorkflowRunCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "GetWorkflowRun", {})
13
+ .n("MWAAServerlessClient", "GetWorkflowRunCommand")
14
+ .sc(GetWorkflowRun)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListTagsForResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "ListTagsForResource", {})
13
+ .n("MWAAServerlessClient", "ListTagsForResourceCommand")
14
+ .sc(ListTagsForResource)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListTaskInstances } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListTaskInstancesCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "ListTaskInstances", {})
13
+ .n("MWAAServerlessClient", "ListTaskInstancesCommand")
14
+ .sc(ListTaskInstances)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListWorkflowRuns } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListWorkflowRunsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "ListWorkflowRuns", {})
13
+ .n("MWAAServerlessClient", "ListWorkflowRunsCommand")
14
+ .sc(ListWorkflowRuns)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListWorkflowVersions } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListWorkflowVersionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "ListWorkflowVersions", {})
13
+ .n("MWAAServerlessClient", "ListWorkflowVersionsCommand")
14
+ .sc(ListWorkflowVersions)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListWorkflows } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListWorkflowsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "ListWorkflows", {})
13
+ .n("MWAAServerlessClient", "ListWorkflowsCommand")
14
+ .sc(ListWorkflows)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { StartWorkflowRun } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class StartWorkflowRunCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "StartWorkflowRun", {})
13
+ .n("MWAAServerlessClient", "StartWorkflowRunCommand")
14
+ .sc(StartWorkflowRun)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { StopWorkflowRun } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class StopWorkflowRunCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "StopWorkflowRun", {})
13
+ .n("MWAAServerlessClient", "StopWorkflowRunCommand")
14
+ .sc(StopWorkflowRun)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { TagResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class TagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "TagResource", {})
13
+ .n("MWAAServerlessClient", "TagResourceCommand")
14
+ .sc(TagResource)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UntagResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UntagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "UntagResource", {})
13
+ .n("MWAAServerlessClient", "UntagResourceCommand")
14
+ .sc(UntagResource)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateWorkflow } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateWorkflowCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonMWAAServerless", "UpdateWorkflow", {})
13
+ .n("MWAAServerlessClient", "UpdateWorkflowCommand")
14
+ .sc(UpdateWorkflow)
15
+ .build() {
16
+ }
@@ -0,0 +1,15 @@
1
+ export * from "./CreateWorkflowCommand";
2
+ export * from "./DeleteWorkflowCommand";
3
+ export * from "./GetTaskInstanceCommand";
4
+ export * from "./GetWorkflowCommand";
5
+ export * from "./GetWorkflowRunCommand";
6
+ export * from "./ListTagsForResourceCommand";
7
+ export * from "./ListTaskInstancesCommand";
8
+ export * from "./ListWorkflowRunsCommand";
9
+ export * from "./ListWorkflowVersionsCommand";
10
+ export * from "./ListWorkflowsCommand";
11
+ export * from "./StartWorkflowRunCommand";
12
+ export * from "./StopWorkflowRunCommand";
13
+ export * from "./TagResourceCommand";
14
+ export * from "./UntagResourceCommand";
15
+ export * from "./UpdateWorkflowCommand";
@@ -0,0 +1,11 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4
+ defaultSigningName: "airflow-serverless",
5
+ });
6
+ };
7
+ export const commonParams = {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ };
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
+ import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1,4 @@
1
+ const l = "ref";
2
+ const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "string" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://airflow-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://airflow-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};