aws-sdk-braket 1.62.0 → 1.63.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-braket/client.rb +196 -1
- data/lib/aws-sdk-braket/client_api.rb +135 -0
- data/lib/aws-sdk-braket/types.rb +264 -0
- data/lib/aws-sdk-braket.rb +1 -1
- data/sig/client.rbs +60 -0
- data/sig/types.rbs +72 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f47d415f1d6b5e539af2ff1c4f5762a72e4336fd3bff556ec2354713ec2003a4
|
|
4
|
+
data.tar.gz: b54f415d71d8dac13cb54cb5618cb5d8a3afdd1b0596e0f307792bf547c3d18a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9de17dd4b0b4d99d3996c7d98c0cd77ae0df7b57dbf012e1ef01cf0beb436e489f36ce0e6773da6b9eef90fab1523d9c6b1774de8c9046b7d863a2e7abde7eb
|
|
7
|
+
data.tar.gz: b543cd73f0bac78dc4c0832bbebf9f737836e31f1c0e567fc332e6e205189eda595b0a64f080531ea6bd6a84a36b7623a070de6dc6ad0a57644c036c5f5ad9a0
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.63.0
|
|
@@ -775,6 +775,91 @@ module Aws::Braket
|
|
|
775
775
|
req.send_request(options)
|
|
776
776
|
end
|
|
777
777
|
|
|
778
|
+
# Creates a spending limit for a specified quantum device. Spending
|
|
779
|
+
# limits help you control costs by setting maximum amounts that can be
|
|
780
|
+
# spent on quantum computing tasks within a specified time period.
|
|
781
|
+
# Simulators do not support spending limits.
|
|
782
|
+
#
|
|
783
|
+
# @option params [required, String] :client_token
|
|
784
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
785
|
+
# completes no more than one time. If this token matches a previous
|
|
786
|
+
# request, Amazon Braket ignores the request, but does not return an
|
|
787
|
+
# error.
|
|
788
|
+
#
|
|
789
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
790
|
+
# not need to pass this option.**
|
|
791
|
+
#
|
|
792
|
+
# @option params [required, String] :device_arn
|
|
793
|
+
# The Amazon Resource Name (ARN) of the quantum device to apply the
|
|
794
|
+
# spending limit to.
|
|
795
|
+
#
|
|
796
|
+
# @option params [required, String] :spending_limit
|
|
797
|
+
# The maximum amount that can be spent on the specified device, in USD.
|
|
798
|
+
#
|
|
799
|
+
# @option params [Types::TimePeriod] :time_period
|
|
800
|
+
# The time period during which the spending limit is active, including
|
|
801
|
+
# start and end dates.
|
|
802
|
+
#
|
|
803
|
+
# @option params [Hash<String,String>] :tags
|
|
804
|
+
# The tags to apply to the spending limit. Each tag consists of a key
|
|
805
|
+
# and an optional value.
|
|
806
|
+
#
|
|
807
|
+
# @return [Types::CreateSpendingLimitResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
808
|
+
#
|
|
809
|
+
# * {Types::CreateSpendingLimitResponse#spending_limit_arn #spending_limit_arn} => String
|
|
810
|
+
#
|
|
811
|
+
# @example Request syntax with placeholder values
|
|
812
|
+
#
|
|
813
|
+
# resp = client.create_spending_limit({
|
|
814
|
+
# client_token: "String64", # required
|
|
815
|
+
# device_arn: "DeviceArn", # required
|
|
816
|
+
# spending_limit: "CreateSpendingLimitRequestSpendingLimitString", # required
|
|
817
|
+
# time_period: {
|
|
818
|
+
# start_at: Time.now, # required
|
|
819
|
+
# end_at: Time.now, # required
|
|
820
|
+
# },
|
|
821
|
+
# tags: {
|
|
822
|
+
# "String" => "String",
|
|
823
|
+
# },
|
|
824
|
+
# })
|
|
825
|
+
#
|
|
826
|
+
# @example Response structure
|
|
827
|
+
#
|
|
828
|
+
# resp.spending_limit_arn #=> String
|
|
829
|
+
#
|
|
830
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateSpendingLimit AWS API Documentation
|
|
831
|
+
#
|
|
832
|
+
# @overload create_spending_limit(params = {})
|
|
833
|
+
# @param [Hash] params ({})
|
|
834
|
+
def create_spending_limit(params = {}, options = {})
|
|
835
|
+
req = build_request(:create_spending_limit, params)
|
|
836
|
+
req.send_request(options)
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
# Deletes an existing spending limit. This operation permanently removes
|
|
840
|
+
# the spending limit and cannot be undone. After deletion, the
|
|
841
|
+
# associated device becomes unrestricted for spending.
|
|
842
|
+
#
|
|
843
|
+
# @option params [required, String] :spending_limit_arn
|
|
844
|
+
# The Amazon Resource Name (ARN) of the spending limit to delete.
|
|
845
|
+
#
|
|
846
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
847
|
+
#
|
|
848
|
+
# @example Request syntax with placeholder values
|
|
849
|
+
#
|
|
850
|
+
# resp = client.delete_spending_limit({
|
|
851
|
+
# spending_limit_arn: "SpendingLimitArn", # required
|
|
852
|
+
# })
|
|
853
|
+
#
|
|
854
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/DeleteSpendingLimit AWS API Documentation
|
|
855
|
+
#
|
|
856
|
+
# @overload delete_spending_limit(params = {})
|
|
857
|
+
# @param [Hash] params ({})
|
|
858
|
+
def delete_spending_limit(params = {}, options = {})
|
|
859
|
+
req = build_request(:delete_spending_limit, params)
|
|
860
|
+
req.send_request(options)
|
|
861
|
+
end
|
|
862
|
+
|
|
778
863
|
# Retrieves the devices available in Amazon Braket.
|
|
779
864
|
#
|
|
780
865
|
# <note markdown="1"> For backwards compatibility with older versions of BraketSchemas,
|
|
@@ -1195,6 +1280,70 @@ module Aws::Braket
|
|
|
1195
1280
|
req.send_request(options)
|
|
1196
1281
|
end
|
|
1197
1282
|
|
|
1283
|
+
# Searches and lists spending limits based on specified filters. This
|
|
1284
|
+
# operation supports pagination and allows filtering by various criteria
|
|
1285
|
+
# to find specific spending limits. We recommend using pagination to
|
|
1286
|
+
# ensure that the operation returns quickly and successfully.
|
|
1287
|
+
#
|
|
1288
|
+
# @option params [String] :next_token
|
|
1289
|
+
# The token to retrieve the next page of results. This value is returned
|
|
1290
|
+
# from a previous call to SearchSpendingLimits when there are more
|
|
1291
|
+
# results available.
|
|
1292
|
+
#
|
|
1293
|
+
# @option params [Integer] :max_results
|
|
1294
|
+
# The maximum number of results to return in a single call. Minimum
|
|
1295
|
+
# value of 1, maximum value of 100. Default is 20.
|
|
1296
|
+
#
|
|
1297
|
+
# @option params [Array<Types::SearchSpendingLimitsFilter>] :filters
|
|
1298
|
+
# The filters to apply when searching for spending limits. Use filters
|
|
1299
|
+
# to narrow down the results based on specific criteria.
|
|
1300
|
+
#
|
|
1301
|
+
# @return [Types::SearchSpendingLimitsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1302
|
+
#
|
|
1303
|
+
# * {Types::SearchSpendingLimitsResponse#spending_limits #spending_limits} => Array<Types::SpendingLimitSummary>
|
|
1304
|
+
# * {Types::SearchSpendingLimitsResponse#next_token #next_token} => String
|
|
1305
|
+
#
|
|
1306
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1307
|
+
#
|
|
1308
|
+
# @example Request syntax with placeholder values
|
|
1309
|
+
#
|
|
1310
|
+
# resp = client.search_spending_limits({
|
|
1311
|
+
# next_token: "String",
|
|
1312
|
+
# max_results: 1,
|
|
1313
|
+
# filters: [
|
|
1314
|
+
# {
|
|
1315
|
+
# name: "String64", # required
|
|
1316
|
+
# values: ["String256"], # required
|
|
1317
|
+
# operator: "EQUAL", # required, accepts EQUAL
|
|
1318
|
+
# },
|
|
1319
|
+
# ],
|
|
1320
|
+
# })
|
|
1321
|
+
#
|
|
1322
|
+
# @example Response structure
|
|
1323
|
+
#
|
|
1324
|
+
# resp.spending_limits #=> Array
|
|
1325
|
+
# resp.spending_limits[0].spending_limit_arn #=> String
|
|
1326
|
+
# resp.spending_limits[0].device_arn #=> String
|
|
1327
|
+
# resp.spending_limits[0].time_period.start_at #=> Time
|
|
1328
|
+
# resp.spending_limits[0].time_period.end_at #=> Time
|
|
1329
|
+
# resp.spending_limits[0].spending_limit #=> String
|
|
1330
|
+
# resp.spending_limits[0].queued_spend #=> String
|
|
1331
|
+
# resp.spending_limits[0].total_spend #=> String
|
|
1332
|
+
# resp.spending_limits[0].created_at #=> Time
|
|
1333
|
+
# resp.spending_limits[0].updated_at #=> Time
|
|
1334
|
+
# resp.spending_limits[0].tags #=> Hash
|
|
1335
|
+
# resp.spending_limits[0].tags["String"] #=> String
|
|
1336
|
+
# resp.next_token #=> String
|
|
1337
|
+
#
|
|
1338
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchSpendingLimits AWS API Documentation
|
|
1339
|
+
#
|
|
1340
|
+
# @overload search_spending_limits(params = {})
|
|
1341
|
+
# @param [Hash] params ({})
|
|
1342
|
+
def search_spending_limits(params = {}, options = {})
|
|
1343
|
+
req = build_request(:search_spending_limits, params)
|
|
1344
|
+
req.send_request(options)
|
|
1345
|
+
end
|
|
1346
|
+
|
|
1198
1347
|
# Add a tag to the specified resource.
|
|
1199
1348
|
#
|
|
1200
1349
|
# @option params [required, String] :resource_arn
|
|
@@ -1252,6 +1401,52 @@ module Aws::Braket
|
|
|
1252
1401
|
req.send_request(options)
|
|
1253
1402
|
end
|
|
1254
1403
|
|
|
1404
|
+
# Updates an existing spending limit. You can modify the spending amount
|
|
1405
|
+
# or time period. Changes take effect immediately.
|
|
1406
|
+
#
|
|
1407
|
+
# @option params [required, String] :spending_limit_arn
|
|
1408
|
+
# The Amazon Resource Name (ARN) of the spending limit to update.
|
|
1409
|
+
#
|
|
1410
|
+
# @option params [required, String] :client_token
|
|
1411
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
1412
|
+
# completes no more than one time. If this token matches a previous
|
|
1413
|
+
# request, Amazon Braket ignores the request, but does not return an
|
|
1414
|
+
# error.
|
|
1415
|
+
#
|
|
1416
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
1417
|
+
# not need to pass this option.**
|
|
1418
|
+
#
|
|
1419
|
+
# @option params [String] :spending_limit
|
|
1420
|
+
# The new maximum amount that can be spent on the specified device, in
|
|
1421
|
+
# USD.
|
|
1422
|
+
#
|
|
1423
|
+
# @option params [Types::TimePeriod] :time_period
|
|
1424
|
+
# The new time period during which the spending limit is active,
|
|
1425
|
+
# including start and end dates.
|
|
1426
|
+
#
|
|
1427
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1428
|
+
#
|
|
1429
|
+
# @example Request syntax with placeholder values
|
|
1430
|
+
#
|
|
1431
|
+
# resp = client.update_spending_limit({
|
|
1432
|
+
# spending_limit_arn: "SpendingLimitArn", # required
|
|
1433
|
+
# client_token: "String64", # required
|
|
1434
|
+
# spending_limit: "UpdateSpendingLimitRequestSpendingLimitString",
|
|
1435
|
+
# time_period: {
|
|
1436
|
+
# start_at: Time.now, # required
|
|
1437
|
+
# end_at: Time.now, # required
|
|
1438
|
+
# },
|
|
1439
|
+
# })
|
|
1440
|
+
#
|
|
1441
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UpdateSpendingLimit AWS API Documentation
|
|
1442
|
+
#
|
|
1443
|
+
# @overload update_spending_limit(params = {})
|
|
1444
|
+
# @param [Hash] params ({})
|
|
1445
|
+
def update_spending_limit(params = {}, options = {})
|
|
1446
|
+
req = build_request(:update_spending_limit, params)
|
|
1447
|
+
req.send_request(options)
|
|
1448
|
+
end
|
|
1449
|
+
|
|
1255
1450
|
# @!endgroup
|
|
1256
1451
|
|
|
1257
1452
|
# @param params ({})
|
|
@@ -1270,7 +1465,7 @@ module Aws::Braket
|
|
|
1270
1465
|
tracer: tracer
|
|
1271
1466
|
)
|
|
1272
1467
|
context[:gem_name] = 'aws-sdk-braket'
|
|
1273
|
-
context[:gem_version] = '1.
|
|
1468
|
+
context[:gem_version] = '1.63.0'
|
|
1274
1469
|
Seahorse::Client::Request.new(handlers, context)
|
|
1275
1470
|
end
|
|
1276
1471
|
|
|
@@ -41,7 +41,12 @@ module Aws::Braket
|
|
|
41
41
|
CreateQuantumTaskRequestOutputS3KeyPrefixString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestOutputS3KeyPrefixString')
|
|
42
42
|
CreateQuantumTaskRequestShotsLong = Shapes::IntegerShape.new(name: 'CreateQuantumTaskRequestShotsLong')
|
|
43
43
|
CreateQuantumTaskResponse = Shapes::StructureShape.new(name: 'CreateQuantumTaskResponse')
|
|
44
|
+
CreateSpendingLimitRequest = Shapes::StructureShape.new(name: 'CreateSpendingLimitRequest')
|
|
45
|
+
CreateSpendingLimitRequestSpendingLimitString = Shapes::StringShape.new(name: 'CreateSpendingLimitRequestSpendingLimitString')
|
|
46
|
+
CreateSpendingLimitResponse = Shapes::StructureShape.new(name: 'CreateSpendingLimitResponse')
|
|
44
47
|
DataSource = Shapes::StructureShape.new(name: 'DataSource')
|
|
48
|
+
DeleteSpendingLimitRequest = Shapes::StructureShape.new(name: 'DeleteSpendingLimitRequest')
|
|
49
|
+
DeleteSpendingLimitResponse = Shapes::StructureShape.new(name: 'DeleteSpendingLimitResponse')
|
|
45
50
|
DeviceArn = Shapes::StringShape.new(name: 'DeviceArn')
|
|
46
51
|
DeviceConfig = Shapes::StructureShape.new(name: 'DeviceConfig')
|
|
47
52
|
DeviceOfflineException = Shapes::StructureShape.new(name: 'DeviceOfflineException')
|
|
@@ -130,7 +135,17 @@ module Aws::Braket
|
|
|
130
135
|
SearchQuantumTasksRequestFiltersList = Shapes::ListShape.new(name: 'SearchQuantumTasksRequestFiltersList')
|
|
131
136
|
SearchQuantumTasksRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchQuantumTasksRequestMaxResultsInteger')
|
|
132
137
|
SearchQuantumTasksResponse = Shapes::StructureShape.new(name: 'SearchQuantumTasksResponse')
|
|
138
|
+
SearchSpendingLimitsFilter = Shapes::StructureShape.new(name: 'SearchSpendingLimitsFilter')
|
|
139
|
+
SearchSpendingLimitsFilterOperator = Shapes::StringShape.new(name: 'SearchSpendingLimitsFilterOperator')
|
|
140
|
+
SearchSpendingLimitsFilterValuesList = Shapes::ListShape.new(name: 'SearchSpendingLimitsFilterValuesList')
|
|
141
|
+
SearchSpendingLimitsRequest = Shapes::StructureShape.new(name: 'SearchSpendingLimitsRequest')
|
|
142
|
+
SearchSpendingLimitsRequestFiltersList = Shapes::ListShape.new(name: 'SearchSpendingLimitsRequestFiltersList')
|
|
143
|
+
SearchSpendingLimitsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchSpendingLimitsRequestMaxResultsInteger')
|
|
144
|
+
SearchSpendingLimitsResponse = Shapes::StructureShape.new(name: 'SearchSpendingLimitsResponse')
|
|
133
145
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
146
|
+
SpendingLimitArn = Shapes::StringShape.new(name: 'SpendingLimitArn')
|
|
147
|
+
SpendingLimitSummary = Shapes::StructureShape.new(name: 'SpendingLimitSummary')
|
|
148
|
+
SpendingLimitSummaryList = Shapes::ListShape.new(name: 'SpendingLimitSummaryList')
|
|
134
149
|
String = Shapes::StringShape.new(name: 'String')
|
|
135
150
|
String1024 = Shapes::StringShape.new(name: 'String1024')
|
|
136
151
|
String2048 = Shapes::StringShape.new(name: 'String2048')
|
|
@@ -138,13 +153,18 @@ module Aws::Braket
|
|
|
138
153
|
String4096 = Shapes::StringShape.new(name: 'String4096')
|
|
139
154
|
String64 = Shapes::StringShape.new(name: 'String64')
|
|
140
155
|
SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
|
|
156
|
+
SyntheticTimestamp_epoch_seconds = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_epoch_seconds', timestampFormat: "unixTimestamp")
|
|
141
157
|
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
|
142
158
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
|
143
159
|
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
|
144
160
|
TagsMap = Shapes::MapShape.new(name: 'TagsMap')
|
|
145
161
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
162
|
+
TimePeriod = Shapes::StructureShape.new(name: 'TimePeriod')
|
|
146
163
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
|
147
164
|
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
|
165
|
+
UpdateSpendingLimitRequest = Shapes::StructureShape.new(name: 'UpdateSpendingLimitRequest')
|
|
166
|
+
UpdateSpendingLimitRequestSpendingLimitString = Shapes::StringShape.new(name: 'UpdateSpendingLimitRequestSpendingLimitString')
|
|
167
|
+
UpdateSpendingLimitResponse = Shapes::StructureShape.new(name: 'UpdateSpendingLimitResponse')
|
|
148
168
|
Uri = Shapes::StringShape.new(name: 'Uri')
|
|
149
169
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
150
170
|
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
|
@@ -228,9 +248,24 @@ module Aws::Braket
|
|
|
228
248
|
CreateQuantumTaskResponse.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
|
|
229
249
|
CreateQuantumTaskResponse.struct_class = Types::CreateQuantumTaskResponse
|
|
230
250
|
|
|
251
|
+
CreateSpendingLimitRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
252
|
+
CreateSpendingLimitRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
|
|
253
|
+
CreateSpendingLimitRequest.add_member(:spending_limit, Shapes::ShapeRef.new(shape: CreateSpendingLimitRequestSpendingLimitString, required: true, location_name: "spendingLimit"))
|
|
254
|
+
CreateSpendingLimitRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod, location_name: "timePeriod"))
|
|
255
|
+
CreateSpendingLimitRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
|
256
|
+
CreateSpendingLimitRequest.struct_class = Types::CreateSpendingLimitRequest
|
|
257
|
+
|
|
258
|
+
CreateSpendingLimitResponse.add_member(:spending_limit_arn, Shapes::ShapeRef.new(shape: SpendingLimitArn, required: true, location_name: "spendingLimitArn"))
|
|
259
|
+
CreateSpendingLimitResponse.struct_class = Types::CreateSpendingLimitResponse
|
|
260
|
+
|
|
231
261
|
DataSource.add_member(:s3_data_source, Shapes::ShapeRef.new(shape: S3DataSource, required: true, location_name: "s3DataSource"))
|
|
232
262
|
DataSource.struct_class = Types::DataSource
|
|
233
263
|
|
|
264
|
+
DeleteSpendingLimitRequest.add_member(:spending_limit_arn, Shapes::ShapeRef.new(shape: SpendingLimitArn, required: true, location: "uri", location_name: "spendingLimitArn"))
|
|
265
|
+
DeleteSpendingLimitRequest.struct_class = Types::DeleteSpendingLimitRequest
|
|
266
|
+
|
|
267
|
+
DeleteSpendingLimitResponse.struct_class = Types::DeleteSpendingLimitResponse
|
|
268
|
+
|
|
234
269
|
DeviceConfig.add_member(:device, Shapes::ShapeRef.new(shape: String256, required: true, location_name: "device"))
|
|
235
270
|
DeviceConfig.struct_class = Types::DeviceConfig
|
|
236
271
|
|
|
@@ -479,9 +514,40 @@ module Aws::Braket
|
|
|
479
514
|
SearchQuantumTasksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
480
515
|
SearchQuantumTasksResponse.struct_class = Types::SearchQuantumTasksResponse
|
|
481
516
|
|
|
517
|
+
SearchSpendingLimitsFilter.add_member(:name, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "name"))
|
|
518
|
+
SearchSpendingLimitsFilter.add_member(:values, Shapes::ShapeRef.new(shape: SearchSpendingLimitsFilterValuesList, required: true, location_name: "values"))
|
|
519
|
+
SearchSpendingLimitsFilter.add_member(:operator, Shapes::ShapeRef.new(shape: SearchSpendingLimitsFilterOperator, required: true, location_name: "operator"))
|
|
520
|
+
SearchSpendingLimitsFilter.struct_class = Types::SearchSpendingLimitsFilter
|
|
521
|
+
|
|
522
|
+
SearchSpendingLimitsFilterValuesList.member = Shapes::ShapeRef.new(shape: String256)
|
|
523
|
+
|
|
524
|
+
SearchSpendingLimitsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
525
|
+
SearchSpendingLimitsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchSpendingLimitsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
526
|
+
SearchSpendingLimitsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SearchSpendingLimitsRequestFiltersList, location_name: "filters"))
|
|
527
|
+
SearchSpendingLimitsRequest.struct_class = Types::SearchSpendingLimitsRequest
|
|
528
|
+
|
|
529
|
+
SearchSpendingLimitsRequestFiltersList.member = Shapes::ShapeRef.new(shape: SearchSpendingLimitsFilter)
|
|
530
|
+
|
|
531
|
+
SearchSpendingLimitsResponse.add_member(:spending_limits, Shapes::ShapeRef.new(shape: SpendingLimitSummaryList, required: true, location_name: "spendingLimits"))
|
|
532
|
+
SearchSpendingLimitsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
533
|
+
SearchSpendingLimitsResponse.struct_class = Types::SearchSpendingLimitsResponse
|
|
534
|
+
|
|
482
535
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
483
536
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
484
537
|
|
|
538
|
+
SpendingLimitSummary.add_member(:spending_limit_arn, Shapes::ShapeRef.new(shape: SpendingLimitArn, required: true, location_name: "spendingLimitArn"))
|
|
539
|
+
SpendingLimitSummary.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
|
|
540
|
+
SpendingLimitSummary.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod, required: true, location_name: "timePeriod"))
|
|
541
|
+
SpendingLimitSummary.add_member(:spending_limit, Shapes::ShapeRef.new(shape: String, required: true, location_name: "spendingLimit"))
|
|
542
|
+
SpendingLimitSummary.add_member(:queued_spend, Shapes::ShapeRef.new(shape: String, required: true, location_name: "queuedSpend"))
|
|
543
|
+
SpendingLimitSummary.add_member(:total_spend, Shapes::ShapeRef.new(shape: String, required: true, location_name: "totalSpend"))
|
|
544
|
+
SpendingLimitSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createdAt"))
|
|
545
|
+
SpendingLimitSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "updatedAt"))
|
|
546
|
+
SpendingLimitSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
|
547
|
+
SpendingLimitSummary.struct_class = Types::SpendingLimitSummary
|
|
548
|
+
|
|
549
|
+
SpendingLimitSummaryList.member = Shapes::ShapeRef.new(shape: SpendingLimitSummary)
|
|
550
|
+
|
|
485
551
|
TagKeys.member = Shapes::ShapeRef.new(shape: String)
|
|
486
552
|
|
|
487
553
|
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
|
@@ -496,12 +562,24 @@ module Aws::Braket
|
|
|
496
562
|
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
497
563
|
ThrottlingException.struct_class = Types::ThrottlingException
|
|
498
564
|
|
|
565
|
+
TimePeriod.add_member(:start_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_epoch_seconds, required: true, location_name: "startAt"))
|
|
566
|
+
TimePeriod.add_member(:end_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_epoch_seconds, required: true, location_name: "endAt"))
|
|
567
|
+
TimePeriod.struct_class = Types::TimePeriod
|
|
568
|
+
|
|
499
569
|
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
|
500
570
|
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
|
|
501
571
|
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
|
502
572
|
|
|
503
573
|
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
|
504
574
|
|
|
575
|
+
UpdateSpendingLimitRequest.add_member(:spending_limit_arn, Shapes::ShapeRef.new(shape: SpendingLimitArn, required: true, location: "uri", location_name: "spendingLimitArn"))
|
|
576
|
+
UpdateSpendingLimitRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
577
|
+
UpdateSpendingLimitRequest.add_member(:spending_limit, Shapes::ShapeRef.new(shape: UpdateSpendingLimitRequestSpendingLimitString, location_name: "spendingLimit"))
|
|
578
|
+
UpdateSpendingLimitRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod, location_name: "timePeriod"))
|
|
579
|
+
UpdateSpendingLimitRequest.struct_class = Types::UpdateSpendingLimitRequest
|
|
580
|
+
|
|
581
|
+
UpdateSpendingLimitResponse.struct_class = Types::UpdateSpendingLimitResponse
|
|
582
|
+
|
|
505
583
|
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
506
584
|
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "reason"))
|
|
507
585
|
ValidationException.add_member(:program_set_validation_failures, Shapes::ShapeRef.new(shape: ProgramSetValidationFailuresList, location_name: "programSetValidationFailures"))
|
|
@@ -585,6 +663,32 @@ module Aws::Braket
|
|
|
585
663
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
586
664
|
end)
|
|
587
665
|
|
|
666
|
+
api.add_operation(:create_spending_limit, Seahorse::Model::Operation.new.tap do |o|
|
|
667
|
+
o.name = "CreateSpendingLimit"
|
|
668
|
+
o.http_method = "POST"
|
|
669
|
+
o.http_request_uri = "/spending-limit"
|
|
670
|
+
o.input = Shapes::ShapeRef.new(shape: CreateSpendingLimitRequest)
|
|
671
|
+
o.output = Shapes::ShapeRef.new(shape: CreateSpendingLimitResponse)
|
|
672
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
673
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
674
|
+
o.errors << Shapes::ShapeRef.new(shape: DeviceRetiredException)
|
|
675
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
|
676
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
677
|
+
end)
|
|
678
|
+
|
|
679
|
+
api.add_operation(:delete_spending_limit, Seahorse::Model::Operation.new.tap do |o|
|
|
680
|
+
o.name = "DeleteSpendingLimit"
|
|
681
|
+
o.http_method = "DELETE"
|
|
682
|
+
o.http_request_uri = "/spending-limit/{spendingLimitArn}/delete"
|
|
683
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteSpendingLimitRequest)
|
|
684
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteSpendingLimitResponse)
|
|
685
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
686
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
687
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
688
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
|
689
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
690
|
+
end)
|
|
691
|
+
|
|
588
692
|
api.add_operation(:get_device, Seahorse::Model::Operation.new.tap do |o|
|
|
589
693
|
o.name = "GetDevice"
|
|
590
694
|
o.http_method = "GET"
|
|
@@ -689,6 +793,24 @@ module Aws::Braket
|
|
|
689
793
|
)
|
|
690
794
|
end)
|
|
691
795
|
|
|
796
|
+
api.add_operation(:search_spending_limits, Seahorse::Model::Operation.new.tap do |o|
|
|
797
|
+
o.name = "SearchSpendingLimits"
|
|
798
|
+
o.http_method = "POST"
|
|
799
|
+
o.http_request_uri = "/spending-limits"
|
|
800
|
+
o.input = Shapes::ShapeRef.new(shape: SearchSpendingLimitsRequest)
|
|
801
|
+
o.output = Shapes::ShapeRef.new(shape: SearchSpendingLimitsResponse)
|
|
802
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
803
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
804
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
|
805
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
806
|
+
o[:pager] = Aws::Pager.new(
|
|
807
|
+
limit_key: "max_results",
|
|
808
|
+
tokens: {
|
|
809
|
+
"next_token" => "next_token"
|
|
810
|
+
}
|
|
811
|
+
)
|
|
812
|
+
end)
|
|
813
|
+
|
|
692
814
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
693
815
|
o.name = "TagResource"
|
|
694
816
|
o.http_method = "POST"
|
|
@@ -710,6 +832,19 @@ module Aws::Braket
|
|
|
710
832
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
|
711
833
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
712
834
|
end)
|
|
835
|
+
|
|
836
|
+
api.add_operation(:update_spending_limit, Seahorse::Model::Operation.new.tap do |o|
|
|
837
|
+
o.name = "UpdateSpendingLimit"
|
|
838
|
+
o.http_method = "PATCH"
|
|
839
|
+
o.http_request_uri = "/spending-limit/{spendingLimitArn}/update"
|
|
840
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateSpendingLimitRequest)
|
|
841
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateSpendingLimitResponse)
|
|
842
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
843
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
844
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
845
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
|
846
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
847
|
+
end)
|
|
713
848
|
end
|
|
714
849
|
|
|
715
850
|
end
|
data/lib/aws-sdk-braket/types.rb
CHANGED
|
@@ -373,6 +373,60 @@ module Aws::Braket
|
|
|
373
373
|
include Aws::Structure
|
|
374
374
|
end
|
|
375
375
|
|
|
376
|
+
# @!attribute [rw] client_token
|
|
377
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
378
|
+
# completes no more than one time. If this token matches a previous
|
|
379
|
+
# request, Amazon Braket ignores the request, but does not return an
|
|
380
|
+
# error.
|
|
381
|
+
#
|
|
382
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
383
|
+
# not need to pass this option.
|
|
384
|
+
# @return [String]
|
|
385
|
+
#
|
|
386
|
+
# @!attribute [rw] device_arn
|
|
387
|
+
# The Amazon Resource Name (ARN) of the quantum device to apply the
|
|
388
|
+
# spending limit to.
|
|
389
|
+
# @return [String]
|
|
390
|
+
#
|
|
391
|
+
# @!attribute [rw] spending_limit
|
|
392
|
+
# The maximum amount that can be spent on the specified device, in
|
|
393
|
+
# USD.
|
|
394
|
+
# @return [String]
|
|
395
|
+
#
|
|
396
|
+
# @!attribute [rw] time_period
|
|
397
|
+
# The time period during which the spending limit is active, including
|
|
398
|
+
# start and end dates.
|
|
399
|
+
# @return [Types::TimePeriod]
|
|
400
|
+
#
|
|
401
|
+
# @!attribute [rw] tags
|
|
402
|
+
# The tags to apply to the spending limit. Each tag consists of a key
|
|
403
|
+
# and an optional value.
|
|
404
|
+
# @return [Hash<String,String>]
|
|
405
|
+
#
|
|
406
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateSpendingLimitRequest AWS API Documentation
|
|
407
|
+
#
|
|
408
|
+
class CreateSpendingLimitRequest < Struct.new(
|
|
409
|
+
:client_token,
|
|
410
|
+
:device_arn,
|
|
411
|
+
:spending_limit,
|
|
412
|
+
:time_period,
|
|
413
|
+
:tags)
|
|
414
|
+
SENSITIVE = []
|
|
415
|
+
include Aws::Structure
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# @!attribute [rw] spending_limit_arn
|
|
419
|
+
# The Amazon Resource Name (ARN) of the created spending limit.
|
|
420
|
+
# @return [String]
|
|
421
|
+
#
|
|
422
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateSpendingLimitResponse AWS API Documentation
|
|
423
|
+
#
|
|
424
|
+
class CreateSpendingLimitResponse < Struct.new(
|
|
425
|
+
:spending_limit_arn)
|
|
426
|
+
SENSITIVE = []
|
|
427
|
+
include Aws::Structure
|
|
428
|
+
end
|
|
429
|
+
|
|
376
430
|
# Information about the source of the input data used by the Amazon
|
|
377
431
|
# Braket hybrid job.
|
|
378
432
|
#
|
|
@@ -388,6 +442,22 @@ module Aws::Braket
|
|
|
388
442
|
include Aws::Structure
|
|
389
443
|
end
|
|
390
444
|
|
|
445
|
+
# @!attribute [rw] spending_limit_arn
|
|
446
|
+
# The Amazon Resource Name (ARN) of the spending limit to delete.
|
|
447
|
+
# @return [String]
|
|
448
|
+
#
|
|
449
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/DeleteSpendingLimitRequest AWS API Documentation
|
|
450
|
+
#
|
|
451
|
+
class DeleteSpendingLimitRequest < Struct.new(
|
|
452
|
+
:spending_limit_arn)
|
|
453
|
+
SENSITIVE = []
|
|
454
|
+
include Aws::Structure
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/DeleteSpendingLimitResponse AWS API Documentation
|
|
458
|
+
#
|
|
459
|
+
class DeleteSpendingLimitResponse < Aws::EmptyStructure; end
|
|
460
|
+
|
|
391
461
|
# Configures the primary device used to create and run an Amazon Braket
|
|
392
462
|
# hybrid job.
|
|
393
463
|
#
|
|
@@ -1472,6 +1542,77 @@ module Aws::Braket
|
|
|
1472
1542
|
include Aws::Structure
|
|
1473
1543
|
end
|
|
1474
1544
|
|
|
1545
|
+
# Specifies filter criteria for searching spending limits. Use filters
|
|
1546
|
+
# to narrow down results based on specific attributes.
|
|
1547
|
+
#
|
|
1548
|
+
# @!attribute [rw] name
|
|
1549
|
+
# The name of the field to filter on. Currently only supports
|
|
1550
|
+
# `deviceArn`.
|
|
1551
|
+
# @return [String]
|
|
1552
|
+
#
|
|
1553
|
+
# @!attribute [rw] values
|
|
1554
|
+
# An array of values to match against the specified field.
|
|
1555
|
+
# @return [Array<String>]
|
|
1556
|
+
#
|
|
1557
|
+
# @!attribute [rw] operator
|
|
1558
|
+
# The comparison operator to use when filtering.
|
|
1559
|
+
# @return [String]
|
|
1560
|
+
#
|
|
1561
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchSpendingLimitsFilter AWS API Documentation
|
|
1562
|
+
#
|
|
1563
|
+
class SearchSpendingLimitsFilter < Struct.new(
|
|
1564
|
+
:name,
|
|
1565
|
+
:values,
|
|
1566
|
+
:operator)
|
|
1567
|
+
SENSITIVE = []
|
|
1568
|
+
include Aws::Structure
|
|
1569
|
+
end
|
|
1570
|
+
|
|
1571
|
+
# @!attribute [rw] next_token
|
|
1572
|
+
# The token to retrieve the next page of results. This value is
|
|
1573
|
+
# returned from a previous call to SearchSpendingLimits when there are
|
|
1574
|
+
# more results available.
|
|
1575
|
+
# @return [String]
|
|
1576
|
+
#
|
|
1577
|
+
# @!attribute [rw] max_results
|
|
1578
|
+
# The maximum number of results to return in a single call. Minimum
|
|
1579
|
+
# value of 1, maximum value of 100. Default is 20.
|
|
1580
|
+
# @return [Integer]
|
|
1581
|
+
#
|
|
1582
|
+
# @!attribute [rw] filters
|
|
1583
|
+
# The filters to apply when searching for spending limits. Use filters
|
|
1584
|
+
# to narrow down the results based on specific criteria.
|
|
1585
|
+
# @return [Array<Types::SearchSpendingLimitsFilter>]
|
|
1586
|
+
#
|
|
1587
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchSpendingLimitsRequest AWS API Documentation
|
|
1588
|
+
#
|
|
1589
|
+
class SearchSpendingLimitsRequest < Struct.new(
|
|
1590
|
+
:next_token,
|
|
1591
|
+
:max_results,
|
|
1592
|
+
:filters)
|
|
1593
|
+
SENSITIVE = []
|
|
1594
|
+
include Aws::Structure
|
|
1595
|
+
end
|
|
1596
|
+
|
|
1597
|
+
# @!attribute [rw] spending_limits
|
|
1598
|
+
# An array of spending limit summaries that match the specified
|
|
1599
|
+
# filters.
|
|
1600
|
+
# @return [Array<Types::SpendingLimitSummary>]
|
|
1601
|
+
#
|
|
1602
|
+
# @!attribute [rw] next_token
|
|
1603
|
+
# The token to retrieve the next page of results. This value is null
|
|
1604
|
+
# when there are no more results to return.
|
|
1605
|
+
# @return [String]
|
|
1606
|
+
#
|
|
1607
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchSpendingLimitsResponse AWS API Documentation
|
|
1608
|
+
#
|
|
1609
|
+
class SearchSpendingLimitsResponse < Struct.new(
|
|
1610
|
+
:spending_limits,
|
|
1611
|
+
:next_token)
|
|
1612
|
+
SENSITIVE = []
|
|
1613
|
+
include Aws::Structure
|
|
1614
|
+
end
|
|
1615
|
+
|
|
1475
1616
|
# The request failed because a service quota is exceeded.
|
|
1476
1617
|
#
|
|
1477
1618
|
# @!attribute [rw] message
|
|
@@ -1485,6 +1626,68 @@ module Aws::Braket
|
|
|
1485
1626
|
include Aws::Structure
|
|
1486
1627
|
end
|
|
1487
1628
|
|
|
1629
|
+
# Contains summary information about a spending limit, including current
|
|
1630
|
+
# spending status and configuration details.
|
|
1631
|
+
#
|
|
1632
|
+
# @!attribute [rw] spending_limit_arn
|
|
1633
|
+
# The Amazon Resource Name (ARN) that uniquely identifies the spending
|
|
1634
|
+
# limit.
|
|
1635
|
+
# @return [String]
|
|
1636
|
+
#
|
|
1637
|
+
# @!attribute [rw] device_arn
|
|
1638
|
+
# The Amazon Resource Name (ARN) of the quantum device associated with
|
|
1639
|
+
# this spending limit.
|
|
1640
|
+
# @return [String]
|
|
1641
|
+
#
|
|
1642
|
+
# @!attribute [rw] time_period
|
|
1643
|
+
# The time period during which the spending limit is active.
|
|
1644
|
+
# @return [Types::TimePeriod]
|
|
1645
|
+
#
|
|
1646
|
+
# @!attribute [rw] spending_limit
|
|
1647
|
+
# The maximum spending amount allowed for the device during the
|
|
1648
|
+
# specified time period, in USD.
|
|
1649
|
+
# @return [String]
|
|
1650
|
+
#
|
|
1651
|
+
# @!attribute [rw] queued_spend
|
|
1652
|
+
# The amount currently queued for spending on the device, in USD.
|
|
1653
|
+
# @return [String]
|
|
1654
|
+
#
|
|
1655
|
+
# @!attribute [rw] total_spend
|
|
1656
|
+
# The total amount spent on the device so far during the current time
|
|
1657
|
+
# period, in USD.
|
|
1658
|
+
# @return [String]
|
|
1659
|
+
#
|
|
1660
|
+
# @!attribute [rw] created_at
|
|
1661
|
+
# The date and time when the spending limit was created, in epoch
|
|
1662
|
+
# seconds.
|
|
1663
|
+
# @return [Time]
|
|
1664
|
+
#
|
|
1665
|
+
# @!attribute [rw] updated_at
|
|
1666
|
+
# The date and time when the spending limit was last modified, in
|
|
1667
|
+
# epoch seconds.
|
|
1668
|
+
# @return [Time]
|
|
1669
|
+
#
|
|
1670
|
+
# @!attribute [rw] tags
|
|
1671
|
+
# The tags associated with the spending limit. Each tag consists of a
|
|
1672
|
+
# key and an optional value.
|
|
1673
|
+
# @return [Hash<String,String>]
|
|
1674
|
+
#
|
|
1675
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SpendingLimitSummary AWS API Documentation
|
|
1676
|
+
#
|
|
1677
|
+
class SpendingLimitSummary < Struct.new(
|
|
1678
|
+
:spending_limit_arn,
|
|
1679
|
+
:device_arn,
|
|
1680
|
+
:time_period,
|
|
1681
|
+
:spending_limit,
|
|
1682
|
+
:queued_spend,
|
|
1683
|
+
:total_spend,
|
|
1684
|
+
:created_at,
|
|
1685
|
+
:updated_at,
|
|
1686
|
+
:tags)
|
|
1687
|
+
SENSITIVE = []
|
|
1688
|
+
include Aws::Structure
|
|
1689
|
+
end
|
|
1690
|
+
|
|
1488
1691
|
# @!attribute [rw] resource_arn
|
|
1489
1692
|
# Specify the `resourceArn` of the resource to which a tag will be
|
|
1490
1693
|
# added.
|
|
@@ -1521,6 +1724,28 @@ module Aws::Braket
|
|
|
1521
1724
|
include Aws::Structure
|
|
1522
1725
|
end
|
|
1523
1726
|
|
|
1727
|
+
# Defines a time range for spending limits, specifying when the limit is
|
|
1728
|
+
# active.
|
|
1729
|
+
#
|
|
1730
|
+
# @!attribute [rw] start_at
|
|
1731
|
+
# The start date and time for the spending limit period, in epoch
|
|
1732
|
+
# seconds.
|
|
1733
|
+
# @return [Time]
|
|
1734
|
+
#
|
|
1735
|
+
# @!attribute [rw] end_at
|
|
1736
|
+
# The end date and time for the spending limit period, in epoch
|
|
1737
|
+
# seconds.
|
|
1738
|
+
# @return [Time]
|
|
1739
|
+
#
|
|
1740
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TimePeriod AWS API Documentation
|
|
1741
|
+
#
|
|
1742
|
+
class TimePeriod < Struct.new(
|
|
1743
|
+
:start_at,
|
|
1744
|
+
:end_at)
|
|
1745
|
+
SENSITIVE = []
|
|
1746
|
+
include Aws::Structure
|
|
1747
|
+
end
|
|
1748
|
+
|
|
1524
1749
|
# @!attribute [rw] resource_arn
|
|
1525
1750
|
# Specify the `resourceArn` for the resource from which to remove the
|
|
1526
1751
|
# tags.
|
|
@@ -1543,6 +1768,45 @@ module Aws::Braket
|
|
|
1543
1768
|
#
|
|
1544
1769
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
|
1545
1770
|
|
|
1771
|
+
# @!attribute [rw] spending_limit_arn
|
|
1772
|
+
# The Amazon Resource Name (ARN) of the spending limit to update.
|
|
1773
|
+
# @return [String]
|
|
1774
|
+
#
|
|
1775
|
+
# @!attribute [rw] client_token
|
|
1776
|
+
# A unique, case-sensitive identifier to ensure that the operation
|
|
1777
|
+
# completes no more than one time. If this token matches a previous
|
|
1778
|
+
# request, Amazon Braket ignores the request, but does not return an
|
|
1779
|
+
# error.
|
|
1780
|
+
#
|
|
1781
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
1782
|
+
# not need to pass this option.
|
|
1783
|
+
# @return [String]
|
|
1784
|
+
#
|
|
1785
|
+
# @!attribute [rw] spending_limit
|
|
1786
|
+
# The new maximum amount that can be spent on the specified device, in
|
|
1787
|
+
# USD.
|
|
1788
|
+
# @return [String]
|
|
1789
|
+
#
|
|
1790
|
+
# @!attribute [rw] time_period
|
|
1791
|
+
# The new time period during which the spending limit is active,
|
|
1792
|
+
# including start and end dates.
|
|
1793
|
+
# @return [Types::TimePeriod]
|
|
1794
|
+
#
|
|
1795
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UpdateSpendingLimitRequest AWS API Documentation
|
|
1796
|
+
#
|
|
1797
|
+
class UpdateSpendingLimitRequest < Struct.new(
|
|
1798
|
+
:spending_limit_arn,
|
|
1799
|
+
:client_token,
|
|
1800
|
+
:spending_limit,
|
|
1801
|
+
:time_period)
|
|
1802
|
+
SENSITIVE = []
|
|
1803
|
+
include Aws::Structure
|
|
1804
|
+
end
|
|
1805
|
+
|
|
1806
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UpdateSpendingLimitResponse AWS API Documentation
|
|
1807
|
+
#
|
|
1808
|
+
class UpdateSpendingLimitResponse < Aws::EmptyStructure; end
|
|
1809
|
+
|
|
1546
1810
|
# The input request failed to satisfy constraints expected by Amazon
|
|
1547
1811
|
# Braket.
|
|
1548
1812
|
#
|
data/lib/aws-sdk-braket.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -188,6 +188,32 @@ module Aws
|
|
|
188
188
|
) -> _CreateQuantumTaskResponseSuccess
|
|
189
189
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateQuantumTaskResponseSuccess
|
|
190
190
|
|
|
191
|
+
interface _CreateSpendingLimitResponseSuccess
|
|
192
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateSpendingLimitResponse]
|
|
193
|
+
def spending_limit_arn: () -> ::String
|
|
194
|
+
end
|
|
195
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Braket/Client.html#create_spending_limit-instance_method
|
|
196
|
+
def create_spending_limit: (
|
|
197
|
+
client_token: ::String,
|
|
198
|
+
device_arn: ::String,
|
|
199
|
+
spending_limit: ::String,
|
|
200
|
+
?time_period: {
|
|
201
|
+
start_at: ::Time,
|
|
202
|
+
end_at: ::Time
|
|
203
|
+
},
|
|
204
|
+
?tags: Hash[::String, ::String]
|
|
205
|
+
) -> _CreateSpendingLimitResponseSuccess
|
|
206
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSpendingLimitResponseSuccess
|
|
207
|
+
|
|
208
|
+
interface _DeleteSpendingLimitResponseSuccess
|
|
209
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSpendingLimitResponse]
|
|
210
|
+
end
|
|
211
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Braket/Client.html#delete_spending_limit-instance_method
|
|
212
|
+
def delete_spending_limit: (
|
|
213
|
+
spending_limit_arn: ::String
|
|
214
|
+
) -> _DeleteSpendingLimitResponseSuccess
|
|
215
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSpendingLimitResponseSuccess
|
|
216
|
+
|
|
191
217
|
interface _GetDeviceResponseSuccess
|
|
192
218
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetDeviceResponse]
|
|
193
219
|
def device_arn: () -> ::String
|
|
@@ -328,6 +354,25 @@ module Aws
|
|
|
328
354
|
) -> _SearchQuantumTasksResponseSuccess
|
|
329
355
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchQuantumTasksResponseSuccess
|
|
330
356
|
|
|
357
|
+
interface _SearchSpendingLimitsResponseSuccess
|
|
358
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::SearchSpendingLimitsResponse]
|
|
359
|
+
def spending_limits: () -> ::Array[Types::SpendingLimitSummary]
|
|
360
|
+
def next_token: () -> ::String
|
|
361
|
+
end
|
|
362
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Braket/Client.html#search_spending_limits-instance_method
|
|
363
|
+
def search_spending_limits: (
|
|
364
|
+
?next_token: ::String,
|
|
365
|
+
?max_results: ::Integer,
|
|
366
|
+
?filters: Array[
|
|
367
|
+
{
|
|
368
|
+
name: ::String,
|
|
369
|
+
values: Array[::String],
|
|
370
|
+
operator: ("EQUAL")
|
|
371
|
+
},
|
|
372
|
+
]
|
|
373
|
+
) -> _SearchSpendingLimitsResponseSuccess
|
|
374
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchSpendingLimitsResponseSuccess
|
|
375
|
+
|
|
331
376
|
interface _TagResourceResponseSuccess
|
|
332
377
|
include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
|
|
333
378
|
end
|
|
@@ -347,6 +392,21 @@ module Aws
|
|
|
347
392
|
tag_keys: Array[::String]
|
|
348
393
|
) -> _UntagResourceResponseSuccess
|
|
349
394
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
|
|
395
|
+
|
|
396
|
+
interface _UpdateSpendingLimitResponseSuccess
|
|
397
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSpendingLimitResponse]
|
|
398
|
+
end
|
|
399
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Braket/Client.html#update_spending_limit-instance_method
|
|
400
|
+
def update_spending_limit: (
|
|
401
|
+
spending_limit_arn: ::String,
|
|
402
|
+
client_token: ::String,
|
|
403
|
+
?spending_limit: ::String,
|
|
404
|
+
?time_period: {
|
|
405
|
+
start_at: ::Time,
|
|
406
|
+
end_at: ::Time
|
|
407
|
+
}
|
|
408
|
+
) -> _UpdateSpendingLimitResponseSuccess
|
|
409
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSpendingLimitResponseSuccess
|
|
350
410
|
end
|
|
351
411
|
end
|
|
352
412
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -107,11 +107,33 @@ module Aws::Braket
|
|
|
107
107
|
SENSITIVE: []
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
+
class CreateSpendingLimitRequest
|
|
111
|
+
attr_accessor client_token: ::String
|
|
112
|
+
attr_accessor device_arn: ::String
|
|
113
|
+
attr_accessor spending_limit: ::String
|
|
114
|
+
attr_accessor time_period: Types::TimePeriod
|
|
115
|
+
attr_accessor tags: ::Hash[::String, ::String]
|
|
116
|
+
SENSITIVE: []
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
class CreateSpendingLimitResponse
|
|
120
|
+
attr_accessor spending_limit_arn: ::String
|
|
121
|
+
SENSITIVE: []
|
|
122
|
+
end
|
|
123
|
+
|
|
110
124
|
class DataSource
|
|
111
125
|
attr_accessor s3_data_source: Types::S3DataSource
|
|
112
126
|
SENSITIVE: []
|
|
113
127
|
end
|
|
114
128
|
|
|
129
|
+
class DeleteSpendingLimitRequest
|
|
130
|
+
attr_accessor spending_limit_arn: ::String
|
|
131
|
+
SENSITIVE: []
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
class DeleteSpendingLimitResponse < Aws::EmptyStructure
|
|
135
|
+
end
|
|
136
|
+
|
|
115
137
|
class DeviceConfig
|
|
116
138
|
attr_accessor device: ::String
|
|
117
139
|
SENSITIVE: []
|
|
@@ -404,11 +426,44 @@ module Aws::Braket
|
|
|
404
426
|
SENSITIVE: []
|
|
405
427
|
end
|
|
406
428
|
|
|
429
|
+
class SearchSpendingLimitsFilter
|
|
430
|
+
attr_accessor name: ::String
|
|
431
|
+
attr_accessor values: ::Array[::String]
|
|
432
|
+
attr_accessor operator: ("EQUAL")
|
|
433
|
+
SENSITIVE: []
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
class SearchSpendingLimitsRequest
|
|
437
|
+
attr_accessor next_token: ::String
|
|
438
|
+
attr_accessor max_results: ::Integer
|
|
439
|
+
attr_accessor filters: ::Array[Types::SearchSpendingLimitsFilter]
|
|
440
|
+
SENSITIVE: []
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
class SearchSpendingLimitsResponse
|
|
444
|
+
attr_accessor spending_limits: ::Array[Types::SpendingLimitSummary]
|
|
445
|
+
attr_accessor next_token: ::String
|
|
446
|
+
SENSITIVE: []
|
|
447
|
+
end
|
|
448
|
+
|
|
407
449
|
class ServiceQuotaExceededException
|
|
408
450
|
attr_accessor message: ::String
|
|
409
451
|
SENSITIVE: []
|
|
410
452
|
end
|
|
411
453
|
|
|
454
|
+
class SpendingLimitSummary
|
|
455
|
+
attr_accessor spending_limit_arn: ::String
|
|
456
|
+
attr_accessor device_arn: ::String
|
|
457
|
+
attr_accessor time_period: Types::TimePeriod
|
|
458
|
+
attr_accessor spending_limit: ::String
|
|
459
|
+
attr_accessor queued_spend: ::String
|
|
460
|
+
attr_accessor total_spend: ::String
|
|
461
|
+
attr_accessor created_at: ::Time
|
|
462
|
+
attr_accessor updated_at: ::Time
|
|
463
|
+
attr_accessor tags: ::Hash[::String, ::String]
|
|
464
|
+
SENSITIVE: []
|
|
465
|
+
end
|
|
466
|
+
|
|
412
467
|
class TagResourceRequest
|
|
413
468
|
attr_accessor resource_arn: ::String
|
|
414
469
|
attr_accessor tags: ::Hash[::String, ::String]
|
|
@@ -423,6 +478,12 @@ module Aws::Braket
|
|
|
423
478
|
SENSITIVE: []
|
|
424
479
|
end
|
|
425
480
|
|
|
481
|
+
class TimePeriod
|
|
482
|
+
attr_accessor start_at: ::Time
|
|
483
|
+
attr_accessor end_at: ::Time
|
|
484
|
+
SENSITIVE: []
|
|
485
|
+
end
|
|
486
|
+
|
|
426
487
|
class UntagResourceRequest
|
|
427
488
|
attr_accessor resource_arn: ::String
|
|
428
489
|
attr_accessor tag_keys: ::Array[::String]
|
|
@@ -432,6 +493,17 @@ module Aws::Braket
|
|
|
432
493
|
class UntagResourceResponse < Aws::EmptyStructure
|
|
433
494
|
end
|
|
434
495
|
|
|
496
|
+
class UpdateSpendingLimitRequest
|
|
497
|
+
attr_accessor spending_limit_arn: ::String
|
|
498
|
+
attr_accessor client_token: ::String
|
|
499
|
+
attr_accessor spending_limit: ::String
|
|
500
|
+
attr_accessor time_period: Types::TimePeriod
|
|
501
|
+
SENSITIVE: []
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
class UpdateSpendingLimitResponse < Aws::EmptyStructure
|
|
505
|
+
end
|
|
506
|
+
|
|
435
507
|
class ValidationException
|
|
436
508
|
attr_accessor message: ::String
|
|
437
509
|
attr_accessor reason: ("ProgramSetValidationFailed")
|