@aws-sdk/client-bedrock-agentcore-control 3.893.0 → 3.894.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist-cjs/index.js +5139 -11
  2. package/package.json +6 -6
  3. package/dist-cjs/BedrockAgentCoreControl.js +0 -119
  4. package/dist-cjs/BedrockAgentCoreControlClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateAgentRuntimeCommand.js +0 -27
  7. package/dist-cjs/commands/CreateAgentRuntimeEndpointCommand.js +0 -27
  8. package/dist-cjs/commands/CreateApiKeyCredentialProviderCommand.js +0 -27
  9. package/dist-cjs/commands/CreateBrowserCommand.js +0 -27
  10. package/dist-cjs/commands/CreateCodeInterpreterCommand.js +0 -27
  11. package/dist-cjs/commands/CreateGatewayCommand.js +0 -27
  12. package/dist-cjs/commands/CreateGatewayTargetCommand.js +0 -27
  13. package/dist-cjs/commands/CreateMemoryCommand.js +0 -27
  14. package/dist-cjs/commands/CreateOauth2CredentialProviderCommand.js +0 -27
  15. package/dist-cjs/commands/CreateWorkloadIdentityCommand.js +0 -26
  16. package/dist-cjs/commands/DeleteAgentRuntimeCommand.js +0 -26
  17. package/dist-cjs/commands/DeleteAgentRuntimeEndpointCommand.js +0 -27
  18. package/dist-cjs/commands/DeleteApiKeyCredentialProviderCommand.js +0 -26
  19. package/dist-cjs/commands/DeleteBrowserCommand.js +0 -26
  20. package/dist-cjs/commands/DeleteCodeInterpreterCommand.js +0 -26
  21. package/dist-cjs/commands/DeleteGatewayCommand.js +0 -26
  22. package/dist-cjs/commands/DeleteGatewayTargetCommand.js +0 -26
  23. package/dist-cjs/commands/DeleteMemoryCommand.js +0 -26
  24. package/dist-cjs/commands/DeleteOauth2CredentialProviderCommand.js +0 -26
  25. package/dist-cjs/commands/DeleteWorkloadIdentityCommand.js +0 -26
  26. package/dist-cjs/commands/GetAgentRuntimeCommand.js +0 -27
  27. package/dist-cjs/commands/GetAgentRuntimeEndpointCommand.js +0 -27
  28. package/dist-cjs/commands/GetApiKeyCredentialProviderCommand.js +0 -26
  29. package/dist-cjs/commands/GetBrowserCommand.js +0 -27
  30. package/dist-cjs/commands/GetCodeInterpreterCommand.js +0 -27
  31. package/dist-cjs/commands/GetGatewayCommand.js +0 -27
  32. package/dist-cjs/commands/GetGatewayTargetCommand.js +0 -27
  33. package/dist-cjs/commands/GetMemoryCommand.js +0 -27
  34. package/dist-cjs/commands/GetOauth2CredentialProviderCommand.js +0 -26
  35. package/dist-cjs/commands/GetTokenVaultCommand.js +0 -26
  36. package/dist-cjs/commands/GetWorkloadIdentityCommand.js +0 -26
  37. package/dist-cjs/commands/ListAgentRuntimeEndpointsCommand.js +0 -27
  38. package/dist-cjs/commands/ListAgentRuntimeVersionsCommand.js +0 -27
  39. package/dist-cjs/commands/ListAgentRuntimesCommand.js +0 -27
  40. package/dist-cjs/commands/ListApiKeyCredentialProvidersCommand.js +0 -26
  41. package/dist-cjs/commands/ListBrowsersCommand.js +0 -27
  42. package/dist-cjs/commands/ListCodeInterpretersCommand.js +0 -27
  43. package/dist-cjs/commands/ListGatewayTargetsCommand.js +0 -27
  44. package/dist-cjs/commands/ListGatewaysCommand.js +0 -27
  45. package/dist-cjs/commands/ListMemoriesCommand.js +0 -26
  46. package/dist-cjs/commands/ListOauth2CredentialProvidersCommand.js +0 -26
  47. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  48. package/dist-cjs/commands/ListWorkloadIdentitiesCommand.js +0 -26
  49. package/dist-cjs/commands/SetTokenVaultCMKCommand.js +0 -26
  50. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  51. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  52. package/dist-cjs/commands/UpdateAgentRuntimeCommand.js +0 -27
  53. package/dist-cjs/commands/UpdateAgentRuntimeEndpointCommand.js +0 -27
  54. package/dist-cjs/commands/UpdateApiKeyCredentialProviderCommand.js +0 -27
  55. package/dist-cjs/commands/UpdateGatewayCommand.js +0 -27
  56. package/dist-cjs/commands/UpdateGatewayTargetCommand.js +0 -27
  57. package/dist-cjs/commands/UpdateMemoryCommand.js +0 -27
  58. package/dist-cjs/commands/UpdateOauth2CredentialProviderCommand.js +0 -27
  59. package/dist-cjs/commands/UpdateWorkloadIdentityCommand.js +0 -26
  60. package/dist-cjs/commands/index.js +0 -57
  61. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  62. package/dist-cjs/extensionConfiguration.js +0 -2
  63. package/dist-cjs/models/BedrockAgentCoreControlServiceException.js +0 -12
  64. package/dist-cjs/models/index.js +0 -4
  65. package/dist-cjs/models/models_0.js +0 -1228
  66. package/dist-cjs/pagination/Interfaces.js +0 -2
  67. package/dist-cjs/pagination/ListAgentRuntimeEndpointsPaginator.js +0 -7
  68. package/dist-cjs/pagination/ListAgentRuntimeVersionsPaginator.js +0 -7
  69. package/dist-cjs/pagination/ListAgentRuntimesPaginator.js +0 -7
  70. package/dist-cjs/pagination/ListApiKeyCredentialProvidersPaginator.js +0 -7
  71. package/dist-cjs/pagination/ListBrowsersPaginator.js +0 -7
  72. package/dist-cjs/pagination/ListCodeInterpretersPaginator.js +0 -7
  73. package/dist-cjs/pagination/ListGatewayTargetsPaginator.js +0 -7
  74. package/dist-cjs/pagination/ListGatewaysPaginator.js +0 -7
  75. package/dist-cjs/pagination/ListMemoriesPaginator.js +0 -7
  76. package/dist-cjs/pagination/ListOauth2CredentialProvidersPaginator.js +0 -7
  77. package/dist-cjs/pagination/ListWorkloadIdentitiesPaginator.js +0 -7
  78. package/dist-cjs/pagination/index.js +0 -15
  79. package/dist-cjs/protocols/Aws_restJson1.js +0 -2410
  80. package/dist-cjs/runtimeExtensions.js +0 -13
  81. package/dist-cjs/waiters/index.js +0 -4
  82. package/dist-cjs/waiters/waitForMemoryCreated.js +0 -54
@@ -1,2410 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateGatewayCommand = exports.se_UpdateApiKeyCredentialProviderCommand = exports.se_UpdateAgentRuntimeEndpointCommand = exports.se_UpdateAgentRuntimeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SetTokenVaultCMKCommand = exports.se_ListWorkloadIdentitiesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOauth2CredentialProvidersCommand = exports.se_ListMemoriesCommand = exports.se_ListGatewayTargetsCommand = exports.se_ListGatewaysCommand = exports.se_ListCodeInterpretersCommand = exports.se_ListBrowsersCommand = exports.se_ListApiKeyCredentialProvidersCommand = exports.se_ListAgentRuntimeVersionsCommand = exports.se_ListAgentRuntimesCommand = exports.se_ListAgentRuntimeEndpointsCommand = exports.se_GetWorkloadIdentityCommand = exports.se_GetTokenVaultCommand = exports.se_GetOauth2CredentialProviderCommand = exports.se_GetMemoryCommand = exports.se_GetGatewayTargetCommand = exports.se_GetGatewayCommand = exports.se_GetCodeInterpreterCommand = exports.se_GetBrowserCommand = exports.se_GetApiKeyCredentialProviderCommand = exports.se_GetAgentRuntimeEndpointCommand = exports.se_GetAgentRuntimeCommand = exports.se_DeleteWorkloadIdentityCommand = exports.se_DeleteOauth2CredentialProviderCommand = exports.se_DeleteMemoryCommand = exports.se_DeleteGatewayTargetCommand = exports.se_DeleteGatewayCommand = exports.se_DeleteCodeInterpreterCommand = exports.se_DeleteBrowserCommand = exports.se_DeleteApiKeyCredentialProviderCommand = exports.se_DeleteAgentRuntimeEndpointCommand = exports.se_DeleteAgentRuntimeCommand = exports.se_CreateWorkloadIdentityCommand = exports.se_CreateOauth2CredentialProviderCommand = exports.se_CreateMemoryCommand = exports.se_CreateGatewayTargetCommand = exports.se_CreateGatewayCommand = exports.se_CreateCodeInterpreterCommand = exports.se_CreateBrowserCommand = exports.se_CreateApiKeyCredentialProviderCommand = exports.se_CreateAgentRuntimeEndpointCommand = exports.se_CreateAgentRuntimeCommand = void 0;
4
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SetTokenVaultCMKCommand = exports.de_ListWorkloadIdentitiesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOauth2CredentialProvidersCommand = exports.de_ListMemoriesCommand = exports.de_ListGatewayTargetsCommand = exports.de_ListGatewaysCommand = exports.de_ListCodeInterpretersCommand = exports.de_ListBrowsersCommand = exports.de_ListApiKeyCredentialProvidersCommand = exports.de_ListAgentRuntimeVersionsCommand = exports.de_ListAgentRuntimesCommand = exports.de_ListAgentRuntimeEndpointsCommand = exports.de_GetWorkloadIdentityCommand = exports.de_GetTokenVaultCommand = exports.de_GetOauth2CredentialProviderCommand = exports.de_GetMemoryCommand = exports.de_GetGatewayTargetCommand = exports.de_GetGatewayCommand = exports.de_GetCodeInterpreterCommand = exports.de_GetBrowserCommand = exports.de_GetApiKeyCredentialProviderCommand = exports.de_GetAgentRuntimeEndpointCommand = exports.de_GetAgentRuntimeCommand = exports.de_DeleteWorkloadIdentityCommand = exports.de_DeleteOauth2CredentialProviderCommand = exports.de_DeleteMemoryCommand = exports.de_DeleteGatewayTargetCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteCodeInterpreterCommand = exports.de_DeleteBrowserCommand = exports.de_DeleteApiKeyCredentialProviderCommand = exports.de_DeleteAgentRuntimeEndpointCommand = exports.de_DeleteAgentRuntimeCommand = exports.de_CreateWorkloadIdentityCommand = exports.de_CreateOauth2CredentialProviderCommand = exports.de_CreateMemoryCommand = exports.de_CreateGatewayTargetCommand = exports.de_CreateGatewayCommand = exports.de_CreateCodeInterpreterCommand = exports.de_CreateBrowserCommand = exports.de_CreateApiKeyCredentialProviderCommand = exports.de_CreateAgentRuntimeEndpointCommand = exports.de_CreateAgentRuntimeCommand = exports.se_UpdateWorkloadIdentityCommand = exports.se_UpdateOauth2CredentialProviderCommand = exports.se_UpdateMemoryCommand = exports.se_UpdateGatewayTargetCommand = void 0;
5
- exports.de_UpdateWorkloadIdentityCommand = exports.de_UpdateOauth2CredentialProviderCommand = exports.de_UpdateMemoryCommand = exports.de_UpdateGatewayTargetCommand = exports.de_UpdateGatewayCommand = exports.de_UpdateApiKeyCredentialProviderCommand = exports.de_UpdateAgentRuntimeEndpointCommand = exports.de_UpdateAgentRuntimeCommand = void 0;
6
- const core_1 = require("@aws-sdk/core");
7
- const core_2 = require("@smithy/core");
8
- const smithy_client_1 = require("@smithy/smithy-client");
9
- const uuid_1 = require("uuid");
10
- const BedrockAgentCoreControlServiceException_1 = require("../models/BedrockAgentCoreControlServiceException");
11
- const models_0_1 = require("../models/models_0");
12
- const se_CreateAgentRuntimeCommand = async (input, context) => {
13
- const b = (0, core_2.requestBuilder)(input, context);
14
- const headers = {
15
- "content-type": "application/json",
16
- };
17
- b.bp("/runtimes");
18
- let body;
19
- body = JSON.stringify((0, smithy_client_1.take)(input, {
20
- agentRuntimeArtifact: (_) => (0, smithy_client_1._json)(_),
21
- agentRuntimeName: [],
22
- authorizerConfiguration: (_) => (0, smithy_client_1._json)(_),
23
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
24
- description: [],
25
- environmentVariables: (_) => (0, smithy_client_1._json)(_),
26
- networkConfiguration: (_) => (0, smithy_client_1._json)(_),
27
- protocolConfiguration: (_) => (0, smithy_client_1._json)(_),
28
- requestHeaderConfiguration: (_) => (0, smithy_client_1._json)(_),
29
- roleArn: [],
30
- tags: (_) => (0, smithy_client_1._json)(_),
31
- }));
32
- b.m("PUT").h(headers).b(body);
33
- return b.build();
34
- };
35
- exports.se_CreateAgentRuntimeCommand = se_CreateAgentRuntimeCommand;
36
- const se_CreateAgentRuntimeEndpointCommand = async (input, context) => {
37
- const b = (0, core_2.requestBuilder)(input, context);
38
- const headers = {
39
- "content-type": "application/json",
40
- };
41
- b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints");
42
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
43
- let body;
44
- body = JSON.stringify((0, smithy_client_1.take)(input, {
45
- agentRuntimeVersion: [],
46
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
47
- description: [],
48
- name: [],
49
- tags: (_) => (0, smithy_client_1._json)(_),
50
- }));
51
- b.m("PUT").h(headers).b(body);
52
- return b.build();
53
- };
54
- exports.se_CreateAgentRuntimeEndpointCommand = se_CreateAgentRuntimeEndpointCommand;
55
- const se_CreateApiKeyCredentialProviderCommand = async (input, context) => {
56
- const b = (0, core_2.requestBuilder)(input, context);
57
- const headers = {
58
- "content-type": "application/json",
59
- };
60
- b.bp("/identities/CreateApiKeyCredentialProvider");
61
- let body;
62
- body = JSON.stringify((0, smithy_client_1.take)(input, {
63
- apiKey: [],
64
- name: [],
65
- }));
66
- b.m("POST").h(headers).b(body);
67
- return b.build();
68
- };
69
- exports.se_CreateApiKeyCredentialProviderCommand = se_CreateApiKeyCredentialProviderCommand;
70
- const se_CreateBrowserCommand = async (input, context) => {
71
- const b = (0, core_2.requestBuilder)(input, context);
72
- const headers = {
73
- "content-type": "application/json",
74
- };
75
- b.bp("/browsers");
76
- let body;
77
- body = JSON.stringify((0, smithy_client_1.take)(input, {
78
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
79
- description: [],
80
- executionRoleArn: [],
81
- name: [],
82
- networkConfiguration: (_) => (0, smithy_client_1._json)(_),
83
- recording: (_) => (0, smithy_client_1._json)(_),
84
- tags: (_) => (0, smithy_client_1._json)(_),
85
- }));
86
- b.m("PUT").h(headers).b(body);
87
- return b.build();
88
- };
89
- exports.se_CreateBrowserCommand = se_CreateBrowserCommand;
90
- const se_CreateCodeInterpreterCommand = async (input, context) => {
91
- const b = (0, core_2.requestBuilder)(input, context);
92
- const headers = {
93
- "content-type": "application/json",
94
- };
95
- b.bp("/code-interpreters");
96
- let body;
97
- body = JSON.stringify((0, smithy_client_1.take)(input, {
98
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
99
- description: [],
100
- executionRoleArn: [],
101
- name: [],
102
- networkConfiguration: (_) => (0, smithy_client_1._json)(_),
103
- tags: (_) => (0, smithy_client_1._json)(_),
104
- }));
105
- b.m("PUT").h(headers).b(body);
106
- return b.build();
107
- };
108
- exports.se_CreateCodeInterpreterCommand = se_CreateCodeInterpreterCommand;
109
- const se_CreateGatewayCommand = async (input, context) => {
110
- const b = (0, core_2.requestBuilder)(input, context);
111
- const headers = {
112
- "content-type": "application/json",
113
- };
114
- b.bp("/gateways");
115
- let body;
116
- body = JSON.stringify((0, smithy_client_1.take)(input, {
117
- authorizerConfiguration: (_) => (0, smithy_client_1._json)(_),
118
- authorizerType: [],
119
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
120
- description: [],
121
- exceptionLevel: [],
122
- kmsKeyArn: [],
123
- name: [],
124
- protocolConfiguration: (_) => (0, smithy_client_1._json)(_),
125
- protocolType: [],
126
- roleArn: [],
127
- }));
128
- b.m("POST").h(headers).b(body);
129
- return b.build();
130
- };
131
- exports.se_CreateGatewayCommand = se_CreateGatewayCommand;
132
- const se_CreateGatewayTargetCommand = async (input, context) => {
133
- const b = (0, core_2.requestBuilder)(input, context);
134
- const headers = {
135
- "content-type": "application/json",
136
- };
137
- b.bp("/gateways/{gatewayIdentifier}/targets");
138
- b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
139
- let body;
140
- body = JSON.stringify((0, smithy_client_1.take)(input, {
141
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
142
- credentialProviderConfigurations: (_) => (0, smithy_client_1._json)(_),
143
- description: [],
144
- name: [],
145
- targetConfiguration: (_) => se_TargetConfiguration(_, context),
146
- }));
147
- b.m("POST").h(headers).b(body);
148
- return b.build();
149
- };
150
- exports.se_CreateGatewayTargetCommand = se_CreateGatewayTargetCommand;
151
- const se_CreateMemoryCommand = async (input, context) => {
152
- const b = (0, core_2.requestBuilder)(input, context);
153
- const headers = {
154
- "content-type": "application/json",
155
- };
156
- b.bp("/memories/create");
157
- let body;
158
- body = JSON.stringify((0, smithy_client_1.take)(input, {
159
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
160
- description: [],
161
- encryptionKeyArn: [],
162
- eventExpiryDuration: [],
163
- memoryExecutionRoleArn: [],
164
- memoryStrategies: (_) => (0, smithy_client_1._json)(_),
165
- name: [],
166
- }));
167
- b.m("POST").h(headers).b(body);
168
- return b.build();
169
- };
170
- exports.se_CreateMemoryCommand = se_CreateMemoryCommand;
171
- const se_CreateOauth2CredentialProviderCommand = async (input, context) => {
172
- const b = (0, core_2.requestBuilder)(input, context);
173
- const headers = {
174
- "content-type": "application/json",
175
- };
176
- b.bp("/identities/CreateOauth2CredentialProvider");
177
- let body;
178
- body = JSON.stringify((0, smithy_client_1.take)(input, {
179
- credentialProviderVendor: [],
180
- name: [],
181
- oauth2ProviderConfigInput: (_) => (0, smithy_client_1._json)(_),
182
- }));
183
- b.m("POST").h(headers).b(body);
184
- return b.build();
185
- };
186
- exports.se_CreateOauth2CredentialProviderCommand = se_CreateOauth2CredentialProviderCommand;
187
- const se_CreateWorkloadIdentityCommand = async (input, context) => {
188
- const b = (0, core_2.requestBuilder)(input, context);
189
- const headers = {
190
- "content-type": "application/json",
191
- };
192
- b.bp("/identities/CreateWorkloadIdentity");
193
- let body;
194
- body = JSON.stringify((0, smithy_client_1.take)(input, {
195
- allowedResourceOauth2ReturnUrls: (_) => (0, smithy_client_1._json)(_),
196
- name: [],
197
- }));
198
- b.m("POST").h(headers).b(body);
199
- return b.build();
200
- };
201
- exports.se_CreateWorkloadIdentityCommand = se_CreateWorkloadIdentityCommand;
202
- const se_DeleteAgentRuntimeCommand = async (input, context) => {
203
- const b = (0, core_2.requestBuilder)(input, context);
204
- const headers = {};
205
- b.bp("/runtimes/{agentRuntimeId}");
206
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
207
- let body;
208
- b.m("DELETE").h(headers).b(body);
209
- return b.build();
210
- };
211
- exports.se_DeleteAgentRuntimeCommand = se_DeleteAgentRuntimeCommand;
212
- const se_DeleteAgentRuntimeEndpointCommand = async (input, context) => {
213
- const b = (0, core_2.requestBuilder)(input, context);
214
- const headers = {};
215
- b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}");
216
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
217
- b.p("endpointName", () => input.endpointName, "{endpointName}", false);
218
- const query = (0, smithy_client_1.map)({
219
- [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
220
- });
221
- let body;
222
- b.m("DELETE").h(headers).q(query).b(body);
223
- return b.build();
224
- };
225
- exports.se_DeleteAgentRuntimeEndpointCommand = se_DeleteAgentRuntimeEndpointCommand;
226
- const se_DeleteApiKeyCredentialProviderCommand = async (input, context) => {
227
- const b = (0, core_2.requestBuilder)(input, context);
228
- const headers = {
229
- "content-type": "application/json",
230
- };
231
- b.bp("/identities/DeleteApiKeyCredentialProvider");
232
- let body;
233
- body = JSON.stringify((0, smithy_client_1.take)(input, {
234
- name: [],
235
- }));
236
- b.m("POST").h(headers).b(body);
237
- return b.build();
238
- };
239
- exports.se_DeleteApiKeyCredentialProviderCommand = se_DeleteApiKeyCredentialProviderCommand;
240
- const se_DeleteBrowserCommand = async (input, context) => {
241
- const b = (0, core_2.requestBuilder)(input, context);
242
- const headers = {};
243
- b.bp("/browsers/{browserId}");
244
- b.p("browserId", () => input.browserId, "{browserId}", false);
245
- const query = (0, smithy_client_1.map)({
246
- [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
247
- });
248
- let body;
249
- b.m("DELETE").h(headers).q(query).b(body);
250
- return b.build();
251
- };
252
- exports.se_DeleteBrowserCommand = se_DeleteBrowserCommand;
253
- const se_DeleteCodeInterpreterCommand = async (input, context) => {
254
- const b = (0, core_2.requestBuilder)(input, context);
255
- const headers = {};
256
- b.bp("/code-interpreters/{codeInterpreterId}");
257
- b.p("codeInterpreterId", () => input.codeInterpreterId, "{codeInterpreterId}", false);
258
- const query = (0, smithy_client_1.map)({
259
- [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
260
- });
261
- let body;
262
- b.m("DELETE").h(headers).q(query).b(body);
263
- return b.build();
264
- };
265
- exports.se_DeleteCodeInterpreterCommand = se_DeleteCodeInterpreterCommand;
266
- const se_DeleteGatewayCommand = async (input, context) => {
267
- const b = (0, core_2.requestBuilder)(input, context);
268
- const headers = {};
269
- b.bp("/gateways/{gatewayIdentifier}");
270
- b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
271
- let body;
272
- b.m("DELETE").h(headers).b(body);
273
- return b.build();
274
- };
275
- exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
276
- const se_DeleteGatewayTargetCommand = async (input, context) => {
277
- const b = (0, core_2.requestBuilder)(input, context);
278
- const headers = {};
279
- b.bp("/gateways/{gatewayIdentifier}/targets/{targetId}");
280
- b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
281
- b.p("targetId", () => input.targetId, "{targetId}", false);
282
- let body;
283
- b.m("DELETE").h(headers).b(body);
284
- return b.build();
285
- };
286
- exports.se_DeleteGatewayTargetCommand = se_DeleteGatewayTargetCommand;
287
- const se_DeleteMemoryCommand = async (input, context) => {
288
- const b = (0, core_2.requestBuilder)(input, context);
289
- const headers = {};
290
- b.bp("/memories/{memoryId}/delete");
291
- b.p("memoryId", () => input.memoryId, "{memoryId}", false);
292
- const query = (0, smithy_client_1.map)({
293
- [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
294
- });
295
- let body;
296
- b.m("DELETE").h(headers).q(query).b(body);
297
- return b.build();
298
- };
299
- exports.se_DeleteMemoryCommand = se_DeleteMemoryCommand;
300
- const se_DeleteOauth2CredentialProviderCommand = async (input, context) => {
301
- const b = (0, core_2.requestBuilder)(input, context);
302
- const headers = {
303
- "content-type": "application/json",
304
- };
305
- b.bp("/identities/DeleteOauth2CredentialProvider");
306
- let body;
307
- body = JSON.stringify((0, smithy_client_1.take)(input, {
308
- name: [],
309
- }));
310
- b.m("POST").h(headers).b(body);
311
- return b.build();
312
- };
313
- exports.se_DeleteOauth2CredentialProviderCommand = se_DeleteOauth2CredentialProviderCommand;
314
- const se_DeleteWorkloadIdentityCommand = async (input, context) => {
315
- const b = (0, core_2.requestBuilder)(input, context);
316
- const headers = {
317
- "content-type": "application/json",
318
- };
319
- b.bp("/identities/DeleteWorkloadIdentity");
320
- let body;
321
- body = JSON.stringify((0, smithy_client_1.take)(input, {
322
- name: [],
323
- }));
324
- b.m("POST").h(headers).b(body);
325
- return b.build();
326
- };
327
- exports.se_DeleteWorkloadIdentityCommand = se_DeleteWorkloadIdentityCommand;
328
- const se_GetAgentRuntimeCommand = async (input, context) => {
329
- const b = (0, core_2.requestBuilder)(input, context);
330
- const headers = {};
331
- b.bp("/runtimes/{agentRuntimeId}");
332
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
333
- const query = (0, smithy_client_1.map)({
334
- [_v]: [, input[_aRV]],
335
- });
336
- let body;
337
- b.m("GET").h(headers).q(query).b(body);
338
- return b.build();
339
- };
340
- exports.se_GetAgentRuntimeCommand = se_GetAgentRuntimeCommand;
341
- const se_GetAgentRuntimeEndpointCommand = async (input, context) => {
342
- const b = (0, core_2.requestBuilder)(input, context);
343
- const headers = {};
344
- b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}");
345
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
346
- b.p("endpointName", () => input.endpointName, "{endpointName}", false);
347
- let body;
348
- b.m("GET").h(headers).b(body);
349
- return b.build();
350
- };
351
- exports.se_GetAgentRuntimeEndpointCommand = se_GetAgentRuntimeEndpointCommand;
352
- const se_GetApiKeyCredentialProviderCommand = async (input, context) => {
353
- const b = (0, core_2.requestBuilder)(input, context);
354
- const headers = {
355
- "content-type": "application/json",
356
- };
357
- b.bp("/identities/GetApiKeyCredentialProvider");
358
- let body;
359
- body = JSON.stringify((0, smithy_client_1.take)(input, {
360
- name: [],
361
- }));
362
- b.m("POST").h(headers).b(body);
363
- return b.build();
364
- };
365
- exports.se_GetApiKeyCredentialProviderCommand = se_GetApiKeyCredentialProviderCommand;
366
- const se_GetBrowserCommand = async (input, context) => {
367
- const b = (0, core_2.requestBuilder)(input, context);
368
- const headers = {};
369
- b.bp("/browsers/{browserId}");
370
- b.p("browserId", () => input.browserId, "{browserId}", false);
371
- let body;
372
- b.m("GET").h(headers).b(body);
373
- return b.build();
374
- };
375
- exports.se_GetBrowserCommand = se_GetBrowserCommand;
376
- const se_GetCodeInterpreterCommand = async (input, context) => {
377
- const b = (0, core_2.requestBuilder)(input, context);
378
- const headers = {};
379
- b.bp("/code-interpreters/{codeInterpreterId}");
380
- b.p("codeInterpreterId", () => input.codeInterpreterId, "{codeInterpreterId}", false);
381
- let body;
382
- b.m("GET").h(headers).b(body);
383
- return b.build();
384
- };
385
- exports.se_GetCodeInterpreterCommand = se_GetCodeInterpreterCommand;
386
- const se_GetGatewayCommand = async (input, context) => {
387
- const b = (0, core_2.requestBuilder)(input, context);
388
- const headers = {};
389
- b.bp("/gateways/{gatewayIdentifier}");
390
- b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
391
- let body;
392
- b.m("GET").h(headers).b(body);
393
- return b.build();
394
- };
395
- exports.se_GetGatewayCommand = se_GetGatewayCommand;
396
- const se_GetGatewayTargetCommand = async (input, context) => {
397
- const b = (0, core_2.requestBuilder)(input, context);
398
- const headers = {};
399
- b.bp("/gateways/{gatewayIdentifier}/targets/{targetId}");
400
- b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
401
- b.p("targetId", () => input.targetId, "{targetId}", false);
402
- let body;
403
- b.m("GET").h(headers).b(body);
404
- return b.build();
405
- };
406
- exports.se_GetGatewayTargetCommand = se_GetGatewayTargetCommand;
407
- const se_GetMemoryCommand = async (input, context) => {
408
- const b = (0, core_2.requestBuilder)(input, context);
409
- const headers = {};
410
- b.bp("/memories/{memoryId}/details");
411
- b.p("memoryId", () => input.memoryId, "{memoryId}", false);
412
- let body;
413
- b.m("GET").h(headers).b(body);
414
- return b.build();
415
- };
416
- exports.se_GetMemoryCommand = se_GetMemoryCommand;
417
- const se_GetOauth2CredentialProviderCommand = async (input, context) => {
418
- const b = (0, core_2.requestBuilder)(input, context);
419
- const headers = {
420
- "content-type": "application/json",
421
- };
422
- b.bp("/identities/GetOauth2CredentialProvider");
423
- let body;
424
- body = JSON.stringify((0, smithy_client_1.take)(input, {
425
- name: [],
426
- }));
427
- b.m("POST").h(headers).b(body);
428
- return b.build();
429
- };
430
- exports.se_GetOauth2CredentialProviderCommand = se_GetOauth2CredentialProviderCommand;
431
- const se_GetTokenVaultCommand = async (input, context) => {
432
- const b = (0, core_2.requestBuilder)(input, context);
433
- const headers = {
434
- "content-type": "application/json",
435
- };
436
- b.bp("/identities/get-token-vault");
437
- let body;
438
- body = JSON.stringify((0, smithy_client_1.take)(input, {
439
- tokenVaultId: [],
440
- }));
441
- b.m("POST").h(headers).b(body);
442
- return b.build();
443
- };
444
- exports.se_GetTokenVaultCommand = se_GetTokenVaultCommand;
445
- const se_GetWorkloadIdentityCommand = async (input, context) => {
446
- const b = (0, core_2.requestBuilder)(input, context);
447
- const headers = {
448
- "content-type": "application/json",
449
- };
450
- b.bp("/identities/GetWorkloadIdentity");
451
- let body;
452
- body = JSON.stringify((0, smithy_client_1.take)(input, {
453
- name: [],
454
- }));
455
- b.m("POST").h(headers).b(body);
456
- return b.build();
457
- };
458
- exports.se_GetWorkloadIdentityCommand = se_GetWorkloadIdentityCommand;
459
- const se_ListAgentRuntimeEndpointsCommand = async (input, context) => {
460
- const b = (0, core_2.requestBuilder)(input, context);
461
- const headers = {};
462
- b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints");
463
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
464
- const query = (0, smithy_client_1.map)({
465
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
466
- [_nT]: [, input[_nT]],
467
- });
468
- let body;
469
- b.m("POST").h(headers).q(query).b(body);
470
- return b.build();
471
- };
472
- exports.se_ListAgentRuntimeEndpointsCommand = se_ListAgentRuntimeEndpointsCommand;
473
- const se_ListAgentRuntimesCommand = async (input, context) => {
474
- const b = (0, core_2.requestBuilder)(input, context);
475
- const headers = {};
476
- b.bp("/runtimes");
477
- const query = (0, smithy_client_1.map)({
478
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
479
- [_nT]: [, input[_nT]],
480
- });
481
- let body;
482
- b.m("POST").h(headers).q(query).b(body);
483
- return b.build();
484
- };
485
- exports.se_ListAgentRuntimesCommand = se_ListAgentRuntimesCommand;
486
- const se_ListAgentRuntimeVersionsCommand = async (input, context) => {
487
- const b = (0, core_2.requestBuilder)(input, context);
488
- const headers = {};
489
- b.bp("/runtimes/{agentRuntimeId}/versions");
490
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
491
- const query = (0, smithy_client_1.map)({
492
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
493
- [_nT]: [, input[_nT]],
494
- });
495
- let body;
496
- b.m("POST").h(headers).q(query).b(body);
497
- return b.build();
498
- };
499
- exports.se_ListAgentRuntimeVersionsCommand = se_ListAgentRuntimeVersionsCommand;
500
- const se_ListApiKeyCredentialProvidersCommand = async (input, context) => {
501
- const b = (0, core_2.requestBuilder)(input, context);
502
- const headers = {
503
- "content-type": "application/json",
504
- };
505
- b.bp("/identities/ListApiKeyCredentialProviders");
506
- let body;
507
- body = JSON.stringify((0, smithy_client_1.take)(input, {
508
- maxResults: [],
509
- nextToken: [],
510
- }));
511
- b.m("POST").h(headers).b(body);
512
- return b.build();
513
- };
514
- exports.se_ListApiKeyCredentialProvidersCommand = se_ListApiKeyCredentialProvidersCommand;
515
- const se_ListBrowsersCommand = async (input, context) => {
516
- const b = (0, core_2.requestBuilder)(input, context);
517
- const headers = {};
518
- b.bp("/browsers");
519
- const query = (0, smithy_client_1.map)({
520
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
521
- [_nT]: [, input[_nT]],
522
- [_t]: [, input[_t]],
523
- });
524
- let body;
525
- b.m("POST").h(headers).q(query).b(body);
526
- return b.build();
527
- };
528
- exports.se_ListBrowsersCommand = se_ListBrowsersCommand;
529
- const se_ListCodeInterpretersCommand = async (input, context) => {
530
- const b = (0, core_2.requestBuilder)(input, context);
531
- const headers = {};
532
- b.bp("/code-interpreters");
533
- const query = (0, smithy_client_1.map)({
534
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
535
- [_nT]: [, input[_nT]],
536
- [_t]: [, input[_t]],
537
- });
538
- let body;
539
- b.m("POST").h(headers).q(query).b(body);
540
- return b.build();
541
- };
542
- exports.se_ListCodeInterpretersCommand = se_ListCodeInterpretersCommand;
543
- const se_ListGatewaysCommand = async (input, context) => {
544
- const b = (0, core_2.requestBuilder)(input, context);
545
- const headers = {};
546
- b.bp("/gateways");
547
- const query = (0, smithy_client_1.map)({
548
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
549
- [_nT]: [, input[_nT]],
550
- });
551
- let body;
552
- b.m("GET").h(headers).q(query).b(body);
553
- return b.build();
554
- };
555
- exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
556
- const se_ListGatewayTargetsCommand = async (input, context) => {
557
- const b = (0, core_2.requestBuilder)(input, context);
558
- const headers = {};
559
- b.bp("/gateways/{gatewayIdentifier}/targets");
560
- b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
561
- const query = (0, smithy_client_1.map)({
562
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
563
- [_nT]: [, input[_nT]],
564
- });
565
- let body;
566
- b.m("GET").h(headers).q(query).b(body);
567
- return b.build();
568
- };
569
- exports.se_ListGatewayTargetsCommand = se_ListGatewayTargetsCommand;
570
- const se_ListMemoriesCommand = async (input, context) => {
571
- const b = (0, core_2.requestBuilder)(input, context);
572
- const headers = {
573
- "content-type": "application/json",
574
- };
575
- b.bp("/memories");
576
- let body;
577
- body = JSON.stringify((0, smithy_client_1.take)(input, {
578
- maxResults: [],
579
- nextToken: [],
580
- }));
581
- b.m("POST").h(headers).b(body);
582
- return b.build();
583
- };
584
- exports.se_ListMemoriesCommand = se_ListMemoriesCommand;
585
- const se_ListOauth2CredentialProvidersCommand = async (input, context) => {
586
- const b = (0, core_2.requestBuilder)(input, context);
587
- const headers = {
588
- "content-type": "application/json",
589
- };
590
- b.bp("/identities/ListOauth2CredentialProviders");
591
- let body;
592
- body = JSON.stringify((0, smithy_client_1.take)(input, {
593
- maxResults: [],
594
- nextToken: [],
595
- }));
596
- b.m("POST").h(headers).b(body);
597
- return b.build();
598
- };
599
- exports.se_ListOauth2CredentialProvidersCommand = se_ListOauth2CredentialProvidersCommand;
600
- const se_ListTagsForResourceCommand = async (input, context) => {
601
- const b = (0, core_2.requestBuilder)(input, context);
602
- const headers = {};
603
- b.bp("/tags/{resourceArn}");
604
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
605
- let body;
606
- b.m("GET").h(headers).b(body);
607
- return b.build();
608
- };
609
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
610
- const se_ListWorkloadIdentitiesCommand = async (input, context) => {
611
- const b = (0, core_2.requestBuilder)(input, context);
612
- const headers = {
613
- "content-type": "application/json",
614
- };
615
- b.bp("/identities/ListWorkloadIdentities");
616
- let body;
617
- body = JSON.stringify((0, smithy_client_1.take)(input, {
618
- maxResults: [],
619
- nextToken: [],
620
- }));
621
- b.m("POST").h(headers).b(body);
622
- return b.build();
623
- };
624
- exports.se_ListWorkloadIdentitiesCommand = se_ListWorkloadIdentitiesCommand;
625
- const se_SetTokenVaultCMKCommand = async (input, context) => {
626
- const b = (0, core_2.requestBuilder)(input, context);
627
- const headers = {
628
- "content-type": "application/json",
629
- };
630
- b.bp("/identities/set-token-vault-cmk");
631
- let body;
632
- body = JSON.stringify((0, smithy_client_1.take)(input, {
633
- kmsConfiguration: (_) => (0, smithy_client_1._json)(_),
634
- tokenVaultId: [],
635
- }));
636
- b.m("POST").h(headers).b(body);
637
- return b.build();
638
- };
639
- exports.se_SetTokenVaultCMKCommand = se_SetTokenVaultCMKCommand;
640
- const se_TagResourceCommand = async (input, context) => {
641
- const b = (0, core_2.requestBuilder)(input, context);
642
- const headers = {
643
- "content-type": "application/json",
644
- };
645
- b.bp("/tags/{resourceArn}");
646
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
647
- let body;
648
- body = JSON.stringify((0, smithy_client_1.take)(input, {
649
- tags: (_) => (0, smithy_client_1._json)(_),
650
- }));
651
- b.m("POST").h(headers).b(body);
652
- return b.build();
653
- };
654
- exports.se_TagResourceCommand = se_TagResourceCommand;
655
- const se_UntagResourceCommand = async (input, context) => {
656
- const b = (0, core_2.requestBuilder)(input, context);
657
- const headers = {};
658
- b.bp("/tags/{resourceArn}");
659
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
660
- const query = (0, smithy_client_1.map)({
661
- [_tK]: [(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
662
- });
663
- let body;
664
- b.m("DELETE").h(headers).q(query).b(body);
665
- return b.build();
666
- };
667
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
668
- const se_UpdateAgentRuntimeCommand = async (input, context) => {
669
- const b = (0, core_2.requestBuilder)(input, context);
670
- const headers = {
671
- "content-type": "application/json",
672
- };
673
- b.bp("/runtimes/{agentRuntimeId}");
674
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
675
- let body;
676
- body = JSON.stringify((0, smithy_client_1.take)(input, {
677
- agentRuntimeArtifact: (_) => (0, smithy_client_1._json)(_),
678
- authorizerConfiguration: (_) => (0, smithy_client_1._json)(_),
679
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
680
- description: [],
681
- environmentVariables: (_) => (0, smithy_client_1._json)(_),
682
- networkConfiguration: (_) => (0, smithy_client_1._json)(_),
683
- protocolConfiguration: (_) => (0, smithy_client_1._json)(_),
684
- requestHeaderConfiguration: (_) => (0, smithy_client_1._json)(_),
685
- roleArn: [],
686
- }));
687
- b.m("PUT").h(headers).b(body);
688
- return b.build();
689
- };
690
- exports.se_UpdateAgentRuntimeCommand = se_UpdateAgentRuntimeCommand;
691
- const se_UpdateAgentRuntimeEndpointCommand = async (input, context) => {
692
- const b = (0, core_2.requestBuilder)(input, context);
693
- const headers = {
694
- "content-type": "application/json",
695
- };
696
- b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}");
697
- b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
698
- b.p("endpointName", () => input.endpointName, "{endpointName}", false);
699
- let body;
700
- body = JSON.stringify((0, smithy_client_1.take)(input, {
701
- agentRuntimeVersion: [],
702
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
703
- description: [],
704
- }));
705
- b.m("PUT").h(headers).b(body);
706
- return b.build();
707
- };
708
- exports.se_UpdateAgentRuntimeEndpointCommand = se_UpdateAgentRuntimeEndpointCommand;
709
- const se_UpdateApiKeyCredentialProviderCommand = async (input, context) => {
710
- const b = (0, core_2.requestBuilder)(input, context);
711
- const headers = {
712
- "content-type": "application/json",
713
- };
714
- b.bp("/identities/UpdateApiKeyCredentialProvider");
715
- let body;
716
- body = JSON.stringify((0, smithy_client_1.take)(input, {
717
- apiKey: [],
718
- name: [],
719
- }));
720
- b.m("POST").h(headers).b(body);
721
- return b.build();
722
- };
723
- exports.se_UpdateApiKeyCredentialProviderCommand = se_UpdateApiKeyCredentialProviderCommand;
724
- const se_UpdateGatewayCommand = async (input, context) => {
725
- const b = (0, core_2.requestBuilder)(input, context);
726
- const headers = {
727
- "content-type": "application/json",
728
- };
729
- b.bp("/gateways/{gatewayIdentifier}");
730
- b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
731
- let body;
732
- body = JSON.stringify((0, smithy_client_1.take)(input, {
733
- authorizerConfiguration: (_) => (0, smithy_client_1._json)(_),
734
- authorizerType: [],
735
- description: [],
736
- exceptionLevel: [],
737
- kmsKeyArn: [],
738
- name: [],
739
- protocolConfiguration: (_) => (0, smithy_client_1._json)(_),
740
- protocolType: [],
741
- roleArn: [],
742
- }));
743
- b.m("PUT").h(headers).b(body);
744
- return b.build();
745
- };
746
- exports.se_UpdateGatewayCommand = se_UpdateGatewayCommand;
747
- const se_UpdateGatewayTargetCommand = async (input, context) => {
748
- const b = (0, core_2.requestBuilder)(input, context);
749
- const headers = {
750
- "content-type": "application/json",
751
- };
752
- b.bp("/gateways/{gatewayIdentifier}/targets/{targetId}");
753
- b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
754
- b.p("targetId", () => input.targetId, "{targetId}", false);
755
- let body;
756
- body = JSON.stringify((0, smithy_client_1.take)(input, {
757
- credentialProviderConfigurations: (_) => (0, smithy_client_1._json)(_),
758
- description: [],
759
- name: [],
760
- targetConfiguration: (_) => se_TargetConfiguration(_, context),
761
- }));
762
- b.m("PUT").h(headers).b(body);
763
- return b.build();
764
- };
765
- exports.se_UpdateGatewayTargetCommand = se_UpdateGatewayTargetCommand;
766
- const se_UpdateMemoryCommand = async (input, context) => {
767
- const b = (0, core_2.requestBuilder)(input, context);
768
- const headers = {
769
- "content-type": "application/json",
770
- };
771
- b.bp("/memories/{memoryId}/update");
772
- b.p("memoryId", () => input.memoryId, "{memoryId}", false);
773
- let body;
774
- body = JSON.stringify((0, smithy_client_1.take)(input, {
775
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
776
- description: [],
777
- eventExpiryDuration: [],
778
- memoryExecutionRoleArn: [],
779
- memoryStrategies: (_) => (0, smithy_client_1._json)(_),
780
- }));
781
- b.m("PUT").h(headers).b(body);
782
- return b.build();
783
- };
784
- exports.se_UpdateMemoryCommand = se_UpdateMemoryCommand;
785
- const se_UpdateOauth2CredentialProviderCommand = async (input, context) => {
786
- const b = (0, core_2.requestBuilder)(input, context);
787
- const headers = {
788
- "content-type": "application/json",
789
- };
790
- b.bp("/identities/UpdateOauth2CredentialProvider");
791
- let body;
792
- body = JSON.stringify((0, smithy_client_1.take)(input, {
793
- credentialProviderVendor: [],
794
- name: [],
795
- oauth2ProviderConfigInput: (_) => (0, smithy_client_1._json)(_),
796
- }));
797
- b.m("POST").h(headers).b(body);
798
- return b.build();
799
- };
800
- exports.se_UpdateOauth2CredentialProviderCommand = se_UpdateOauth2CredentialProviderCommand;
801
- const se_UpdateWorkloadIdentityCommand = async (input, context) => {
802
- const b = (0, core_2.requestBuilder)(input, context);
803
- const headers = {
804
- "content-type": "application/json",
805
- };
806
- b.bp("/identities/UpdateWorkloadIdentity");
807
- let body;
808
- body = JSON.stringify((0, smithy_client_1.take)(input, {
809
- allowedResourceOauth2ReturnUrls: (_) => (0, smithy_client_1._json)(_),
810
- name: [],
811
- }));
812
- b.m("POST").h(headers).b(body);
813
- return b.build();
814
- };
815
- exports.se_UpdateWorkloadIdentityCommand = se_UpdateWorkloadIdentityCommand;
816
- const de_CreateAgentRuntimeCommand = async (output, context) => {
817
- if (output.statusCode !== 201 && output.statusCode >= 300) {
818
- return de_CommandError(output, context);
819
- }
820
- const contents = (0, smithy_client_1.map)({
821
- $metadata: deserializeMetadata(output),
822
- });
823
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
824
- const doc = (0, smithy_client_1.take)(data, {
825
- agentRuntimeArn: smithy_client_1.expectString,
826
- agentRuntimeId: smithy_client_1.expectString,
827
- agentRuntimeVersion: smithy_client_1.expectString,
828
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
829
- status: smithy_client_1.expectString,
830
- workloadIdentityDetails: smithy_client_1._json,
831
- });
832
- Object.assign(contents, doc);
833
- return contents;
834
- };
835
- exports.de_CreateAgentRuntimeCommand = de_CreateAgentRuntimeCommand;
836
- const de_CreateAgentRuntimeEndpointCommand = async (output, context) => {
837
- if (output.statusCode !== 200 && output.statusCode >= 300) {
838
- return de_CommandError(output, context);
839
- }
840
- const contents = (0, smithy_client_1.map)({
841
- $metadata: deserializeMetadata(output),
842
- });
843
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
844
- const doc = (0, smithy_client_1.take)(data, {
845
- agentRuntimeArn: smithy_client_1.expectString,
846
- agentRuntimeEndpointArn: smithy_client_1.expectString,
847
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
848
- status: smithy_client_1.expectString,
849
- targetVersion: smithy_client_1.expectString,
850
- });
851
- Object.assign(contents, doc);
852
- return contents;
853
- };
854
- exports.de_CreateAgentRuntimeEndpointCommand = de_CreateAgentRuntimeEndpointCommand;
855
- const de_CreateApiKeyCredentialProviderCommand = async (output, context) => {
856
- if (output.statusCode !== 200 && output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const contents = (0, smithy_client_1.map)({
860
- $metadata: deserializeMetadata(output),
861
- });
862
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
863
- const doc = (0, smithy_client_1.take)(data, {
864
- apiKeySecretArn: smithy_client_1._json,
865
- credentialProviderArn: smithy_client_1.expectString,
866
- name: smithy_client_1.expectString,
867
- });
868
- Object.assign(contents, doc);
869
- return contents;
870
- };
871
- exports.de_CreateApiKeyCredentialProviderCommand = de_CreateApiKeyCredentialProviderCommand;
872
- const de_CreateBrowserCommand = async (output, context) => {
873
- if (output.statusCode !== 201 && output.statusCode >= 300) {
874
- return de_CommandError(output, context);
875
- }
876
- const contents = (0, smithy_client_1.map)({
877
- $metadata: deserializeMetadata(output),
878
- });
879
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
880
- const doc = (0, smithy_client_1.take)(data, {
881
- browserArn: smithy_client_1.expectString,
882
- browserId: smithy_client_1.expectString,
883
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
884
- status: smithy_client_1.expectString,
885
- });
886
- Object.assign(contents, doc);
887
- return contents;
888
- };
889
- exports.de_CreateBrowserCommand = de_CreateBrowserCommand;
890
- const de_CreateCodeInterpreterCommand = async (output, context) => {
891
- if (output.statusCode !== 201 && output.statusCode >= 300) {
892
- return de_CommandError(output, context);
893
- }
894
- const contents = (0, smithy_client_1.map)({
895
- $metadata: deserializeMetadata(output),
896
- });
897
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
898
- const doc = (0, smithy_client_1.take)(data, {
899
- codeInterpreterArn: smithy_client_1.expectString,
900
- codeInterpreterId: smithy_client_1.expectString,
901
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
902
- status: smithy_client_1.expectString,
903
- });
904
- Object.assign(contents, doc);
905
- return contents;
906
- };
907
- exports.de_CreateCodeInterpreterCommand = de_CreateCodeInterpreterCommand;
908
- const de_CreateGatewayCommand = async (output, context) => {
909
- if (output.statusCode !== 202 && output.statusCode >= 300) {
910
- return de_CommandError(output, context);
911
- }
912
- const contents = (0, smithy_client_1.map)({
913
- $metadata: deserializeMetadata(output),
914
- });
915
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
916
- const doc = (0, smithy_client_1.take)(data, {
917
- authorizerConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
918
- authorizerType: smithy_client_1.expectString,
919
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
920
- description: smithy_client_1.expectString,
921
- exceptionLevel: smithy_client_1.expectString,
922
- gatewayArn: smithy_client_1.expectString,
923
- gatewayId: smithy_client_1.expectString,
924
- gatewayUrl: smithy_client_1.expectString,
925
- kmsKeyArn: smithy_client_1.expectString,
926
- name: smithy_client_1.expectString,
927
- protocolConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
928
- protocolType: smithy_client_1.expectString,
929
- roleArn: smithy_client_1.expectString,
930
- status: smithy_client_1.expectString,
931
- statusReasons: smithy_client_1._json,
932
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
933
- workloadIdentityDetails: smithy_client_1._json,
934
- });
935
- Object.assign(contents, doc);
936
- return contents;
937
- };
938
- exports.de_CreateGatewayCommand = de_CreateGatewayCommand;
939
- const de_CreateGatewayTargetCommand = async (output, context) => {
940
- if (output.statusCode !== 202 && output.statusCode >= 300) {
941
- return de_CommandError(output, context);
942
- }
943
- const contents = (0, smithy_client_1.map)({
944
- $metadata: deserializeMetadata(output),
945
- });
946
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
947
- const doc = (0, smithy_client_1.take)(data, {
948
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
949
- credentialProviderConfigurations: smithy_client_1._json,
950
- description: smithy_client_1.expectString,
951
- gatewayArn: smithy_client_1.expectString,
952
- name: smithy_client_1.expectString,
953
- status: smithy_client_1.expectString,
954
- statusReasons: smithy_client_1._json,
955
- targetConfiguration: (_) => de_TargetConfiguration((0, core_1.awsExpectUnion)(_), context),
956
- targetId: smithy_client_1.expectString,
957
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
958
- });
959
- Object.assign(contents, doc);
960
- return contents;
961
- };
962
- exports.de_CreateGatewayTargetCommand = de_CreateGatewayTargetCommand;
963
- const de_CreateMemoryCommand = async (output, context) => {
964
- if (output.statusCode !== 200 && output.statusCode >= 300) {
965
- return de_CommandError(output, context);
966
- }
967
- const contents = (0, smithy_client_1.map)({
968
- $metadata: deserializeMetadata(output),
969
- });
970
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
971
- const doc = (0, smithy_client_1.take)(data, {
972
- memory: (_) => de_Memory(_, context),
973
- });
974
- Object.assign(contents, doc);
975
- return contents;
976
- };
977
- exports.de_CreateMemoryCommand = de_CreateMemoryCommand;
978
- const de_CreateOauth2CredentialProviderCommand = async (output, context) => {
979
- if (output.statusCode !== 200 && output.statusCode >= 300) {
980
- return de_CommandError(output, context);
981
- }
982
- const contents = (0, smithy_client_1.map)({
983
- $metadata: deserializeMetadata(output),
984
- });
985
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
986
- const doc = (0, smithy_client_1.take)(data, {
987
- clientSecretArn: smithy_client_1._json,
988
- credentialProviderArn: smithy_client_1.expectString,
989
- name: smithy_client_1.expectString,
990
- });
991
- Object.assign(contents, doc);
992
- return contents;
993
- };
994
- exports.de_CreateOauth2CredentialProviderCommand = de_CreateOauth2CredentialProviderCommand;
995
- const de_CreateWorkloadIdentityCommand = async (output, context) => {
996
- if (output.statusCode !== 200 && output.statusCode >= 300) {
997
- return de_CommandError(output, context);
998
- }
999
- const contents = (0, smithy_client_1.map)({
1000
- $metadata: deserializeMetadata(output),
1001
- });
1002
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1003
- const doc = (0, smithy_client_1.take)(data, {
1004
- allowedResourceOauth2ReturnUrls: smithy_client_1._json,
1005
- name: smithy_client_1.expectString,
1006
- workloadIdentityArn: smithy_client_1.expectString,
1007
- });
1008
- Object.assign(contents, doc);
1009
- return contents;
1010
- };
1011
- exports.de_CreateWorkloadIdentityCommand = de_CreateWorkloadIdentityCommand;
1012
- const de_DeleteAgentRuntimeCommand = async (output, context) => {
1013
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1014
- return de_CommandError(output, context);
1015
- }
1016
- const contents = (0, smithy_client_1.map)({
1017
- $metadata: deserializeMetadata(output),
1018
- });
1019
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1020
- const doc = (0, smithy_client_1.take)(data, {
1021
- status: smithy_client_1.expectString,
1022
- });
1023
- Object.assign(contents, doc);
1024
- return contents;
1025
- };
1026
- exports.de_DeleteAgentRuntimeCommand = de_DeleteAgentRuntimeCommand;
1027
- const de_DeleteAgentRuntimeEndpointCommand = async (output, context) => {
1028
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1029
- return de_CommandError(output, context);
1030
- }
1031
- const contents = (0, smithy_client_1.map)({
1032
- $metadata: deserializeMetadata(output),
1033
- });
1034
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1035
- const doc = (0, smithy_client_1.take)(data, {
1036
- status: smithy_client_1.expectString,
1037
- });
1038
- Object.assign(contents, doc);
1039
- return contents;
1040
- };
1041
- exports.de_DeleteAgentRuntimeEndpointCommand = de_DeleteAgentRuntimeEndpointCommand;
1042
- const de_DeleteApiKeyCredentialProviderCommand = async (output, context) => {
1043
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1044
- return de_CommandError(output, context);
1045
- }
1046
- const contents = (0, smithy_client_1.map)({
1047
- $metadata: deserializeMetadata(output),
1048
- });
1049
- await (0, smithy_client_1.collectBody)(output.body, context);
1050
- return contents;
1051
- };
1052
- exports.de_DeleteApiKeyCredentialProviderCommand = de_DeleteApiKeyCredentialProviderCommand;
1053
- const de_DeleteBrowserCommand = async (output, context) => {
1054
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1055
- return de_CommandError(output, context);
1056
- }
1057
- const contents = (0, smithy_client_1.map)({
1058
- $metadata: deserializeMetadata(output),
1059
- });
1060
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1061
- const doc = (0, smithy_client_1.take)(data, {
1062
- browserId: smithy_client_1.expectString,
1063
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1064
- status: smithy_client_1.expectString,
1065
- });
1066
- Object.assign(contents, doc);
1067
- return contents;
1068
- };
1069
- exports.de_DeleteBrowserCommand = de_DeleteBrowserCommand;
1070
- const de_DeleteCodeInterpreterCommand = async (output, context) => {
1071
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1072
- return de_CommandError(output, context);
1073
- }
1074
- const contents = (0, smithy_client_1.map)({
1075
- $metadata: deserializeMetadata(output),
1076
- });
1077
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1078
- const doc = (0, smithy_client_1.take)(data, {
1079
- codeInterpreterId: smithy_client_1.expectString,
1080
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1081
- status: smithy_client_1.expectString,
1082
- });
1083
- Object.assign(contents, doc);
1084
- return contents;
1085
- };
1086
- exports.de_DeleteCodeInterpreterCommand = de_DeleteCodeInterpreterCommand;
1087
- const de_DeleteGatewayCommand = async (output, context) => {
1088
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1089
- return de_CommandError(output, context);
1090
- }
1091
- const contents = (0, smithy_client_1.map)({
1092
- $metadata: deserializeMetadata(output),
1093
- });
1094
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1095
- const doc = (0, smithy_client_1.take)(data, {
1096
- gatewayId: smithy_client_1.expectString,
1097
- status: smithy_client_1.expectString,
1098
- statusReasons: smithy_client_1._json,
1099
- });
1100
- Object.assign(contents, doc);
1101
- return contents;
1102
- };
1103
- exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
1104
- const de_DeleteGatewayTargetCommand = async (output, context) => {
1105
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1106
- return de_CommandError(output, context);
1107
- }
1108
- const contents = (0, smithy_client_1.map)({
1109
- $metadata: deserializeMetadata(output),
1110
- });
1111
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1112
- const doc = (0, smithy_client_1.take)(data, {
1113
- gatewayArn: smithy_client_1.expectString,
1114
- status: smithy_client_1.expectString,
1115
- statusReasons: smithy_client_1._json,
1116
- targetId: smithy_client_1.expectString,
1117
- });
1118
- Object.assign(contents, doc);
1119
- return contents;
1120
- };
1121
- exports.de_DeleteGatewayTargetCommand = de_DeleteGatewayTargetCommand;
1122
- const de_DeleteMemoryCommand = async (output, context) => {
1123
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
- return de_CommandError(output, context);
1125
- }
1126
- const contents = (0, smithy_client_1.map)({
1127
- $metadata: deserializeMetadata(output),
1128
- });
1129
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1130
- const doc = (0, smithy_client_1.take)(data, {
1131
- memoryId: smithy_client_1.expectString,
1132
- status: smithy_client_1.expectString,
1133
- });
1134
- Object.assign(contents, doc);
1135
- return contents;
1136
- };
1137
- exports.de_DeleteMemoryCommand = de_DeleteMemoryCommand;
1138
- const de_DeleteOauth2CredentialProviderCommand = async (output, context) => {
1139
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1140
- return de_CommandError(output, context);
1141
- }
1142
- const contents = (0, smithy_client_1.map)({
1143
- $metadata: deserializeMetadata(output),
1144
- });
1145
- await (0, smithy_client_1.collectBody)(output.body, context);
1146
- return contents;
1147
- };
1148
- exports.de_DeleteOauth2CredentialProviderCommand = de_DeleteOauth2CredentialProviderCommand;
1149
- const de_DeleteWorkloadIdentityCommand = async (output, context) => {
1150
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1151
- return de_CommandError(output, context);
1152
- }
1153
- const contents = (0, smithy_client_1.map)({
1154
- $metadata: deserializeMetadata(output),
1155
- });
1156
- await (0, smithy_client_1.collectBody)(output.body, context);
1157
- return contents;
1158
- };
1159
- exports.de_DeleteWorkloadIdentityCommand = de_DeleteWorkloadIdentityCommand;
1160
- const de_GetAgentRuntimeCommand = async (output, context) => {
1161
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1162
- return de_CommandError(output, context);
1163
- }
1164
- const contents = (0, smithy_client_1.map)({
1165
- $metadata: deserializeMetadata(output),
1166
- });
1167
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1168
- const doc = (0, smithy_client_1.take)(data, {
1169
- agentRuntimeArn: smithy_client_1.expectString,
1170
- agentRuntimeArtifact: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1171
- agentRuntimeId: smithy_client_1.expectString,
1172
- agentRuntimeName: smithy_client_1.expectString,
1173
- agentRuntimeVersion: smithy_client_1.expectString,
1174
- authorizerConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1175
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1176
- description: smithy_client_1.expectString,
1177
- environmentVariables: smithy_client_1._json,
1178
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1179
- networkConfiguration: smithy_client_1._json,
1180
- protocolConfiguration: smithy_client_1._json,
1181
- requestHeaderConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1182
- roleArn: smithy_client_1.expectString,
1183
- status: smithy_client_1.expectString,
1184
- workloadIdentityDetails: smithy_client_1._json,
1185
- });
1186
- Object.assign(contents, doc);
1187
- return contents;
1188
- };
1189
- exports.de_GetAgentRuntimeCommand = de_GetAgentRuntimeCommand;
1190
- const de_GetAgentRuntimeEndpointCommand = async (output, context) => {
1191
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1192
- return de_CommandError(output, context);
1193
- }
1194
- const contents = (0, smithy_client_1.map)({
1195
- $metadata: deserializeMetadata(output),
1196
- });
1197
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1198
- const doc = (0, smithy_client_1.take)(data, {
1199
- agentRuntimeArn: smithy_client_1.expectString,
1200
- agentRuntimeEndpointArn: smithy_client_1.expectString,
1201
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1202
- description: smithy_client_1.expectString,
1203
- failureReason: smithy_client_1.expectString,
1204
- id: smithy_client_1.expectString,
1205
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1206
- liveVersion: smithy_client_1.expectString,
1207
- name: smithy_client_1.expectString,
1208
- status: smithy_client_1.expectString,
1209
- targetVersion: smithy_client_1.expectString,
1210
- });
1211
- Object.assign(contents, doc);
1212
- return contents;
1213
- };
1214
- exports.de_GetAgentRuntimeEndpointCommand = de_GetAgentRuntimeEndpointCommand;
1215
- const de_GetApiKeyCredentialProviderCommand = async (output, context) => {
1216
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1217
- return de_CommandError(output, context);
1218
- }
1219
- const contents = (0, smithy_client_1.map)({
1220
- $metadata: deserializeMetadata(output),
1221
- });
1222
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1223
- const doc = (0, smithy_client_1.take)(data, {
1224
- apiKeySecretArn: smithy_client_1._json,
1225
- createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1226
- credentialProviderArn: smithy_client_1.expectString,
1227
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1228
- name: smithy_client_1.expectString,
1229
- });
1230
- Object.assign(contents, doc);
1231
- return contents;
1232
- };
1233
- exports.de_GetApiKeyCredentialProviderCommand = de_GetApiKeyCredentialProviderCommand;
1234
- const de_GetBrowserCommand = async (output, context) => {
1235
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1236
- return de_CommandError(output, context);
1237
- }
1238
- const contents = (0, smithy_client_1.map)({
1239
- $metadata: deserializeMetadata(output),
1240
- });
1241
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1242
- const doc = (0, smithy_client_1.take)(data, {
1243
- browserArn: smithy_client_1.expectString,
1244
- browserId: smithy_client_1.expectString,
1245
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1246
- description: smithy_client_1.expectString,
1247
- executionRoleArn: smithy_client_1.expectString,
1248
- failureReason: smithy_client_1.expectString,
1249
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1250
- name: smithy_client_1.expectString,
1251
- networkConfiguration: smithy_client_1._json,
1252
- recording: smithy_client_1._json,
1253
- status: smithy_client_1.expectString,
1254
- });
1255
- Object.assign(contents, doc);
1256
- return contents;
1257
- };
1258
- exports.de_GetBrowserCommand = de_GetBrowserCommand;
1259
- const de_GetCodeInterpreterCommand = async (output, context) => {
1260
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1261
- return de_CommandError(output, context);
1262
- }
1263
- const contents = (0, smithy_client_1.map)({
1264
- $metadata: deserializeMetadata(output),
1265
- });
1266
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1267
- const doc = (0, smithy_client_1.take)(data, {
1268
- codeInterpreterArn: smithy_client_1.expectString,
1269
- codeInterpreterId: smithy_client_1.expectString,
1270
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1271
- description: smithy_client_1.expectString,
1272
- executionRoleArn: smithy_client_1.expectString,
1273
- failureReason: smithy_client_1.expectString,
1274
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1275
- name: smithy_client_1.expectString,
1276
- networkConfiguration: smithy_client_1._json,
1277
- status: smithy_client_1.expectString,
1278
- });
1279
- Object.assign(contents, doc);
1280
- return contents;
1281
- };
1282
- exports.de_GetCodeInterpreterCommand = de_GetCodeInterpreterCommand;
1283
- const de_GetGatewayCommand = async (output, context) => {
1284
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1285
- return de_CommandError(output, context);
1286
- }
1287
- const contents = (0, smithy_client_1.map)({
1288
- $metadata: deserializeMetadata(output),
1289
- });
1290
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1291
- const doc = (0, smithy_client_1.take)(data, {
1292
- authorizerConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1293
- authorizerType: smithy_client_1.expectString,
1294
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1295
- description: smithy_client_1.expectString,
1296
- exceptionLevel: smithy_client_1.expectString,
1297
- gatewayArn: smithy_client_1.expectString,
1298
- gatewayId: smithy_client_1.expectString,
1299
- gatewayUrl: smithy_client_1.expectString,
1300
- kmsKeyArn: smithy_client_1.expectString,
1301
- name: smithy_client_1.expectString,
1302
- protocolConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1303
- protocolType: smithy_client_1.expectString,
1304
- roleArn: smithy_client_1.expectString,
1305
- status: smithy_client_1.expectString,
1306
- statusReasons: smithy_client_1._json,
1307
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1308
- workloadIdentityDetails: smithy_client_1._json,
1309
- });
1310
- Object.assign(contents, doc);
1311
- return contents;
1312
- };
1313
- exports.de_GetGatewayCommand = de_GetGatewayCommand;
1314
- const de_GetGatewayTargetCommand = async (output, context) => {
1315
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1316
- return de_CommandError(output, context);
1317
- }
1318
- const contents = (0, smithy_client_1.map)({
1319
- $metadata: deserializeMetadata(output),
1320
- });
1321
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1322
- const doc = (0, smithy_client_1.take)(data, {
1323
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1324
- credentialProviderConfigurations: smithy_client_1._json,
1325
- description: smithy_client_1.expectString,
1326
- gatewayArn: smithy_client_1.expectString,
1327
- name: smithy_client_1.expectString,
1328
- status: smithy_client_1.expectString,
1329
- statusReasons: smithy_client_1._json,
1330
- targetConfiguration: (_) => de_TargetConfiguration((0, core_1.awsExpectUnion)(_), context),
1331
- targetId: smithy_client_1.expectString,
1332
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1333
- });
1334
- Object.assign(contents, doc);
1335
- return contents;
1336
- };
1337
- exports.de_GetGatewayTargetCommand = de_GetGatewayTargetCommand;
1338
- const de_GetMemoryCommand = async (output, context) => {
1339
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1340
- return de_CommandError(output, context);
1341
- }
1342
- const contents = (0, smithy_client_1.map)({
1343
- $metadata: deserializeMetadata(output),
1344
- });
1345
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1346
- const doc = (0, smithy_client_1.take)(data, {
1347
- memory: (_) => de_Memory(_, context),
1348
- });
1349
- Object.assign(contents, doc);
1350
- return contents;
1351
- };
1352
- exports.de_GetMemoryCommand = de_GetMemoryCommand;
1353
- const de_GetOauth2CredentialProviderCommand = async (output, context) => {
1354
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1355
- return de_CommandError(output, context);
1356
- }
1357
- const contents = (0, smithy_client_1.map)({
1358
- $metadata: deserializeMetadata(output),
1359
- });
1360
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1361
- const doc = (0, smithy_client_1.take)(data, {
1362
- clientSecretArn: smithy_client_1._json,
1363
- createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1364
- credentialProviderArn: smithy_client_1.expectString,
1365
- credentialProviderVendor: smithy_client_1.expectString,
1366
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1367
- name: smithy_client_1.expectString,
1368
- oauth2ProviderConfigOutput: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1369
- });
1370
- Object.assign(contents, doc);
1371
- return contents;
1372
- };
1373
- exports.de_GetOauth2CredentialProviderCommand = de_GetOauth2CredentialProviderCommand;
1374
- const de_GetTokenVaultCommand = async (output, context) => {
1375
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1376
- return de_CommandError(output, context);
1377
- }
1378
- const contents = (0, smithy_client_1.map)({
1379
- $metadata: deserializeMetadata(output),
1380
- });
1381
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1382
- const doc = (0, smithy_client_1.take)(data, {
1383
- kmsConfiguration: smithy_client_1._json,
1384
- lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1385
- tokenVaultId: smithy_client_1.expectString,
1386
- });
1387
- Object.assign(contents, doc);
1388
- return contents;
1389
- };
1390
- exports.de_GetTokenVaultCommand = de_GetTokenVaultCommand;
1391
- const de_GetWorkloadIdentityCommand = async (output, context) => {
1392
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1393
- return de_CommandError(output, context);
1394
- }
1395
- const contents = (0, smithy_client_1.map)({
1396
- $metadata: deserializeMetadata(output),
1397
- });
1398
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1399
- const doc = (0, smithy_client_1.take)(data, {
1400
- allowedResourceOauth2ReturnUrls: smithy_client_1._json,
1401
- createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1402
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1403
- name: smithy_client_1.expectString,
1404
- workloadIdentityArn: smithy_client_1.expectString,
1405
- });
1406
- Object.assign(contents, doc);
1407
- return contents;
1408
- };
1409
- exports.de_GetWorkloadIdentityCommand = de_GetWorkloadIdentityCommand;
1410
- const de_ListAgentRuntimeEndpointsCommand = async (output, context) => {
1411
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1412
- return de_CommandError(output, context);
1413
- }
1414
- const contents = (0, smithy_client_1.map)({
1415
- $metadata: deserializeMetadata(output),
1416
- });
1417
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1418
- const doc = (0, smithy_client_1.take)(data, {
1419
- nextToken: smithy_client_1.expectString,
1420
- runtimeEndpoints: (_) => de_AgentRuntimeEndpoints(_, context),
1421
- });
1422
- Object.assign(contents, doc);
1423
- return contents;
1424
- };
1425
- exports.de_ListAgentRuntimeEndpointsCommand = de_ListAgentRuntimeEndpointsCommand;
1426
- const de_ListAgentRuntimesCommand = async (output, context) => {
1427
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1428
- return de_CommandError(output, context);
1429
- }
1430
- const contents = (0, smithy_client_1.map)({
1431
- $metadata: deserializeMetadata(output),
1432
- });
1433
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1434
- const doc = (0, smithy_client_1.take)(data, {
1435
- agentRuntimes: (_) => de_AgentRuntimes(_, context),
1436
- nextToken: smithy_client_1.expectString,
1437
- });
1438
- Object.assign(contents, doc);
1439
- return contents;
1440
- };
1441
- exports.de_ListAgentRuntimesCommand = de_ListAgentRuntimesCommand;
1442
- const de_ListAgentRuntimeVersionsCommand = async (output, context) => {
1443
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1444
- return de_CommandError(output, context);
1445
- }
1446
- const contents = (0, smithy_client_1.map)({
1447
- $metadata: deserializeMetadata(output),
1448
- });
1449
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1450
- const doc = (0, smithy_client_1.take)(data, {
1451
- agentRuntimes: (_) => de_AgentRuntimes(_, context),
1452
- nextToken: smithy_client_1.expectString,
1453
- });
1454
- Object.assign(contents, doc);
1455
- return contents;
1456
- };
1457
- exports.de_ListAgentRuntimeVersionsCommand = de_ListAgentRuntimeVersionsCommand;
1458
- const de_ListApiKeyCredentialProvidersCommand = async (output, context) => {
1459
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1460
- return de_CommandError(output, context);
1461
- }
1462
- const contents = (0, smithy_client_1.map)({
1463
- $metadata: deserializeMetadata(output),
1464
- });
1465
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1466
- const doc = (0, smithy_client_1.take)(data, {
1467
- credentialProviders: (_) => de_ApiKeyCredentialProviders(_, context),
1468
- nextToken: smithy_client_1.expectString,
1469
- });
1470
- Object.assign(contents, doc);
1471
- return contents;
1472
- };
1473
- exports.de_ListApiKeyCredentialProvidersCommand = de_ListApiKeyCredentialProvidersCommand;
1474
- const de_ListBrowsersCommand = async (output, context) => {
1475
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1476
- return de_CommandError(output, context);
1477
- }
1478
- const contents = (0, smithy_client_1.map)({
1479
- $metadata: deserializeMetadata(output),
1480
- });
1481
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1482
- const doc = (0, smithy_client_1.take)(data, {
1483
- browserSummaries: (_) => de_BrowserSummaries(_, context),
1484
- nextToken: smithy_client_1.expectString,
1485
- });
1486
- Object.assign(contents, doc);
1487
- return contents;
1488
- };
1489
- exports.de_ListBrowsersCommand = de_ListBrowsersCommand;
1490
- const de_ListCodeInterpretersCommand = async (output, context) => {
1491
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1492
- return de_CommandError(output, context);
1493
- }
1494
- const contents = (0, smithy_client_1.map)({
1495
- $metadata: deserializeMetadata(output),
1496
- });
1497
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1498
- const doc = (0, smithy_client_1.take)(data, {
1499
- codeInterpreterSummaries: (_) => de_CodeInterpreterSummaries(_, context),
1500
- nextToken: smithy_client_1.expectString,
1501
- });
1502
- Object.assign(contents, doc);
1503
- return contents;
1504
- };
1505
- exports.de_ListCodeInterpretersCommand = de_ListCodeInterpretersCommand;
1506
- const de_ListGatewaysCommand = async (output, context) => {
1507
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1508
- return de_CommandError(output, context);
1509
- }
1510
- const contents = (0, smithy_client_1.map)({
1511
- $metadata: deserializeMetadata(output),
1512
- });
1513
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1514
- const doc = (0, smithy_client_1.take)(data, {
1515
- items: (_) => de_GatewaySummaries(_, context),
1516
- nextToken: smithy_client_1.expectString,
1517
- });
1518
- Object.assign(contents, doc);
1519
- return contents;
1520
- };
1521
- exports.de_ListGatewaysCommand = de_ListGatewaysCommand;
1522
- const de_ListGatewayTargetsCommand = async (output, context) => {
1523
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1524
- return de_CommandError(output, context);
1525
- }
1526
- const contents = (0, smithy_client_1.map)({
1527
- $metadata: deserializeMetadata(output),
1528
- });
1529
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1530
- const doc = (0, smithy_client_1.take)(data, {
1531
- items: (_) => de_TargetSummaries(_, context),
1532
- nextToken: smithy_client_1.expectString,
1533
- });
1534
- Object.assign(contents, doc);
1535
- return contents;
1536
- };
1537
- exports.de_ListGatewayTargetsCommand = de_ListGatewayTargetsCommand;
1538
- const de_ListMemoriesCommand = async (output, context) => {
1539
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1540
- return de_CommandError(output, context);
1541
- }
1542
- const contents = (0, smithy_client_1.map)({
1543
- $metadata: deserializeMetadata(output),
1544
- });
1545
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1546
- const doc = (0, smithy_client_1.take)(data, {
1547
- memories: (_) => de_MemorySummaryList(_, context),
1548
- nextToken: smithy_client_1.expectString,
1549
- });
1550
- Object.assign(contents, doc);
1551
- return contents;
1552
- };
1553
- exports.de_ListMemoriesCommand = de_ListMemoriesCommand;
1554
- const de_ListOauth2CredentialProvidersCommand = async (output, context) => {
1555
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1556
- return de_CommandError(output, context);
1557
- }
1558
- const contents = (0, smithy_client_1.map)({
1559
- $metadata: deserializeMetadata(output),
1560
- });
1561
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1562
- const doc = (0, smithy_client_1.take)(data, {
1563
- credentialProviders: (_) => de_Oauth2CredentialProviders(_, context),
1564
- nextToken: smithy_client_1.expectString,
1565
- });
1566
- Object.assign(contents, doc);
1567
- return contents;
1568
- };
1569
- exports.de_ListOauth2CredentialProvidersCommand = de_ListOauth2CredentialProvidersCommand;
1570
- const de_ListTagsForResourceCommand = async (output, context) => {
1571
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1572
- return de_CommandError(output, context);
1573
- }
1574
- const contents = (0, smithy_client_1.map)({
1575
- $metadata: deserializeMetadata(output),
1576
- });
1577
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1578
- const doc = (0, smithy_client_1.take)(data, {
1579
- tags: smithy_client_1._json,
1580
- });
1581
- Object.assign(contents, doc);
1582
- return contents;
1583
- };
1584
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1585
- const de_ListWorkloadIdentitiesCommand = async (output, context) => {
1586
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1587
- return de_CommandError(output, context);
1588
- }
1589
- const contents = (0, smithy_client_1.map)({
1590
- $metadata: deserializeMetadata(output),
1591
- });
1592
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1593
- const doc = (0, smithy_client_1.take)(data, {
1594
- nextToken: smithy_client_1.expectString,
1595
- workloadIdentities: smithy_client_1._json,
1596
- });
1597
- Object.assign(contents, doc);
1598
- return contents;
1599
- };
1600
- exports.de_ListWorkloadIdentitiesCommand = de_ListWorkloadIdentitiesCommand;
1601
- const de_SetTokenVaultCMKCommand = async (output, context) => {
1602
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1603
- return de_CommandError(output, context);
1604
- }
1605
- const contents = (0, smithy_client_1.map)({
1606
- $metadata: deserializeMetadata(output),
1607
- });
1608
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1609
- const doc = (0, smithy_client_1.take)(data, {
1610
- kmsConfiguration: smithy_client_1._json,
1611
- lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1612
- tokenVaultId: smithy_client_1.expectString,
1613
- });
1614
- Object.assign(contents, doc);
1615
- return contents;
1616
- };
1617
- exports.de_SetTokenVaultCMKCommand = de_SetTokenVaultCMKCommand;
1618
- const de_TagResourceCommand = async (output, context) => {
1619
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1620
- return de_CommandError(output, context);
1621
- }
1622
- const contents = (0, smithy_client_1.map)({
1623
- $metadata: deserializeMetadata(output),
1624
- });
1625
- await (0, smithy_client_1.collectBody)(output.body, context);
1626
- return contents;
1627
- };
1628
- exports.de_TagResourceCommand = de_TagResourceCommand;
1629
- const de_UntagResourceCommand = async (output, context) => {
1630
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1631
- return de_CommandError(output, context);
1632
- }
1633
- const contents = (0, smithy_client_1.map)({
1634
- $metadata: deserializeMetadata(output),
1635
- });
1636
- await (0, smithy_client_1.collectBody)(output.body, context);
1637
- return contents;
1638
- };
1639
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
1640
- const de_UpdateAgentRuntimeCommand = async (output, context) => {
1641
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1642
- return de_CommandError(output, context);
1643
- }
1644
- const contents = (0, smithy_client_1.map)({
1645
- $metadata: deserializeMetadata(output),
1646
- });
1647
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1648
- const doc = (0, smithy_client_1.take)(data, {
1649
- agentRuntimeArn: smithy_client_1.expectString,
1650
- agentRuntimeId: smithy_client_1.expectString,
1651
- agentRuntimeVersion: smithy_client_1.expectString,
1652
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1653
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1654
- status: smithy_client_1.expectString,
1655
- workloadIdentityDetails: smithy_client_1._json,
1656
- });
1657
- Object.assign(contents, doc);
1658
- return contents;
1659
- };
1660
- exports.de_UpdateAgentRuntimeCommand = de_UpdateAgentRuntimeCommand;
1661
- const de_UpdateAgentRuntimeEndpointCommand = async (output, context) => {
1662
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1663
- return de_CommandError(output, context);
1664
- }
1665
- const contents = (0, smithy_client_1.map)({
1666
- $metadata: deserializeMetadata(output),
1667
- });
1668
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1669
- const doc = (0, smithy_client_1.take)(data, {
1670
- agentRuntimeArn: smithy_client_1.expectString,
1671
- agentRuntimeEndpointArn: smithy_client_1.expectString,
1672
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1673
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1674
- liveVersion: smithy_client_1.expectString,
1675
- status: smithy_client_1.expectString,
1676
- targetVersion: smithy_client_1.expectString,
1677
- });
1678
- Object.assign(contents, doc);
1679
- return contents;
1680
- };
1681
- exports.de_UpdateAgentRuntimeEndpointCommand = de_UpdateAgentRuntimeEndpointCommand;
1682
- const de_UpdateApiKeyCredentialProviderCommand = async (output, context) => {
1683
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1684
- return de_CommandError(output, context);
1685
- }
1686
- const contents = (0, smithy_client_1.map)({
1687
- $metadata: deserializeMetadata(output),
1688
- });
1689
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1690
- const doc = (0, smithy_client_1.take)(data, {
1691
- apiKeySecretArn: smithy_client_1._json,
1692
- createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1693
- credentialProviderArn: smithy_client_1.expectString,
1694
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1695
- name: smithy_client_1.expectString,
1696
- });
1697
- Object.assign(contents, doc);
1698
- return contents;
1699
- };
1700
- exports.de_UpdateApiKeyCredentialProviderCommand = de_UpdateApiKeyCredentialProviderCommand;
1701
- const de_UpdateGatewayCommand = async (output, context) => {
1702
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1703
- return de_CommandError(output, context);
1704
- }
1705
- const contents = (0, smithy_client_1.map)({
1706
- $metadata: deserializeMetadata(output),
1707
- });
1708
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1709
- const doc = (0, smithy_client_1.take)(data, {
1710
- authorizerConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1711
- authorizerType: smithy_client_1.expectString,
1712
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1713
- description: smithy_client_1.expectString,
1714
- exceptionLevel: smithy_client_1.expectString,
1715
- gatewayArn: smithy_client_1.expectString,
1716
- gatewayId: smithy_client_1.expectString,
1717
- gatewayUrl: smithy_client_1.expectString,
1718
- kmsKeyArn: smithy_client_1.expectString,
1719
- name: smithy_client_1.expectString,
1720
- protocolConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1721
- protocolType: smithy_client_1.expectString,
1722
- roleArn: smithy_client_1.expectString,
1723
- status: smithy_client_1.expectString,
1724
- statusReasons: smithy_client_1._json,
1725
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1726
- workloadIdentityDetails: smithy_client_1._json,
1727
- });
1728
- Object.assign(contents, doc);
1729
- return contents;
1730
- };
1731
- exports.de_UpdateGatewayCommand = de_UpdateGatewayCommand;
1732
- const de_UpdateGatewayTargetCommand = async (output, context) => {
1733
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1734
- return de_CommandError(output, context);
1735
- }
1736
- const contents = (0, smithy_client_1.map)({
1737
- $metadata: deserializeMetadata(output),
1738
- });
1739
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1740
- const doc = (0, smithy_client_1.take)(data, {
1741
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1742
- credentialProviderConfigurations: smithy_client_1._json,
1743
- description: smithy_client_1.expectString,
1744
- gatewayArn: smithy_client_1.expectString,
1745
- name: smithy_client_1.expectString,
1746
- status: smithy_client_1.expectString,
1747
- statusReasons: smithy_client_1._json,
1748
- targetConfiguration: (_) => de_TargetConfiguration((0, core_1.awsExpectUnion)(_), context),
1749
- targetId: smithy_client_1.expectString,
1750
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1751
- });
1752
- Object.assign(contents, doc);
1753
- return contents;
1754
- };
1755
- exports.de_UpdateGatewayTargetCommand = de_UpdateGatewayTargetCommand;
1756
- const de_UpdateMemoryCommand = async (output, context) => {
1757
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1758
- return de_CommandError(output, context);
1759
- }
1760
- const contents = (0, smithy_client_1.map)({
1761
- $metadata: deserializeMetadata(output),
1762
- });
1763
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1764
- const doc = (0, smithy_client_1.take)(data, {
1765
- memory: (_) => de_Memory(_, context),
1766
- });
1767
- Object.assign(contents, doc);
1768
- return contents;
1769
- };
1770
- exports.de_UpdateMemoryCommand = de_UpdateMemoryCommand;
1771
- const de_UpdateOauth2CredentialProviderCommand = async (output, context) => {
1772
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1773
- return de_CommandError(output, context);
1774
- }
1775
- const contents = (0, smithy_client_1.map)({
1776
- $metadata: deserializeMetadata(output),
1777
- });
1778
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1779
- const doc = (0, smithy_client_1.take)(data, {
1780
- clientSecretArn: smithy_client_1._json,
1781
- createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1782
- credentialProviderArn: smithy_client_1.expectString,
1783
- credentialProviderVendor: smithy_client_1.expectString,
1784
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1785
- name: smithy_client_1.expectString,
1786
- oauth2ProviderConfigOutput: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1787
- });
1788
- Object.assign(contents, doc);
1789
- return contents;
1790
- };
1791
- exports.de_UpdateOauth2CredentialProviderCommand = de_UpdateOauth2CredentialProviderCommand;
1792
- const de_UpdateWorkloadIdentityCommand = async (output, context) => {
1793
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1794
- return de_CommandError(output, context);
1795
- }
1796
- const contents = (0, smithy_client_1.map)({
1797
- $metadata: deserializeMetadata(output),
1798
- });
1799
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1800
- const doc = (0, smithy_client_1.take)(data, {
1801
- allowedResourceOauth2ReturnUrls: smithy_client_1._json,
1802
- createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1803
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1804
- name: smithy_client_1.expectString,
1805
- workloadIdentityArn: smithy_client_1.expectString,
1806
- });
1807
- Object.assign(contents, doc);
1808
- return contents;
1809
- };
1810
- exports.de_UpdateWorkloadIdentityCommand = de_UpdateWorkloadIdentityCommand;
1811
- const de_CommandError = async (output, context) => {
1812
- const parsedOutput = {
1813
- ...output,
1814
- body: await (0, core_1.parseJsonErrorBody)(output.body, context),
1815
- };
1816
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
1817
- switch (errorCode) {
1818
- case "AccessDeniedException":
1819
- case "com.amazonaws.bedrockagentcorecontrol#AccessDeniedException":
1820
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1821
- case "ConflictException":
1822
- case "com.amazonaws.bedrockagentcorecontrol#ConflictException":
1823
- throw await de_ConflictExceptionRes(parsedOutput, context);
1824
- case "InternalServerException":
1825
- case "com.amazonaws.bedrockagentcorecontrol#InternalServerException":
1826
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1827
- case "ServiceQuotaExceededException":
1828
- case "com.amazonaws.bedrockagentcorecontrol#ServiceQuotaExceededException":
1829
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1830
- case "ThrottlingException":
1831
- case "com.amazonaws.bedrockagentcorecontrol#ThrottlingException":
1832
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1833
- case "ValidationException":
1834
- case "com.amazonaws.bedrockagentcorecontrol#ValidationException":
1835
- throw await de_ValidationExceptionRes(parsedOutput, context);
1836
- case "ResourceNotFoundException":
1837
- case "com.amazonaws.bedrockagentcorecontrol#ResourceNotFoundException":
1838
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1839
- case "DecryptionFailure":
1840
- case "com.amazonaws.bedrockagentcorecontrol#DecryptionFailure":
1841
- throw await de_DecryptionFailureRes(parsedOutput, context);
1842
- case "EncryptionFailure":
1843
- case "com.amazonaws.bedrockagentcorecontrol#EncryptionFailure":
1844
- throw await de_EncryptionFailureRes(parsedOutput, context);
1845
- case "ResourceLimitExceededException":
1846
- case "com.amazonaws.bedrockagentcorecontrol#ResourceLimitExceededException":
1847
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1848
- case "UnauthorizedException":
1849
- case "com.amazonaws.bedrockagentcorecontrol#UnauthorizedException":
1850
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1851
- case "ServiceException":
1852
- case "com.amazonaws.bedrockagentcorecontrol#ServiceException":
1853
- throw await de_ServiceExceptionRes(parsedOutput, context);
1854
- case "ThrottledException":
1855
- case "com.amazonaws.bedrockagentcorecontrol#ThrottledException":
1856
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1857
- case "ConcurrentModificationException":
1858
- case "com.amazonaws.bedrockagentcorecontrol#ConcurrentModificationException":
1859
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1860
- default:
1861
- const parsedBody = parsedOutput.body;
1862
- return throwDefaultError({
1863
- output,
1864
- parsedBody,
1865
- errorCode,
1866
- });
1867
- }
1868
- };
1869
- const throwDefaultError = (0, smithy_client_1.withBaseException)(BedrockAgentCoreControlServiceException_1.BedrockAgentCoreControlServiceException);
1870
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1871
- const contents = (0, smithy_client_1.map)({});
1872
- const data = parsedOutput.body;
1873
- const doc = (0, smithy_client_1.take)(data, {
1874
- message: smithy_client_1.expectString,
1875
- });
1876
- Object.assign(contents, doc);
1877
- const exception = new models_0_1.AccessDeniedException({
1878
- $metadata: deserializeMetadata(parsedOutput),
1879
- ...contents,
1880
- });
1881
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1882
- };
1883
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1884
- const contents = (0, smithy_client_1.map)({});
1885
- const data = parsedOutput.body;
1886
- const doc = (0, smithy_client_1.take)(data, {
1887
- message: smithy_client_1.expectString,
1888
- });
1889
- Object.assign(contents, doc);
1890
- const exception = new models_0_1.ConcurrentModificationException({
1891
- $metadata: deserializeMetadata(parsedOutput),
1892
- ...contents,
1893
- });
1894
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1895
- };
1896
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1897
- const contents = (0, smithy_client_1.map)({});
1898
- const data = parsedOutput.body;
1899
- const doc = (0, smithy_client_1.take)(data, {
1900
- message: smithy_client_1.expectString,
1901
- });
1902
- Object.assign(contents, doc);
1903
- const exception = new models_0_1.ConflictException({
1904
- $metadata: deserializeMetadata(parsedOutput),
1905
- ...contents,
1906
- });
1907
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1908
- };
1909
- const de_DecryptionFailureRes = async (parsedOutput, context) => {
1910
- const contents = (0, smithy_client_1.map)({});
1911
- const data = parsedOutput.body;
1912
- const doc = (0, smithy_client_1.take)(data, {
1913
- message: smithy_client_1.expectString,
1914
- });
1915
- Object.assign(contents, doc);
1916
- const exception = new models_0_1.DecryptionFailure({
1917
- $metadata: deserializeMetadata(parsedOutput),
1918
- ...contents,
1919
- });
1920
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1921
- };
1922
- const de_EncryptionFailureRes = async (parsedOutput, context) => {
1923
- const contents = (0, smithy_client_1.map)({});
1924
- const data = parsedOutput.body;
1925
- const doc = (0, smithy_client_1.take)(data, {
1926
- message: smithy_client_1.expectString,
1927
- });
1928
- Object.assign(contents, doc);
1929
- const exception = new models_0_1.EncryptionFailure({
1930
- $metadata: deserializeMetadata(parsedOutput),
1931
- ...contents,
1932
- });
1933
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1934
- };
1935
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1936
- const contents = (0, smithy_client_1.map)({});
1937
- const data = parsedOutput.body;
1938
- const doc = (0, smithy_client_1.take)(data, {
1939
- message: smithy_client_1.expectString,
1940
- });
1941
- Object.assign(contents, doc);
1942
- const exception = new models_0_1.InternalServerException({
1943
- $metadata: deserializeMetadata(parsedOutput),
1944
- ...contents,
1945
- });
1946
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1947
- };
1948
- const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
1949
- const contents = (0, smithy_client_1.map)({});
1950
- const data = parsedOutput.body;
1951
- const doc = (0, smithy_client_1.take)(data, {
1952
- message: smithy_client_1.expectString,
1953
- });
1954
- Object.assign(contents, doc);
1955
- const exception = new models_0_1.ResourceLimitExceededException({
1956
- $metadata: deserializeMetadata(parsedOutput),
1957
- ...contents,
1958
- });
1959
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1960
- };
1961
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1962
- const contents = (0, smithy_client_1.map)({});
1963
- const data = parsedOutput.body;
1964
- const doc = (0, smithy_client_1.take)(data, {
1965
- message: smithy_client_1.expectString,
1966
- });
1967
- Object.assign(contents, doc);
1968
- const exception = new models_0_1.ResourceNotFoundException({
1969
- $metadata: deserializeMetadata(parsedOutput),
1970
- ...contents,
1971
- });
1972
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1973
- };
1974
- const de_ServiceExceptionRes = async (parsedOutput, context) => {
1975
- const contents = (0, smithy_client_1.map)({});
1976
- const data = parsedOutput.body;
1977
- const doc = (0, smithy_client_1.take)(data, {
1978
- message: smithy_client_1.expectString,
1979
- });
1980
- Object.assign(contents, doc);
1981
- const exception = new models_0_1.ServiceException({
1982
- $metadata: deserializeMetadata(parsedOutput),
1983
- ...contents,
1984
- });
1985
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1986
- };
1987
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1988
- const contents = (0, smithy_client_1.map)({});
1989
- const data = parsedOutput.body;
1990
- const doc = (0, smithy_client_1.take)(data, {
1991
- message: smithy_client_1.expectString,
1992
- });
1993
- Object.assign(contents, doc);
1994
- const exception = new models_0_1.ServiceQuotaExceededException({
1995
- $metadata: deserializeMetadata(parsedOutput),
1996
- ...contents,
1997
- });
1998
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1999
- };
2000
- const de_ThrottledExceptionRes = async (parsedOutput, context) => {
2001
- const contents = (0, smithy_client_1.map)({});
2002
- const data = parsedOutput.body;
2003
- const doc = (0, smithy_client_1.take)(data, {
2004
- message: smithy_client_1.expectString,
2005
- });
2006
- Object.assign(contents, doc);
2007
- const exception = new models_0_1.ThrottledException({
2008
- $metadata: deserializeMetadata(parsedOutput),
2009
- ...contents,
2010
- });
2011
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2012
- };
2013
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2014
- const contents = (0, smithy_client_1.map)({});
2015
- const data = parsedOutput.body;
2016
- const doc = (0, smithy_client_1.take)(data, {
2017
- message: smithy_client_1.expectString,
2018
- });
2019
- Object.assign(contents, doc);
2020
- const exception = new models_0_1.ThrottlingException({
2021
- $metadata: deserializeMetadata(parsedOutput),
2022
- ...contents,
2023
- });
2024
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2025
- };
2026
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
2027
- const contents = (0, smithy_client_1.map)({});
2028
- const data = parsedOutput.body;
2029
- const doc = (0, smithy_client_1.take)(data, {
2030
- message: smithy_client_1.expectString,
2031
- });
2032
- Object.assign(contents, doc);
2033
- const exception = new models_0_1.UnauthorizedException({
2034
- $metadata: deserializeMetadata(parsedOutput),
2035
- ...contents,
2036
- });
2037
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2038
- };
2039
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2040
- const contents = (0, smithy_client_1.map)({});
2041
- const data = parsedOutput.body;
2042
- const doc = (0, smithy_client_1.take)(data, {
2043
- fieldList: smithy_client_1._json,
2044
- message: smithy_client_1.expectString,
2045
- reason: smithy_client_1.expectString,
2046
- });
2047
- Object.assign(contents, doc);
2048
- const exception = new models_0_1.ValidationException({
2049
- $metadata: deserializeMetadata(parsedOutput),
2050
- ...contents,
2051
- });
2052
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2053
- };
2054
- const se_McpLambdaTargetConfiguration = (input, context) => {
2055
- return (0, smithy_client_1.take)(input, {
2056
- lambdaArn: [],
2057
- toolSchema: (_) => se_ToolSchema(_, context),
2058
- });
2059
- };
2060
- const se_McpTargetConfiguration = (input, context) => {
2061
- return models_0_1.McpTargetConfiguration.visit(input, {
2062
- lambda: (value) => ({ lambda: se_McpLambdaTargetConfiguration(value, context) }),
2063
- openApiSchema: (value) => ({ openApiSchema: (0, smithy_client_1._json)(value) }),
2064
- smithyModel: (value) => ({ smithyModel: (0, smithy_client_1._json)(value) }),
2065
- _: (name, value) => ({ [name]: value }),
2066
- });
2067
- };
2068
- const se_SchemaDefinition = (input, context) => {
2069
- return (0, smithy_client_1.take)(input, {
2070
- description: [],
2071
- items: (_) => se_SchemaDefinition(_, context),
2072
- properties: (_) => se_SchemaProperties(_, context),
2073
- required: smithy_client_1._json,
2074
- type: [],
2075
- });
2076
- };
2077
- const se_SchemaProperties = (input, context) => {
2078
- return Object.entries(input).reduce((acc, [key, value]) => {
2079
- if (value === null) {
2080
- return acc;
2081
- }
2082
- acc[key] = se_SchemaDefinition(value, context);
2083
- return acc;
2084
- }, {});
2085
- };
2086
- const se_TargetConfiguration = (input, context) => {
2087
- return models_0_1.TargetConfiguration.visit(input, {
2088
- mcp: (value) => ({ mcp: se_McpTargetConfiguration(value, context) }),
2089
- _: (name, value) => ({ [name]: value }),
2090
- });
2091
- };
2092
- const se_ToolDefinition = (input, context) => {
2093
- return (0, smithy_client_1.take)(input, {
2094
- description: [],
2095
- inputSchema: (_) => se_SchemaDefinition(_, context),
2096
- name: [],
2097
- outputSchema: (_) => se_SchemaDefinition(_, context),
2098
- });
2099
- };
2100
- const se_ToolDefinitions = (input, context) => {
2101
- return input
2102
- .filter((e) => e != null)
2103
- .map((entry) => {
2104
- return se_ToolDefinition(entry, context);
2105
- });
2106
- };
2107
- const se_ToolSchema = (input, context) => {
2108
- return models_0_1.ToolSchema.visit(input, {
2109
- inlinePayload: (value) => ({ inlinePayload: se_ToolDefinitions(value, context) }),
2110
- s3: (value) => ({ s3: (0, smithy_client_1._json)(value) }),
2111
- _: (name, value) => ({ [name]: value }),
2112
- });
2113
- };
2114
- const de_AgentRuntime = (output, context) => {
2115
- return (0, smithy_client_1.take)(output, {
2116
- agentRuntimeArn: smithy_client_1.expectString,
2117
- agentRuntimeId: smithy_client_1.expectString,
2118
- agentRuntimeName: smithy_client_1.expectString,
2119
- agentRuntimeVersion: smithy_client_1.expectString,
2120
- description: smithy_client_1.expectString,
2121
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2122
- status: smithy_client_1.expectString,
2123
- });
2124
- };
2125
- const de_AgentRuntimeEndpoint = (output, context) => {
2126
- return (0, smithy_client_1.take)(output, {
2127
- agentRuntimeArn: smithy_client_1.expectString,
2128
- agentRuntimeEndpointArn: smithy_client_1.expectString,
2129
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2130
- description: smithy_client_1.expectString,
2131
- id: smithy_client_1.expectString,
2132
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2133
- liveVersion: smithy_client_1.expectString,
2134
- name: smithy_client_1.expectString,
2135
- status: smithy_client_1.expectString,
2136
- targetVersion: smithy_client_1.expectString,
2137
- });
2138
- };
2139
- const de_AgentRuntimeEndpoints = (output, context) => {
2140
- const retVal = (output || [])
2141
- .filter((e) => e != null)
2142
- .map((entry) => {
2143
- return de_AgentRuntimeEndpoint(entry, context);
2144
- });
2145
- return retVal;
2146
- };
2147
- const de_AgentRuntimes = (output, context) => {
2148
- const retVal = (output || [])
2149
- .filter((e) => e != null)
2150
- .map((entry) => {
2151
- return de_AgentRuntime(entry, context);
2152
- });
2153
- return retVal;
2154
- };
2155
- const de_ApiKeyCredentialProviderItem = (output, context) => {
2156
- return (0, smithy_client_1.take)(output, {
2157
- createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2158
- credentialProviderArn: smithy_client_1.expectString,
2159
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2160
- name: smithy_client_1.expectString,
2161
- });
2162
- };
2163
- const de_ApiKeyCredentialProviders = (output, context) => {
2164
- const retVal = (output || [])
2165
- .filter((e) => e != null)
2166
- .map((entry) => {
2167
- return de_ApiKeyCredentialProviderItem(entry, context);
2168
- });
2169
- return retVal;
2170
- };
2171
- const de_BrowserSummaries = (output, context) => {
2172
- const retVal = (output || [])
2173
- .filter((e) => e != null)
2174
- .map((entry) => {
2175
- return de_BrowserSummary(entry, context);
2176
- });
2177
- return retVal;
2178
- };
2179
- const de_BrowserSummary = (output, context) => {
2180
- return (0, smithy_client_1.take)(output, {
2181
- browserArn: smithy_client_1.expectString,
2182
- browserId: smithy_client_1.expectString,
2183
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2184
- description: smithy_client_1.expectString,
2185
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2186
- name: smithy_client_1.expectString,
2187
- status: smithy_client_1.expectString,
2188
- });
2189
- };
2190
- const de_CodeInterpreterSummaries = (output, context) => {
2191
- const retVal = (output || [])
2192
- .filter((e) => e != null)
2193
- .map((entry) => {
2194
- return de_CodeInterpreterSummary(entry, context);
2195
- });
2196
- return retVal;
2197
- };
2198
- const de_CodeInterpreterSummary = (output, context) => {
2199
- return (0, smithy_client_1.take)(output, {
2200
- codeInterpreterArn: smithy_client_1.expectString,
2201
- codeInterpreterId: smithy_client_1.expectString,
2202
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2203
- description: smithy_client_1.expectString,
2204
- lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2205
- name: smithy_client_1.expectString,
2206
- status: smithy_client_1.expectString,
2207
- });
2208
- };
2209
- const de_GatewaySummaries = (output, context) => {
2210
- const retVal = (output || [])
2211
- .filter((e) => e != null)
2212
- .map((entry) => {
2213
- return de_GatewaySummary(entry, context);
2214
- });
2215
- return retVal;
2216
- };
2217
- const de_GatewaySummary = (output, context) => {
2218
- return (0, smithy_client_1.take)(output, {
2219
- authorizerType: smithy_client_1.expectString,
2220
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2221
- description: smithy_client_1.expectString,
2222
- gatewayId: smithy_client_1.expectString,
2223
- name: smithy_client_1.expectString,
2224
- protocolType: smithy_client_1.expectString,
2225
- status: smithy_client_1.expectString,
2226
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2227
- });
2228
- };
2229
- const de_McpLambdaTargetConfiguration = (output, context) => {
2230
- return (0, smithy_client_1.take)(output, {
2231
- lambdaArn: smithy_client_1.expectString,
2232
- toolSchema: (_) => de_ToolSchema((0, core_1.awsExpectUnion)(_), context),
2233
- });
2234
- };
2235
- const de_McpTargetConfiguration = (output, context) => {
2236
- if (output.lambda != null) {
2237
- return {
2238
- lambda: de_McpLambdaTargetConfiguration(output.lambda, context),
2239
- };
2240
- }
2241
- if (output.openApiSchema != null) {
2242
- return {
2243
- openApiSchema: (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(output.openApiSchema)),
2244
- };
2245
- }
2246
- if (output.smithyModel != null) {
2247
- return {
2248
- smithyModel: (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(output.smithyModel)),
2249
- };
2250
- }
2251
- return { $unknown: Object.entries(output)[0] };
2252
- };
2253
- const de_Memory = (output, context) => {
2254
- return (0, smithy_client_1.take)(output, {
2255
- arn: smithy_client_1.expectString,
2256
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2257
- description: smithy_client_1.expectString,
2258
- encryptionKeyArn: smithy_client_1.expectString,
2259
- eventExpiryDuration: smithy_client_1.expectInt32,
2260
- failureReason: smithy_client_1.expectString,
2261
- id: smithy_client_1.expectString,
2262
- memoryExecutionRoleArn: smithy_client_1.expectString,
2263
- name: smithy_client_1.expectString,
2264
- status: smithy_client_1.expectString,
2265
- strategies: (_) => de_MemoryStrategyList(_, context),
2266
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2267
- });
2268
- };
2269
- const de_MemoryStrategy = (output, context) => {
2270
- return (0, smithy_client_1.take)(output, {
2271
- configuration: smithy_client_1._json,
2272
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2273
- description: smithy_client_1.expectString,
2274
- name: smithy_client_1.expectString,
2275
- namespaces: smithy_client_1._json,
2276
- status: smithy_client_1.expectString,
2277
- strategyId: smithy_client_1.expectString,
2278
- type: smithy_client_1.expectString,
2279
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2280
- });
2281
- };
2282
- const de_MemoryStrategyList = (output, context) => {
2283
- const retVal = (output || [])
2284
- .filter((e) => e != null)
2285
- .map((entry) => {
2286
- return de_MemoryStrategy(entry, context);
2287
- });
2288
- return retVal;
2289
- };
2290
- const de_MemorySummary = (output, context) => {
2291
- return (0, smithy_client_1.take)(output, {
2292
- arn: smithy_client_1.expectString,
2293
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2294
- id: smithy_client_1.expectString,
2295
- status: smithy_client_1.expectString,
2296
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2297
- });
2298
- };
2299
- const de_MemorySummaryList = (output, context) => {
2300
- const retVal = (output || [])
2301
- .filter((e) => e != null)
2302
- .map((entry) => {
2303
- return de_MemorySummary(entry, context);
2304
- });
2305
- return retVal;
2306
- };
2307
- const de_Oauth2CredentialProviderItem = (output, context) => {
2308
- return (0, smithy_client_1.take)(output, {
2309
- createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2310
- credentialProviderArn: smithy_client_1.expectString,
2311
- credentialProviderVendor: smithy_client_1.expectString,
2312
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2313
- name: smithy_client_1.expectString,
2314
- });
2315
- };
2316
- const de_Oauth2CredentialProviders = (output, context) => {
2317
- const retVal = (output || [])
2318
- .filter((e) => e != null)
2319
- .map((entry) => {
2320
- return de_Oauth2CredentialProviderItem(entry, context);
2321
- });
2322
- return retVal;
2323
- };
2324
- const de_SchemaDefinition = (output, context) => {
2325
- return (0, smithy_client_1.take)(output, {
2326
- description: smithy_client_1.expectString,
2327
- items: (_) => de_SchemaDefinition(_, context),
2328
- properties: (_) => de_SchemaProperties(_, context),
2329
- required: smithy_client_1._json,
2330
- type: smithy_client_1.expectString,
2331
- });
2332
- };
2333
- const de_SchemaProperties = (output, context) => {
2334
- return Object.entries(output).reduce((acc, [key, value]) => {
2335
- if (value === null) {
2336
- return acc;
2337
- }
2338
- acc[key] = de_SchemaDefinition(value, context);
2339
- return acc;
2340
- }, {});
2341
- };
2342
- const de_TargetConfiguration = (output, context) => {
2343
- if (output.mcp != null) {
2344
- return {
2345
- mcp: de_McpTargetConfiguration((0, core_1.awsExpectUnion)(output.mcp), context),
2346
- };
2347
- }
2348
- return { $unknown: Object.entries(output)[0] };
2349
- };
2350
- const de_TargetSummaries = (output, context) => {
2351
- const retVal = (output || [])
2352
- .filter((e) => e != null)
2353
- .map((entry) => {
2354
- return de_TargetSummary(entry, context);
2355
- });
2356
- return retVal;
2357
- };
2358
- const de_TargetSummary = (output, context) => {
2359
- return (0, smithy_client_1.take)(output, {
2360
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2361
- description: smithy_client_1.expectString,
2362
- name: smithy_client_1.expectString,
2363
- status: smithy_client_1.expectString,
2364
- targetId: smithy_client_1.expectString,
2365
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2366
- });
2367
- };
2368
- const de_ToolDefinition = (output, context) => {
2369
- return (0, smithy_client_1.take)(output, {
2370
- description: smithy_client_1.expectString,
2371
- inputSchema: (_) => de_SchemaDefinition(_, context),
2372
- name: smithy_client_1.expectString,
2373
- outputSchema: (_) => de_SchemaDefinition(_, context),
2374
- });
2375
- };
2376
- const de_ToolDefinitions = (output, context) => {
2377
- const retVal = (output || [])
2378
- .filter((e) => e != null)
2379
- .map((entry) => {
2380
- return de_ToolDefinition(entry, context);
2381
- });
2382
- return retVal;
2383
- };
2384
- const de_ToolSchema = (output, context) => {
2385
- if (output.inlinePayload != null) {
2386
- return {
2387
- inlinePayload: de_ToolDefinitions(output.inlinePayload, context),
2388
- };
2389
- }
2390
- if (output.s3 != null) {
2391
- return {
2392
- s3: (0, smithy_client_1._json)(output.s3),
2393
- };
2394
- }
2395
- return { $unknown: Object.entries(output)[0] };
2396
- };
2397
- const deserializeMetadata = (output) => ({
2398
- httpStatusCode: output.statusCode,
2399
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2400
- extendedRequestId: output.headers["x-amz-id-2"],
2401
- cfId: output.headers["x-amz-cf-id"],
2402
- });
2403
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2404
- const _aRV = "agentRuntimeVersion";
2405
- const _cT = "clientToken";
2406
- const _mR = "maxResults";
2407
- const _nT = "nextToken";
2408
- const _t = "type";
2409
- const _tK = "tagKeys";
2410
- const _v = "version";