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