@aws-sdk/client-braket 3.901.0 → 3.907.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 +1250 -1422
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1459 +1,1287 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ConflictException: () => ConflictException,
|
|
34
|
-
CreateJobCommand: () => CreateJobCommand,
|
|
35
|
-
CreateQuantumTaskCommand: () => CreateQuantumTaskCommand,
|
|
36
|
-
DeviceOfflineException: () => DeviceOfflineException,
|
|
37
|
-
DeviceRetiredException: () => DeviceRetiredException,
|
|
38
|
-
DeviceStatus: () => DeviceStatus,
|
|
39
|
-
DeviceType: () => DeviceType,
|
|
40
|
-
GetDeviceCommand: () => GetDeviceCommand,
|
|
41
|
-
GetJobCommand: () => GetJobCommand,
|
|
42
|
-
GetQuantumTaskCommand: () => GetQuantumTaskCommand,
|
|
43
|
-
HybridJobAdditionalAttributeName: () => HybridJobAdditionalAttributeName,
|
|
44
|
-
InternalServiceException: () => InternalServiceException,
|
|
45
|
-
JobEventType: () => JobEventType,
|
|
46
|
-
JobPrimaryStatus: () => JobPrimaryStatus,
|
|
47
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
48
|
-
QuantumTaskAdditionalAttributeName: () => QuantumTaskAdditionalAttributeName,
|
|
49
|
-
QuantumTaskStatus: () => QuantumTaskStatus,
|
|
50
|
-
QueueName: () => QueueName,
|
|
51
|
-
QueuePriority: () => QueuePriority,
|
|
52
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
53
|
-
SearchDevicesCommand: () => SearchDevicesCommand,
|
|
54
|
-
SearchJobsCommand: () => SearchJobsCommand,
|
|
55
|
-
SearchJobsFilterOperator: () => SearchJobsFilterOperator,
|
|
56
|
-
SearchQuantumTasksCommand: () => SearchQuantumTasksCommand,
|
|
57
|
-
SearchQuantumTasksFilterOperator: () => SearchQuantumTasksFilterOperator,
|
|
58
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
59
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
60
|
-
ThrottlingException: () => ThrottlingException,
|
|
61
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
62
|
-
ValidationException: () => ValidationException,
|
|
63
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
64
|
-
_InstanceType: () => _InstanceType,
|
|
65
|
-
__Client: () => import_smithy_client.Client,
|
|
66
|
-
paginateSearchDevices: () => paginateSearchDevices,
|
|
67
|
-
paginateSearchJobs: () => paginateSearchJobs,
|
|
68
|
-
paginateSearchQuantumTasks: () => paginateSearchQuantumTasks
|
|
69
|
-
});
|
|
70
|
-
module.exports = __toCommonJS(index_exports);
|
|
71
|
-
|
|
72
|
-
// src/BraketClient.ts
|
|
73
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
74
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
75
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
76
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
77
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
78
|
-
var import_core = require("@smithy/core");
|
|
79
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
80
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
81
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
82
|
-
|
|
83
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
84
|
-
|
|
85
|
-
// src/endpoint/EndpointParameters.ts
|
|
86
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
87
|
-
return Object.assign(options, {
|
|
88
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
89
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
90
|
-
defaultSigningName: "braket"
|
|
91
|
-
});
|
|
92
|
-
}, "resolveClientEndpointParameters");
|
|
93
|
-
var commonParams = {
|
|
94
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
95
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
96
|
-
Region: { type: "builtInParams", name: "region" },
|
|
97
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "braket",
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
98
33
|
};
|
|
99
34
|
|
|
100
|
-
|
|
101
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
102
73
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
107
79
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
80
|
+
class BraketClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBraketHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
136
108
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
142
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
143
|
-
credentials: config.credentials()
|
|
144
|
-
};
|
|
145
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
146
|
-
|
|
147
|
-
// src/runtimeExtensions.ts
|
|
148
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
149
|
-
const extensionConfiguration = Object.assign(
|
|
150
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
151
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
152
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
153
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
154
|
-
);
|
|
155
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
156
|
-
return Object.assign(
|
|
157
|
-
runtimeConfig,
|
|
158
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
159
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
160
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
161
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
162
|
-
);
|
|
163
|
-
}, "resolveRuntimeExtensions");
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
164
113
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
188
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
189
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
190
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
191
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
192
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
193
|
-
this.middlewareStack.use(
|
|
194
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
195
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBraketHttpAuthSchemeParametersProvider,
|
|
196
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
197
|
-
"aws.auth#sigv4": config.credentials
|
|
198
|
-
}), "identityProviderConfigProvider")
|
|
199
|
-
})
|
|
200
|
-
);
|
|
201
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
205
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
206
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
207
|
-
*/
|
|
208
|
-
destroy() {
|
|
209
|
-
super.destroy();
|
|
210
|
-
}
|
|
114
|
+
class BraketServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, BraketServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class AccessDeniedException extends BraketServiceException {
|
|
122
|
+
name = "AccessDeniedException";
|
|
123
|
+
$fault = "client";
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const CompressionType = {
|
|
134
|
+
GZIP: "GZIP",
|
|
135
|
+
NONE: "NONE",
|
|
211
136
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
137
|
+
const AssociationType = {
|
|
138
|
+
RESERVATION_TIME_WINDOW_ARN: "RESERVATION_TIME_WINDOW_ARN",
|
|
139
|
+
};
|
|
140
|
+
const QueueName = {
|
|
141
|
+
JOBS_QUEUE: "JOBS_QUEUE",
|
|
142
|
+
QUANTUM_TASKS_QUEUE: "QUANTUM_TASKS_QUEUE",
|
|
143
|
+
};
|
|
144
|
+
const QueuePriority = {
|
|
145
|
+
NORMAL: "Normal",
|
|
146
|
+
PRIORITY: "Priority",
|
|
147
|
+
};
|
|
148
|
+
const DeviceStatus = {
|
|
149
|
+
OFFLINE: "OFFLINE",
|
|
150
|
+
ONLINE: "ONLINE",
|
|
151
|
+
RETIRED: "RETIRED",
|
|
152
|
+
};
|
|
153
|
+
const DeviceType = {
|
|
154
|
+
QPU: "QPU",
|
|
155
|
+
SIMULATOR: "SIMULATOR",
|
|
156
|
+
};
|
|
157
|
+
class InternalServiceException extends BraketServiceException {
|
|
158
|
+
name = "InternalServiceException";
|
|
159
|
+
$fault = "server";
|
|
160
|
+
constructor(opts) {
|
|
161
|
+
super({
|
|
162
|
+
name: "InternalServiceException",
|
|
163
|
+
$fault: "server",
|
|
164
|
+
...opts,
|
|
165
|
+
});
|
|
166
|
+
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class ResourceNotFoundException extends BraketServiceException {
|
|
170
|
+
name = "ResourceNotFoundException";
|
|
171
|
+
$fault = "client";
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "ResourceNotFoundException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
class ThrottlingException extends BraketServiceException {
|
|
182
|
+
name = "ThrottlingException";
|
|
183
|
+
$fault = "client";
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "ThrottlingException",
|
|
187
|
+
$fault: "client",
|
|
188
|
+
...opts,
|
|
189
|
+
});
|
|
190
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const ValidationExceptionReason = {
|
|
194
|
+
PROGRAM_SET_VALIDATION_FAILED: "ProgramSetValidationFailed",
|
|
195
|
+
};
|
|
196
|
+
class ValidationException extends BraketServiceException {
|
|
197
|
+
name = "ValidationException";
|
|
198
|
+
$fault = "client";
|
|
199
|
+
reason;
|
|
200
|
+
programSetValidationFailures;
|
|
201
|
+
constructor(opts) {
|
|
202
|
+
super({
|
|
203
|
+
name: "ValidationException",
|
|
204
|
+
$fault: "client",
|
|
205
|
+
...opts,
|
|
206
|
+
});
|
|
207
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
208
|
+
this.reason = opts.reason;
|
|
209
|
+
this.programSetValidationFailures = opts.programSetValidationFailures;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const CancellationStatus = {
|
|
213
|
+
CANCELLED: "CANCELLED",
|
|
214
|
+
CANCELLING: "CANCELLING",
|
|
215
|
+
};
|
|
216
|
+
class ConflictException extends BraketServiceException {
|
|
217
|
+
name = "ConflictException";
|
|
218
|
+
$fault = "client";
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "ConflictException",
|
|
222
|
+
$fault: "client",
|
|
223
|
+
...opts,
|
|
224
|
+
});
|
|
225
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const _InstanceType = {
|
|
229
|
+
ML_C4_2XLARGE: "ml.c4.2xlarge",
|
|
230
|
+
ML_C4_4XLARGE: "ml.c4.4xlarge",
|
|
231
|
+
ML_C4_8XLARGE: "ml.c4.8xlarge",
|
|
232
|
+
ML_C4_XLARGE: "ml.c4.xlarge",
|
|
233
|
+
ML_C5N_18XLARGE: "ml.c5n.18xlarge",
|
|
234
|
+
ML_C5N_2XLARGE: "ml.c5n.2xlarge",
|
|
235
|
+
ML_C5N_4XLARGE: "ml.c5n.4xlarge",
|
|
236
|
+
ML_C5N_9XLARGE: "ml.c5n.9xlarge",
|
|
237
|
+
ML_C5N_XLARGE: "ml.c5n.xlarge",
|
|
238
|
+
ML_C5_18XLARGE: "ml.c5.18xlarge",
|
|
239
|
+
ML_C5_2XLARGE: "ml.c5.2xlarge",
|
|
240
|
+
ML_C5_4XLARGE: "ml.c5.4xlarge",
|
|
241
|
+
ML_C5_9XLARGE: "ml.c5.9xlarge",
|
|
242
|
+
ML_C5_XLARGE: "ml.c5.xlarge",
|
|
243
|
+
ML_G4DN_12XLARGE: "ml.g4dn.12xlarge",
|
|
244
|
+
ML_G4DN_16XLARGE: "ml.g4dn.16xlarge",
|
|
245
|
+
ML_G4DN_2XLARGE: "ml.g4dn.2xlarge",
|
|
246
|
+
ML_G4DN_4XLARGE: "ml.g4dn.4xlarge",
|
|
247
|
+
ML_G4DN_8XLARGE: "ml.g4dn.8xlarge",
|
|
248
|
+
ML_G4DN_XLARGE: "ml.g4dn.xlarge",
|
|
249
|
+
ML_M4_10XLARGE: "ml.m4.10xlarge",
|
|
250
|
+
ML_M4_16XLARGE: "ml.m4.16xlarge",
|
|
251
|
+
ML_M4_2XLARGE: "ml.m4.2xlarge",
|
|
252
|
+
ML_M4_4XLARGE: "ml.m4.4xlarge",
|
|
253
|
+
ML_M4_XLARGE: "ml.m4.xlarge",
|
|
254
|
+
ML_M5_12XLARGE: "ml.m5.12xlarge",
|
|
255
|
+
ML_M5_24XLARGE: "ml.m5.24xlarge",
|
|
256
|
+
ML_M5_2XLARGE: "ml.m5.2xlarge",
|
|
257
|
+
ML_M5_4XLARGE: "ml.m5.4xlarge",
|
|
258
|
+
ML_M5_LARGE: "ml.m5.large",
|
|
259
|
+
ML_M5_XLARGE: "ml.m5.xlarge",
|
|
260
|
+
ML_P2_16XLARGE: "ml.p2.16xlarge",
|
|
261
|
+
ML_P2_8XLARGE: "ml.p2.8xlarge",
|
|
262
|
+
ML_P2_XLARGE: "ml.p2.xlarge",
|
|
263
|
+
ML_P3DN_24XLARGE: "ml.p3dn.24xlarge",
|
|
264
|
+
ML_P3_16XLARGE: "ml.p3.16xlarge",
|
|
265
|
+
ML_P3_2XLARGE: "ml.p3.2xlarge",
|
|
266
|
+
ML_P3_8XLARGE: "ml.p3.8xlarge",
|
|
267
|
+
ML_P4D_24XLARGE: "ml.p4d.24xlarge",
|
|
268
|
+
};
|
|
269
|
+
class DeviceOfflineException extends BraketServiceException {
|
|
270
|
+
name = "DeviceOfflineException";
|
|
271
|
+
$fault = "client";
|
|
272
|
+
constructor(opts) {
|
|
273
|
+
super({
|
|
274
|
+
name: "DeviceOfflineException",
|
|
275
|
+
$fault: "client",
|
|
276
|
+
...opts,
|
|
277
|
+
});
|
|
278
|
+
Object.setPrototypeOf(this, DeviceOfflineException.prototype);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
class DeviceRetiredException extends BraketServiceException {
|
|
282
|
+
name = "DeviceRetiredException";
|
|
283
|
+
$fault = "client";
|
|
284
|
+
constructor(opts) {
|
|
285
|
+
super({
|
|
286
|
+
name: "DeviceRetiredException",
|
|
287
|
+
$fault: "client",
|
|
288
|
+
...opts,
|
|
289
|
+
});
|
|
290
|
+
Object.setPrototypeOf(this, DeviceRetiredException.prototype);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
class ServiceQuotaExceededException extends BraketServiceException {
|
|
294
|
+
name = "ServiceQuotaExceededException";
|
|
295
|
+
$fault = "client";
|
|
296
|
+
constructor(opts) {
|
|
297
|
+
super({
|
|
298
|
+
name: "ServiceQuotaExceededException",
|
|
299
|
+
$fault: "client",
|
|
300
|
+
...opts,
|
|
301
|
+
});
|
|
302
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
const HybridJobAdditionalAttributeName = {
|
|
306
|
+
QUEUE_INFO: "QueueInfo",
|
|
307
|
+
};
|
|
308
|
+
const JobEventType = {
|
|
309
|
+
CANCELLED: "CANCELLED",
|
|
310
|
+
COMPLETED: "COMPLETED",
|
|
311
|
+
DEPRIORITIZED_DUE_TO_INACTIVITY: "DEPRIORITIZED_DUE_TO_INACTIVITY",
|
|
312
|
+
DOWNLOADING_DATA: "DOWNLOADING_DATA",
|
|
313
|
+
FAILED: "FAILED",
|
|
314
|
+
MAX_RUNTIME_EXCEEDED: "MAX_RUNTIME_EXCEEDED",
|
|
315
|
+
QUEUED_FOR_EXECUTION: "QUEUED_FOR_EXECUTION",
|
|
316
|
+
RUNNING: "RUNNING",
|
|
317
|
+
STARTING_INSTANCE: "STARTING_INSTANCE",
|
|
318
|
+
UPLOADING_RESULTS: "UPLOADING_RESULTS",
|
|
319
|
+
WAITING_FOR_PRIORITY: "WAITING_FOR_PRIORITY",
|
|
320
|
+
};
|
|
321
|
+
const JobPrimaryStatus = {
|
|
322
|
+
CANCELLED: "CANCELLED",
|
|
323
|
+
CANCELLING: "CANCELLING",
|
|
324
|
+
COMPLETED: "COMPLETED",
|
|
325
|
+
FAILED: "FAILED",
|
|
326
|
+
QUEUED: "QUEUED",
|
|
327
|
+
RUNNING: "RUNNING",
|
|
328
|
+
};
|
|
329
|
+
const SearchJobsFilterOperator = {
|
|
330
|
+
BETWEEN: "BETWEEN",
|
|
331
|
+
CONTAINS: "CONTAINS",
|
|
332
|
+
EQUAL: "EQUAL",
|
|
333
|
+
GT: "GT",
|
|
334
|
+
GTE: "GTE",
|
|
335
|
+
LT: "LT",
|
|
336
|
+
LTE: "LTE",
|
|
337
|
+
};
|
|
338
|
+
const QuantumTaskAdditionalAttributeName = {
|
|
339
|
+
QUEUE_INFO: "QueueInfo",
|
|
340
|
+
};
|
|
341
|
+
const QuantumTaskStatus = {
|
|
342
|
+
CANCELLED: "CANCELLED",
|
|
343
|
+
CANCELLING: "CANCELLING",
|
|
344
|
+
COMPLETED: "COMPLETED",
|
|
345
|
+
CREATED: "CREATED",
|
|
346
|
+
FAILED: "FAILED",
|
|
347
|
+
QUEUED: "QUEUED",
|
|
348
|
+
RUNNING: "RUNNING",
|
|
349
|
+
};
|
|
350
|
+
const SearchQuantumTasksFilterOperator = {
|
|
351
|
+
BETWEEN: "BETWEEN",
|
|
352
|
+
EQUAL: "EQUAL",
|
|
353
|
+
GT: "GT",
|
|
354
|
+
GTE: "GTE",
|
|
355
|
+
LT: "LT",
|
|
356
|
+
LTE: "LTE",
|
|
240
357
|
};
|
|
241
358
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
359
|
+
const se_CancelJobCommand = async (input, context) => {
|
|
360
|
+
const b = core.requestBuilder(input, context);
|
|
361
|
+
const headers = {};
|
|
362
|
+
b.bp("/job/{jobArn}/cancel");
|
|
363
|
+
b.p("jobArn", () => input.jobArn, "{jobArn}", false);
|
|
364
|
+
let body;
|
|
365
|
+
b.m("PUT").h(headers).b(body);
|
|
366
|
+
return b.build();
|
|
367
|
+
};
|
|
368
|
+
const se_CancelQuantumTaskCommand = async (input, context) => {
|
|
369
|
+
const b = core.requestBuilder(input, context);
|
|
370
|
+
const headers = {
|
|
371
|
+
"content-type": "application/json",
|
|
372
|
+
};
|
|
373
|
+
b.bp("/quantum-task/{quantumTaskArn}/cancel");
|
|
374
|
+
b.p("quantumTaskArn", () => input.quantumTaskArn, "{quantumTaskArn}", false);
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
377
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
378
|
+
}));
|
|
379
|
+
b.m("PUT").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
381
|
+
};
|
|
382
|
+
const se_CreateJobCommand = async (input, context) => {
|
|
383
|
+
const b = core.requestBuilder(input, context);
|
|
384
|
+
const headers = {
|
|
385
|
+
"content-type": "application/json",
|
|
386
|
+
};
|
|
387
|
+
b.bp("/job");
|
|
388
|
+
let body;
|
|
389
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
390
|
+
algorithmSpecification: (_) => smithyClient._json(_),
|
|
391
|
+
associations: (_) => smithyClient._json(_),
|
|
392
|
+
checkpointConfig: (_) => smithyClient._json(_),
|
|
393
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
394
|
+
deviceConfig: (_) => smithyClient._json(_),
|
|
395
|
+
hyperParameters: (_) => smithyClient._json(_),
|
|
396
|
+
inputDataConfig: (_) => smithyClient._json(_),
|
|
397
|
+
instanceConfig: (_) => smithyClient._json(_),
|
|
398
|
+
jobName: [],
|
|
399
|
+
outputDataConfig: (_) => smithyClient._json(_),
|
|
400
|
+
roleArn: [],
|
|
401
|
+
stoppingCondition: (_) => smithyClient._json(_),
|
|
402
|
+
tags: (_) => smithyClient._json(_),
|
|
403
|
+
}));
|
|
404
|
+
b.m("POST").h(headers).b(body);
|
|
405
|
+
return b.build();
|
|
406
|
+
};
|
|
407
|
+
const se_CreateQuantumTaskCommand = async (input, context) => {
|
|
408
|
+
const b = core.requestBuilder(input, context);
|
|
409
|
+
const headers = {
|
|
410
|
+
"content-type": "application/json",
|
|
411
|
+
};
|
|
412
|
+
b.bp("/quantum-task");
|
|
413
|
+
let body;
|
|
414
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
415
|
+
action: (_) => smithyClient.LazyJsonString.from(_),
|
|
416
|
+
associations: (_) => smithyClient._json(_),
|
|
417
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
418
|
+
deviceArn: [],
|
|
419
|
+
deviceParameters: (_) => smithyClient.LazyJsonString.from(_),
|
|
420
|
+
jobToken: [],
|
|
421
|
+
outputS3Bucket: [],
|
|
422
|
+
outputS3KeyPrefix: [],
|
|
423
|
+
shots: [],
|
|
424
|
+
tags: (_) => smithyClient._json(_),
|
|
425
|
+
}));
|
|
426
|
+
b.m("POST").h(headers).b(body);
|
|
427
|
+
return b.build();
|
|
428
|
+
};
|
|
429
|
+
const se_GetDeviceCommand = async (input, context) => {
|
|
430
|
+
const b = core.requestBuilder(input, context);
|
|
431
|
+
const headers = {};
|
|
432
|
+
b.bp("/device/{deviceArn}");
|
|
433
|
+
b.p("deviceArn", () => input.deviceArn, "{deviceArn}", false);
|
|
434
|
+
let body;
|
|
435
|
+
b.m("GET").h(headers).b(body);
|
|
436
|
+
return b.build();
|
|
437
|
+
};
|
|
438
|
+
const se_GetJobCommand = async (input, context) => {
|
|
439
|
+
const b = core.requestBuilder(input, context);
|
|
440
|
+
const headers = {};
|
|
441
|
+
b.bp("/job/{jobArn}");
|
|
442
|
+
b.p("jobArn", () => input.jobArn, "{jobArn}", false);
|
|
443
|
+
const query = smithyClient.map({
|
|
444
|
+
[_aAN]: [() => input.additionalAttributeNames !== void 0, () => input[_aAN] || []],
|
|
257
445
|
});
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
JOBS_QUEUE: "JOBS_QUEUE",
|
|
270
|
-
QUANTUM_TASKS_QUEUE: "QUANTUM_TASKS_QUEUE"
|
|
271
|
-
};
|
|
272
|
-
var QueuePriority = {
|
|
273
|
-
NORMAL: "Normal",
|
|
274
|
-
PRIORITY: "Priority"
|
|
275
|
-
};
|
|
276
|
-
var DeviceStatus = {
|
|
277
|
-
OFFLINE: "OFFLINE",
|
|
278
|
-
ONLINE: "ONLINE",
|
|
279
|
-
RETIRED: "RETIRED"
|
|
280
|
-
};
|
|
281
|
-
var DeviceType = {
|
|
282
|
-
QPU: "QPU",
|
|
283
|
-
SIMULATOR: "SIMULATOR"
|
|
284
|
-
};
|
|
285
|
-
var InternalServiceException = class _InternalServiceException extends BraketServiceException {
|
|
286
|
-
static {
|
|
287
|
-
__name(this, "InternalServiceException");
|
|
288
|
-
}
|
|
289
|
-
name = "InternalServiceException";
|
|
290
|
-
$fault = "server";
|
|
291
|
-
/**
|
|
292
|
-
* @internal
|
|
293
|
-
*/
|
|
294
|
-
constructor(opts) {
|
|
295
|
-
super({
|
|
296
|
-
name: "InternalServiceException",
|
|
297
|
-
$fault: "server",
|
|
298
|
-
...opts
|
|
446
|
+
let body;
|
|
447
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
448
|
+
return b.build();
|
|
449
|
+
};
|
|
450
|
+
const se_GetQuantumTaskCommand = async (input, context) => {
|
|
451
|
+
const b = core.requestBuilder(input, context);
|
|
452
|
+
const headers = {};
|
|
453
|
+
b.bp("/quantum-task/{quantumTaskArn}");
|
|
454
|
+
b.p("quantumTaskArn", () => input.quantumTaskArn, "{quantumTaskArn}", false);
|
|
455
|
+
const query = smithyClient.map({
|
|
456
|
+
[_aAN]: [() => input.additionalAttributeNames !== void 0, () => input[_aAN] || []],
|
|
299
457
|
});
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
458
|
+
let body;
|
|
459
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
460
|
+
return b.build();
|
|
461
|
+
};
|
|
462
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
463
|
+
const b = core.requestBuilder(input, context);
|
|
464
|
+
const headers = {};
|
|
465
|
+
b.bp("/tags/{resourceArn}");
|
|
466
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
467
|
+
let body;
|
|
468
|
+
b.m("GET").h(headers).b(body);
|
|
469
|
+
return b.build();
|
|
470
|
+
};
|
|
471
|
+
const se_SearchDevicesCommand = async (input, context) => {
|
|
472
|
+
const b = core.requestBuilder(input, context);
|
|
473
|
+
const headers = {
|
|
474
|
+
"content-type": "application/json",
|
|
475
|
+
};
|
|
476
|
+
b.bp("/devices");
|
|
477
|
+
let body;
|
|
478
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
479
|
+
filters: (_) => smithyClient._json(_),
|
|
480
|
+
maxResults: [],
|
|
481
|
+
nextToken: [],
|
|
482
|
+
}));
|
|
483
|
+
b.m("POST").h(headers).b(body);
|
|
484
|
+
return b.build();
|
|
485
|
+
};
|
|
486
|
+
const se_SearchJobsCommand = async (input, context) => {
|
|
487
|
+
const b = core.requestBuilder(input, context);
|
|
488
|
+
const headers = {
|
|
489
|
+
"content-type": "application/json",
|
|
490
|
+
};
|
|
491
|
+
b.bp("/jobs");
|
|
492
|
+
let body;
|
|
493
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
494
|
+
filters: (_) => smithyClient._json(_),
|
|
495
|
+
maxResults: [],
|
|
496
|
+
nextToken: [],
|
|
497
|
+
}));
|
|
498
|
+
b.m("POST").h(headers).b(body);
|
|
499
|
+
return b.build();
|
|
500
|
+
};
|
|
501
|
+
const se_SearchQuantumTasksCommand = async (input, context) => {
|
|
502
|
+
const b = core.requestBuilder(input, context);
|
|
503
|
+
const headers = {
|
|
504
|
+
"content-type": "application/json",
|
|
505
|
+
};
|
|
506
|
+
b.bp("/quantum-tasks");
|
|
507
|
+
let body;
|
|
508
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
509
|
+
filters: (_) => smithyClient._json(_),
|
|
510
|
+
maxResults: [],
|
|
511
|
+
nextToken: [],
|
|
512
|
+
}));
|
|
513
|
+
b.m("POST").h(headers).b(body);
|
|
514
|
+
return b.build();
|
|
515
|
+
};
|
|
516
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
517
|
+
const b = core.requestBuilder(input, context);
|
|
518
|
+
const headers = {
|
|
519
|
+
"content-type": "application/json",
|
|
520
|
+
};
|
|
521
|
+
b.bp("/tags/{resourceArn}");
|
|
522
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
523
|
+
let body;
|
|
524
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
525
|
+
tags: (_) => smithyClient._json(_),
|
|
526
|
+
}));
|
|
527
|
+
b.m("POST").h(headers).b(body);
|
|
528
|
+
return b.build();
|
|
529
|
+
};
|
|
530
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
531
|
+
const b = core.requestBuilder(input, context);
|
|
532
|
+
const headers = {};
|
|
533
|
+
b.bp("/tags/{resourceArn}");
|
|
534
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
535
|
+
const query = smithyClient.map({
|
|
536
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
317
537
|
});
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
* @internal
|
|
329
|
-
*/
|
|
330
|
-
constructor(opts) {
|
|
331
|
-
super({
|
|
332
|
-
name: "ThrottlingException",
|
|
333
|
-
$fault: "client",
|
|
334
|
-
...opts
|
|
538
|
+
let body;
|
|
539
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
540
|
+
return b.build();
|
|
541
|
+
};
|
|
542
|
+
const de_CancelJobCommand = async (output, context) => {
|
|
543
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
+
return de_CommandError(output, context);
|
|
545
|
+
}
|
|
546
|
+
const contents = smithyClient.map({
|
|
547
|
+
$metadata: deserializeMetadata(output),
|
|
335
548
|
});
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
PROGRAM_SET_VALIDATION_FAILED: "ProgramSetValidationFailed"
|
|
341
|
-
};
|
|
342
|
-
var ValidationException = class _ValidationException extends BraketServiceException {
|
|
343
|
-
static {
|
|
344
|
-
__name(this, "ValidationException");
|
|
345
|
-
}
|
|
346
|
-
name = "ValidationException";
|
|
347
|
-
$fault = "client";
|
|
348
|
-
/**
|
|
349
|
-
* <p>The reason for validation failure.</p>
|
|
350
|
-
* @public
|
|
351
|
-
*/
|
|
352
|
-
reason;
|
|
353
|
-
/**
|
|
354
|
-
* <p>The validation failures in the program set submitted in the request.</p>
|
|
355
|
-
* @public
|
|
356
|
-
*/
|
|
357
|
-
programSetValidationFailures;
|
|
358
|
-
/**
|
|
359
|
-
* @internal
|
|
360
|
-
*/
|
|
361
|
-
constructor(opts) {
|
|
362
|
-
super({
|
|
363
|
-
name: "ValidationException",
|
|
364
|
-
$fault: "client",
|
|
365
|
-
...opts
|
|
549
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
550
|
+
const doc = smithyClient.take(data, {
|
|
551
|
+
cancellationStatus: smithyClient.expectString,
|
|
552
|
+
jobArn: smithyClient.expectString,
|
|
366
553
|
});
|
|
367
|
-
Object.
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
var ConflictException = class _ConflictException extends BraketServiceException {
|
|
377
|
-
static {
|
|
378
|
-
__name(this, "ConflictException");
|
|
379
|
-
}
|
|
380
|
-
name = "ConflictException";
|
|
381
|
-
$fault = "client";
|
|
382
|
-
/**
|
|
383
|
-
* @internal
|
|
384
|
-
*/
|
|
385
|
-
constructor(opts) {
|
|
386
|
-
super({
|
|
387
|
-
name: "ConflictException",
|
|
388
|
-
$fault: "client",
|
|
389
|
-
...opts
|
|
554
|
+
Object.assign(contents, doc);
|
|
555
|
+
return contents;
|
|
556
|
+
};
|
|
557
|
+
const de_CancelQuantumTaskCommand = async (output, context) => {
|
|
558
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
+
return de_CommandError(output, context);
|
|
560
|
+
}
|
|
561
|
+
const contents = smithyClient.map({
|
|
562
|
+
$metadata: deserializeMetadata(output),
|
|
390
563
|
});
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
ML_C4_2XLARGE: "ml.c4.2xlarge",
|
|
396
|
-
ML_C4_4XLARGE: "ml.c4.4xlarge",
|
|
397
|
-
ML_C4_8XLARGE: "ml.c4.8xlarge",
|
|
398
|
-
ML_C4_XLARGE: "ml.c4.xlarge",
|
|
399
|
-
ML_C5N_18XLARGE: "ml.c5n.18xlarge",
|
|
400
|
-
ML_C5N_2XLARGE: "ml.c5n.2xlarge",
|
|
401
|
-
ML_C5N_4XLARGE: "ml.c5n.4xlarge",
|
|
402
|
-
ML_C5N_9XLARGE: "ml.c5n.9xlarge",
|
|
403
|
-
ML_C5N_XLARGE: "ml.c5n.xlarge",
|
|
404
|
-
ML_C5_18XLARGE: "ml.c5.18xlarge",
|
|
405
|
-
ML_C5_2XLARGE: "ml.c5.2xlarge",
|
|
406
|
-
ML_C5_4XLARGE: "ml.c5.4xlarge",
|
|
407
|
-
ML_C5_9XLARGE: "ml.c5.9xlarge",
|
|
408
|
-
ML_C5_XLARGE: "ml.c5.xlarge",
|
|
409
|
-
ML_G4DN_12XLARGE: "ml.g4dn.12xlarge",
|
|
410
|
-
ML_G4DN_16XLARGE: "ml.g4dn.16xlarge",
|
|
411
|
-
ML_G4DN_2XLARGE: "ml.g4dn.2xlarge",
|
|
412
|
-
ML_G4DN_4XLARGE: "ml.g4dn.4xlarge",
|
|
413
|
-
ML_G4DN_8XLARGE: "ml.g4dn.8xlarge",
|
|
414
|
-
ML_G4DN_XLARGE: "ml.g4dn.xlarge",
|
|
415
|
-
ML_M4_10XLARGE: "ml.m4.10xlarge",
|
|
416
|
-
ML_M4_16XLARGE: "ml.m4.16xlarge",
|
|
417
|
-
ML_M4_2XLARGE: "ml.m4.2xlarge",
|
|
418
|
-
ML_M4_4XLARGE: "ml.m4.4xlarge",
|
|
419
|
-
ML_M4_XLARGE: "ml.m4.xlarge",
|
|
420
|
-
ML_M5_12XLARGE: "ml.m5.12xlarge",
|
|
421
|
-
ML_M5_24XLARGE: "ml.m5.24xlarge",
|
|
422
|
-
ML_M5_2XLARGE: "ml.m5.2xlarge",
|
|
423
|
-
ML_M5_4XLARGE: "ml.m5.4xlarge",
|
|
424
|
-
ML_M5_LARGE: "ml.m5.large",
|
|
425
|
-
ML_M5_XLARGE: "ml.m5.xlarge",
|
|
426
|
-
ML_P2_16XLARGE: "ml.p2.16xlarge",
|
|
427
|
-
ML_P2_8XLARGE: "ml.p2.8xlarge",
|
|
428
|
-
ML_P2_XLARGE: "ml.p2.xlarge",
|
|
429
|
-
ML_P3DN_24XLARGE: "ml.p3dn.24xlarge",
|
|
430
|
-
ML_P3_16XLARGE: "ml.p3.16xlarge",
|
|
431
|
-
ML_P3_2XLARGE: "ml.p3.2xlarge",
|
|
432
|
-
ML_P3_8XLARGE: "ml.p3.8xlarge",
|
|
433
|
-
ML_P4D_24XLARGE: "ml.p4d.24xlarge"
|
|
434
|
-
};
|
|
435
|
-
var DeviceOfflineException = class _DeviceOfflineException extends BraketServiceException {
|
|
436
|
-
static {
|
|
437
|
-
__name(this, "DeviceOfflineException");
|
|
438
|
-
}
|
|
439
|
-
name = "DeviceOfflineException";
|
|
440
|
-
$fault = "client";
|
|
441
|
-
/**
|
|
442
|
-
* @internal
|
|
443
|
-
*/
|
|
444
|
-
constructor(opts) {
|
|
445
|
-
super({
|
|
446
|
-
name: "DeviceOfflineException",
|
|
447
|
-
$fault: "client",
|
|
448
|
-
...opts
|
|
564
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
565
|
+
const doc = smithyClient.take(data, {
|
|
566
|
+
cancellationStatus: smithyClient.expectString,
|
|
567
|
+
quantumTaskArn: smithyClient.expectString,
|
|
449
568
|
});
|
|
450
|
-
Object.
|
|
451
|
-
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* @internal
|
|
461
|
-
*/
|
|
462
|
-
constructor(opts) {
|
|
463
|
-
super({
|
|
464
|
-
name: "DeviceRetiredException",
|
|
465
|
-
$fault: "client",
|
|
466
|
-
...opts
|
|
569
|
+
Object.assign(contents, doc);
|
|
570
|
+
return contents;
|
|
571
|
+
};
|
|
572
|
+
const de_CreateJobCommand = async (output, context) => {
|
|
573
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
574
|
+
return de_CommandError(output, context);
|
|
575
|
+
}
|
|
576
|
+
const contents = smithyClient.map({
|
|
577
|
+
$metadata: deserializeMetadata(output),
|
|
467
578
|
});
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BraketServiceException {
|
|
472
|
-
static {
|
|
473
|
-
__name(this, "ServiceQuotaExceededException");
|
|
474
|
-
}
|
|
475
|
-
name = "ServiceQuotaExceededException";
|
|
476
|
-
$fault = "client";
|
|
477
|
-
/**
|
|
478
|
-
* @internal
|
|
479
|
-
*/
|
|
480
|
-
constructor(opts) {
|
|
481
|
-
super({
|
|
482
|
-
name: "ServiceQuotaExceededException",
|
|
483
|
-
$fault: "client",
|
|
484
|
-
...opts
|
|
579
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
580
|
+
const doc = smithyClient.take(data, {
|
|
581
|
+
jobArn: smithyClient.expectString,
|
|
485
582
|
});
|
|
486
|
-
Object.
|
|
487
|
-
|
|
488
|
-
};
|
|
489
|
-
var HybridJobAdditionalAttributeName = {
|
|
490
|
-
QUEUE_INFO: "QueueInfo"
|
|
491
|
-
};
|
|
492
|
-
var JobEventType = {
|
|
493
|
-
CANCELLED: "CANCELLED",
|
|
494
|
-
COMPLETED: "COMPLETED",
|
|
495
|
-
DEPRIORITIZED_DUE_TO_INACTIVITY: "DEPRIORITIZED_DUE_TO_INACTIVITY",
|
|
496
|
-
DOWNLOADING_DATA: "DOWNLOADING_DATA",
|
|
497
|
-
FAILED: "FAILED",
|
|
498
|
-
MAX_RUNTIME_EXCEEDED: "MAX_RUNTIME_EXCEEDED",
|
|
499
|
-
QUEUED_FOR_EXECUTION: "QUEUED_FOR_EXECUTION",
|
|
500
|
-
RUNNING: "RUNNING",
|
|
501
|
-
STARTING_INSTANCE: "STARTING_INSTANCE",
|
|
502
|
-
UPLOADING_RESULTS: "UPLOADING_RESULTS",
|
|
503
|
-
WAITING_FOR_PRIORITY: "WAITING_FOR_PRIORITY"
|
|
504
|
-
};
|
|
505
|
-
var JobPrimaryStatus = {
|
|
506
|
-
CANCELLED: "CANCELLED",
|
|
507
|
-
CANCELLING: "CANCELLING",
|
|
508
|
-
COMPLETED: "COMPLETED",
|
|
509
|
-
FAILED: "FAILED",
|
|
510
|
-
QUEUED: "QUEUED",
|
|
511
|
-
RUNNING: "RUNNING"
|
|
512
|
-
};
|
|
513
|
-
var SearchJobsFilterOperator = {
|
|
514
|
-
BETWEEN: "BETWEEN",
|
|
515
|
-
CONTAINS: "CONTAINS",
|
|
516
|
-
EQUAL: "EQUAL",
|
|
517
|
-
GT: "GT",
|
|
518
|
-
GTE: "GTE",
|
|
519
|
-
LT: "LT",
|
|
520
|
-
LTE: "LTE"
|
|
521
|
-
};
|
|
522
|
-
var QuantumTaskAdditionalAttributeName = {
|
|
523
|
-
QUEUE_INFO: "QueueInfo"
|
|
524
|
-
};
|
|
525
|
-
var QuantumTaskStatus = {
|
|
526
|
-
CANCELLED: "CANCELLED",
|
|
527
|
-
CANCELLING: "CANCELLING",
|
|
528
|
-
COMPLETED: "COMPLETED",
|
|
529
|
-
CREATED: "CREATED",
|
|
530
|
-
FAILED: "FAILED",
|
|
531
|
-
QUEUED: "QUEUED",
|
|
532
|
-
RUNNING: "RUNNING"
|
|
533
|
-
};
|
|
534
|
-
var SearchQuantumTasksFilterOperator = {
|
|
535
|
-
BETWEEN: "BETWEEN",
|
|
536
|
-
EQUAL: "EQUAL",
|
|
537
|
-
GT: "GT",
|
|
538
|
-
GTE: "GTE",
|
|
539
|
-
LT: "LT",
|
|
540
|
-
LTE: "LTE"
|
|
583
|
+
Object.assign(contents, doc);
|
|
584
|
+
return contents;
|
|
541
585
|
};
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
const headers = {
|
|
556
|
-
"content-type": "application/json"
|
|
557
|
-
};
|
|
558
|
-
b.bp("/quantum-task/{quantumTaskArn}/cancel");
|
|
559
|
-
b.p("quantumTaskArn", () => input.quantumTaskArn, "{quantumTaskArn}", false);
|
|
560
|
-
let body;
|
|
561
|
-
body = JSON.stringify(
|
|
562
|
-
(0, import_smithy_client.take)(input, {
|
|
563
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
|
|
564
|
-
})
|
|
565
|
-
);
|
|
566
|
-
b.m("PUT").h(headers).b(body);
|
|
567
|
-
return b.build();
|
|
568
|
-
}, "se_CancelQuantumTaskCommand");
|
|
569
|
-
var se_CreateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
570
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
571
|
-
const headers = {
|
|
572
|
-
"content-type": "application/json"
|
|
573
|
-
};
|
|
574
|
-
b.bp("/job");
|
|
575
|
-
let body;
|
|
576
|
-
body = JSON.stringify(
|
|
577
|
-
(0, import_smithy_client.take)(input, {
|
|
578
|
-
algorithmSpecification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "algorithmSpecification"),
|
|
579
|
-
associations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "associations"),
|
|
580
|
-
checkpointConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "checkpointConfig"),
|
|
581
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
582
|
-
deviceConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "deviceConfig"),
|
|
583
|
-
hyperParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "hyperParameters"),
|
|
584
|
-
inputDataConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "inputDataConfig"),
|
|
585
|
-
instanceConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "instanceConfig"),
|
|
586
|
-
jobName: [],
|
|
587
|
-
outputDataConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "outputDataConfig"),
|
|
588
|
-
roleArn: [],
|
|
589
|
-
stoppingCondition: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "stoppingCondition"),
|
|
590
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
591
|
-
})
|
|
592
|
-
);
|
|
593
|
-
b.m("POST").h(headers).b(body);
|
|
594
|
-
return b.build();
|
|
595
|
-
}, "se_CreateJobCommand");
|
|
596
|
-
var se_CreateQuantumTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
597
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
598
|
-
const headers = {
|
|
599
|
-
"content-type": "application/json"
|
|
600
|
-
};
|
|
601
|
-
b.bp("/quantum-task");
|
|
602
|
-
let body;
|
|
603
|
-
body = JSON.stringify(
|
|
604
|
-
(0, import_smithy_client.take)(input, {
|
|
605
|
-
action: /* @__PURE__ */ __name((_) => import_smithy_client.LazyJsonString.from(_), "action"),
|
|
606
|
-
associations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "associations"),
|
|
607
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
608
|
-
deviceArn: [],
|
|
609
|
-
deviceParameters: /* @__PURE__ */ __name((_) => import_smithy_client.LazyJsonString.from(_), "deviceParameters"),
|
|
610
|
-
jobToken: [],
|
|
611
|
-
outputS3Bucket: [],
|
|
612
|
-
outputS3KeyPrefix: [],
|
|
613
|
-
shots: [],
|
|
614
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
615
|
-
})
|
|
616
|
-
);
|
|
617
|
-
b.m("POST").h(headers).b(body);
|
|
618
|
-
return b.build();
|
|
619
|
-
}, "se_CreateQuantumTaskCommand");
|
|
620
|
-
var se_GetDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
621
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
622
|
-
const headers = {};
|
|
623
|
-
b.bp("/device/{deviceArn}");
|
|
624
|
-
b.p("deviceArn", () => input.deviceArn, "{deviceArn}", false);
|
|
625
|
-
let body;
|
|
626
|
-
b.m("GET").h(headers).b(body);
|
|
627
|
-
return b.build();
|
|
628
|
-
}, "se_GetDeviceCommand");
|
|
629
|
-
var se_GetJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
630
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
631
|
-
const headers = {};
|
|
632
|
-
b.bp("/job/{jobArn}");
|
|
633
|
-
b.p("jobArn", () => input.jobArn, "{jobArn}", false);
|
|
634
|
-
const query = (0, import_smithy_client.map)({
|
|
635
|
-
[_aAN]: [() => input.additionalAttributeNames !== void 0, () => input[_aAN] || []]
|
|
636
|
-
});
|
|
637
|
-
let body;
|
|
638
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
639
|
-
return b.build();
|
|
640
|
-
}, "se_GetJobCommand");
|
|
641
|
-
var se_GetQuantumTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
642
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
643
|
-
const headers = {};
|
|
644
|
-
b.bp("/quantum-task/{quantumTaskArn}");
|
|
645
|
-
b.p("quantumTaskArn", () => input.quantumTaskArn, "{quantumTaskArn}", false);
|
|
646
|
-
const query = (0, import_smithy_client.map)({
|
|
647
|
-
[_aAN]: [() => input.additionalAttributeNames !== void 0, () => input[_aAN] || []]
|
|
648
|
-
});
|
|
649
|
-
let body;
|
|
650
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
651
|
-
return b.build();
|
|
652
|
-
}, "se_GetQuantumTaskCommand");
|
|
653
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
654
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
655
|
-
const headers = {};
|
|
656
|
-
b.bp("/tags/{resourceArn}");
|
|
657
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
658
|
-
let body;
|
|
659
|
-
b.m("GET").h(headers).b(body);
|
|
660
|
-
return b.build();
|
|
661
|
-
}, "se_ListTagsForResourceCommand");
|
|
662
|
-
var se_SearchDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
663
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
664
|
-
const headers = {
|
|
665
|
-
"content-type": "application/json"
|
|
666
|
-
};
|
|
667
|
-
b.bp("/devices");
|
|
668
|
-
let body;
|
|
669
|
-
body = JSON.stringify(
|
|
670
|
-
(0, import_smithy_client.take)(input, {
|
|
671
|
-
filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filters"),
|
|
672
|
-
maxResults: [],
|
|
673
|
-
nextToken: []
|
|
674
|
-
})
|
|
675
|
-
);
|
|
676
|
-
b.m("POST").h(headers).b(body);
|
|
677
|
-
return b.build();
|
|
678
|
-
}, "se_SearchDevicesCommand");
|
|
679
|
-
var se_SearchJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
680
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
681
|
-
const headers = {
|
|
682
|
-
"content-type": "application/json"
|
|
683
|
-
};
|
|
684
|
-
b.bp("/jobs");
|
|
685
|
-
let body;
|
|
686
|
-
body = JSON.stringify(
|
|
687
|
-
(0, import_smithy_client.take)(input, {
|
|
688
|
-
filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filters"),
|
|
689
|
-
maxResults: [],
|
|
690
|
-
nextToken: []
|
|
691
|
-
})
|
|
692
|
-
);
|
|
693
|
-
b.m("POST").h(headers).b(body);
|
|
694
|
-
return b.build();
|
|
695
|
-
}, "se_SearchJobsCommand");
|
|
696
|
-
var se_SearchQuantumTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
697
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
698
|
-
const headers = {
|
|
699
|
-
"content-type": "application/json"
|
|
700
|
-
};
|
|
701
|
-
b.bp("/quantum-tasks");
|
|
702
|
-
let body;
|
|
703
|
-
body = JSON.stringify(
|
|
704
|
-
(0, import_smithy_client.take)(input, {
|
|
705
|
-
filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filters"),
|
|
706
|
-
maxResults: [],
|
|
707
|
-
nextToken: []
|
|
708
|
-
})
|
|
709
|
-
);
|
|
710
|
-
b.m("POST").h(headers).b(body);
|
|
711
|
-
return b.build();
|
|
712
|
-
}, "se_SearchQuantumTasksCommand");
|
|
713
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
714
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
715
|
-
const headers = {
|
|
716
|
-
"content-type": "application/json"
|
|
717
|
-
};
|
|
718
|
-
b.bp("/tags/{resourceArn}");
|
|
719
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
720
|
-
let body;
|
|
721
|
-
body = JSON.stringify(
|
|
722
|
-
(0, import_smithy_client.take)(input, {
|
|
723
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
724
|
-
})
|
|
725
|
-
);
|
|
726
|
-
b.m("POST").h(headers).b(body);
|
|
727
|
-
return b.build();
|
|
728
|
-
}, "se_TagResourceCommand");
|
|
729
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
730
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
731
|
-
const headers = {};
|
|
732
|
-
b.bp("/tags/{resourceArn}");
|
|
733
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
734
|
-
const query = (0, import_smithy_client.map)({
|
|
735
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
736
|
-
});
|
|
737
|
-
let body;
|
|
738
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
739
|
-
return b.build();
|
|
740
|
-
}, "se_UntagResourceCommand");
|
|
741
|
-
var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
742
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
-
return de_CommandError(output, context);
|
|
744
|
-
}
|
|
745
|
-
const contents = (0, import_smithy_client.map)({
|
|
746
|
-
$metadata: deserializeMetadata(output)
|
|
747
|
-
});
|
|
748
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
749
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
750
|
-
cancellationStatus: import_smithy_client.expectString,
|
|
751
|
-
jobArn: import_smithy_client.expectString
|
|
752
|
-
});
|
|
753
|
-
Object.assign(contents, doc);
|
|
754
|
-
return contents;
|
|
755
|
-
}, "de_CancelJobCommand");
|
|
756
|
-
var de_CancelQuantumTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
757
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
-
return de_CommandError(output, context);
|
|
759
|
-
}
|
|
760
|
-
const contents = (0, import_smithy_client.map)({
|
|
761
|
-
$metadata: deserializeMetadata(output)
|
|
762
|
-
});
|
|
763
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
764
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
765
|
-
cancellationStatus: import_smithy_client.expectString,
|
|
766
|
-
quantumTaskArn: import_smithy_client.expectString
|
|
767
|
-
});
|
|
768
|
-
Object.assign(contents, doc);
|
|
769
|
-
return contents;
|
|
770
|
-
}, "de_CancelQuantumTaskCommand");
|
|
771
|
-
var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
772
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
773
|
-
return de_CommandError(output, context);
|
|
774
|
-
}
|
|
775
|
-
const contents = (0, import_smithy_client.map)({
|
|
776
|
-
$metadata: deserializeMetadata(output)
|
|
777
|
-
});
|
|
778
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
779
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
780
|
-
jobArn: import_smithy_client.expectString
|
|
781
|
-
});
|
|
782
|
-
Object.assign(contents, doc);
|
|
783
|
-
return contents;
|
|
784
|
-
}, "de_CreateJobCommand");
|
|
785
|
-
var de_CreateQuantumTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
786
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
787
|
-
return de_CommandError(output, context);
|
|
788
|
-
}
|
|
789
|
-
const contents = (0, import_smithy_client.map)({
|
|
790
|
-
$metadata: deserializeMetadata(output)
|
|
791
|
-
});
|
|
792
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
793
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
794
|
-
quantumTaskArn: import_smithy_client.expectString
|
|
795
|
-
});
|
|
796
|
-
Object.assign(contents, doc);
|
|
797
|
-
return contents;
|
|
798
|
-
}, "de_CreateQuantumTaskCommand");
|
|
799
|
-
var de_GetDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
800
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
-
return de_CommandError(output, context);
|
|
802
|
-
}
|
|
803
|
-
const contents = (0, import_smithy_client.map)({
|
|
804
|
-
$metadata: deserializeMetadata(output)
|
|
805
|
-
});
|
|
806
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
807
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
808
|
-
deviceArn: import_smithy_client.expectString,
|
|
809
|
-
deviceCapabilities: import_smithy_client.LazyJsonString.from,
|
|
810
|
-
deviceName: import_smithy_client.expectString,
|
|
811
|
-
deviceQueueInfo: import_smithy_client._json,
|
|
812
|
-
deviceStatus: import_smithy_client.expectString,
|
|
813
|
-
deviceType: import_smithy_client.expectString,
|
|
814
|
-
providerName: import_smithy_client.expectString
|
|
815
|
-
});
|
|
816
|
-
Object.assign(contents, doc);
|
|
817
|
-
return contents;
|
|
818
|
-
}, "de_GetDeviceCommand");
|
|
819
|
-
var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
820
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
-
return de_CommandError(output, context);
|
|
822
|
-
}
|
|
823
|
-
const contents = (0, import_smithy_client.map)({
|
|
824
|
-
$metadata: deserializeMetadata(output)
|
|
825
|
-
});
|
|
826
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
827
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
828
|
-
algorithmSpecification: import_smithy_client._json,
|
|
829
|
-
associations: import_smithy_client._json,
|
|
830
|
-
billableDuration: import_smithy_client.expectInt32,
|
|
831
|
-
checkpointConfig: import_smithy_client._json,
|
|
832
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
833
|
-
deviceConfig: import_smithy_client._json,
|
|
834
|
-
endedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "endedAt"),
|
|
835
|
-
events: /* @__PURE__ */ __name((_) => de_JobEvents(_, context), "events"),
|
|
836
|
-
failureReason: import_smithy_client.expectString,
|
|
837
|
-
hyperParameters: import_smithy_client._json,
|
|
838
|
-
inputDataConfig: import_smithy_client._json,
|
|
839
|
-
instanceConfig: import_smithy_client._json,
|
|
840
|
-
jobArn: import_smithy_client.expectString,
|
|
841
|
-
jobName: import_smithy_client.expectString,
|
|
842
|
-
outputDataConfig: import_smithy_client._json,
|
|
843
|
-
queueInfo: import_smithy_client._json,
|
|
844
|
-
roleArn: import_smithy_client.expectString,
|
|
845
|
-
startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startedAt"),
|
|
846
|
-
status: import_smithy_client.expectString,
|
|
847
|
-
stoppingCondition: import_smithy_client._json,
|
|
848
|
-
tags: import_smithy_client._json
|
|
849
|
-
});
|
|
850
|
-
Object.assign(contents, doc);
|
|
851
|
-
return contents;
|
|
852
|
-
}, "de_GetJobCommand");
|
|
853
|
-
var de_GetQuantumTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_CommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = (0, import_smithy_client.map)({
|
|
858
|
-
$metadata: deserializeMetadata(output)
|
|
859
|
-
});
|
|
860
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
861
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
862
|
-
actionMetadata: import_smithy_client._json,
|
|
863
|
-
associations: import_smithy_client._json,
|
|
864
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
865
|
-
deviceArn: import_smithy_client.expectString,
|
|
866
|
-
deviceParameters: import_smithy_client.LazyJsonString.from,
|
|
867
|
-
endedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "endedAt"),
|
|
868
|
-
failureReason: import_smithy_client.expectString,
|
|
869
|
-
jobArn: import_smithy_client.expectString,
|
|
870
|
-
numSuccessfulShots: import_smithy_client.expectLong,
|
|
871
|
-
outputS3Bucket: import_smithy_client.expectString,
|
|
872
|
-
outputS3Directory: import_smithy_client.expectString,
|
|
873
|
-
quantumTaskArn: import_smithy_client.expectString,
|
|
874
|
-
queueInfo: import_smithy_client._json,
|
|
875
|
-
shots: import_smithy_client.expectLong,
|
|
876
|
-
status: import_smithy_client.expectString,
|
|
877
|
-
tags: import_smithy_client._json
|
|
878
|
-
});
|
|
879
|
-
Object.assign(contents, doc);
|
|
880
|
-
return contents;
|
|
881
|
-
}, "de_GetQuantumTaskCommand");
|
|
882
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
883
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
884
|
-
return de_CommandError(output, context);
|
|
885
|
-
}
|
|
886
|
-
const contents = (0, import_smithy_client.map)({
|
|
887
|
-
$metadata: deserializeMetadata(output)
|
|
888
|
-
});
|
|
889
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
890
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
891
|
-
tags: import_smithy_client._json
|
|
892
|
-
});
|
|
893
|
-
Object.assign(contents, doc);
|
|
894
|
-
return contents;
|
|
895
|
-
}, "de_ListTagsForResourceCommand");
|
|
896
|
-
var de_SearchDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
897
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
898
|
-
return de_CommandError(output, context);
|
|
899
|
-
}
|
|
900
|
-
const contents = (0, import_smithy_client.map)({
|
|
901
|
-
$metadata: deserializeMetadata(output)
|
|
902
|
-
});
|
|
903
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
904
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
905
|
-
devices: import_smithy_client._json,
|
|
906
|
-
nextToken: import_smithy_client.expectString
|
|
907
|
-
});
|
|
908
|
-
Object.assign(contents, doc);
|
|
909
|
-
return contents;
|
|
910
|
-
}, "de_SearchDevicesCommand");
|
|
911
|
-
var de_SearchJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
912
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
|
-
return de_CommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const contents = (0, import_smithy_client.map)({
|
|
916
|
-
$metadata: deserializeMetadata(output)
|
|
917
|
-
});
|
|
918
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
919
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
920
|
-
jobs: /* @__PURE__ */ __name((_) => de_JobSummaryList(_, context), "jobs"),
|
|
921
|
-
nextToken: import_smithy_client.expectString
|
|
922
|
-
});
|
|
923
|
-
Object.assign(contents, doc);
|
|
924
|
-
return contents;
|
|
925
|
-
}, "de_SearchJobsCommand");
|
|
926
|
-
var de_SearchQuantumTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
927
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
-
return de_CommandError(output, context);
|
|
929
|
-
}
|
|
930
|
-
const contents = (0, import_smithy_client.map)({
|
|
931
|
-
$metadata: deserializeMetadata(output)
|
|
932
|
-
});
|
|
933
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
934
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
935
|
-
nextToken: import_smithy_client.expectString,
|
|
936
|
-
quantumTasks: /* @__PURE__ */ __name((_) => de_QuantumTaskSummaryList(_, context), "quantumTasks")
|
|
937
|
-
});
|
|
938
|
-
Object.assign(contents, doc);
|
|
939
|
-
return contents;
|
|
940
|
-
}, "de_SearchQuantumTasksCommand");
|
|
941
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
-
return de_CommandError(output, context);
|
|
944
|
-
}
|
|
945
|
-
const contents = (0, import_smithy_client.map)({
|
|
946
|
-
$metadata: deserializeMetadata(output)
|
|
947
|
-
});
|
|
948
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
949
|
-
return contents;
|
|
950
|
-
}, "de_TagResourceCommand");
|
|
951
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
952
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
|
-
return de_CommandError(output, context);
|
|
954
|
-
}
|
|
955
|
-
const contents = (0, import_smithy_client.map)({
|
|
956
|
-
$metadata: deserializeMetadata(output)
|
|
957
|
-
});
|
|
958
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
959
|
-
return contents;
|
|
960
|
-
}, "de_UntagResourceCommand");
|
|
961
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
962
|
-
const parsedOutput = {
|
|
963
|
-
...output,
|
|
964
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
965
|
-
};
|
|
966
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
967
|
-
switch (errorCode) {
|
|
968
|
-
case "AccessDeniedException":
|
|
969
|
-
case "com.amazonaws.braket#AccessDeniedException":
|
|
970
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
971
|
-
case "ConflictException":
|
|
972
|
-
case "com.amazonaws.braket#ConflictException":
|
|
973
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
974
|
-
case "InternalServiceException":
|
|
975
|
-
case "com.amazonaws.braket#InternalServiceException":
|
|
976
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ResourceNotFoundException":
|
|
978
|
-
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
979
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
980
|
-
case "ThrottlingException":
|
|
981
|
-
case "com.amazonaws.braket#ThrottlingException":
|
|
982
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ValidationException":
|
|
984
|
-
case "com.amazonaws.braket#ValidationException":
|
|
985
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
986
|
-
case "DeviceOfflineException":
|
|
987
|
-
case "com.amazonaws.braket#DeviceOfflineException":
|
|
988
|
-
throw await de_DeviceOfflineExceptionRes(parsedOutput, context);
|
|
989
|
-
case "DeviceRetiredException":
|
|
990
|
-
case "com.amazonaws.braket#DeviceRetiredException":
|
|
991
|
-
throw await de_DeviceRetiredExceptionRes(parsedOutput, context);
|
|
992
|
-
case "ServiceQuotaExceededException":
|
|
993
|
-
case "com.amazonaws.braket#ServiceQuotaExceededException":
|
|
994
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
995
|
-
default:
|
|
996
|
-
const parsedBody = parsedOutput.body;
|
|
997
|
-
return throwDefaultError({
|
|
998
|
-
output,
|
|
999
|
-
parsedBody,
|
|
1000
|
-
errorCode
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
}, "de_CommandError");
|
|
1004
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(BraketServiceException);
|
|
1005
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1006
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1007
|
-
const data = parsedOutput.body;
|
|
1008
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1009
|
-
message: import_smithy_client.expectString
|
|
1010
|
-
});
|
|
1011
|
-
Object.assign(contents, doc);
|
|
1012
|
-
const exception = new AccessDeniedException({
|
|
1013
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1014
|
-
...contents
|
|
1015
|
-
});
|
|
1016
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1017
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1018
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1019
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1020
|
-
const data = parsedOutput.body;
|
|
1021
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1022
|
-
message: import_smithy_client.expectString
|
|
1023
|
-
});
|
|
1024
|
-
Object.assign(contents, doc);
|
|
1025
|
-
const exception = new ConflictException({
|
|
1026
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1027
|
-
...contents
|
|
1028
|
-
});
|
|
1029
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1030
|
-
}, "de_ConflictExceptionRes");
|
|
1031
|
-
var de_DeviceOfflineExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1032
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1033
|
-
const data = parsedOutput.body;
|
|
1034
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1035
|
-
message: import_smithy_client.expectString
|
|
1036
|
-
});
|
|
1037
|
-
Object.assign(contents, doc);
|
|
1038
|
-
const exception = new DeviceOfflineException({
|
|
1039
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1040
|
-
...contents
|
|
1041
|
-
});
|
|
1042
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1043
|
-
}, "de_DeviceOfflineExceptionRes");
|
|
1044
|
-
var de_DeviceRetiredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1045
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1046
|
-
const data = parsedOutput.body;
|
|
1047
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1048
|
-
message: import_smithy_client.expectString
|
|
1049
|
-
});
|
|
1050
|
-
Object.assign(contents, doc);
|
|
1051
|
-
const exception = new DeviceRetiredException({
|
|
1052
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1053
|
-
...contents
|
|
1054
|
-
});
|
|
1055
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1056
|
-
}, "de_DeviceRetiredExceptionRes");
|
|
1057
|
-
var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1058
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1059
|
-
const data = parsedOutput.body;
|
|
1060
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1061
|
-
message: import_smithy_client.expectString
|
|
1062
|
-
});
|
|
1063
|
-
Object.assign(contents, doc);
|
|
1064
|
-
const exception = new InternalServiceException({
|
|
1065
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1066
|
-
...contents
|
|
1067
|
-
});
|
|
1068
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1069
|
-
}, "de_InternalServiceExceptionRes");
|
|
1070
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1071
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1072
|
-
const data = parsedOutput.body;
|
|
1073
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1074
|
-
message: import_smithy_client.expectString
|
|
1075
|
-
});
|
|
1076
|
-
Object.assign(contents, doc);
|
|
1077
|
-
const exception = new ResourceNotFoundException({
|
|
1078
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
|
-
...contents
|
|
1080
|
-
});
|
|
1081
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1082
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1083
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1084
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1085
|
-
const data = parsedOutput.body;
|
|
1086
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1087
|
-
message: import_smithy_client.expectString
|
|
1088
|
-
});
|
|
1089
|
-
Object.assign(contents, doc);
|
|
1090
|
-
const exception = new ServiceQuotaExceededException({
|
|
1091
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1092
|
-
...contents
|
|
1093
|
-
});
|
|
1094
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1095
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1096
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1097
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1098
|
-
const data = parsedOutput.body;
|
|
1099
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1100
|
-
message: import_smithy_client.expectString
|
|
1101
|
-
});
|
|
1102
|
-
Object.assign(contents, doc);
|
|
1103
|
-
const exception = new ThrottlingException({
|
|
1104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
|
-
...contents
|
|
1106
|
-
});
|
|
1107
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1108
|
-
}, "de_ThrottlingExceptionRes");
|
|
1109
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1110
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1111
|
-
const data = parsedOutput.body;
|
|
1112
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1113
|
-
message: import_smithy_client.expectString,
|
|
1114
|
-
programSetValidationFailures: import_smithy_client._json,
|
|
1115
|
-
reason: import_smithy_client.expectString
|
|
1116
|
-
});
|
|
1117
|
-
Object.assign(contents, doc);
|
|
1118
|
-
const exception = new ValidationException({
|
|
1119
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1120
|
-
...contents
|
|
1121
|
-
});
|
|
1122
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1123
|
-
}, "de_ValidationExceptionRes");
|
|
1124
|
-
var de_JobEventDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1125
|
-
return (0, import_smithy_client.take)(output, {
|
|
1126
|
-
eventType: import_smithy_client.expectString,
|
|
1127
|
-
message: import_smithy_client.expectString,
|
|
1128
|
-
timeOfEvent: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "timeOfEvent")
|
|
1129
|
-
});
|
|
1130
|
-
}, "de_JobEventDetails");
|
|
1131
|
-
var de_JobEvents = /* @__PURE__ */ __name((output, context) => {
|
|
1132
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1133
|
-
return de_JobEventDetails(entry, context);
|
|
1134
|
-
});
|
|
1135
|
-
return retVal;
|
|
1136
|
-
}, "de_JobEvents");
|
|
1137
|
-
var de_JobSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1138
|
-
return (0, import_smithy_client.take)(output, {
|
|
1139
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
1140
|
-
device: import_smithy_client.expectString,
|
|
1141
|
-
endedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "endedAt"),
|
|
1142
|
-
jobArn: import_smithy_client.expectString,
|
|
1143
|
-
jobName: import_smithy_client.expectString,
|
|
1144
|
-
startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startedAt"),
|
|
1145
|
-
status: import_smithy_client.expectString,
|
|
1146
|
-
tags: import_smithy_client._json
|
|
1147
|
-
});
|
|
1148
|
-
}, "de_JobSummary");
|
|
1149
|
-
var de_JobSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1150
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1151
|
-
return de_JobSummary(entry, context);
|
|
1152
|
-
});
|
|
1153
|
-
return retVal;
|
|
1154
|
-
}, "de_JobSummaryList");
|
|
1155
|
-
var de_QuantumTaskSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1156
|
-
return (0, import_smithy_client.take)(output, {
|
|
1157
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
1158
|
-
deviceArn: import_smithy_client.expectString,
|
|
1159
|
-
endedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "endedAt"),
|
|
1160
|
-
outputS3Bucket: import_smithy_client.expectString,
|
|
1161
|
-
outputS3Directory: import_smithy_client.expectString,
|
|
1162
|
-
quantumTaskArn: import_smithy_client.expectString,
|
|
1163
|
-
shots: import_smithy_client.expectLong,
|
|
1164
|
-
status: import_smithy_client.expectString,
|
|
1165
|
-
tags: import_smithy_client._json
|
|
1166
|
-
});
|
|
1167
|
-
}, "de_QuantumTaskSummary");
|
|
1168
|
-
var de_QuantumTaskSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1169
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1170
|
-
return de_QuantumTaskSummary(entry, context);
|
|
1171
|
-
});
|
|
1172
|
-
return retVal;
|
|
1173
|
-
}, "de_QuantumTaskSummaryList");
|
|
1174
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1175
|
-
httpStatusCode: output.statusCode,
|
|
1176
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1177
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1178
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1179
|
-
}), "deserializeMetadata");
|
|
1180
|
-
var _aAN = "additionalAttributeNames";
|
|
1181
|
-
var _tK = "tagKeys";
|
|
1182
|
-
|
|
1183
|
-
// src/commands/CancelJobCommand.ts
|
|
1184
|
-
var CancelJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1185
|
-
return [
|
|
1186
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1187
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1188
|
-
];
|
|
1189
|
-
}).s("Braket", "CancelJob", {}).n("BraketClient", "CancelJobCommand").f(void 0, void 0).ser(se_CancelJobCommand).de(de_CancelJobCommand).build() {
|
|
1190
|
-
static {
|
|
1191
|
-
__name(this, "CancelJobCommand");
|
|
1192
|
-
}
|
|
586
|
+
const de_CreateQuantumTaskCommand = async (output, context) => {
|
|
587
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
588
|
+
return de_CommandError(output, context);
|
|
589
|
+
}
|
|
590
|
+
const contents = smithyClient.map({
|
|
591
|
+
$metadata: deserializeMetadata(output),
|
|
592
|
+
});
|
|
593
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
594
|
+
const doc = smithyClient.take(data, {
|
|
595
|
+
quantumTaskArn: smithyClient.expectString,
|
|
596
|
+
});
|
|
597
|
+
Object.assign(contents, doc);
|
|
598
|
+
return contents;
|
|
1193
599
|
};
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
(
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
600
|
+
const de_GetDeviceCommand = async (output, context) => {
|
|
601
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
602
|
+
return de_CommandError(output, context);
|
|
603
|
+
}
|
|
604
|
+
const contents = smithyClient.map({
|
|
605
|
+
$metadata: deserializeMetadata(output),
|
|
606
|
+
});
|
|
607
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
608
|
+
const doc = smithyClient.take(data, {
|
|
609
|
+
deviceArn: smithyClient.expectString,
|
|
610
|
+
deviceCapabilities: smithyClient.LazyJsonString.from,
|
|
611
|
+
deviceName: smithyClient.expectString,
|
|
612
|
+
deviceQueueInfo: smithyClient._json,
|
|
613
|
+
deviceStatus: smithyClient.expectString,
|
|
614
|
+
deviceType: smithyClient.expectString,
|
|
615
|
+
providerName: smithyClient.expectString,
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
618
|
+
return contents;
|
|
1208
619
|
};
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
(
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
620
|
+
const de_GetJobCommand = async (output, context) => {
|
|
621
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
+
return de_CommandError(output, context);
|
|
623
|
+
}
|
|
624
|
+
const contents = smithyClient.map({
|
|
625
|
+
$metadata: deserializeMetadata(output),
|
|
626
|
+
});
|
|
627
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
628
|
+
const doc = smithyClient.take(data, {
|
|
629
|
+
algorithmSpecification: smithyClient._json,
|
|
630
|
+
associations: smithyClient._json,
|
|
631
|
+
billableDuration: smithyClient.expectInt32,
|
|
632
|
+
checkpointConfig: smithyClient._json,
|
|
633
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
634
|
+
deviceConfig: smithyClient._json,
|
|
635
|
+
endedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
636
|
+
events: (_) => de_JobEvents(_),
|
|
637
|
+
failureReason: smithyClient.expectString,
|
|
638
|
+
hyperParameters: smithyClient._json,
|
|
639
|
+
inputDataConfig: smithyClient._json,
|
|
640
|
+
instanceConfig: smithyClient._json,
|
|
641
|
+
jobArn: smithyClient.expectString,
|
|
642
|
+
jobName: smithyClient.expectString,
|
|
643
|
+
outputDataConfig: smithyClient._json,
|
|
644
|
+
queueInfo: smithyClient._json,
|
|
645
|
+
roleArn: smithyClient.expectString,
|
|
646
|
+
startedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
647
|
+
status: smithyClient.expectString,
|
|
648
|
+
stoppingCondition: smithyClient._json,
|
|
649
|
+
tags: smithyClient._json,
|
|
650
|
+
});
|
|
651
|
+
Object.assign(contents, doc);
|
|
652
|
+
return contents;
|
|
1223
653
|
};
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
(
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
654
|
+
const de_GetQuantumTaskCommand = async (output, context) => {
|
|
655
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
+
return de_CommandError(output, context);
|
|
657
|
+
}
|
|
658
|
+
const contents = smithyClient.map({
|
|
659
|
+
$metadata: deserializeMetadata(output),
|
|
660
|
+
});
|
|
661
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
662
|
+
const doc = smithyClient.take(data, {
|
|
663
|
+
actionMetadata: smithyClient._json,
|
|
664
|
+
associations: smithyClient._json,
|
|
665
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
666
|
+
deviceArn: smithyClient.expectString,
|
|
667
|
+
deviceParameters: smithyClient.LazyJsonString.from,
|
|
668
|
+
endedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
669
|
+
failureReason: smithyClient.expectString,
|
|
670
|
+
jobArn: smithyClient.expectString,
|
|
671
|
+
numSuccessfulShots: smithyClient.expectLong,
|
|
672
|
+
outputS3Bucket: smithyClient.expectString,
|
|
673
|
+
outputS3Directory: smithyClient.expectString,
|
|
674
|
+
quantumTaskArn: smithyClient.expectString,
|
|
675
|
+
queueInfo: smithyClient._json,
|
|
676
|
+
shots: smithyClient.expectLong,
|
|
677
|
+
status: smithyClient.expectString,
|
|
678
|
+
tags: smithyClient._json,
|
|
679
|
+
});
|
|
680
|
+
Object.assign(contents, doc);
|
|
681
|
+
return contents;
|
|
1238
682
|
};
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
(
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
})
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}
|
|
683
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
684
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
685
|
+
return de_CommandError(output, context);
|
|
686
|
+
}
|
|
687
|
+
const contents = smithyClient.map({
|
|
688
|
+
$metadata: deserializeMetadata(output),
|
|
689
|
+
});
|
|
690
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
691
|
+
const doc = smithyClient.take(data, {
|
|
692
|
+
tags: smithyClient._json,
|
|
693
|
+
});
|
|
694
|
+
Object.assign(contents, doc);
|
|
695
|
+
return contents;
|
|
1253
696
|
};
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
(
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
697
|
+
const de_SearchDevicesCommand = async (output, context) => {
|
|
698
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
699
|
+
return de_CommandError(output, context);
|
|
700
|
+
}
|
|
701
|
+
const contents = smithyClient.map({
|
|
702
|
+
$metadata: deserializeMetadata(output),
|
|
703
|
+
});
|
|
704
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
705
|
+
const doc = smithyClient.take(data, {
|
|
706
|
+
devices: smithyClient._json,
|
|
707
|
+
nextToken: smithyClient.expectString,
|
|
708
|
+
});
|
|
709
|
+
Object.assign(contents, doc);
|
|
710
|
+
return contents;
|
|
1268
711
|
};
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
(
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
712
|
+
const de_SearchJobsCommand = async (output, context) => {
|
|
713
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
714
|
+
return de_CommandError(output, context);
|
|
715
|
+
}
|
|
716
|
+
const contents = smithyClient.map({
|
|
717
|
+
$metadata: deserializeMetadata(output),
|
|
718
|
+
});
|
|
719
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
720
|
+
const doc = smithyClient.take(data, {
|
|
721
|
+
jobs: (_) => de_JobSummaryList(_),
|
|
722
|
+
nextToken: smithyClient.expectString,
|
|
723
|
+
});
|
|
724
|
+
Object.assign(contents, doc);
|
|
725
|
+
return contents;
|
|
1283
726
|
};
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
(
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
727
|
+
const de_SearchQuantumTasksCommand = async (output, context) => {
|
|
728
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
|
+
return de_CommandError(output, context);
|
|
730
|
+
}
|
|
731
|
+
const contents = smithyClient.map({
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
});
|
|
734
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
735
|
+
const doc = smithyClient.take(data, {
|
|
736
|
+
nextToken: smithyClient.expectString,
|
|
737
|
+
quantumTasks: (_) => de_QuantumTaskSummaryList(_),
|
|
738
|
+
});
|
|
739
|
+
Object.assign(contents, doc);
|
|
740
|
+
return contents;
|
|
1298
741
|
};
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
];
|
|
1309
|
-
}).s("Braket", "SearchDevices", {}).n("BraketClient", "SearchDevicesCommand").f(void 0, void 0).ser(se_SearchDevicesCommand).de(de_SearchDevicesCommand).build() {
|
|
1310
|
-
static {
|
|
1311
|
-
__name(this, "SearchDevicesCommand");
|
|
1312
|
-
}
|
|
742
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
743
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
744
|
+
return de_CommandError(output, context);
|
|
745
|
+
}
|
|
746
|
+
const contents = smithyClient.map({
|
|
747
|
+
$metadata: deserializeMetadata(output),
|
|
748
|
+
});
|
|
749
|
+
await smithyClient.collectBody(output.body, context);
|
|
750
|
+
return contents;
|
|
1313
751
|
};
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
];
|
|
1324
|
-
}).s("Braket", "SearchJobs", {}).n("BraketClient", "SearchJobsCommand").f(void 0, void 0).ser(se_SearchJobsCommand).de(de_SearchJobsCommand).build() {
|
|
1325
|
-
static {
|
|
1326
|
-
__name(this, "SearchJobsCommand");
|
|
1327
|
-
}
|
|
752
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
753
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
+
return de_CommandError(output, context);
|
|
755
|
+
}
|
|
756
|
+
const contents = smithyClient.map({
|
|
757
|
+
$metadata: deserializeMetadata(output),
|
|
758
|
+
});
|
|
759
|
+
await smithyClient.collectBody(output.body, context);
|
|
760
|
+
return contents;
|
|
1328
761
|
};
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
762
|
+
const de_CommandError = async (output, context) => {
|
|
763
|
+
const parsedOutput = {
|
|
764
|
+
...output,
|
|
765
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
766
|
+
};
|
|
767
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
+
switch (errorCode) {
|
|
769
|
+
case "AccessDeniedException":
|
|
770
|
+
case "com.amazonaws.braket#AccessDeniedException":
|
|
771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
772
|
+
case "ConflictException":
|
|
773
|
+
case "com.amazonaws.braket#ConflictException":
|
|
774
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
775
|
+
case "InternalServiceException":
|
|
776
|
+
case "com.amazonaws.braket#InternalServiceException":
|
|
777
|
+
throw await de_InternalServiceExceptionRes(parsedOutput);
|
|
778
|
+
case "ResourceNotFoundException":
|
|
779
|
+
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
780
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
781
|
+
case "ThrottlingException":
|
|
782
|
+
case "com.amazonaws.braket#ThrottlingException":
|
|
783
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
784
|
+
case "ValidationException":
|
|
785
|
+
case "com.amazonaws.braket#ValidationException":
|
|
786
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
787
|
+
case "DeviceOfflineException":
|
|
788
|
+
case "com.amazonaws.braket#DeviceOfflineException":
|
|
789
|
+
throw await de_DeviceOfflineExceptionRes(parsedOutput);
|
|
790
|
+
case "DeviceRetiredException":
|
|
791
|
+
case "com.amazonaws.braket#DeviceRetiredException":
|
|
792
|
+
throw await de_DeviceRetiredExceptionRes(parsedOutput);
|
|
793
|
+
case "ServiceQuotaExceededException":
|
|
794
|
+
case "com.amazonaws.braket#ServiceQuotaExceededException":
|
|
795
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
796
|
+
default:
|
|
797
|
+
const parsedBody = parsedOutput.body;
|
|
798
|
+
return throwDefaultError({
|
|
799
|
+
output,
|
|
800
|
+
parsedBody,
|
|
801
|
+
errorCode,
|
|
802
|
+
});
|
|
803
|
+
}
|
|
1343
804
|
};
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
}
|
|
805
|
+
const throwDefaultError = smithyClient.withBaseException(BraketServiceException);
|
|
806
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
807
|
+
const contents = smithyClient.map({});
|
|
808
|
+
const data = parsedOutput.body;
|
|
809
|
+
const doc = smithyClient.take(data, {
|
|
810
|
+
message: smithyClient.expectString,
|
|
811
|
+
});
|
|
812
|
+
Object.assign(contents, doc);
|
|
813
|
+
const exception = new AccessDeniedException({
|
|
814
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
815
|
+
...contents,
|
|
816
|
+
});
|
|
817
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1358
818
|
};
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
})
|
|
1370
|
-
|
|
1371
|
-
__name(this, "UntagResourceCommand");
|
|
1372
|
-
}
|
|
819
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
820
|
+
const contents = smithyClient.map({});
|
|
821
|
+
const data = parsedOutput.body;
|
|
822
|
+
const doc = smithyClient.take(data, {
|
|
823
|
+
message: smithyClient.expectString,
|
|
824
|
+
});
|
|
825
|
+
Object.assign(contents, doc);
|
|
826
|
+
const exception = new ConflictException({
|
|
827
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
828
|
+
...contents,
|
|
829
|
+
});
|
|
830
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1373
831
|
};
|
|
832
|
+
const de_DeviceOfflineExceptionRes = async (parsedOutput, context) => {
|
|
833
|
+
const contents = smithyClient.map({});
|
|
834
|
+
const data = parsedOutput.body;
|
|
835
|
+
const doc = smithyClient.take(data, {
|
|
836
|
+
message: smithyClient.expectString,
|
|
837
|
+
});
|
|
838
|
+
Object.assign(contents, doc);
|
|
839
|
+
const exception = new DeviceOfflineException({
|
|
840
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
841
|
+
...contents,
|
|
842
|
+
});
|
|
843
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
844
|
+
};
|
|
845
|
+
const de_DeviceRetiredExceptionRes = async (parsedOutput, context) => {
|
|
846
|
+
const contents = smithyClient.map({});
|
|
847
|
+
const data = parsedOutput.body;
|
|
848
|
+
const doc = smithyClient.take(data, {
|
|
849
|
+
message: smithyClient.expectString,
|
|
850
|
+
});
|
|
851
|
+
Object.assign(contents, doc);
|
|
852
|
+
const exception = new DeviceRetiredException({
|
|
853
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
854
|
+
...contents,
|
|
855
|
+
});
|
|
856
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
857
|
+
};
|
|
858
|
+
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
859
|
+
const contents = smithyClient.map({});
|
|
860
|
+
const data = parsedOutput.body;
|
|
861
|
+
const doc = smithyClient.take(data, {
|
|
862
|
+
message: smithyClient.expectString,
|
|
863
|
+
});
|
|
864
|
+
Object.assign(contents, doc);
|
|
865
|
+
const exception = new InternalServiceException({
|
|
866
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
867
|
+
...contents,
|
|
868
|
+
});
|
|
869
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
870
|
+
};
|
|
871
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
872
|
+
const contents = smithyClient.map({});
|
|
873
|
+
const data = parsedOutput.body;
|
|
874
|
+
const doc = smithyClient.take(data, {
|
|
875
|
+
message: smithyClient.expectString,
|
|
876
|
+
});
|
|
877
|
+
Object.assign(contents, doc);
|
|
878
|
+
const exception = new ResourceNotFoundException({
|
|
879
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
880
|
+
...contents,
|
|
881
|
+
});
|
|
882
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
883
|
+
};
|
|
884
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
885
|
+
const contents = smithyClient.map({});
|
|
886
|
+
const data = parsedOutput.body;
|
|
887
|
+
const doc = smithyClient.take(data, {
|
|
888
|
+
message: smithyClient.expectString,
|
|
889
|
+
});
|
|
890
|
+
Object.assign(contents, doc);
|
|
891
|
+
const exception = new ServiceQuotaExceededException({
|
|
892
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
893
|
+
...contents,
|
|
894
|
+
});
|
|
895
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
896
|
+
};
|
|
897
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
898
|
+
const contents = smithyClient.map({});
|
|
899
|
+
const data = parsedOutput.body;
|
|
900
|
+
const doc = smithyClient.take(data, {
|
|
901
|
+
message: smithyClient.expectString,
|
|
902
|
+
});
|
|
903
|
+
Object.assign(contents, doc);
|
|
904
|
+
const exception = new ThrottlingException({
|
|
905
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
906
|
+
...contents,
|
|
907
|
+
});
|
|
908
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
909
|
+
};
|
|
910
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
911
|
+
const contents = smithyClient.map({});
|
|
912
|
+
const data = parsedOutput.body;
|
|
913
|
+
const doc = smithyClient.take(data, {
|
|
914
|
+
message: smithyClient.expectString,
|
|
915
|
+
programSetValidationFailures: smithyClient._json,
|
|
916
|
+
reason: smithyClient.expectString,
|
|
917
|
+
});
|
|
918
|
+
Object.assign(contents, doc);
|
|
919
|
+
const exception = new ValidationException({
|
|
920
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
921
|
+
...contents,
|
|
922
|
+
});
|
|
923
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
924
|
+
};
|
|
925
|
+
const de_JobEventDetails = (output, context) => {
|
|
926
|
+
return smithyClient.take(output, {
|
|
927
|
+
eventType: smithyClient.expectString,
|
|
928
|
+
message: smithyClient.expectString,
|
|
929
|
+
timeOfEvent: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
930
|
+
});
|
|
931
|
+
};
|
|
932
|
+
const de_JobEvents = (output, context) => {
|
|
933
|
+
const retVal = (output || [])
|
|
934
|
+
.filter((e) => e != null)
|
|
935
|
+
.map((entry) => {
|
|
936
|
+
return de_JobEventDetails(entry);
|
|
937
|
+
});
|
|
938
|
+
return retVal;
|
|
939
|
+
};
|
|
940
|
+
const de_JobSummary = (output, context) => {
|
|
941
|
+
return smithyClient.take(output, {
|
|
942
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
943
|
+
device: smithyClient.expectString,
|
|
944
|
+
endedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
945
|
+
jobArn: smithyClient.expectString,
|
|
946
|
+
jobName: smithyClient.expectString,
|
|
947
|
+
startedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
948
|
+
status: smithyClient.expectString,
|
|
949
|
+
tags: smithyClient._json,
|
|
950
|
+
});
|
|
951
|
+
};
|
|
952
|
+
const de_JobSummaryList = (output, context) => {
|
|
953
|
+
const retVal = (output || [])
|
|
954
|
+
.filter((e) => e != null)
|
|
955
|
+
.map((entry) => {
|
|
956
|
+
return de_JobSummary(entry);
|
|
957
|
+
});
|
|
958
|
+
return retVal;
|
|
959
|
+
};
|
|
960
|
+
const de_QuantumTaskSummary = (output, context) => {
|
|
961
|
+
return smithyClient.take(output, {
|
|
962
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
963
|
+
deviceArn: smithyClient.expectString,
|
|
964
|
+
endedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
965
|
+
outputS3Bucket: smithyClient.expectString,
|
|
966
|
+
outputS3Directory: smithyClient.expectString,
|
|
967
|
+
quantumTaskArn: smithyClient.expectString,
|
|
968
|
+
shots: smithyClient.expectLong,
|
|
969
|
+
status: smithyClient.expectString,
|
|
970
|
+
tags: smithyClient._json,
|
|
971
|
+
});
|
|
972
|
+
};
|
|
973
|
+
const de_QuantumTaskSummaryList = (output, context) => {
|
|
974
|
+
const retVal = (output || [])
|
|
975
|
+
.filter((e) => e != null)
|
|
976
|
+
.map((entry) => {
|
|
977
|
+
return de_QuantumTaskSummary(entry);
|
|
978
|
+
});
|
|
979
|
+
return retVal;
|
|
980
|
+
};
|
|
981
|
+
const deserializeMetadata = (output) => ({
|
|
982
|
+
httpStatusCode: output.statusCode,
|
|
983
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
984
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
985
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
986
|
+
});
|
|
987
|
+
const _aAN = "additionalAttributeNames";
|
|
988
|
+
const _tK = "tagKeys";
|
|
989
|
+
|
|
990
|
+
class CancelJobCommand extends smithyClient.Command
|
|
991
|
+
.classBuilder()
|
|
992
|
+
.ep(commonParams)
|
|
993
|
+
.m(function (Command, cs, config, o) {
|
|
994
|
+
return [
|
|
995
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
996
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
997
|
+
];
|
|
998
|
+
})
|
|
999
|
+
.s("Braket", "CancelJob", {})
|
|
1000
|
+
.n("BraketClient", "CancelJobCommand")
|
|
1001
|
+
.f(void 0, void 0)
|
|
1002
|
+
.ser(se_CancelJobCommand)
|
|
1003
|
+
.de(de_CancelJobCommand)
|
|
1004
|
+
.build() {
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
class CancelQuantumTaskCommand extends smithyClient.Command
|
|
1008
|
+
.classBuilder()
|
|
1009
|
+
.ep(commonParams)
|
|
1010
|
+
.m(function (Command, cs, config, o) {
|
|
1011
|
+
return [
|
|
1012
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1013
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1014
|
+
];
|
|
1015
|
+
})
|
|
1016
|
+
.s("Braket", "CancelQuantumTask", {})
|
|
1017
|
+
.n("BraketClient", "CancelQuantumTaskCommand")
|
|
1018
|
+
.f(void 0, void 0)
|
|
1019
|
+
.ser(se_CancelQuantumTaskCommand)
|
|
1020
|
+
.de(de_CancelQuantumTaskCommand)
|
|
1021
|
+
.build() {
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
class CreateJobCommand extends smithyClient.Command
|
|
1025
|
+
.classBuilder()
|
|
1026
|
+
.ep(commonParams)
|
|
1027
|
+
.m(function (Command, cs, config, o) {
|
|
1028
|
+
return [
|
|
1029
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1030
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1031
|
+
];
|
|
1032
|
+
})
|
|
1033
|
+
.s("Braket", "CreateJob", {})
|
|
1034
|
+
.n("BraketClient", "CreateJobCommand")
|
|
1035
|
+
.f(void 0, void 0)
|
|
1036
|
+
.ser(se_CreateJobCommand)
|
|
1037
|
+
.de(de_CreateJobCommand)
|
|
1038
|
+
.build() {
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
class CreateQuantumTaskCommand extends smithyClient.Command
|
|
1042
|
+
.classBuilder()
|
|
1043
|
+
.ep(commonParams)
|
|
1044
|
+
.m(function (Command, cs, config, o) {
|
|
1045
|
+
return [
|
|
1046
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1047
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1048
|
+
];
|
|
1049
|
+
})
|
|
1050
|
+
.s("Braket", "CreateQuantumTask", {})
|
|
1051
|
+
.n("BraketClient", "CreateQuantumTaskCommand")
|
|
1052
|
+
.f(void 0, void 0)
|
|
1053
|
+
.ser(se_CreateQuantumTaskCommand)
|
|
1054
|
+
.de(de_CreateQuantumTaskCommand)
|
|
1055
|
+
.build() {
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
class GetDeviceCommand extends smithyClient.Command
|
|
1059
|
+
.classBuilder()
|
|
1060
|
+
.ep(commonParams)
|
|
1061
|
+
.m(function (Command, cs, config, o) {
|
|
1062
|
+
return [
|
|
1063
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1064
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1065
|
+
];
|
|
1066
|
+
})
|
|
1067
|
+
.s("Braket", "GetDevice", {})
|
|
1068
|
+
.n("BraketClient", "GetDeviceCommand")
|
|
1069
|
+
.f(void 0, void 0)
|
|
1070
|
+
.ser(se_GetDeviceCommand)
|
|
1071
|
+
.de(de_GetDeviceCommand)
|
|
1072
|
+
.build() {
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
class GetJobCommand extends smithyClient.Command
|
|
1076
|
+
.classBuilder()
|
|
1077
|
+
.ep(commonParams)
|
|
1078
|
+
.m(function (Command, cs, config, o) {
|
|
1079
|
+
return [
|
|
1080
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1081
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1082
|
+
];
|
|
1083
|
+
})
|
|
1084
|
+
.s("Braket", "GetJob", {})
|
|
1085
|
+
.n("BraketClient", "GetJobCommand")
|
|
1086
|
+
.f(void 0, void 0)
|
|
1087
|
+
.ser(se_GetJobCommand)
|
|
1088
|
+
.de(de_GetJobCommand)
|
|
1089
|
+
.build() {
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
class GetQuantumTaskCommand extends smithyClient.Command
|
|
1093
|
+
.classBuilder()
|
|
1094
|
+
.ep(commonParams)
|
|
1095
|
+
.m(function (Command, cs, config, o) {
|
|
1096
|
+
return [
|
|
1097
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1098
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1099
|
+
];
|
|
1100
|
+
})
|
|
1101
|
+
.s("Braket", "GetQuantumTask", {})
|
|
1102
|
+
.n("BraketClient", "GetQuantumTaskCommand")
|
|
1103
|
+
.f(void 0, void 0)
|
|
1104
|
+
.ser(se_GetQuantumTaskCommand)
|
|
1105
|
+
.de(de_GetQuantumTaskCommand)
|
|
1106
|
+
.build() {
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1110
|
+
.classBuilder()
|
|
1111
|
+
.ep(commonParams)
|
|
1112
|
+
.m(function (Command, cs, config, o) {
|
|
1113
|
+
return [
|
|
1114
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1115
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1116
|
+
];
|
|
1117
|
+
})
|
|
1118
|
+
.s("Braket", "ListTagsForResource", {})
|
|
1119
|
+
.n("BraketClient", "ListTagsForResourceCommand")
|
|
1120
|
+
.f(void 0, void 0)
|
|
1121
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1122
|
+
.de(de_ListTagsForResourceCommand)
|
|
1123
|
+
.build() {
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
class SearchDevicesCommand extends smithyClient.Command
|
|
1127
|
+
.classBuilder()
|
|
1128
|
+
.ep(commonParams)
|
|
1129
|
+
.m(function (Command, cs, config, o) {
|
|
1130
|
+
return [
|
|
1131
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1132
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1133
|
+
];
|
|
1134
|
+
})
|
|
1135
|
+
.s("Braket", "SearchDevices", {})
|
|
1136
|
+
.n("BraketClient", "SearchDevicesCommand")
|
|
1137
|
+
.f(void 0, void 0)
|
|
1138
|
+
.ser(se_SearchDevicesCommand)
|
|
1139
|
+
.de(de_SearchDevicesCommand)
|
|
1140
|
+
.build() {
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
class SearchJobsCommand extends smithyClient.Command
|
|
1144
|
+
.classBuilder()
|
|
1145
|
+
.ep(commonParams)
|
|
1146
|
+
.m(function (Command, cs, config, o) {
|
|
1147
|
+
return [
|
|
1148
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1149
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1150
|
+
];
|
|
1151
|
+
})
|
|
1152
|
+
.s("Braket", "SearchJobs", {})
|
|
1153
|
+
.n("BraketClient", "SearchJobsCommand")
|
|
1154
|
+
.f(void 0, void 0)
|
|
1155
|
+
.ser(se_SearchJobsCommand)
|
|
1156
|
+
.de(de_SearchJobsCommand)
|
|
1157
|
+
.build() {
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
class SearchQuantumTasksCommand extends smithyClient.Command
|
|
1161
|
+
.classBuilder()
|
|
1162
|
+
.ep(commonParams)
|
|
1163
|
+
.m(function (Command, cs, config, o) {
|
|
1164
|
+
return [
|
|
1165
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1166
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1167
|
+
];
|
|
1168
|
+
})
|
|
1169
|
+
.s("Braket", "SearchQuantumTasks", {})
|
|
1170
|
+
.n("BraketClient", "SearchQuantumTasksCommand")
|
|
1171
|
+
.f(void 0, void 0)
|
|
1172
|
+
.ser(se_SearchQuantumTasksCommand)
|
|
1173
|
+
.de(de_SearchQuantumTasksCommand)
|
|
1174
|
+
.build() {
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1178
|
+
.classBuilder()
|
|
1179
|
+
.ep(commonParams)
|
|
1180
|
+
.m(function (Command, cs, config, o) {
|
|
1181
|
+
return [
|
|
1182
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1183
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1184
|
+
];
|
|
1185
|
+
})
|
|
1186
|
+
.s("Braket", "TagResource", {})
|
|
1187
|
+
.n("BraketClient", "TagResourceCommand")
|
|
1188
|
+
.f(void 0, void 0)
|
|
1189
|
+
.ser(se_TagResourceCommand)
|
|
1190
|
+
.de(de_TagResourceCommand)
|
|
1191
|
+
.build() {
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1195
|
+
.classBuilder()
|
|
1196
|
+
.ep(commonParams)
|
|
1197
|
+
.m(function (Command, cs, config, o) {
|
|
1198
|
+
return [
|
|
1199
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1200
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1201
|
+
];
|
|
1202
|
+
})
|
|
1203
|
+
.s("Braket", "UntagResource", {})
|
|
1204
|
+
.n("BraketClient", "UntagResourceCommand")
|
|
1205
|
+
.f(void 0, void 0)
|
|
1206
|
+
.ser(se_UntagResourceCommand)
|
|
1207
|
+
.de(de_UntagResourceCommand)
|
|
1208
|
+
.build() {
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
const commands = {
|
|
1212
|
+
CancelJobCommand,
|
|
1213
|
+
CancelQuantumTaskCommand,
|
|
1214
|
+
CreateJobCommand,
|
|
1215
|
+
CreateQuantumTaskCommand,
|
|
1216
|
+
GetDeviceCommand,
|
|
1217
|
+
GetJobCommand,
|
|
1218
|
+
GetQuantumTaskCommand,
|
|
1219
|
+
ListTagsForResourceCommand,
|
|
1220
|
+
SearchDevicesCommand,
|
|
1221
|
+
SearchJobsCommand,
|
|
1222
|
+
SearchQuantumTasksCommand,
|
|
1223
|
+
TagResourceCommand,
|
|
1224
|
+
UntagResourceCommand,
|
|
1225
|
+
};
|
|
1226
|
+
class Braket extends BraketClient {
|
|
1227
|
+
}
|
|
1228
|
+
smithyClient.createAggregatedClient(commands, Braket);
|
|
1374
1229
|
|
|
1375
|
-
|
|
1376
|
-
var commands = {
|
|
1377
|
-
CancelJobCommand,
|
|
1378
|
-
CancelQuantumTaskCommand,
|
|
1379
|
-
CreateJobCommand,
|
|
1380
|
-
CreateQuantumTaskCommand,
|
|
1381
|
-
GetDeviceCommand,
|
|
1382
|
-
GetJobCommand,
|
|
1383
|
-
GetQuantumTaskCommand,
|
|
1384
|
-
ListTagsForResourceCommand,
|
|
1385
|
-
SearchDevicesCommand,
|
|
1386
|
-
SearchJobsCommand,
|
|
1387
|
-
SearchQuantumTasksCommand,
|
|
1388
|
-
TagResourceCommand,
|
|
1389
|
-
UntagResourceCommand
|
|
1390
|
-
};
|
|
1391
|
-
var Braket = class extends BraketClient {
|
|
1392
|
-
static {
|
|
1393
|
-
__name(this, "Braket");
|
|
1394
|
-
}
|
|
1395
|
-
};
|
|
1396
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Braket);
|
|
1397
|
-
|
|
1398
|
-
// src/pagination/SearchDevicesPaginator.ts
|
|
1399
|
-
|
|
1400
|
-
var paginateSearchDevices = (0, import_core.createPaginator)(BraketClient, SearchDevicesCommand, "nextToken", "nextToken", "maxResults");
|
|
1401
|
-
|
|
1402
|
-
// src/pagination/SearchJobsPaginator.ts
|
|
1403
|
-
|
|
1404
|
-
var paginateSearchJobs = (0, import_core.createPaginator)(BraketClient, SearchJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
1230
|
+
const paginateSearchDevices = core.createPaginator(BraketClient, SearchDevicesCommand, "nextToken", "nextToken", "maxResults");
|
|
1405
1231
|
|
|
1406
|
-
|
|
1232
|
+
const paginateSearchJobs = core.createPaginator(BraketClient, SearchJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
1407
1233
|
|
|
1408
|
-
|
|
1409
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1234
|
+
const paginateSearchQuantumTasks = core.createPaginator(BraketClient, SearchQuantumTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
1410
1235
|
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
BraketClient,
|
|
1415
|
-
Braket,
|
|
1416
|
-
$Command,
|
|
1417
|
-
CancelJobCommand,
|
|
1418
|
-
CancelQuantumTaskCommand,
|
|
1419
|
-
CreateJobCommand,
|
|
1420
|
-
CreateQuantumTaskCommand,
|
|
1421
|
-
GetDeviceCommand,
|
|
1422
|
-
GetJobCommand,
|
|
1423
|
-
GetQuantumTaskCommand,
|
|
1424
|
-
ListTagsForResourceCommand,
|
|
1425
|
-
SearchDevicesCommand,
|
|
1426
|
-
SearchJobsCommand,
|
|
1427
|
-
SearchQuantumTasksCommand,
|
|
1428
|
-
TagResourceCommand,
|
|
1429
|
-
UntagResourceCommand,
|
|
1430
|
-
paginateSearchDevices,
|
|
1431
|
-
paginateSearchJobs,
|
|
1432
|
-
paginateSearchQuantumTasks,
|
|
1433
|
-
AccessDeniedException,
|
|
1434
|
-
CompressionType,
|
|
1435
|
-
AssociationType,
|
|
1436
|
-
QueueName,
|
|
1437
|
-
QueuePriority,
|
|
1438
|
-
DeviceStatus,
|
|
1439
|
-
DeviceType,
|
|
1440
|
-
InternalServiceException,
|
|
1441
|
-
ResourceNotFoundException,
|
|
1442
|
-
ThrottlingException,
|
|
1443
|
-
ValidationExceptionReason,
|
|
1444
|
-
ValidationException,
|
|
1445
|
-
CancellationStatus,
|
|
1446
|
-
ConflictException,
|
|
1447
|
-
_InstanceType,
|
|
1448
|
-
DeviceOfflineException,
|
|
1449
|
-
DeviceRetiredException,
|
|
1450
|
-
ServiceQuotaExceededException,
|
|
1451
|
-
HybridJobAdditionalAttributeName,
|
|
1452
|
-
JobEventType,
|
|
1453
|
-
JobPrimaryStatus,
|
|
1454
|
-
SearchJobsFilterOperator,
|
|
1455
|
-
QuantumTaskAdditionalAttributeName,
|
|
1456
|
-
QuantumTaskStatus,
|
|
1457
|
-
SearchQuantumTasksFilterOperator
|
|
1236
|
+
Object.defineProperty(exports, "$Command", {
|
|
1237
|
+
enumerable: true,
|
|
1238
|
+
get: function () { return smithyClient.Command; }
|
|
1458
1239
|
});
|
|
1459
|
-
|
|
1240
|
+
Object.defineProperty(exports, "__Client", {
|
|
1241
|
+
enumerable: true,
|
|
1242
|
+
get: function () { return smithyClient.Client; }
|
|
1243
|
+
});
|
|
1244
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1245
|
+
exports.AssociationType = AssociationType;
|
|
1246
|
+
exports.Braket = Braket;
|
|
1247
|
+
exports.BraketClient = BraketClient;
|
|
1248
|
+
exports.BraketServiceException = BraketServiceException;
|
|
1249
|
+
exports.CancelJobCommand = CancelJobCommand;
|
|
1250
|
+
exports.CancelQuantumTaskCommand = CancelQuantumTaskCommand;
|
|
1251
|
+
exports.CancellationStatus = CancellationStatus;
|
|
1252
|
+
exports.CompressionType = CompressionType;
|
|
1253
|
+
exports.ConflictException = ConflictException;
|
|
1254
|
+
exports.CreateJobCommand = CreateJobCommand;
|
|
1255
|
+
exports.CreateQuantumTaskCommand = CreateQuantumTaskCommand;
|
|
1256
|
+
exports.DeviceOfflineException = DeviceOfflineException;
|
|
1257
|
+
exports.DeviceRetiredException = DeviceRetiredException;
|
|
1258
|
+
exports.DeviceStatus = DeviceStatus;
|
|
1259
|
+
exports.DeviceType = DeviceType;
|
|
1260
|
+
exports.GetDeviceCommand = GetDeviceCommand;
|
|
1261
|
+
exports.GetJobCommand = GetJobCommand;
|
|
1262
|
+
exports.GetQuantumTaskCommand = GetQuantumTaskCommand;
|
|
1263
|
+
exports.HybridJobAdditionalAttributeName = HybridJobAdditionalAttributeName;
|
|
1264
|
+
exports.InternalServiceException = InternalServiceException;
|
|
1265
|
+
exports.JobEventType = JobEventType;
|
|
1266
|
+
exports.JobPrimaryStatus = JobPrimaryStatus;
|
|
1267
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1268
|
+
exports.QuantumTaskAdditionalAttributeName = QuantumTaskAdditionalAttributeName;
|
|
1269
|
+
exports.QuantumTaskStatus = QuantumTaskStatus;
|
|
1270
|
+
exports.QueueName = QueueName;
|
|
1271
|
+
exports.QueuePriority = QueuePriority;
|
|
1272
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1273
|
+
exports.SearchDevicesCommand = SearchDevicesCommand;
|
|
1274
|
+
exports.SearchJobsCommand = SearchJobsCommand;
|
|
1275
|
+
exports.SearchJobsFilterOperator = SearchJobsFilterOperator;
|
|
1276
|
+
exports.SearchQuantumTasksCommand = SearchQuantumTasksCommand;
|
|
1277
|
+
exports.SearchQuantumTasksFilterOperator = SearchQuantumTasksFilterOperator;
|
|
1278
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1279
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1280
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1281
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1282
|
+
exports.ValidationException = ValidationException;
|
|
1283
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1284
|
+
exports._InstanceType = _InstanceType;
|
|
1285
|
+
exports.paginateSearchDevices = paginateSearchDevices;
|
|
1286
|
+
exports.paginateSearchJobs = paginateSearchJobs;
|
|
1287
|
+
exports.paginateSearchQuantumTasks = paginateSearchQuantumTasks;
|