@aws-sdk/client-panorama 3.511.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 +120 -62
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-es/PanoramaClient.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/PanoramaClient.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 +2 -0
- package/dist-types/ts3.4/PanoramaClient.d.ts +11 -9
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -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 +7 -7
|
@@ -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.defaultPanoramaHttpAuthSchemeProvider = exports.defaultPanoramaHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
+
const defaultPanoramaHttpAuthSchemeParametersProvider = 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.defaultPanoramaHttpAuthSchemeParametersProvider = defaultPanoramaHttpAuthSchemeParametersProvider;
|
|
16
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
|
+
return {
|
|
18
|
+
schemeId: "aws.auth#sigv4",
|
|
19
|
+
signingProperties: {
|
|
20
|
+
name: "panorama",
|
|
21
|
+
region: authParameters.region,
|
|
22
|
+
},
|
|
23
|
+
propertiesExtractor: (config, context) => ({
|
|
24
|
+
signingProperties: {
|
|
25
|
+
config,
|
|
26
|
+
context,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const defaultPanoramaHttpAuthSchemeProvider = (authParameters) => {
|
|
32
|
+
const options = [];
|
|
33
|
+
switch (authParameters.operation) {
|
|
34
|
+
default: {
|
|
35
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return options;
|
|
39
|
+
};
|
|
40
|
+
exports.defaultPanoramaHttpAuthSchemeProvider = defaultPanoramaHttpAuthSchemeProvider;
|
|
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
|
@@ -112,13 +112,14 @@ module.exports = __toCommonJS(src_exports);
|
|
|
112
112
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
113
113
|
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
114
114
|
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
115
|
-
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
116
115
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
117
116
|
var import_config_resolver = require("@smithy/config-resolver");
|
|
117
|
+
var import_core = require("@smithy/core");
|
|
118
118
|
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
119
119
|
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
120
120
|
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
121
121
|
|
|
122
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
122
123
|
|
|
123
124
|
// src/endpoint/EndpointParameters.ts
|
|
124
125
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
@@ -143,19 +144,62 @@ var import_runtimeConfig = require("././runtimeConfig");
|
|
|
143
144
|
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
144
145
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
145
146
|
var import_smithy_client = require("@smithy/smithy-client");
|
|
147
|
+
|
|
148
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
149
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
150
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
151
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
152
|
+
let _credentials = runtimeConfig.credentials;
|
|
153
|
+
return {
|
|
154
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
155
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
156
|
+
if (index === -1) {
|
|
157
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
158
|
+
} else {
|
|
159
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
httpAuthSchemes() {
|
|
163
|
+
return _httpAuthSchemes;
|
|
164
|
+
},
|
|
165
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
166
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
167
|
+
},
|
|
168
|
+
httpAuthSchemeProvider() {
|
|
169
|
+
return _httpAuthSchemeProvider;
|
|
170
|
+
},
|
|
171
|
+
setCredentials(credentials) {
|
|
172
|
+
_credentials = credentials;
|
|
173
|
+
},
|
|
174
|
+
credentials() {
|
|
175
|
+
return _credentials;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
179
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
180
|
+
return {
|
|
181
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
182
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
183
|
+
credentials: config.credentials()
|
|
184
|
+
};
|
|
185
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
186
|
+
|
|
187
|
+
// src/runtimeExtensions.ts
|
|
146
188
|
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
147
189
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
148
190
|
const extensionConfiguration = {
|
|
149
191
|
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
150
192
|
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
151
|
-
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
193
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
194
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
|
152
195
|
};
|
|
153
196
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
154
197
|
return {
|
|
155
198
|
...runtimeConfig,
|
|
156
199
|
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
157
200
|
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
158
|
-
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
201
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
202
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
159
203
|
};
|
|
160
204
|
}, "resolveRuntimeExtensions");
|
|
161
205
|
|
|
@@ -168,8 +212,8 @@ var _PanoramaClient = class _PanoramaClient extends import_smithy_client.Client
|
|
|
168
212
|
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
169
213
|
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
170
214
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
171
|
-
const _config_6 = (0,
|
|
172
|
-
const _config_7 = (0,
|
|
215
|
+
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
|
216
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
173
217
|
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
174
218
|
super(_config_8);
|
|
175
219
|
this.config = _config_8;
|
|
@@ -178,8 +222,14 @@ var _PanoramaClient = class _PanoramaClient extends import_smithy_client.Client
|
|
|
178
222
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
179
223
|
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
180
224
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
181
|
-
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
182
225
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
226
|
+
this.middlewareStack.use(
|
|
227
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
228
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
229
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
|
230
|
+
})
|
|
231
|
+
);
|
|
232
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
183
233
|
}
|
|
184
234
|
/**
|
|
185
235
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -189,6 +239,14 @@ var _PanoramaClient = class _PanoramaClient extends import_smithy_client.Client
|
|
|
189
239
|
destroy() {
|
|
190
240
|
super.destroy();
|
|
191
241
|
}
|
|
242
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
243
|
+
return import_httpAuthSchemeProvider.defaultPanoramaHttpAuthSchemeParametersProvider;
|
|
244
|
+
}
|
|
245
|
+
getIdentityProviderConfigProvider() {
|
|
246
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
247
|
+
"aws.auth#sigv4": config.credentials
|
|
248
|
+
});
|
|
249
|
+
}
|
|
192
250
|
};
|
|
193
251
|
__name(_PanoramaClient, "PanoramaClient");
|
|
194
252
|
var PanoramaClient = _PanoramaClient;
|
|
@@ -203,8 +261,8 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
203
261
|
var import_types = require("@smithy/types");
|
|
204
262
|
|
|
205
263
|
// src/protocols/Aws_restJson1.ts
|
|
206
|
-
var
|
|
207
|
-
|
|
264
|
+
var import_core2 = require("@aws-sdk/core");
|
|
265
|
+
|
|
208
266
|
|
|
209
267
|
|
|
210
268
|
// src/models/models_0.ts
|
|
@@ -542,7 +600,7 @@ var DescribeNodeFromTemplateJobResponseFilterSensitiveLog = /* @__PURE__ */ __na
|
|
|
542
600
|
|
|
543
601
|
// src/protocols/Aws_restJson1.ts
|
|
544
602
|
var se_CreateApplicationInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
545
|
-
const b = (0,
|
|
603
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
546
604
|
const headers = {
|
|
547
605
|
"content-type": "application/json"
|
|
548
606
|
};
|
|
@@ -564,7 +622,7 @@ var se_CreateApplicationInstanceCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
564
622
|
return b.build();
|
|
565
623
|
}, "se_CreateApplicationInstanceCommand");
|
|
566
624
|
var se_CreateJobForDevicesCommand = /* @__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
|
};
|
|
@@ -581,7 +639,7 @@ var se_CreateJobForDevicesCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
581
639
|
return b.build();
|
|
582
640
|
}, "se_CreateJobForDevicesCommand");
|
|
583
641
|
var se_CreateNodeFromTemplateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
584
|
-
const b = (0,
|
|
642
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
585
643
|
const headers = {
|
|
586
644
|
"content-type": "application/json"
|
|
587
645
|
};
|
|
@@ -602,7 +660,7 @@ var se_CreateNodeFromTemplateJobCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
602
660
|
return b.build();
|
|
603
661
|
}, "se_CreateNodeFromTemplateJobCommand");
|
|
604
662
|
var se_CreatePackageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
605
|
-
const b = (0,
|
|
663
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
606
664
|
const headers = {
|
|
607
665
|
"content-type": "application/json"
|
|
608
666
|
};
|
|
@@ -618,7 +676,7 @@ var se_CreatePackageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
618
676
|
return b.build();
|
|
619
677
|
}, "se_CreatePackageCommand");
|
|
620
678
|
var se_CreatePackageImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
621
|
-
const b = (0,
|
|
679
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
622
680
|
const headers = {
|
|
623
681
|
"content-type": "application/json"
|
|
624
682
|
};
|
|
@@ -637,7 +695,7 @@ var se_CreatePackageImportJobCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
637
695
|
return b.build();
|
|
638
696
|
}, "se_CreatePackageImportJobCommand");
|
|
639
697
|
var se_DeleteDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
640
|
-
const b = (0,
|
|
698
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
641
699
|
const headers = {};
|
|
642
700
|
b.bp("/devices/{DeviceId}");
|
|
643
701
|
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
@@ -646,7 +704,7 @@ var se_DeleteDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
646
704
|
return b.build();
|
|
647
705
|
}, "se_DeleteDeviceCommand");
|
|
648
706
|
var se_DeletePackageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
649
|
-
const b = (0,
|
|
707
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
650
708
|
const headers = {};
|
|
651
709
|
b.bp("/packages/{PackageId}");
|
|
652
710
|
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
@@ -658,7 +716,7 @@ var se_DeletePackageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
658
716
|
return b.build();
|
|
659
717
|
}, "se_DeletePackageCommand");
|
|
660
718
|
var se_DeregisterPackageVersionCommand = /* @__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("/packages/{PackageId}/versions/{PackageVersion}/patch/{PatchVersion}");
|
|
664
722
|
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
@@ -673,7 +731,7 @@ var se_DeregisterPackageVersionCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
673
731
|
return b.build();
|
|
674
732
|
}, "se_DeregisterPackageVersionCommand");
|
|
675
733
|
var se_DescribeApplicationInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
676
|
-
const b = (0,
|
|
734
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
677
735
|
const headers = {};
|
|
678
736
|
b.bp("/application-instances/{ApplicationInstanceId}");
|
|
679
737
|
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
@@ -682,7 +740,7 @@ var se_DescribeApplicationInstanceCommand = /* @__PURE__ */ __name(async (input,
|
|
|
682
740
|
return b.build();
|
|
683
741
|
}, "se_DescribeApplicationInstanceCommand");
|
|
684
742
|
var se_DescribeApplicationInstanceDetailsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
685
|
-
const b = (0,
|
|
743
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
686
744
|
const headers = {};
|
|
687
745
|
b.bp("/application-instances/{ApplicationInstanceId}/details");
|
|
688
746
|
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
@@ -691,7 +749,7 @@ var se_DescribeApplicationInstanceDetailsCommand = /* @__PURE__ */ __name(async
|
|
|
691
749
|
return b.build();
|
|
692
750
|
}, "se_DescribeApplicationInstanceDetailsCommand");
|
|
693
751
|
var se_DescribeDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
694
|
-
const b = (0,
|
|
752
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
695
753
|
const headers = {};
|
|
696
754
|
b.bp("/devices/{DeviceId}");
|
|
697
755
|
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
@@ -700,7 +758,7 @@ var se_DescribeDeviceCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
700
758
|
return b.build();
|
|
701
759
|
}, "se_DescribeDeviceCommand");
|
|
702
760
|
var se_DescribeDeviceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
703
|
-
const b = (0,
|
|
761
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
704
762
|
const headers = {};
|
|
705
763
|
b.bp("/jobs/{JobId}");
|
|
706
764
|
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
@@ -709,7 +767,7 @@ var se_DescribeDeviceJobCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
709
767
|
return b.build();
|
|
710
768
|
}, "se_DescribeDeviceJobCommand");
|
|
711
769
|
var se_DescribeNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
712
|
-
const b = (0,
|
|
770
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
713
771
|
const headers = {};
|
|
714
772
|
b.bp("/nodes/{NodeId}");
|
|
715
773
|
b.p("NodeId", () => input.NodeId, "{NodeId}", false);
|
|
@@ -721,7 +779,7 @@ var se_DescribeNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
721
779
|
return b.build();
|
|
722
780
|
}, "se_DescribeNodeCommand");
|
|
723
781
|
var se_DescribeNodeFromTemplateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
724
|
-
const b = (0,
|
|
782
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
725
783
|
const headers = {};
|
|
726
784
|
b.bp("/packages/template-job/{JobId}");
|
|
727
785
|
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
@@ -730,7 +788,7 @@ var se_DescribeNodeFromTemplateJobCommand = /* @__PURE__ */ __name(async (input,
|
|
|
730
788
|
return b.build();
|
|
731
789
|
}, "se_DescribeNodeFromTemplateJobCommand");
|
|
732
790
|
var se_DescribePackageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
733
|
-
const b = (0,
|
|
791
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
734
792
|
const headers = {};
|
|
735
793
|
b.bp("/packages/metadata/{PackageId}");
|
|
736
794
|
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
@@ -739,7 +797,7 @@ var se_DescribePackageCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
739
797
|
return b.build();
|
|
740
798
|
}, "se_DescribePackageCommand");
|
|
741
799
|
var se_DescribePackageImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
742
|
-
const b = (0,
|
|
800
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
743
801
|
const headers = {};
|
|
744
802
|
b.bp("/packages/import-jobs/{JobId}");
|
|
745
803
|
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
@@ -748,7 +806,7 @@ var se_DescribePackageImportJobCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
748
806
|
return b.build();
|
|
749
807
|
}, "se_DescribePackageImportJobCommand");
|
|
750
808
|
var se_DescribePackageVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
751
|
-
const b = (0,
|
|
809
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
752
810
|
const headers = {};
|
|
753
811
|
b.bp("/packages/metadata/{PackageId}/versions/{PackageVersion}");
|
|
754
812
|
b.p("PackageId", () => input.PackageId, "{PackageId}", false);
|
|
@@ -762,7 +820,7 @@ var se_DescribePackageVersionCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
762
820
|
return b.build();
|
|
763
821
|
}, "se_DescribePackageVersionCommand");
|
|
764
822
|
var se_ListApplicationInstanceDependenciesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
765
|
-
const b = (0,
|
|
823
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
766
824
|
const headers = {};
|
|
767
825
|
b.bp("/application-instances/{ApplicationInstanceId}/package-dependencies");
|
|
768
826
|
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
@@ -775,7 +833,7 @@ var se_ListApplicationInstanceDependenciesCommand = /* @__PURE__ */ __name(async
|
|
|
775
833
|
return b.build();
|
|
776
834
|
}, "se_ListApplicationInstanceDependenciesCommand");
|
|
777
835
|
var se_ListApplicationInstanceNodeInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
778
|
-
const b = (0,
|
|
836
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
779
837
|
const headers = {};
|
|
780
838
|
b.bp("/application-instances/{ApplicationInstanceId}/node-instances");
|
|
781
839
|
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
@@ -788,7 +846,7 @@ var se_ListApplicationInstanceNodeInstancesCommand = /* @__PURE__ */ __name(asyn
|
|
|
788
846
|
return b.build();
|
|
789
847
|
}, "se_ListApplicationInstanceNodeInstancesCommand");
|
|
790
848
|
var se_ListApplicationInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
791
|
-
const b = (0,
|
|
849
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
792
850
|
const headers = {};
|
|
793
851
|
b.bp("/application-instances");
|
|
794
852
|
const query = (0, import_smithy_client.map)({
|
|
@@ -802,7 +860,7 @@ var se_ListApplicationInstancesCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
802
860
|
return b.build();
|
|
803
861
|
}, "se_ListApplicationInstancesCommand");
|
|
804
862
|
var se_ListDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
805
|
-
const b = (0,
|
|
863
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
806
864
|
const headers = {};
|
|
807
865
|
b.bp("/devices");
|
|
808
866
|
const query = (0, import_smithy_client.map)({
|
|
@@ -818,7 +876,7 @@ var se_ListDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
818
876
|
return b.build();
|
|
819
877
|
}, "se_ListDevicesCommand");
|
|
820
878
|
var se_ListDevicesJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
821
|
-
const b = (0,
|
|
879
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
822
880
|
const headers = {};
|
|
823
881
|
b.bp("/jobs");
|
|
824
882
|
const query = (0, import_smithy_client.map)({
|
|
@@ -831,7 +889,7 @@ var se_ListDevicesJobsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
831
889
|
return b.build();
|
|
832
890
|
}, "se_ListDevicesJobsCommand");
|
|
833
891
|
var se_ListNodeFromTemplateJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
834
|
-
const b = (0,
|
|
892
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
835
893
|
const headers = {};
|
|
836
894
|
b.bp("/packages/template-job");
|
|
837
895
|
const query = (0, import_smithy_client.map)({
|
|
@@ -843,7 +901,7 @@ var se_ListNodeFromTemplateJobsCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
843
901
|
return b.build();
|
|
844
902
|
}, "se_ListNodeFromTemplateJobsCommand");
|
|
845
903
|
var se_ListNodesCommand = /* @__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("/nodes");
|
|
849
907
|
const query = (0, import_smithy_client.map)({
|
|
@@ -860,7 +918,7 @@ var se_ListNodesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
860
918
|
return b.build();
|
|
861
919
|
}, "se_ListNodesCommand");
|
|
862
920
|
var se_ListPackageImportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
863
|
-
const b = (0,
|
|
921
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
864
922
|
const headers = {};
|
|
865
923
|
b.bp("/packages/import-jobs");
|
|
866
924
|
const query = (0, import_smithy_client.map)({
|
|
@@ -872,7 +930,7 @@ var se_ListPackageImportJobsCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
872
930
|
return b.build();
|
|
873
931
|
}, "se_ListPackageImportJobsCommand");
|
|
874
932
|
var se_ListPackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
875
|
-
const b = (0,
|
|
933
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
876
934
|
const headers = {};
|
|
877
935
|
b.bp("/packages");
|
|
878
936
|
const query = (0, import_smithy_client.map)({
|
|
@@ -884,7 +942,7 @@ var se_ListPackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
884
942
|
return b.build();
|
|
885
943
|
}, "se_ListPackagesCommand");
|
|
886
944
|
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
887
|
-
const b = (0,
|
|
945
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
888
946
|
const headers = {};
|
|
889
947
|
b.bp("/tags/{ResourceArn}");
|
|
890
948
|
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
@@ -893,7 +951,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
893
951
|
return b.build();
|
|
894
952
|
}, "se_ListTagsForResourceCommand");
|
|
895
953
|
var se_ProvisionDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
896
|
-
const b = (0,
|
|
954
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
897
955
|
const headers = {
|
|
898
956
|
"content-type": "application/json"
|
|
899
957
|
};
|
|
@@ -911,7 +969,7 @@ var se_ProvisionDeviceCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
911
969
|
return b.build();
|
|
912
970
|
}, "se_ProvisionDeviceCommand");
|
|
913
971
|
var se_RegisterPackageVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
914
|
-
const b = (0,
|
|
972
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
915
973
|
const headers = {
|
|
916
974
|
"content-type": "application/json"
|
|
917
975
|
};
|
|
@@ -930,7 +988,7 @@ var se_RegisterPackageVersionCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
930
988
|
return b.build();
|
|
931
989
|
}, "se_RegisterPackageVersionCommand");
|
|
932
990
|
var se_RemoveApplicationInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
933
|
-
const b = (0,
|
|
991
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
934
992
|
const headers = {};
|
|
935
993
|
b.bp("/application-instances/{ApplicationInstanceId}");
|
|
936
994
|
b.p("ApplicationInstanceId", () => input.ApplicationInstanceId, "{ApplicationInstanceId}", false);
|
|
@@ -939,7 +997,7 @@ var se_RemoveApplicationInstanceCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
939
997
|
return b.build();
|
|
940
998
|
}, "se_RemoveApplicationInstanceCommand");
|
|
941
999
|
var se_SignalApplicationInstanceNodeInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
942
|
-
const b = (0,
|
|
1000
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
943
1001
|
const headers = {
|
|
944
1002
|
"content-type": "application/json"
|
|
945
1003
|
};
|
|
@@ -955,7 +1013,7 @@ var se_SignalApplicationInstanceNodeInstancesCommand = /* @__PURE__ */ __name(as
|
|
|
955
1013
|
return b.build();
|
|
956
1014
|
}, "se_SignalApplicationInstanceNodeInstancesCommand");
|
|
957
1015
|
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
958
|
-
const b = (0,
|
|
1016
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
959
1017
|
const headers = {
|
|
960
1018
|
"content-type": "application/json"
|
|
961
1019
|
};
|
|
@@ -971,7 +1029,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
971
1029
|
return b.build();
|
|
972
1030
|
}, "se_TagResourceCommand");
|
|
973
1031
|
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
974
|
-
const b = (0,
|
|
1032
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
975
1033
|
const headers = {};
|
|
976
1034
|
b.bp("/tags/{ResourceArn}");
|
|
977
1035
|
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
@@ -986,7 +1044,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
986
1044
|
return b.build();
|
|
987
1045
|
}, "se_UntagResourceCommand");
|
|
988
1046
|
var se_UpdateDeviceMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
989
|
-
const b = (0,
|
|
1047
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
990
1048
|
const headers = {
|
|
991
1049
|
"content-type": "application/json"
|
|
992
1050
|
};
|
|
@@ -1149,8 +1207,8 @@ var de_DescribeApplicationInstanceDetailsCommand = /* @__PURE__ */ __name(async
|
|
|
1149
1207
|
CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1150
1208
|
DefaultRuntimeContextDevice: import_smithy_client.expectString,
|
|
1151
1209
|
Description: import_smithy_client.expectString,
|
|
1152
|
-
ManifestOverridesPayload: (_) => (0, import_smithy_client._json)((0,
|
|
1153
|
-
ManifestPayload: (_) => (0, import_smithy_client._json)((0,
|
|
1210
|
+
ManifestOverridesPayload: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1211
|
+
ManifestPayload: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1154
1212
|
Name: import_smithy_client.expectString
|
|
1155
1213
|
});
|
|
1156
1214
|
Object.assign(contents, doc);
|
|
@@ -2539,40 +2597,40 @@ var Panorama = _Panorama;
|
|
|
2539
2597
|
(0, import_smithy_client.createAggregatedClient)(commands, Panorama);
|
|
2540
2598
|
|
|
2541
2599
|
// src/pagination/ListApplicationInstanceDependenciesPaginator.ts
|
|
2542
|
-
|
|
2543
|
-
var paginateListApplicationInstanceDependencies = (0,
|
|
2600
|
+
|
|
2601
|
+
var paginateListApplicationInstanceDependencies = (0, import_core.createPaginator)(PanoramaClient, ListApplicationInstanceDependenciesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2544
2602
|
|
|
2545
2603
|
// src/pagination/ListApplicationInstanceNodeInstancesPaginator.ts
|
|
2546
|
-
|
|
2547
|
-
var paginateListApplicationInstanceNodeInstances = (0,
|
|
2604
|
+
|
|
2605
|
+
var paginateListApplicationInstanceNodeInstances = (0, import_core.createPaginator)(PanoramaClient, ListApplicationInstanceNodeInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2548
2606
|
|
|
2549
2607
|
// src/pagination/ListApplicationInstancesPaginator.ts
|
|
2550
|
-
|
|
2551
|
-
var paginateListApplicationInstances = (0,
|
|
2608
|
+
|
|
2609
|
+
var paginateListApplicationInstances = (0, import_core.createPaginator)(PanoramaClient, ListApplicationInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2552
2610
|
|
|
2553
2611
|
// src/pagination/ListDevicesJobsPaginator.ts
|
|
2554
|
-
|
|
2555
|
-
var paginateListDevicesJobs = (0,
|
|
2612
|
+
|
|
2613
|
+
var paginateListDevicesJobs = (0, import_core.createPaginator)(PanoramaClient, ListDevicesJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2556
2614
|
|
|
2557
2615
|
// src/pagination/ListDevicesPaginator.ts
|
|
2558
|
-
|
|
2559
|
-
var paginateListDevices = (0,
|
|
2616
|
+
|
|
2617
|
+
var paginateListDevices = (0, import_core.createPaginator)(PanoramaClient, ListDevicesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2560
2618
|
|
|
2561
2619
|
// src/pagination/ListNodeFromTemplateJobsPaginator.ts
|
|
2562
|
-
|
|
2563
|
-
var paginateListNodeFromTemplateJobs = (0,
|
|
2620
|
+
|
|
2621
|
+
var paginateListNodeFromTemplateJobs = (0, import_core.createPaginator)(PanoramaClient, ListNodeFromTemplateJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2564
2622
|
|
|
2565
2623
|
// src/pagination/ListNodesPaginator.ts
|
|
2566
|
-
|
|
2567
|
-
var paginateListNodes = (0,
|
|
2624
|
+
|
|
2625
|
+
var paginateListNodes = (0, import_core.createPaginator)(PanoramaClient, ListNodesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2568
2626
|
|
|
2569
2627
|
// src/pagination/ListPackageImportJobsPaginator.ts
|
|
2570
|
-
|
|
2571
|
-
var paginateListPackageImportJobs = (0,
|
|
2628
|
+
|
|
2629
|
+
var paginateListPackageImportJobs = (0, import_core.createPaginator)(PanoramaClient, ListPackageImportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2572
2630
|
|
|
2573
2631
|
// src/pagination/ListPackagesPaginator.ts
|
|
2574
|
-
|
|
2575
|
-
var paginateListPackages = (0,
|
|
2632
|
+
|
|
2633
|
+
var paginateListPackages = (0, import_core.createPaginator)(PanoramaClient, ListPackagesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2576
2634
|
|
|
2577
2635
|
// src/index.ts
|
|
2578
2636
|
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.defaultPanoramaHttpAuthSchemeProvider,
|
|
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 ?? "Panorama",
|
|
19
29
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
@@ -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 { defaultPanoramaHttpAuthSchemeParametersProvider, 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 PanoramaClient 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 PanoramaClient 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 defaultPanoramaHttpAuthSchemeParametersProvider;
|
|
46
|
+
}
|
|
47
|
+
getIdentityProviderConfigProvider() {
|
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
39
52
|
}
|