@aws-sdk/client-bedrock-agent 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 +124 -66
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-es/BedrockAgentClient.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/BedrockAgentClient.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/BedrockAgentClient.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 +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.defaultBedrockAgentHttpAuthSchemeProvider = exports.defaultBedrockAgentHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
+
const defaultBedrockAgentHttpAuthSchemeParametersProvider = 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.defaultBedrockAgentHttpAuthSchemeParametersProvider = defaultBedrockAgentHttpAuthSchemeParametersProvider;
|
|
16
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
|
+
return {
|
|
18
|
+
schemeId: "aws.auth#sigv4",
|
|
19
|
+
signingProperties: {
|
|
20
|
+
name: "bedrock",
|
|
21
|
+
region: authParameters.region,
|
|
22
|
+
},
|
|
23
|
+
propertiesExtractor: (config, context) => ({
|
|
24
|
+
signingProperties: {
|
|
25
|
+
config,
|
|
26
|
+
context,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const defaultBedrockAgentHttpAuthSchemeProvider = (authParameters) => {
|
|
32
|
+
const options = [];
|
|
33
|
+
switch (authParameters.operation) {
|
|
34
|
+
default: {
|
|
35
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return options;
|
|
39
|
+
};
|
|
40
|
+
exports.defaultBedrockAgentHttpAuthSchemeProvider = defaultBedrockAgentHttpAuthSchemeProvider;
|
|
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
|
@@ -124,13 +124,14 @@ module.exports = __toCommonJS(src_exports);
|
|
|
124
124
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
125
125
|
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
126
126
|
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
127
|
-
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
128
127
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
129
128
|
var import_config_resolver = require("@smithy/config-resolver");
|
|
129
|
+
var import_core = require("@smithy/core");
|
|
130
130
|
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
131
131
|
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
132
132
|
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
133
133
|
|
|
134
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
134
135
|
|
|
135
136
|
// src/endpoint/EndpointParameters.ts
|
|
136
137
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
@@ -155,19 +156,62 @@ var import_runtimeConfig = require("././runtimeConfig");
|
|
|
155
156
|
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
156
157
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
157
158
|
var import_smithy_client = require("@smithy/smithy-client");
|
|
159
|
+
|
|
160
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
161
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
162
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
163
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
164
|
+
let _credentials = runtimeConfig.credentials;
|
|
165
|
+
return {
|
|
166
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
167
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
168
|
+
if (index === -1) {
|
|
169
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
170
|
+
} else {
|
|
171
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
httpAuthSchemes() {
|
|
175
|
+
return _httpAuthSchemes;
|
|
176
|
+
},
|
|
177
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
178
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
179
|
+
},
|
|
180
|
+
httpAuthSchemeProvider() {
|
|
181
|
+
return _httpAuthSchemeProvider;
|
|
182
|
+
},
|
|
183
|
+
setCredentials(credentials) {
|
|
184
|
+
_credentials = credentials;
|
|
185
|
+
},
|
|
186
|
+
credentials() {
|
|
187
|
+
return _credentials;
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
191
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
192
|
+
return {
|
|
193
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
194
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
195
|
+
credentials: config.credentials()
|
|
196
|
+
};
|
|
197
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
198
|
+
|
|
199
|
+
// src/runtimeExtensions.ts
|
|
158
200
|
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
159
201
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
160
202
|
const extensionConfiguration = {
|
|
161
203
|
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
162
204
|
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
163
|
-
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
205
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
206
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
|
164
207
|
};
|
|
165
208
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
166
209
|
return {
|
|
167
210
|
...runtimeConfig,
|
|
168
211
|
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
169
212
|
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
170
|
-
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
213
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
214
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
171
215
|
};
|
|
172
216
|
}, "resolveRuntimeExtensions");
|
|
173
217
|
|
|
@@ -180,8 +224,8 @@ var _BedrockAgentClient = class _BedrockAgentClient extends import_smithy_client
|
|
|
180
224
|
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
181
225
|
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
182
226
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
183
|
-
const _config_6 = (0,
|
|
184
|
-
const _config_7 = (0,
|
|
227
|
+
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
|
228
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
185
229
|
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
186
230
|
super(_config_8);
|
|
187
231
|
this.config = _config_8;
|
|
@@ -190,8 +234,14 @@ var _BedrockAgentClient = class _BedrockAgentClient extends import_smithy_client
|
|
|
190
234
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
191
235
|
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
192
236
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
193
|
-
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
194
237
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
238
|
+
this.middlewareStack.use(
|
|
239
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
240
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
241
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
|
242
|
+
})
|
|
243
|
+
);
|
|
244
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
195
245
|
}
|
|
196
246
|
/**
|
|
197
247
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -201,6 +251,14 @@ var _BedrockAgentClient = class _BedrockAgentClient extends import_smithy_client
|
|
|
201
251
|
destroy() {
|
|
202
252
|
super.destroy();
|
|
203
253
|
}
|
|
254
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
255
|
+
return import_httpAuthSchemeProvider.defaultBedrockAgentHttpAuthSchemeParametersProvider;
|
|
256
|
+
}
|
|
257
|
+
getIdentityProviderConfigProvider() {
|
|
258
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
259
|
+
"aws.auth#sigv4": config.credentials
|
|
260
|
+
});
|
|
261
|
+
}
|
|
204
262
|
};
|
|
205
263
|
__name(_BedrockAgentClient, "BedrockAgentClient");
|
|
206
264
|
var BedrockAgentClient = _BedrockAgentClient;
|
|
@@ -215,8 +273,8 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
215
273
|
var import_types = require("@smithy/types");
|
|
216
274
|
|
|
217
275
|
// src/protocols/Aws_restJson1.ts
|
|
218
|
-
var
|
|
219
|
-
|
|
276
|
+
var import_core2 = require("@aws-sdk/core");
|
|
277
|
+
|
|
220
278
|
|
|
221
279
|
var import_uuid = require("uuid");
|
|
222
280
|
|
|
@@ -540,7 +598,7 @@ var GetAgentVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
540
598
|
|
|
541
599
|
// src/protocols/Aws_restJson1.ts
|
|
542
600
|
var se_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
543
|
-
const b = (0,
|
|
601
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
544
602
|
const headers = {
|
|
545
603
|
"content-type": "application/json"
|
|
546
604
|
};
|
|
@@ -559,7 +617,7 @@ var se_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input,
|
|
|
559
617
|
return b.build();
|
|
560
618
|
}, "se_AssociateAgentKnowledgeBaseCommand");
|
|
561
619
|
var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
562
|
-
const b = (0,
|
|
620
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
563
621
|
const headers = {
|
|
564
622
|
"content-type": "application/json"
|
|
565
623
|
};
|
|
@@ -583,7 +641,7 @@ var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
583
641
|
return b.build();
|
|
584
642
|
}, "se_CreateAgentCommand");
|
|
585
643
|
var se_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
586
|
-
const b = (0,
|
|
644
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
587
645
|
const headers = {
|
|
588
646
|
"content-type": "application/json"
|
|
589
647
|
};
|
|
@@ -606,7 +664,7 @@ var se_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
606
664
|
return b.build();
|
|
607
665
|
}, "se_CreateAgentActionGroupCommand");
|
|
608
666
|
var se_CreateAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
609
|
-
const b = (0,
|
|
667
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
610
668
|
const headers = {
|
|
611
669
|
"content-type": "application/json"
|
|
612
670
|
};
|
|
@@ -626,7 +684,7 @@ var se_CreateAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
626
684
|
return b.build();
|
|
627
685
|
}, "se_CreateAgentAliasCommand");
|
|
628
686
|
var se_CreateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
629
|
-
const b = (0,
|
|
687
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
630
688
|
const headers = {
|
|
631
689
|
"content-type": "application/json"
|
|
632
690
|
};
|
|
@@ -647,7 +705,7 @@ var se_CreateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
647
705
|
return b.build();
|
|
648
706
|
}, "se_CreateDataSourceCommand");
|
|
649
707
|
var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
650
|
-
const b = (0,
|
|
708
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
651
709
|
const headers = {
|
|
652
710
|
"content-type": "application/json"
|
|
653
711
|
};
|
|
@@ -668,7 +726,7 @@ var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
668
726
|
return b.build();
|
|
669
727
|
}, "se_CreateKnowledgeBaseCommand");
|
|
670
728
|
var se_DeleteAgentCommand = /* @__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("/agents/{agentId}");
|
|
674
732
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -680,7 +738,7 @@ var se_DeleteAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
680
738
|
return b.build();
|
|
681
739
|
}, "se_DeleteAgentCommand");
|
|
682
740
|
var se_DeleteAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
683
|
-
const b = (0,
|
|
741
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
684
742
|
const headers = {};
|
|
685
743
|
b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}");
|
|
686
744
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -694,7 +752,7 @@ var se_DeleteAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
694
752
|
return b.build();
|
|
695
753
|
}, "se_DeleteAgentActionGroupCommand");
|
|
696
754
|
var se_DeleteAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
697
|
-
const b = (0,
|
|
755
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
698
756
|
const headers = {};
|
|
699
757
|
b.bp("/agents/{agentId}/agentaliases/{agentAliasId}");
|
|
700
758
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -704,7 +762,7 @@ var se_DeleteAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
704
762
|
return b.build();
|
|
705
763
|
}, "se_DeleteAgentAliasCommand");
|
|
706
764
|
var se_DeleteAgentVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
707
|
-
const b = (0,
|
|
765
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
708
766
|
const headers = {};
|
|
709
767
|
b.bp("/agents/{agentId}/agentversions/{agentVersion}");
|
|
710
768
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -717,7 +775,7 @@ var se_DeleteAgentVersionCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
717
775
|
return b.build();
|
|
718
776
|
}, "se_DeleteAgentVersionCommand");
|
|
719
777
|
var se_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
720
|
-
const b = (0,
|
|
778
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
721
779
|
const headers = {};
|
|
722
780
|
b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}");
|
|
723
781
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -727,7 +785,7 @@ var se_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
727
785
|
return b.build();
|
|
728
786
|
}, "se_DeleteDataSourceCommand");
|
|
729
787
|
var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
730
|
-
const b = (0,
|
|
788
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
731
789
|
const headers = {};
|
|
732
790
|
b.bp("/knowledgebases/{knowledgeBaseId}");
|
|
733
791
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -736,7 +794,7 @@ var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
736
794
|
return b.build();
|
|
737
795
|
}, "se_DeleteKnowledgeBaseCommand");
|
|
738
796
|
var se_DisassociateAgentKnowledgeBaseCommand = /* @__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("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}");
|
|
742
800
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -747,7 +805,7 @@ var se_DisassociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (inp
|
|
|
747
805
|
return b.build();
|
|
748
806
|
}, "se_DisassociateAgentKnowledgeBaseCommand");
|
|
749
807
|
var se_GetAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
750
|
-
const b = (0,
|
|
808
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
751
809
|
const headers = {};
|
|
752
810
|
b.bp("/agents/{agentId}");
|
|
753
811
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -756,7 +814,7 @@ var se_GetAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
756
814
|
return b.build();
|
|
757
815
|
}, "se_GetAgentCommand");
|
|
758
816
|
var se_GetAgentActionGroupCommand = /* @__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("/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}");
|
|
762
820
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -767,7 +825,7 @@ var se_GetAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
767
825
|
return b.build();
|
|
768
826
|
}, "se_GetAgentActionGroupCommand");
|
|
769
827
|
var se_GetAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
770
|
-
const b = (0,
|
|
828
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
771
829
|
const headers = {};
|
|
772
830
|
b.bp("/agents/{agentId}/agentaliases/{agentAliasId}");
|
|
773
831
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -777,7 +835,7 @@ var se_GetAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
777
835
|
return b.build();
|
|
778
836
|
}, "se_GetAgentAliasCommand");
|
|
779
837
|
var se_GetAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
780
|
-
const b = (0,
|
|
838
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
781
839
|
const headers = {};
|
|
782
840
|
b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}");
|
|
783
841
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -788,7 +846,7 @@ var se_GetAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
788
846
|
return b.build();
|
|
789
847
|
}, "se_GetAgentKnowledgeBaseCommand");
|
|
790
848
|
var se_GetAgentVersionCommand = /* @__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("/agents/{agentId}/agentversions/{agentVersion}");
|
|
794
852
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -798,7 +856,7 @@ var se_GetAgentVersionCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
798
856
|
return b.build();
|
|
799
857
|
}, "se_GetAgentVersionCommand");
|
|
800
858
|
var se_GetDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
801
|
-
const b = (0,
|
|
859
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
802
860
|
const headers = {};
|
|
803
861
|
b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}");
|
|
804
862
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -808,7 +866,7 @@ var se_GetDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
808
866
|
return b.build();
|
|
809
867
|
}, "se_GetDataSourceCommand");
|
|
810
868
|
var se_GetIngestionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
811
|
-
const b = (0,
|
|
869
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
812
870
|
const headers = {};
|
|
813
871
|
b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/{ingestionJobId}");
|
|
814
872
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -819,7 +877,7 @@ var se_GetIngestionJobCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
819
877
|
return b.build();
|
|
820
878
|
}, "se_GetIngestionJobCommand");
|
|
821
879
|
var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
822
|
-
const b = (0,
|
|
880
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
823
881
|
const headers = {};
|
|
824
882
|
b.bp("/knowledgebases/{knowledgeBaseId}");
|
|
825
883
|
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
@@ -828,7 +886,7 @@ var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
828
886
|
return b.build();
|
|
829
887
|
}, "se_GetKnowledgeBaseCommand");
|
|
830
888
|
var se_ListAgentActionGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
831
|
-
const b = (0,
|
|
889
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
832
890
|
const headers = {
|
|
833
891
|
"content-type": "application/json"
|
|
834
892
|
};
|
|
@@ -846,7 +904,7 @@ var se_ListAgentActionGroupsCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
846
904
|
return b.build();
|
|
847
905
|
}, "se_ListAgentActionGroupsCommand");
|
|
848
906
|
var se_ListAgentAliasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
849
|
-
const b = (0,
|
|
907
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
850
908
|
const headers = {
|
|
851
909
|
"content-type": "application/json"
|
|
852
910
|
};
|
|
@@ -863,7 +921,7 @@ var se_ListAgentAliasesCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
863
921
|
return b.build();
|
|
864
922
|
}, "se_ListAgentAliasesCommand");
|
|
865
923
|
var se_ListAgentKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
866
|
-
const b = (0,
|
|
924
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
867
925
|
const headers = {
|
|
868
926
|
"content-type": "application/json"
|
|
869
927
|
};
|
|
@@ -881,7 +939,7 @@ var se_ListAgentKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
881
939
|
return b.build();
|
|
882
940
|
}, "se_ListAgentKnowledgeBasesCommand");
|
|
883
941
|
var se_ListAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
884
|
-
const b = (0,
|
|
942
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
885
943
|
const headers = {
|
|
886
944
|
"content-type": "application/json"
|
|
887
945
|
};
|
|
@@ -897,7 +955,7 @@ var se_ListAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
897
955
|
return b.build();
|
|
898
956
|
}, "se_ListAgentsCommand");
|
|
899
957
|
var se_ListAgentVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
900
|
-
const b = (0,
|
|
958
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
901
959
|
const headers = {
|
|
902
960
|
"content-type": "application/json"
|
|
903
961
|
};
|
|
@@ -914,7 +972,7 @@ var se_ListAgentVersionsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
914
972
|
return b.build();
|
|
915
973
|
}, "se_ListAgentVersionsCommand");
|
|
916
974
|
var se_ListDataSourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
917
|
-
const b = (0,
|
|
975
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
918
976
|
const headers = {
|
|
919
977
|
"content-type": "application/json"
|
|
920
978
|
};
|
|
@@ -931,7 +989,7 @@ var se_ListDataSourcesCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
931
989
|
return b.build();
|
|
932
990
|
}, "se_ListDataSourcesCommand");
|
|
933
991
|
var se_ListIngestionJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
934
|
-
const b = (0,
|
|
992
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
935
993
|
const headers = {
|
|
936
994
|
"content-type": "application/json"
|
|
937
995
|
};
|
|
@@ -951,7 +1009,7 @@ var se_ListIngestionJobsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
951
1009
|
return b.build();
|
|
952
1010
|
}, "se_ListIngestionJobsCommand");
|
|
953
1011
|
var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
954
|
-
const b = (0,
|
|
1012
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
955
1013
|
const headers = {
|
|
956
1014
|
"content-type": "application/json"
|
|
957
1015
|
};
|
|
@@ -967,7 +1025,7 @@ var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
967
1025
|
return b.build();
|
|
968
1026
|
}, "se_ListKnowledgeBasesCommand");
|
|
969
1027
|
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
970
|
-
const b = (0,
|
|
1028
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
971
1029
|
const headers = {};
|
|
972
1030
|
b.bp("/tags/{resourceArn}");
|
|
973
1031
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
@@ -976,7 +1034,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
976
1034
|
return b.build();
|
|
977
1035
|
}, "se_ListTagsForResourceCommand");
|
|
978
1036
|
var se_PrepareAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
979
|
-
const b = (0,
|
|
1037
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
980
1038
|
const headers = {};
|
|
981
1039
|
b.bp("/agents/{agentId}");
|
|
982
1040
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
@@ -985,7 +1043,7 @@ var se_PrepareAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
985
1043
|
return b.build();
|
|
986
1044
|
}, "se_PrepareAgentCommand");
|
|
987
1045
|
var se_StartIngestionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
988
|
-
const b = (0,
|
|
1046
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
989
1047
|
const headers = {
|
|
990
1048
|
"content-type": "application/json"
|
|
991
1049
|
};
|
|
@@ -1003,7 +1061,7 @@ var se_StartIngestionJobCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1003
1061
|
return b.build();
|
|
1004
1062
|
}, "se_StartIngestionJobCommand");
|
|
1005
1063
|
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1006
|
-
const b = (0,
|
|
1064
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1007
1065
|
const headers = {
|
|
1008
1066
|
"content-type": "application/json"
|
|
1009
1067
|
};
|
|
@@ -1019,7 +1077,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1019
1077
|
return b.build();
|
|
1020
1078
|
}, "se_TagResourceCommand");
|
|
1021
1079
|
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1022
|
-
const b = (0,
|
|
1080
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1023
1081
|
const headers = {};
|
|
1024
1082
|
b.bp("/tags/{resourceArn}");
|
|
1025
1083
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
@@ -1034,7 +1092,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1034
1092
|
return b.build();
|
|
1035
1093
|
}, "se_UntagResourceCommand");
|
|
1036
1094
|
var se_UpdateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1037
|
-
const b = (0,
|
|
1095
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1038
1096
|
const headers = {
|
|
1039
1097
|
"content-type": "application/json"
|
|
1040
1098
|
};
|
|
@@ -1057,7 +1115,7 @@ var se_UpdateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1057
1115
|
return b.build();
|
|
1058
1116
|
}, "se_UpdateAgentCommand");
|
|
1059
1117
|
var se_UpdateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1060
|
-
const b = (0,
|
|
1118
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1061
1119
|
const headers = {
|
|
1062
1120
|
"content-type": "application/json"
|
|
1063
1121
|
};
|
|
@@ -1080,7 +1138,7 @@ var se_UpdateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
1080
1138
|
return b.build();
|
|
1081
1139
|
}, "se_UpdateAgentActionGroupCommand");
|
|
1082
1140
|
var se_UpdateAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1083
|
-
const b = (0,
|
|
1141
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1084
1142
|
const headers = {
|
|
1085
1143
|
"content-type": "application/json"
|
|
1086
1144
|
};
|
|
@@ -1099,7 +1157,7 @@ var se_UpdateAgentAliasCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1099
1157
|
return b.build();
|
|
1100
1158
|
}, "se_UpdateAgentAliasCommand");
|
|
1101
1159
|
var se_UpdateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1102
|
-
const b = (0,
|
|
1160
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1103
1161
|
const headers = {
|
|
1104
1162
|
"content-type": "application/json"
|
|
1105
1163
|
};
|
|
@@ -1118,7 +1176,7 @@ var se_UpdateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
1118
1176
|
return b.build();
|
|
1119
1177
|
}, "se_UpdateAgentKnowledgeBaseCommand");
|
|
1120
1178
|
var se_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1121
|
-
const b = (0,
|
|
1179
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1122
1180
|
const headers = {
|
|
1123
1181
|
"content-type": "application/json"
|
|
1124
1182
|
};
|
|
@@ -1139,7 +1197,7 @@ var se_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1139
1197
|
return b.build();
|
|
1140
1198
|
}, "se_UpdateDataSourceCommand");
|
|
1141
1199
|
var se_UpdateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1142
|
-
const b = (0,
|
|
1200
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1143
1201
|
const headers = {
|
|
1144
1202
|
"content-type": "application/json"
|
|
1145
1203
|
};
|
|
@@ -1920,13 +1978,13 @@ var de_Agent = /* @__PURE__ */ __name((output, context) => {
|
|
|
1920
1978
|
}, "de_Agent");
|
|
1921
1979
|
var de_AgentActionGroup = /* @__PURE__ */ __name((output, context) => {
|
|
1922
1980
|
return (0, import_smithy_client.take)(output, {
|
|
1923
|
-
actionGroupExecutor: (_) => (0, import_smithy_client._json)((0,
|
|
1981
|
+
actionGroupExecutor: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1924
1982
|
actionGroupId: import_smithy_client.expectString,
|
|
1925
1983
|
actionGroupName: import_smithy_client.expectString,
|
|
1926
1984
|
actionGroupState: import_smithy_client.expectString,
|
|
1927
1985
|
agentId: import_smithy_client.expectString,
|
|
1928
1986
|
agentVersion: import_smithy_client.expectString,
|
|
1929
|
-
apiSchema: (_) => (0, import_smithy_client._json)((0,
|
|
1987
|
+
apiSchema: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1930
1988
|
clientToken: import_smithy_client.expectString,
|
|
1931
1989
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1932
1990
|
description: import_smithy_client.expectString,
|
|
@@ -2954,36 +3012,36 @@ var BedrockAgent = _BedrockAgent;
|
|
|
2954
3012
|
(0, import_smithy_client.createAggregatedClient)(commands, BedrockAgent);
|
|
2955
3013
|
|
|
2956
3014
|
// src/pagination/ListAgentActionGroupsPaginator.ts
|
|
2957
|
-
|
|
2958
|
-
var paginateListAgentActionGroups = (0,
|
|
3015
|
+
|
|
3016
|
+
var paginateListAgentActionGroups = (0, import_core.createPaginator)(BedrockAgentClient, ListAgentActionGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
2959
3017
|
|
|
2960
3018
|
// src/pagination/ListAgentAliasesPaginator.ts
|
|
2961
|
-
|
|
2962
|
-
var paginateListAgentAliases = (0,
|
|
3019
|
+
|
|
3020
|
+
var paginateListAgentAliases = (0, import_core.createPaginator)(BedrockAgentClient, ListAgentAliasesCommand, "nextToken", "nextToken", "maxResults");
|
|
2963
3021
|
|
|
2964
3022
|
// src/pagination/ListAgentKnowledgeBasesPaginator.ts
|
|
2965
|
-
|
|
2966
|
-
var paginateListAgentKnowledgeBases = (0,
|
|
3023
|
+
|
|
3024
|
+
var paginateListAgentKnowledgeBases = (0, import_core.createPaginator)(BedrockAgentClient, ListAgentKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
|
|
2967
3025
|
|
|
2968
3026
|
// src/pagination/ListAgentVersionsPaginator.ts
|
|
2969
|
-
|
|
2970
|
-
var paginateListAgentVersions = (0,
|
|
3027
|
+
|
|
3028
|
+
var paginateListAgentVersions = (0, import_core.createPaginator)(BedrockAgentClient, ListAgentVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2971
3029
|
|
|
2972
3030
|
// src/pagination/ListAgentsPaginator.ts
|
|
2973
|
-
|
|
2974
|
-
var paginateListAgents = (0,
|
|
3031
|
+
|
|
3032
|
+
var paginateListAgents = (0, import_core.createPaginator)(BedrockAgentClient, ListAgentsCommand, "nextToken", "nextToken", "maxResults");
|
|
2975
3033
|
|
|
2976
3034
|
// src/pagination/ListDataSourcesPaginator.ts
|
|
2977
|
-
|
|
2978
|
-
var paginateListDataSources = (0,
|
|
3035
|
+
|
|
3036
|
+
var paginateListDataSources = (0, import_core.createPaginator)(BedrockAgentClient, ListDataSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
2979
3037
|
|
|
2980
3038
|
// src/pagination/ListIngestionJobsPaginator.ts
|
|
2981
|
-
|
|
2982
|
-
var paginateListIngestionJobs = (0,
|
|
3039
|
+
|
|
3040
|
+
var paginateListIngestionJobs = (0, import_core.createPaginator)(BedrockAgentClient, ListIngestionJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
2983
3041
|
|
|
2984
3042
|
// src/pagination/ListKnowledgeBasesPaginator.ts
|
|
2985
|
-
|
|
2986
|
-
var paginateListKnowledgeBases = (0,
|
|
3043
|
+
|
|
3044
|
+
var paginateListKnowledgeBases = (0, import_core.createPaginator)(BedrockAgentClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
|
|
2987
3045
|
|
|
2988
3046
|
// src/index.ts
|
|
2989
3047
|
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.defaultBedrockAgentHttpAuthSchemeProvider,
|
|
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 ?? "Bedrock Agent",
|
|
19
29
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|