@aws-sdk/client-m2 3.509.0 → 3.513.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/auth/httpAuthExtensionConfiguration.js +1 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/index.js +121 -63
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-es/M2Client.js +17 -4
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/M2Client.d.ts +13 -11
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +6 -4
- package/dist-types/runtimeConfig.shared.d.ts +3 -3
- package/dist-types/ts3.4/M2Client.d.ts +11 -9
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +16 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultM2HttpAuthSchemeProvider = exports.defaultM2HttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
+
const defaultM2HttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
|
+
return {
|
|
8
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
10
|
+
(() => {
|
|
11
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
12
|
+
})(),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.defaultM2HttpAuthSchemeParametersProvider = defaultM2HttpAuthSchemeParametersProvider;
|
|
16
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
|
+
return {
|
|
18
|
+
schemeId: "aws.auth#sigv4",
|
|
19
|
+
signingProperties: {
|
|
20
|
+
name: "m2",
|
|
21
|
+
region: authParameters.region,
|
|
22
|
+
},
|
|
23
|
+
propertiesExtractor: (config, context) => ({
|
|
24
|
+
signingProperties: {
|
|
25
|
+
config,
|
|
26
|
+
context,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const defaultM2HttpAuthSchemeProvider = (authParameters) => {
|
|
32
|
+
const options = [];
|
|
33
|
+
switch (authParameters.operation) {
|
|
34
|
+
default: {
|
|
35
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return options;
|
|
39
|
+
};
|
|
40
|
+
exports.defaultM2HttpAuthSchemeProvider = defaultM2HttpAuthSchemeProvider;
|
|
41
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
+
return {
|
|
44
|
+
...config_0,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -102,13 +102,14 @@ module.exports = __toCommonJS(src_exports);
|
|
|
102
102
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
103
103
|
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
104
104
|
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
105
|
-
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
106
105
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
107
106
|
var import_config_resolver = require("@smithy/config-resolver");
|
|
107
|
+
var import_core = require("@smithy/core");
|
|
108
108
|
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
109
109
|
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
110
110
|
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
111
111
|
|
|
112
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
112
113
|
|
|
113
114
|
// src/endpoint/EndpointParameters.ts
|
|
114
115
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
@@ -133,19 +134,62 @@ var import_runtimeConfig = require("././runtimeConfig");
|
|
|
133
134
|
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
134
135
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
135
136
|
var import_smithy_client = require("@smithy/smithy-client");
|
|
137
|
+
|
|
138
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
139
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
140
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
141
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
142
|
+
let _credentials = runtimeConfig.credentials;
|
|
143
|
+
return {
|
|
144
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
145
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
146
|
+
if (index === -1) {
|
|
147
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
148
|
+
} else {
|
|
149
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
httpAuthSchemes() {
|
|
153
|
+
return _httpAuthSchemes;
|
|
154
|
+
},
|
|
155
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
156
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
157
|
+
},
|
|
158
|
+
httpAuthSchemeProvider() {
|
|
159
|
+
return _httpAuthSchemeProvider;
|
|
160
|
+
},
|
|
161
|
+
setCredentials(credentials) {
|
|
162
|
+
_credentials = credentials;
|
|
163
|
+
},
|
|
164
|
+
credentials() {
|
|
165
|
+
return _credentials;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
169
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
170
|
+
return {
|
|
171
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
172
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
173
|
+
credentials: config.credentials()
|
|
174
|
+
};
|
|
175
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
176
|
+
|
|
177
|
+
// src/runtimeExtensions.ts
|
|
136
178
|
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
137
179
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
138
180
|
const extensionConfiguration = {
|
|
139
181
|
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
140
182
|
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
141
|
-
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
183
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
184
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
|
142
185
|
};
|
|
143
186
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
144
187
|
return {
|
|
145
188
|
...runtimeConfig,
|
|
146
189
|
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
147
190
|
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
148
|
-
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
191
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
192
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
149
193
|
};
|
|
150
194
|
}, "resolveRuntimeExtensions");
|
|
151
195
|
|
|
@@ -158,8 +202,8 @@ var _M2Client = class _M2Client extends import_smithy_client.Client {
|
|
|
158
202
|
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
159
203
|
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
160
204
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
161
|
-
const _config_6 = (0,
|
|
162
|
-
const _config_7 = (0,
|
|
205
|
+
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
|
206
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
163
207
|
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
164
208
|
super(_config_8);
|
|
165
209
|
this.config = _config_8;
|
|
@@ -168,8 +212,14 @@ var _M2Client = class _M2Client extends import_smithy_client.Client {
|
|
|
168
212
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
169
213
|
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
170
214
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
171
|
-
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
172
215
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
216
|
+
this.middlewareStack.use(
|
|
217
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
218
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
219
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
|
220
|
+
})
|
|
221
|
+
);
|
|
222
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
173
223
|
}
|
|
174
224
|
/**
|
|
175
225
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -179,6 +229,14 @@ var _M2Client = class _M2Client extends import_smithy_client.Client {
|
|
|
179
229
|
destroy() {
|
|
180
230
|
super.destroy();
|
|
181
231
|
}
|
|
232
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
233
|
+
return import_httpAuthSchemeProvider.defaultM2HttpAuthSchemeParametersProvider;
|
|
234
|
+
}
|
|
235
|
+
getIdentityProviderConfigProvider() {
|
|
236
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
237
|
+
"aws.auth#sigv4": config.credentials
|
|
238
|
+
});
|
|
239
|
+
}
|
|
182
240
|
};
|
|
183
241
|
__name(_M2Client, "M2Client");
|
|
184
242
|
var M2Client = _M2Client;
|
|
@@ -193,8 +251,8 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
193
251
|
var import_types = require("@smithy/types");
|
|
194
252
|
|
|
195
253
|
// src/protocols/Aws_restJson1.ts
|
|
196
|
-
var
|
|
197
|
-
|
|
254
|
+
var import_core2 = require("@aws-sdk/core");
|
|
255
|
+
|
|
198
256
|
|
|
199
257
|
var import_uuid = require("uuid");
|
|
200
258
|
|
|
@@ -554,7 +612,7 @@ var EnvironmentLifecycle = {
|
|
|
554
612
|
|
|
555
613
|
// src/protocols/Aws_restJson1.ts
|
|
556
614
|
var se_CancelBatchJobExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
557
|
-
const b = (0,
|
|
615
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
558
616
|
const headers = {};
|
|
559
617
|
b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/cancel");
|
|
560
618
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -564,7 +622,7 @@ var se_CancelBatchJobExecutionCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
564
622
|
return b.build();
|
|
565
623
|
}, "se_CancelBatchJobExecutionCommand");
|
|
566
624
|
var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
567
|
-
const b = (0,
|
|
625
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
568
626
|
const headers = {
|
|
569
627
|
"content-type": "application/json"
|
|
570
628
|
};
|
|
@@ -586,7 +644,7 @@ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
586
644
|
return b.build();
|
|
587
645
|
}, "se_CreateApplicationCommand");
|
|
588
646
|
var se_CreateDataSetImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
589
|
-
const b = (0,
|
|
647
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
590
648
|
const headers = {
|
|
591
649
|
"content-type": "application/json"
|
|
592
650
|
};
|
|
@@ -603,7 +661,7 @@ var se_CreateDataSetImportTaskCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
603
661
|
return b.build();
|
|
604
662
|
}, "se_CreateDataSetImportTaskCommand");
|
|
605
663
|
var se_CreateDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
606
|
-
const b = (0,
|
|
664
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
607
665
|
const headers = {
|
|
608
666
|
"content-type": "application/json"
|
|
609
667
|
};
|
|
@@ -621,7 +679,7 @@ var se_CreateDeploymentCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
621
679
|
return b.build();
|
|
622
680
|
}, "se_CreateDeploymentCommand");
|
|
623
681
|
var se_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
624
|
-
const b = (0,
|
|
682
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
625
683
|
const headers = {
|
|
626
684
|
"content-type": "application/json"
|
|
627
685
|
};
|
|
@@ -649,7 +707,7 @@ var se_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
649
707
|
return b.build();
|
|
650
708
|
}, "se_CreateEnvironmentCommand");
|
|
651
709
|
var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
652
|
-
const b = (0,
|
|
710
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
653
711
|
const headers = {};
|
|
654
712
|
b.bp("/applications/{applicationId}");
|
|
655
713
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -658,7 +716,7 @@ var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
658
716
|
return b.build();
|
|
659
717
|
}, "se_DeleteApplicationCommand");
|
|
660
718
|
var se_DeleteApplicationFromEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
661
|
-
const b = (0,
|
|
719
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
662
720
|
const headers = {};
|
|
663
721
|
b.bp("/applications/{applicationId}/environment/{environmentId}");
|
|
664
722
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -668,7 +726,7 @@ var se_DeleteApplicationFromEnvironmentCommand = /* @__PURE__ */ __name(async (i
|
|
|
668
726
|
return b.build();
|
|
669
727
|
}, "se_DeleteApplicationFromEnvironmentCommand");
|
|
670
728
|
var se_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
671
|
-
const b = (0,
|
|
729
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
672
730
|
const headers = {};
|
|
673
731
|
b.bp("/environments/{environmentId}");
|
|
674
732
|
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
@@ -677,7 +735,7 @@ var se_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
677
735
|
return b.build();
|
|
678
736
|
}, "se_DeleteEnvironmentCommand");
|
|
679
737
|
var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
680
|
-
const b = (0,
|
|
738
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
681
739
|
const headers = {};
|
|
682
740
|
b.bp("/applications/{applicationId}");
|
|
683
741
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -686,7 +744,7 @@ var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
686
744
|
return b.build();
|
|
687
745
|
}, "se_GetApplicationCommand");
|
|
688
746
|
var se_GetApplicationVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
689
|
-
const b = (0,
|
|
747
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
690
748
|
const headers = {};
|
|
691
749
|
b.bp("/applications/{applicationId}/versions/{applicationVersion}");
|
|
692
750
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -696,7 +754,7 @@ var se_GetApplicationVersionCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
696
754
|
return b.build();
|
|
697
755
|
}, "se_GetApplicationVersionCommand");
|
|
698
756
|
var se_GetBatchJobExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
699
|
-
const b = (0,
|
|
757
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
700
758
|
const headers = {};
|
|
701
759
|
b.bp("/applications/{applicationId}/batch-job-executions/{executionId}");
|
|
702
760
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -706,7 +764,7 @@ var se_GetBatchJobExecutionCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
706
764
|
return b.build();
|
|
707
765
|
}, "se_GetBatchJobExecutionCommand");
|
|
708
766
|
var se_GetDataSetDetailsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
709
|
-
const b = (0,
|
|
767
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
710
768
|
const headers = {};
|
|
711
769
|
b.bp("/applications/{applicationId}/datasets/{dataSetName}");
|
|
712
770
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -716,7 +774,7 @@ var se_GetDataSetDetailsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
716
774
|
return b.build();
|
|
717
775
|
}, "se_GetDataSetDetailsCommand");
|
|
718
776
|
var se_GetDataSetImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
719
|
-
const b = (0,
|
|
777
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
720
778
|
const headers = {};
|
|
721
779
|
b.bp("/applications/{applicationId}/dataset-import-tasks/{taskId}");
|
|
722
780
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -726,7 +784,7 @@ var se_GetDataSetImportTaskCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
726
784
|
return b.build();
|
|
727
785
|
}, "se_GetDataSetImportTaskCommand");
|
|
728
786
|
var se_GetDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
729
|
-
const b = (0,
|
|
787
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
730
788
|
const headers = {};
|
|
731
789
|
b.bp("/applications/{applicationId}/deployments/{deploymentId}");
|
|
732
790
|
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
@@ -736,7 +794,7 @@ var se_GetDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
736
794
|
return b.build();
|
|
737
795
|
}, "se_GetDeploymentCommand");
|
|
738
796
|
var se_GetEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
739
|
-
const b = (0,
|
|
797
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
740
798
|
const headers = {};
|
|
741
799
|
b.bp("/environments/{environmentId}");
|
|
742
800
|
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
@@ -745,7 +803,7 @@ var se_GetEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
745
803
|
return b.build();
|
|
746
804
|
}, "se_GetEnvironmentCommand");
|
|
747
805
|
var se_GetSignedBluinsightsUrlCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
748
|
-
const b = (0,
|
|
806
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
749
807
|
const headers = {
|
|
750
808
|
"content-type": "application/json"
|
|
751
809
|
};
|
|
@@ -756,7 +814,7 @@ var se_GetSignedBluinsightsUrlCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
756
814
|
return b.build();
|
|
757
815
|
}, "se_GetSignedBluinsightsUrlCommand");
|
|
758
816
|
var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
759
|
-
const b = (0,
|
|
817
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
760
818
|
const headers = {};
|
|
761
819
|
b.bp("/applications");
|
|
762
820
|
const query = (0, import_smithy_client.map)({
|
|
@@ -770,7 +828,7 @@ var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
770
828
|
return b.build();
|
|
771
829
|
}, "se_ListApplicationsCommand");
|
|
772
830
|
var se_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
773
|
-
const b = (0,
|
|
831
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
774
832
|
const headers = {};
|
|
775
833
|
b.bp("/applications/{applicationId}/versions");
|
|
776
834
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -783,7 +841,7 @@ var se_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
783
841
|
return b.build();
|
|
784
842
|
}, "se_ListApplicationVersionsCommand");
|
|
785
843
|
var se_ListBatchJobDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
786
|
-
const b = (0,
|
|
844
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
787
845
|
const headers = {};
|
|
788
846
|
b.bp("/applications/{applicationId}/batch-job-definitions");
|
|
789
847
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -797,7 +855,7 @@ var se_ListBatchJobDefinitionsCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
797
855
|
return b.build();
|
|
798
856
|
}, "se_ListBatchJobDefinitionsCommand");
|
|
799
857
|
var se_ListBatchJobExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
800
|
-
const b = (0,
|
|
858
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
801
859
|
const headers = {};
|
|
802
860
|
b.bp("/applications/{applicationId}/batch-job-executions");
|
|
803
861
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -815,7 +873,7 @@ var se_ListBatchJobExecutionsCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
815
873
|
return b.build();
|
|
816
874
|
}, "se_ListBatchJobExecutionsCommand");
|
|
817
875
|
var se_ListDataSetImportHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
818
|
-
const b = (0,
|
|
876
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
819
877
|
const headers = {};
|
|
820
878
|
b.bp("/applications/{applicationId}/dataset-import-tasks");
|
|
821
879
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -828,7 +886,7 @@ var se_ListDataSetImportHistoryCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
828
886
|
return b.build();
|
|
829
887
|
}, "se_ListDataSetImportHistoryCommand");
|
|
830
888
|
var se_ListDataSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
831
|
-
const b = (0,
|
|
889
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
832
890
|
const headers = {};
|
|
833
891
|
b.bp("/applications/{applicationId}/datasets");
|
|
834
892
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -843,7 +901,7 @@ var se_ListDataSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
843
901
|
return b.build();
|
|
844
902
|
}, "se_ListDataSetsCommand");
|
|
845
903
|
var se_ListDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
846
|
-
const b = (0,
|
|
904
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
847
905
|
const headers = {};
|
|
848
906
|
b.bp("/applications/{applicationId}/deployments");
|
|
849
907
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -856,7 +914,7 @@ var se_ListDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
856
914
|
return b.build();
|
|
857
915
|
}, "se_ListDeploymentsCommand");
|
|
858
916
|
var se_ListEngineVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
859
|
-
const b = (0,
|
|
917
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
860
918
|
const headers = {};
|
|
861
919
|
b.bp("/engine-versions");
|
|
862
920
|
const query = (0, import_smithy_client.map)({
|
|
@@ -869,7 +927,7 @@ var se_ListEngineVersionsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
869
927
|
return b.build();
|
|
870
928
|
}, "se_ListEngineVersionsCommand");
|
|
871
929
|
var se_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
872
|
-
const b = (0,
|
|
930
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
873
931
|
const headers = {};
|
|
874
932
|
b.bp("/environments");
|
|
875
933
|
const query = (0, import_smithy_client.map)({
|
|
@@ -883,7 +941,7 @@ var se_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
883
941
|
return b.build();
|
|
884
942
|
}, "se_ListEnvironmentsCommand");
|
|
885
943
|
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
886
|
-
const b = (0,
|
|
944
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
887
945
|
const headers = {};
|
|
888
946
|
b.bp("/tags/{resourceArn}");
|
|
889
947
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
@@ -892,7 +950,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
892
950
|
return b.build();
|
|
893
951
|
}, "se_ListTagsForResourceCommand");
|
|
894
952
|
var se_StartApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
895
|
-
const b = (0,
|
|
953
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
896
954
|
const headers = {};
|
|
897
955
|
b.bp("/applications/{applicationId}/start");
|
|
898
956
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
@@ -901,7 +959,7 @@ var se_StartApplicationCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
901
959
|
return b.build();
|
|
902
960
|
}, "se_StartApplicationCommand");
|
|
903
961
|
var se_StartBatchJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
904
|
-
const b = (0,
|
|
962
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
905
963
|
const headers = {
|
|
906
964
|
"content-type": "application/json"
|
|
907
965
|
};
|
|
@@ -918,7 +976,7 @@ var se_StartBatchJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
918
976
|
return b.build();
|
|
919
977
|
}, "se_StartBatchJobCommand");
|
|
920
978
|
var se_StopApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
921
|
-
const b = (0,
|
|
979
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
922
980
|
const headers = {
|
|
923
981
|
"content-type": "application/json"
|
|
924
982
|
};
|
|
@@ -934,7 +992,7 @@ var se_StopApplicationCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
934
992
|
return b.build();
|
|
935
993
|
}, "se_StopApplicationCommand");
|
|
936
994
|
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
937
|
-
const b = (0,
|
|
995
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
938
996
|
const headers = {
|
|
939
997
|
"content-type": "application/json"
|
|
940
998
|
};
|
|
@@ -950,7 +1008,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
950
1008
|
return b.build();
|
|
951
1009
|
}, "se_TagResourceCommand");
|
|
952
1010
|
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
953
|
-
const b = (0,
|
|
1011
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
954
1012
|
const headers = {};
|
|
955
1013
|
b.bp("/tags/{resourceArn}");
|
|
956
1014
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
@@ -965,7 +1023,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
965
1023
|
return b.build();
|
|
966
1024
|
}, "se_UntagResourceCommand");
|
|
967
1025
|
var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
968
|
-
const b = (0,
|
|
1026
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
969
1027
|
const headers = {
|
|
970
1028
|
"content-type": "application/json"
|
|
971
1029
|
};
|
|
@@ -983,7 +1041,7 @@ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
983
1041
|
return b.build();
|
|
984
1042
|
}, "se_UpdateApplicationCommand");
|
|
985
1043
|
var se_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
986
|
-
const b = (0,
|
|
1044
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
987
1045
|
const headers = {
|
|
988
1046
|
"content-type": "application/json"
|
|
989
1047
|
};
|
|
@@ -1164,7 +1222,7 @@ var de_GetBatchJobExecutionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1164
1222
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1165
1223
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1166
1224
|
applicationId: import_smithy_client.expectString,
|
|
1167
|
-
batchJobIdentifier: (_) => (0, import_smithy_client._json)((0,
|
|
1225
|
+
batchJobIdentifier: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1168
1226
|
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1169
1227
|
executionId: import_smithy_client.expectString,
|
|
1170
1228
|
jobId: import_smithy_client.expectString,
|
|
@@ -1191,7 +1249,7 @@ var de_GetDataSetDetailsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1191
1249
|
blocksize: import_smithy_client.expectInt32,
|
|
1192
1250
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1193
1251
|
dataSetName: import_smithy_client.expectString,
|
|
1194
|
-
dataSetOrg: (_) => (0, import_smithy_client._json)((0,
|
|
1252
|
+
dataSetOrg: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1195
1253
|
fileSize: import_smithy_client.expectLong,
|
|
1196
1254
|
lastReferencedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1197
1255
|
lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
@@ -1758,7 +1816,7 @@ var de_ApplicationVersionSummaryList = /* @__PURE__ */ __name((output, context)
|
|
|
1758
1816
|
var de_BatchJobExecutionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1759
1817
|
return (0, import_smithy_client.take)(output, {
|
|
1760
1818
|
applicationId: import_smithy_client.expectString,
|
|
1761
|
-
batchJobIdentifier: (_) => (0, import_smithy_client._json)((0,
|
|
1819
|
+
batchJobIdentifier: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1762
1820
|
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1763
1821
|
executionId: import_smithy_client.expectString,
|
|
1764
1822
|
jobId: import_smithy_client.expectString,
|
|
@@ -1865,7 +1923,7 @@ var de_StorageConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
|
1865
1923
|
}, "de_StorageConfiguration");
|
|
1866
1924
|
var de_StorageConfigurationList = /* @__PURE__ */ __name((output, context) => {
|
|
1867
1925
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1868
|
-
return de_StorageConfiguration((0,
|
|
1926
|
+
return de_StorageConfiguration((0, import_core2.awsExpectUnion)(entry), context);
|
|
1869
1927
|
});
|
|
1870
1928
|
return retVal;
|
|
1871
1929
|
}, "de_StorageConfigurationList");
|
|
@@ -2532,40 +2590,40 @@ var M2 = _M2;
|
|
|
2532
2590
|
(0, import_smithy_client.createAggregatedClient)(commands, M2);
|
|
2533
2591
|
|
|
2534
2592
|
// src/pagination/ListApplicationVersionsPaginator.ts
|
|
2535
|
-
|
|
2536
|
-
var paginateListApplicationVersions = (0,
|
|
2593
|
+
|
|
2594
|
+
var paginateListApplicationVersions = (0, import_core.createPaginator)(M2Client, ListApplicationVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2537
2595
|
|
|
2538
2596
|
// src/pagination/ListApplicationsPaginator.ts
|
|
2539
|
-
|
|
2540
|
-
var paginateListApplications = (0,
|
|
2597
|
+
|
|
2598
|
+
var paginateListApplications = (0, import_core.createPaginator)(M2Client, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
|
|
2541
2599
|
|
|
2542
2600
|
// src/pagination/ListBatchJobDefinitionsPaginator.ts
|
|
2543
|
-
|
|
2544
|
-
var paginateListBatchJobDefinitions = (0,
|
|
2601
|
+
|
|
2602
|
+
var paginateListBatchJobDefinitions = (0, import_core.createPaginator)(M2Client, ListBatchJobDefinitionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2545
2603
|
|
|
2546
2604
|
// src/pagination/ListBatchJobExecutionsPaginator.ts
|
|
2547
|
-
|
|
2548
|
-
var paginateListBatchJobExecutions = (0,
|
|
2605
|
+
|
|
2606
|
+
var paginateListBatchJobExecutions = (0, import_core.createPaginator)(M2Client, ListBatchJobExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2549
2607
|
|
|
2550
2608
|
// src/pagination/ListDataSetImportHistoryPaginator.ts
|
|
2551
|
-
|
|
2552
|
-
var paginateListDataSetImportHistory = (0,
|
|
2609
|
+
|
|
2610
|
+
var paginateListDataSetImportHistory = (0, import_core.createPaginator)(M2Client, ListDataSetImportHistoryCommand, "nextToken", "nextToken", "maxResults");
|
|
2553
2611
|
|
|
2554
2612
|
// src/pagination/ListDataSetsPaginator.ts
|
|
2555
|
-
|
|
2556
|
-
var paginateListDataSets = (0,
|
|
2613
|
+
|
|
2614
|
+
var paginateListDataSets = (0, import_core.createPaginator)(M2Client, ListDataSetsCommand, "nextToken", "nextToken", "maxResults");
|
|
2557
2615
|
|
|
2558
2616
|
// src/pagination/ListDeploymentsPaginator.ts
|
|
2559
|
-
|
|
2560
|
-
var paginateListDeployments = (0,
|
|
2617
|
+
|
|
2618
|
+
var paginateListDeployments = (0, import_core.createPaginator)(M2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2561
2619
|
|
|
2562
2620
|
// src/pagination/ListEngineVersionsPaginator.ts
|
|
2563
|
-
|
|
2564
|
-
var paginateListEngineVersions = (0,
|
|
2621
|
+
|
|
2622
|
+
var paginateListEngineVersions = (0, import_core.createPaginator)(M2Client, ListEngineVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2565
2623
|
|
|
2566
2624
|
// src/pagination/ListEnvironmentsPaginator.ts
|
|
2567
|
-
|
|
2568
|
-
var paginateListEnvironments = (0,
|
|
2625
|
+
|
|
2626
|
+
var paginateListEnvironments = (0, import_core.createPaginator)(M2Client, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2569
2627
|
|
|
2570
2628
|
// src/index.ts
|
|
2571
2629
|
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
4
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
6
|
const url_parser_1 = require("@smithy/url-parser");
|
|
6
7
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
8
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
9
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
8
10
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
11
|
const getRuntimeConfig = (config) => {
|
|
10
12
|
return {
|
|
@@ -14,6 +16,14 @@ const getRuntimeConfig = (config) => {
|
|
|
14
16
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
17
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
18
|
extensions: config?.extensions ?? [],
|
|
19
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultM2HttpAuthSchemeProvider,
|
|
20
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
21
|
+
{
|
|
22
|
+
schemeId: "aws.auth#sigv4",
|
|
23
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
17
27
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
28
|
serviceId: config?.serviceId ?? "m2",
|
|
19
29
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
package/dist-es/M2Client.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
2
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
3
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
-
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
5
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
6
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
7
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
8
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
9
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
10
10
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
11
|
+
import { defaultM2HttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
11
12
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
13
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
@@ -20,8 +21,8 @@ export class M2Client extends __Client {
|
|
|
20
21
|
const _config_3 = resolveEndpointConfig(_config_2);
|
|
21
22
|
const _config_4 = resolveRetryConfig(_config_3);
|
|
22
23
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
23
|
-
const _config_6 =
|
|
24
|
-
const _config_7 =
|
|
24
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
25
26
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
26
27
|
super(_config_8);
|
|
27
28
|
this.config = _config_8;
|
|
@@ -30,10 +31,22 @@ export class M2Client extends __Client {
|
|
|
30
31
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
32
33
|
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
33
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
34
34
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
36
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
37
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
|
38
|
+
}));
|
|
39
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
35
40
|
}
|
|
36
41
|
destroy() {
|
|
37
42
|
super.destroy();
|
|
38
43
|
}
|
|
44
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
+
return defaultM2HttpAuthSchemeParametersProvider;
|
|
46
|
+
}
|
|
47
|
+
getIdentityProviderConfigProvider() {
|
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
39
52
|
}
|