@aws-sdk/client-braket 3.1076.0 → 3.1078.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 +28 -175
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CancelJobCommand.js +2 -14
- package/dist-es/commands/CancelQuantumTaskCommand.js +2 -14
- package/dist-es/commands/CreateJobCommand.js +2 -14
- package/dist-es/commands/CreateQuantumTaskCommand.js +2 -14
- package/dist-es/commands/CreateSpendingLimitCommand.js +2 -14
- package/dist-es/commands/DeleteSpendingLimitCommand.js +2 -14
- package/dist-es/commands/GetDeviceCommand.js +2 -14
- package/dist-es/commands/GetJobCommand.js +2 -14
- package/dist-es/commands/GetQuantumTaskCommand.js +2 -14
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
- package/dist-es/commands/SearchDevicesCommand.js +2 -14
- package/dist-es/commands/SearchJobsCommand.js +2 -14
- package/dist-es/commands/SearchQuantumTasksCommand.js +2 -14
- package/dist-es/commands/SearchSpendingLimitsCommand.js +2 -14
- package/dist-es/commands/TagResourceCommand.js +2 -14
- package/dist-es/commands/UntagResourceCommand.js +2 -14
- package/dist-es/commands/UpdateSpendingLimitCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CancelJobCommand.d.ts +3 -8
- package/dist-types/commands/CancelQuantumTaskCommand.d.ts +3 -8
- package/dist-types/commands/CreateJobCommand.d.ts +3 -8
- package/dist-types/commands/CreateQuantumTaskCommand.d.ts +3 -8
- package/dist-types/commands/CreateSpendingLimitCommand.d.ts +3 -8
- package/dist-types/commands/DeleteSpendingLimitCommand.d.ts +3 -8
- package/dist-types/commands/GetDeviceCommand.d.ts +3 -8
- package/dist-types/commands/GetJobCommand.d.ts +3 -8
- package/dist-types/commands/GetQuantumTaskCommand.d.ts +3 -8
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
- package/dist-types/commands/SearchDevicesCommand.d.ts +3 -8
- package/dist-types/commands/SearchJobsCommand.d.ts +3 -8
- package/dist-types/commands/SearchQuantumTasksCommand.d.ts +3 -8
- package/dist-types/commands/SearchSpendingLimitsCommand.d.ts +3 -8
- package/dist-types/commands/TagResourceCommand.d.ts +3 -8
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
- package/dist-types/commands/UpdateSpendingLimitCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/CancelQuantumTaskCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/CreateJobCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/CreateQuantumTaskCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/CreateSpendingLimitCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteSpendingLimitCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetJobCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetQuantumTaskCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/SearchDevicesCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/SearchJobsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/SearchQuantumTasksCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/SearchSpendingLimitsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UpdateSpendingLimitCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
13
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
16
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
18
|
|
|
17
19
|
const defaultBraketHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
20
|
return {
|
|
@@ -67,7 +69,7 @@ const commonParams = {
|
|
|
67
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
68
70
|
};
|
|
69
71
|
|
|
70
|
-
var version = "3.
|
|
72
|
+
var version = "3.1077.0";
|
|
71
73
|
var packageInfo = {
|
|
72
74
|
version: version};
|
|
73
75
|
|
|
@@ -948,6 +950,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
948
950
|
serviceTarget: "Braket",
|
|
949
951
|
},
|
|
950
952
|
serviceId: config?.serviceId ?? "Braket",
|
|
953
|
+
sha256: config?.sha256 ?? Sha256,
|
|
951
954
|
urlParser: config?.urlParser ?? parseUrl,
|
|
952
955
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
953
956
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -981,7 +984,6 @@ const getRuntimeConfig = (config) => {
|
|
|
981
984
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
982
985
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
983
986
|
}, config),
|
|
984
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
985
987
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
986
988
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
987
989
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1069,208 +1071,59 @@ class BraketClient extends Client {
|
|
|
1069
1071
|
}
|
|
1070
1072
|
}
|
|
1071
1073
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
})
|
|
1078
|
-
.s("Braket", "CancelJob", {})
|
|
1079
|
-
.n("BraketClient", "CancelJobCommand")
|
|
1080
|
-
.sc(CancelJob$)
|
|
1081
|
-
.build() {
|
|
1074
|
+
const command = makeBuilder(commonParams, "Braket", "BraketClient", getEndpointPlugin);
|
|
1075
|
+
const _ep0 = {};
|
|
1076
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
1077
|
+
|
|
1078
|
+
class CancelJobCommand extends command(_ep0, _mw0, "CancelJob", CancelJob$) {
|
|
1082
1079
|
}
|
|
1083
1080
|
|
|
1084
|
-
class CancelQuantumTaskCommand extends
|
|
1085
|
-
.classBuilder()
|
|
1086
|
-
.ep(commonParams)
|
|
1087
|
-
.m(function (Command, cs, config, o) {
|
|
1088
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1089
|
-
})
|
|
1090
|
-
.s("Braket", "CancelQuantumTask", {})
|
|
1091
|
-
.n("BraketClient", "CancelQuantumTaskCommand")
|
|
1092
|
-
.sc(CancelQuantumTask$)
|
|
1093
|
-
.build() {
|
|
1081
|
+
class CancelQuantumTaskCommand extends command(_ep0, _mw0, "CancelQuantumTask", CancelQuantumTask$) {
|
|
1094
1082
|
}
|
|
1095
1083
|
|
|
1096
|
-
class CreateJobCommand extends
|
|
1097
|
-
.classBuilder()
|
|
1098
|
-
.ep(commonParams)
|
|
1099
|
-
.m(function (Command, cs, config, o) {
|
|
1100
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1101
|
-
})
|
|
1102
|
-
.s("Braket", "CreateJob", {})
|
|
1103
|
-
.n("BraketClient", "CreateJobCommand")
|
|
1104
|
-
.sc(CreateJob$)
|
|
1105
|
-
.build() {
|
|
1084
|
+
class CreateJobCommand extends command(_ep0, _mw0, "CreateJob", CreateJob$) {
|
|
1106
1085
|
}
|
|
1107
1086
|
|
|
1108
|
-
class CreateQuantumTaskCommand extends
|
|
1109
|
-
.classBuilder()
|
|
1110
|
-
.ep(commonParams)
|
|
1111
|
-
.m(function (Command, cs, config, o) {
|
|
1112
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1113
|
-
})
|
|
1114
|
-
.s("Braket", "CreateQuantumTask", {})
|
|
1115
|
-
.n("BraketClient", "CreateQuantumTaskCommand")
|
|
1116
|
-
.sc(CreateQuantumTask$)
|
|
1117
|
-
.build() {
|
|
1087
|
+
class CreateQuantumTaskCommand extends command(_ep0, _mw0, "CreateQuantumTask", CreateQuantumTask$) {
|
|
1118
1088
|
}
|
|
1119
1089
|
|
|
1120
|
-
class CreateSpendingLimitCommand extends
|
|
1121
|
-
.classBuilder()
|
|
1122
|
-
.ep(commonParams)
|
|
1123
|
-
.m(function (Command, cs, config, o) {
|
|
1124
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1125
|
-
})
|
|
1126
|
-
.s("Braket", "CreateSpendingLimit", {})
|
|
1127
|
-
.n("BraketClient", "CreateSpendingLimitCommand")
|
|
1128
|
-
.sc(CreateSpendingLimit$)
|
|
1129
|
-
.build() {
|
|
1090
|
+
class CreateSpendingLimitCommand extends command(_ep0, _mw0, "CreateSpendingLimit", CreateSpendingLimit$) {
|
|
1130
1091
|
}
|
|
1131
1092
|
|
|
1132
|
-
class DeleteSpendingLimitCommand extends
|
|
1133
|
-
.classBuilder()
|
|
1134
|
-
.ep(commonParams)
|
|
1135
|
-
.m(function (Command, cs, config, o) {
|
|
1136
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1137
|
-
})
|
|
1138
|
-
.s("Braket", "DeleteSpendingLimit", {})
|
|
1139
|
-
.n("BraketClient", "DeleteSpendingLimitCommand")
|
|
1140
|
-
.sc(DeleteSpendingLimit$)
|
|
1141
|
-
.build() {
|
|
1093
|
+
class DeleteSpendingLimitCommand extends command(_ep0, _mw0, "DeleteSpendingLimit", DeleteSpendingLimit$) {
|
|
1142
1094
|
}
|
|
1143
1095
|
|
|
1144
|
-
class GetDeviceCommand extends
|
|
1145
|
-
.classBuilder()
|
|
1146
|
-
.ep(commonParams)
|
|
1147
|
-
.m(function (Command, cs, config, o) {
|
|
1148
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1149
|
-
})
|
|
1150
|
-
.s("Braket", "GetDevice", {})
|
|
1151
|
-
.n("BraketClient", "GetDeviceCommand")
|
|
1152
|
-
.sc(GetDevice$)
|
|
1153
|
-
.build() {
|
|
1096
|
+
class GetDeviceCommand extends command(_ep0, _mw0, "GetDevice", GetDevice$) {
|
|
1154
1097
|
}
|
|
1155
1098
|
|
|
1156
|
-
class GetJobCommand extends
|
|
1157
|
-
.classBuilder()
|
|
1158
|
-
.ep(commonParams)
|
|
1159
|
-
.m(function (Command, cs, config, o) {
|
|
1160
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1161
|
-
})
|
|
1162
|
-
.s("Braket", "GetJob", {})
|
|
1163
|
-
.n("BraketClient", "GetJobCommand")
|
|
1164
|
-
.sc(GetJob$)
|
|
1165
|
-
.build() {
|
|
1099
|
+
class GetJobCommand extends command(_ep0, _mw0, "GetJob", GetJob$) {
|
|
1166
1100
|
}
|
|
1167
1101
|
|
|
1168
|
-
class GetQuantumTaskCommand extends
|
|
1169
|
-
.classBuilder()
|
|
1170
|
-
.ep(commonParams)
|
|
1171
|
-
.m(function (Command, cs, config, o) {
|
|
1172
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1173
|
-
})
|
|
1174
|
-
.s("Braket", "GetQuantumTask", {})
|
|
1175
|
-
.n("BraketClient", "GetQuantumTaskCommand")
|
|
1176
|
-
.sc(GetQuantumTask$)
|
|
1177
|
-
.build() {
|
|
1102
|
+
class GetQuantumTaskCommand extends command(_ep0, _mw0, "GetQuantumTask", GetQuantumTask$) {
|
|
1178
1103
|
}
|
|
1179
1104
|
|
|
1180
|
-
class ListTagsForResourceCommand extends
|
|
1181
|
-
.classBuilder()
|
|
1182
|
-
.ep(commonParams)
|
|
1183
|
-
.m(function (Command, cs, config, o) {
|
|
1184
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1185
|
-
})
|
|
1186
|
-
.s("Braket", "ListTagsForResource", {})
|
|
1187
|
-
.n("BraketClient", "ListTagsForResourceCommand")
|
|
1188
|
-
.sc(ListTagsForResource$)
|
|
1189
|
-
.build() {
|
|
1105
|
+
class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
|
|
1190
1106
|
}
|
|
1191
1107
|
|
|
1192
|
-
class SearchDevicesCommand extends
|
|
1193
|
-
.classBuilder()
|
|
1194
|
-
.ep(commonParams)
|
|
1195
|
-
.m(function (Command, cs, config, o) {
|
|
1196
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1197
|
-
})
|
|
1198
|
-
.s("Braket", "SearchDevices", {})
|
|
1199
|
-
.n("BraketClient", "SearchDevicesCommand")
|
|
1200
|
-
.sc(SearchDevices$)
|
|
1201
|
-
.build() {
|
|
1108
|
+
class SearchDevicesCommand extends command(_ep0, _mw0, "SearchDevices", SearchDevices$) {
|
|
1202
1109
|
}
|
|
1203
1110
|
|
|
1204
|
-
class SearchJobsCommand extends
|
|
1205
|
-
.classBuilder()
|
|
1206
|
-
.ep(commonParams)
|
|
1207
|
-
.m(function (Command, cs, config, o) {
|
|
1208
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1209
|
-
})
|
|
1210
|
-
.s("Braket", "SearchJobs", {})
|
|
1211
|
-
.n("BraketClient", "SearchJobsCommand")
|
|
1212
|
-
.sc(SearchJobs$)
|
|
1213
|
-
.build() {
|
|
1111
|
+
class SearchJobsCommand extends command(_ep0, _mw0, "SearchJobs", SearchJobs$) {
|
|
1214
1112
|
}
|
|
1215
1113
|
|
|
1216
|
-
class SearchQuantumTasksCommand extends
|
|
1217
|
-
.classBuilder()
|
|
1218
|
-
.ep(commonParams)
|
|
1219
|
-
.m(function (Command, cs, config, o) {
|
|
1220
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1221
|
-
})
|
|
1222
|
-
.s("Braket", "SearchQuantumTasks", {})
|
|
1223
|
-
.n("BraketClient", "SearchQuantumTasksCommand")
|
|
1224
|
-
.sc(SearchQuantumTasks$)
|
|
1225
|
-
.build() {
|
|
1114
|
+
class SearchQuantumTasksCommand extends command(_ep0, _mw0, "SearchQuantumTasks", SearchQuantumTasks$) {
|
|
1226
1115
|
}
|
|
1227
1116
|
|
|
1228
|
-
class SearchSpendingLimitsCommand extends
|
|
1229
|
-
.classBuilder()
|
|
1230
|
-
.ep(commonParams)
|
|
1231
|
-
.m(function (Command, cs, config, o) {
|
|
1232
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1233
|
-
})
|
|
1234
|
-
.s("Braket", "SearchSpendingLimits", {})
|
|
1235
|
-
.n("BraketClient", "SearchSpendingLimitsCommand")
|
|
1236
|
-
.sc(SearchSpendingLimits$)
|
|
1237
|
-
.build() {
|
|
1117
|
+
class SearchSpendingLimitsCommand extends command(_ep0, _mw0, "SearchSpendingLimits", SearchSpendingLimits$) {
|
|
1238
1118
|
}
|
|
1239
1119
|
|
|
1240
|
-
class TagResourceCommand extends
|
|
1241
|
-
.classBuilder()
|
|
1242
|
-
.ep(commonParams)
|
|
1243
|
-
.m(function (Command, cs, config, o) {
|
|
1244
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1245
|
-
})
|
|
1246
|
-
.s("Braket", "TagResource", {})
|
|
1247
|
-
.n("BraketClient", "TagResourceCommand")
|
|
1248
|
-
.sc(TagResource$)
|
|
1249
|
-
.build() {
|
|
1120
|
+
class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
1250
1121
|
}
|
|
1251
1122
|
|
|
1252
|
-
class UntagResourceCommand extends
|
|
1253
|
-
.classBuilder()
|
|
1254
|
-
.ep(commonParams)
|
|
1255
|
-
.m(function (Command, cs, config, o) {
|
|
1256
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1257
|
-
})
|
|
1258
|
-
.s("Braket", "UntagResource", {})
|
|
1259
|
-
.n("BraketClient", "UntagResourceCommand")
|
|
1260
|
-
.sc(UntagResource$)
|
|
1261
|
-
.build() {
|
|
1123
|
+
class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
1262
1124
|
}
|
|
1263
1125
|
|
|
1264
|
-
class UpdateSpendingLimitCommand extends
|
|
1265
|
-
.classBuilder()
|
|
1266
|
-
.ep(commonParams)
|
|
1267
|
-
.m(function (Command, cs, config, o) {
|
|
1268
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1269
|
-
})
|
|
1270
|
-
.s("Braket", "UpdateSpendingLimit", {})
|
|
1271
|
-
.n("BraketClient", "UpdateSpendingLimitCommand")
|
|
1272
|
-
.sc(UpdateSpendingLimit$)
|
|
1273
|
-
.build() {
|
|
1126
|
+
class UpdateSpendingLimitCommand extends command(_ep0, _mw0, "UpdateSpendingLimit", UpdateSpendingLimit$) {
|
|
1274
1127
|
}
|
|
1275
1128
|
|
|
1276
1129
|
const paginateSearchDevices = createPaginator(BraketClient, SearchDevicesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "Braket", "BraketClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CancelJob$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CancelJobCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "CancelJob", {})
|
|
13
|
-
.n("BraketClient", "CancelJobCommand")
|
|
14
|
-
.sc(CancelJob$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CancelJobCommand extends command(_ep0, _mw0, "CancelJob", CancelJob$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CancelQuantumTask$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CancelQuantumTaskCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "CancelQuantumTask", {})
|
|
13
|
-
.n("BraketClient", "CancelQuantumTaskCommand")
|
|
14
|
-
.sc(CancelQuantumTask$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CancelQuantumTaskCommand extends command(_ep0, _mw0, "CancelQuantumTask", CancelQuantumTask$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CreateJob$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateJobCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "CreateJob", {})
|
|
13
|
-
.n("BraketClient", "CreateJobCommand")
|
|
14
|
-
.sc(CreateJob$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CreateJobCommand extends command(_ep0, _mw0, "CreateJob", CreateJob$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CreateQuantumTask$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateQuantumTaskCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "CreateQuantumTask", {})
|
|
13
|
-
.n("BraketClient", "CreateQuantumTaskCommand")
|
|
14
|
-
.sc(CreateQuantumTask$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CreateQuantumTaskCommand extends command(_ep0, _mw0, "CreateQuantumTask", CreateQuantumTask$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CreateSpendingLimit$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateSpendingLimitCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "CreateSpendingLimit", {})
|
|
13
|
-
.n("BraketClient", "CreateSpendingLimitCommand")
|
|
14
|
-
.sc(CreateSpendingLimit$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CreateSpendingLimitCommand extends command(_ep0, _mw0, "CreateSpendingLimit", CreateSpendingLimit$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DeleteSpendingLimit$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteSpendingLimitCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "DeleteSpendingLimit", {})
|
|
13
|
-
.n("BraketClient", "DeleteSpendingLimitCommand")
|
|
14
|
-
.sc(DeleteSpendingLimit$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteSpendingLimitCommand extends command(_ep0, _mw0, "DeleteSpendingLimit", DeleteSpendingLimit$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetDevice$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetDeviceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "GetDevice", {})
|
|
13
|
-
.n("BraketClient", "GetDeviceCommand")
|
|
14
|
-
.sc(GetDevice$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetDeviceCommand extends command(_ep0, _mw0, "GetDevice", GetDevice$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetJob$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetJobCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "GetJob", {})
|
|
13
|
-
.n("BraketClient", "GetJobCommand")
|
|
14
|
-
.sc(GetJob$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetJobCommand extends command(_ep0, _mw0, "GetJob", GetJob$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetQuantumTask$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetQuantumTaskCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "GetQuantumTask", {})
|
|
13
|
-
.n("BraketClient", "GetQuantumTaskCommand")
|
|
14
|
-
.sc(GetQuantumTask$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetQuantumTaskCommand extends command(_ep0, _mw0, "GetQuantumTask", GetQuantumTask$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListTagsForResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListTagsForResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "ListTagsForResource", {})
|
|
13
|
-
.n("BraketClient", "ListTagsForResourceCommand")
|
|
14
|
-
.sc(ListTagsForResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { SearchDevices$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class SearchDevicesCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "SearchDevices", {})
|
|
13
|
-
.n("BraketClient", "SearchDevicesCommand")
|
|
14
|
-
.sc(SearchDevices$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class SearchDevicesCommand extends command(_ep0, _mw0, "SearchDevices", SearchDevices$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { SearchJobs$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class SearchJobsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "SearchJobs", {})
|
|
13
|
-
.n("BraketClient", "SearchJobsCommand")
|
|
14
|
-
.sc(SearchJobs$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class SearchJobsCommand extends command(_ep0, _mw0, "SearchJobs", SearchJobs$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { SearchQuantumTasks$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class SearchQuantumTasksCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "SearchQuantumTasks", {})
|
|
13
|
-
.n("BraketClient", "SearchQuantumTasksCommand")
|
|
14
|
-
.sc(SearchQuantumTasks$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class SearchQuantumTasksCommand extends command(_ep0, _mw0, "SearchQuantumTasks", SearchQuantumTasks$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { SearchSpendingLimits$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class SearchSpendingLimitsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "SearchSpendingLimits", {})
|
|
13
|
-
.n("BraketClient", "SearchSpendingLimitsCommand")
|
|
14
|
-
.sc(SearchSpendingLimits$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class SearchSpendingLimitsCommand extends command(_ep0, _mw0, "SearchSpendingLimits", SearchSpendingLimits$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { TagResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class TagResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "TagResource", {})
|
|
13
|
-
.n("BraketClient", "TagResourceCommand")
|
|
14
|
-
.sc(TagResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { UntagResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UntagResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "UntagResource", {})
|
|
13
|
-
.n("BraketClient", "UntagResourceCommand")
|
|
14
|
-
.sc(UntagResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { UpdateSpendingLimit$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UpdateSpendingLimitCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("Braket", "UpdateSpendingLimit", {})
|
|
13
|
-
.n("BraketClient", "UpdateSpendingLimitCommand")
|
|
14
|
-
.sc(UpdateSpendingLimit$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UpdateSpendingLimitCommand extends command(_ep0, _mw0, "UpdateSpendingLimit", UpdateSpendingLimit$) {
|
|
16
4
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|