aws-sdk-braket 1.13.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-braket/client.rb +314 -3
- data/lib/aws-sdk-braket/client_api.rb +247 -2
- data/lib/aws-sdk-braket/types.rb +820 -0
- data/lib/aws-sdk-braket.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 609c6a4ddf75f45df24af0133470c9903c8747257be5380fbdf3d17e165e5498
|
4
|
+
data.tar.gz: 7b101361d8459315e58104d9259c227800da1a007f77f9eb747287042c132949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4b033bd9a7b68c3482230fba042a157757f35c014086071b7e110de6cf140593748f4c5a313bbdd6ff50a05cc60f4ffb10412fef59bb8b531f26c9cb949e476
|
7
|
+
data.tar.gz: 9b518bd9b9b1af2d010168da52e1bb3cc357327536e1f988595f6c00dc234c9ba636dc74889b909130c8cbee178cb5e07b5c2469c63c3ce67303bb6c1e5ca732
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.17.0 (2022-02-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.16.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.15.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.14.0 (2021-11-22)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds support for Amazon Braket Hybrid Jobs.
|
23
|
+
|
4
24
|
1.13.0 (2021-11-04)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.17.0
|
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
34
|
|
@@ -73,6 +75,8 @@ module Aws::Braket
|
|
73
75
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
76
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
77
|
add_plugin(Aws::Plugins::HttpChecksum)
|
78
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
79
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
76
80
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
81
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
82
|
|
@@ -119,7 +123,9 @@ module Aws::Braket
|
|
119
123
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
124
|
# are very aggressive. Construct and pass an instance of
|
121
125
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
126
|
+
# enable retries and extended timeouts. Instance profile credential
|
127
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
128
|
+
# to true.
|
123
129
|
#
|
124
130
|
# @option options [required, String] :region
|
125
131
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +179,10 @@ module Aws::Braket
|
|
173
179
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
180
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
181
|
#
|
182
|
+
# @option options [String] :defaults_mode ("legacy")
|
183
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
184
|
+
# accepted modes and the configuration defaults that are included.
|
185
|
+
#
|
176
186
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
187
|
# Set to true to disable SDK automatically adding host prefix
|
178
188
|
# to default service endpoint when available.
|
@@ -295,7 +305,7 @@ module Aws::Braket
|
|
295
305
|
# seconds to wait when opening a HTTP session before raising a
|
296
306
|
# `Timeout::Error`.
|
297
307
|
#
|
298
|
-
# @option options [
|
308
|
+
# @option options [Float] :http_read_timeout (60) The default
|
299
309
|
# number of seconds to wait for response data. This value can
|
300
310
|
# safely be set per-request on the session.
|
301
311
|
#
|
@@ -311,6 +321,9 @@ module Aws::Braket
|
|
311
321
|
# disables this behaviour. This value can safely be set per
|
312
322
|
# request on the session.
|
313
323
|
#
|
324
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
325
|
+
# in seconds.
|
326
|
+
#
|
314
327
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
315
328
|
# HTTP debug output will be sent to the `:logger`.
|
316
329
|
#
|
@@ -336,6 +349,36 @@ module Aws::Braket
|
|
336
349
|
|
337
350
|
# @!group API Operations
|
338
351
|
|
352
|
+
# Cancels an Amazon Braket job.
|
353
|
+
#
|
354
|
+
# @option params [required, String] :job_arn
|
355
|
+
# The ARN of the Amazon Braket job to cancel.
|
356
|
+
#
|
357
|
+
# @return [Types::CancelJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
358
|
+
#
|
359
|
+
# * {Types::CancelJobResponse#cancellation_status #cancellation_status} => String
|
360
|
+
# * {Types::CancelJobResponse#job_arn #job_arn} => String
|
361
|
+
#
|
362
|
+
# @example Request syntax with placeholder values
|
363
|
+
#
|
364
|
+
# resp = client.cancel_job({
|
365
|
+
# job_arn: "JobArn", # required
|
366
|
+
# })
|
367
|
+
#
|
368
|
+
# @example Response structure
|
369
|
+
#
|
370
|
+
# resp.cancellation_status #=> String, one of "CANCELLING", "CANCELLED"
|
371
|
+
# resp.job_arn #=> String
|
372
|
+
#
|
373
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob AWS API Documentation
|
374
|
+
#
|
375
|
+
# @overload cancel_job(params = {})
|
376
|
+
# @param [Hash] params ({})
|
377
|
+
def cancel_job(params = {}, options = {})
|
378
|
+
req = build_request(:cancel_job, params)
|
379
|
+
req.send_request(options)
|
380
|
+
end
|
381
|
+
|
339
382
|
# Cancels the specified task.
|
340
383
|
#
|
341
384
|
# @option params [required, String] :client_token
|
@@ -373,6 +416,131 @@ module Aws::Braket
|
|
373
416
|
req.send_request(options)
|
374
417
|
end
|
375
418
|
|
419
|
+
# Creates an Amazon Braket job.
|
420
|
+
#
|
421
|
+
# @option params [required, Types::AlgorithmSpecification] :algorithm_specification
|
422
|
+
# Definition of the Amazon Braket job to be created. Specifies the
|
423
|
+
# container image the job uses and information about the Python scripts
|
424
|
+
# used for entry and training.
|
425
|
+
#
|
426
|
+
# @option params [Types::JobCheckpointConfig] :checkpoint_config
|
427
|
+
# Information about the output locations for job checkpoint data.
|
428
|
+
#
|
429
|
+
# @option params [required, String] :client_token
|
430
|
+
# A unique token that guarantees that the call to this API is
|
431
|
+
# idempotent.
|
432
|
+
#
|
433
|
+
# **A suitable default value is auto-generated.** You should normally
|
434
|
+
# not need to pass this option.**
|
435
|
+
#
|
436
|
+
# @option params [required, Types::DeviceConfig] :device_config
|
437
|
+
# The quantum processing unit (QPU) or simulator used to create an
|
438
|
+
# Amazon Braket job.
|
439
|
+
#
|
440
|
+
# @option params [Hash<String,String>] :hyper_parameters
|
441
|
+
# Algorithm-specific parameters used by an Amazon Braket job that
|
442
|
+
# influence the quality of the training job. The values are set with a
|
443
|
+
# string of JSON key:value pairs, where the key is the name of the
|
444
|
+
# hyperparameter and the value is the value of th hyperparameter.
|
445
|
+
#
|
446
|
+
# @option params [Array<Types::InputFileConfig>] :input_data_config
|
447
|
+
# A list of parameters that specify the name and type of input data and
|
448
|
+
# where it is located.
|
449
|
+
#
|
450
|
+
# @option params [required, Types::InstanceConfig] :instance_config
|
451
|
+
# Configuration of the resource instances to use while running the
|
452
|
+
# hybrid job on Amazon Braket.
|
453
|
+
#
|
454
|
+
# @option params [required, String] :job_name
|
455
|
+
# The name of the Amazon Braket job.
|
456
|
+
#
|
457
|
+
# @option params [required, Types::JobOutputDataConfig] :output_data_config
|
458
|
+
# The path to the S3 location where you want to store job artifacts and
|
459
|
+
# the encryption key used to store them.
|
460
|
+
#
|
461
|
+
# @option params [required, String] :role_arn
|
462
|
+
# The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can
|
463
|
+
# assume to perform tasks on behalf of a user. It can access user
|
464
|
+
# resources, run an Amazon Braket job container on behalf of user, and
|
465
|
+
# output resources to the users' s3 buckets.
|
466
|
+
#
|
467
|
+
# @option params [Types::JobStoppingCondition] :stopping_condition
|
468
|
+
# The user-defined criteria that specifies when a job stops running.
|
469
|
+
#
|
470
|
+
# @option params [Hash<String,String>] :tags
|
471
|
+
# A tag object that consists of a key and an optional value, used to
|
472
|
+
# manage metadata for Amazon Braket resources.
|
473
|
+
#
|
474
|
+
# @return [Types::CreateJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
475
|
+
#
|
476
|
+
# * {Types::CreateJobResponse#job_arn #job_arn} => String
|
477
|
+
#
|
478
|
+
# @example Request syntax with placeholder values
|
479
|
+
#
|
480
|
+
# resp = client.create_job({
|
481
|
+
# algorithm_specification: { # required
|
482
|
+
# container_image: {
|
483
|
+
# uri: "Uri", # required
|
484
|
+
# },
|
485
|
+
# script_mode_config: {
|
486
|
+
# compression_type: "NONE", # accepts NONE, GZIP
|
487
|
+
# entry_point: "String", # required
|
488
|
+
# s3_uri: "S3Path", # required
|
489
|
+
# },
|
490
|
+
# },
|
491
|
+
# checkpoint_config: {
|
492
|
+
# local_path: "String4096",
|
493
|
+
# s3_uri: "S3Path", # required
|
494
|
+
# },
|
495
|
+
# client_token: "String64", # required
|
496
|
+
# device_config: { # required
|
497
|
+
# device: "String256", # required
|
498
|
+
# },
|
499
|
+
# hyper_parameters: {
|
500
|
+
# "String256" => "HyperParametersValueString",
|
501
|
+
# },
|
502
|
+
# input_data_config: [
|
503
|
+
# {
|
504
|
+
# channel_name: "InputFileConfigChannelNameString", # required
|
505
|
+
# content_type: "String256",
|
506
|
+
# data_source: { # required
|
507
|
+
# s3_data_source: { # required
|
508
|
+
# s3_uri: "S3Path", # required
|
509
|
+
# },
|
510
|
+
# },
|
511
|
+
# },
|
512
|
+
# ],
|
513
|
+
# instance_config: { # required
|
514
|
+
# instance_type: "ml.m4.xlarge", # required, accepts ml.m4.xlarge, ml.m4.2xlarge, ml.m4.4xlarge, ml.m4.10xlarge, ml.m4.16xlarge, ml.g4dn.xlarge, ml.g4dn.2xlarge, ml.g4dn.4xlarge, ml.g4dn.8xlarge, ml.g4dn.12xlarge, ml.g4dn.16xlarge, ml.m5.large, ml.m5.xlarge, ml.m5.2xlarge, ml.m5.4xlarge, ml.m5.12xlarge, ml.m5.24xlarge, ml.c4.xlarge, ml.c4.2xlarge, ml.c4.4xlarge, ml.c4.8xlarge, ml.p2.xlarge, ml.p2.8xlarge, ml.p2.16xlarge, ml.p3.2xlarge, ml.p3.8xlarge, ml.p3.16xlarge, ml.p3dn.24xlarge, ml.p4d.24xlarge, ml.c5.xlarge, ml.c5.2xlarge, ml.c5.4xlarge, ml.c5.9xlarge, ml.c5.18xlarge, ml.c5n.xlarge, ml.c5n.2xlarge, ml.c5n.4xlarge, ml.c5n.9xlarge, ml.c5n.18xlarge
|
515
|
+
# volume_size_in_gb: 1, # required
|
516
|
+
# },
|
517
|
+
# job_name: "CreateJobRequestJobNameString", # required
|
518
|
+
# output_data_config: { # required
|
519
|
+
# kms_key_id: "String2048",
|
520
|
+
# s3_path: "S3Path", # required
|
521
|
+
# },
|
522
|
+
# role_arn: "RoleArn", # required
|
523
|
+
# stopping_condition: {
|
524
|
+
# max_runtime_in_seconds: 1,
|
525
|
+
# },
|
526
|
+
# tags: {
|
527
|
+
# "String" => "String",
|
528
|
+
# },
|
529
|
+
# })
|
530
|
+
#
|
531
|
+
# @example Response structure
|
532
|
+
#
|
533
|
+
# resp.job_arn #=> String
|
534
|
+
#
|
535
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob AWS API Documentation
|
536
|
+
#
|
537
|
+
# @overload create_job(params = {})
|
538
|
+
# @param [Hash] params ({})
|
539
|
+
def create_job(params = {}, options = {})
|
540
|
+
req = build_request(:create_job, params)
|
541
|
+
req.send_request(options)
|
542
|
+
end
|
543
|
+
|
376
544
|
# Creates a quantum task.
|
377
545
|
#
|
378
546
|
# @option params [required, String] :action
|
@@ -398,6 +566,10 @@ module Aws::Braket
|
|
398
566
|
# when the required value (Hash, Array, etc.) is provided according to
|
399
567
|
# the description.**
|
400
568
|
#
|
569
|
+
# @option params [String] :job_token
|
570
|
+
# The token for an Amazon Braket job that associates it with the quantum
|
571
|
+
# task.
|
572
|
+
#
|
401
573
|
# @option params [required, String] :output_s3_bucket
|
402
574
|
# The S3 bucket to store task result files in.
|
403
575
|
#
|
@@ -422,6 +594,7 @@ module Aws::Braket
|
|
422
594
|
# client_token: "String64", # required
|
423
595
|
# device_arn: "DeviceArn", # required
|
424
596
|
# device_parameters: "CreateQuantumTaskRequestDeviceParametersString",
|
597
|
+
# job_token: "JobToken",
|
425
598
|
# output_s3_bucket: "CreateQuantumTaskRequestOutputS3BucketString", # required
|
426
599
|
# output_s3_key_prefix: "CreateQuantumTaskRequestOutputS3KeyPrefixString", # required
|
427
600
|
# shots: 1, # required
|
@@ -481,6 +654,84 @@ module Aws::Braket
|
|
481
654
|
req.send_request(options)
|
482
655
|
end
|
483
656
|
|
657
|
+
# Retrieves the specified Amazon Braket job.
|
658
|
+
#
|
659
|
+
# @option params [required, String] :job_arn
|
660
|
+
# The ARN of the job to retrieve.
|
661
|
+
#
|
662
|
+
# @return [Types::GetJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
663
|
+
#
|
664
|
+
# * {Types::GetJobResponse#algorithm_specification #algorithm_specification} => Types::AlgorithmSpecification
|
665
|
+
# * {Types::GetJobResponse#billable_duration #billable_duration} => Integer
|
666
|
+
# * {Types::GetJobResponse#checkpoint_config #checkpoint_config} => Types::JobCheckpointConfig
|
667
|
+
# * {Types::GetJobResponse#created_at #created_at} => Time
|
668
|
+
# * {Types::GetJobResponse#device_config #device_config} => Types::DeviceConfig
|
669
|
+
# * {Types::GetJobResponse#ended_at #ended_at} => Time
|
670
|
+
# * {Types::GetJobResponse#events #events} => Array<Types::JobEventDetails>
|
671
|
+
# * {Types::GetJobResponse#failure_reason #failure_reason} => String
|
672
|
+
# * {Types::GetJobResponse#hyper_parameters #hyper_parameters} => Hash<String,String>
|
673
|
+
# * {Types::GetJobResponse#input_data_config #input_data_config} => Array<Types::InputFileConfig>
|
674
|
+
# * {Types::GetJobResponse#instance_config #instance_config} => Types::InstanceConfig
|
675
|
+
# * {Types::GetJobResponse#job_arn #job_arn} => String
|
676
|
+
# * {Types::GetJobResponse#job_name #job_name} => String
|
677
|
+
# * {Types::GetJobResponse#output_data_config #output_data_config} => Types::JobOutputDataConfig
|
678
|
+
# * {Types::GetJobResponse#role_arn #role_arn} => String
|
679
|
+
# * {Types::GetJobResponse#started_at #started_at} => Time
|
680
|
+
# * {Types::GetJobResponse#status #status} => String
|
681
|
+
# * {Types::GetJobResponse#stopping_condition #stopping_condition} => Types::JobStoppingCondition
|
682
|
+
# * {Types::GetJobResponse#tags #tags} => Hash<String,String>
|
683
|
+
#
|
684
|
+
# @example Request syntax with placeholder values
|
685
|
+
#
|
686
|
+
# resp = client.get_job({
|
687
|
+
# job_arn: "JobArn", # required
|
688
|
+
# })
|
689
|
+
#
|
690
|
+
# @example Response structure
|
691
|
+
#
|
692
|
+
# resp.algorithm_specification.container_image.uri #=> String
|
693
|
+
# resp.algorithm_specification.script_mode_config.compression_type #=> String, one of "NONE", "GZIP"
|
694
|
+
# resp.algorithm_specification.script_mode_config.entry_point #=> String
|
695
|
+
# resp.algorithm_specification.script_mode_config.s3_uri #=> String
|
696
|
+
# resp.billable_duration #=> Integer
|
697
|
+
# resp.checkpoint_config.local_path #=> String
|
698
|
+
# resp.checkpoint_config.s3_uri #=> String
|
699
|
+
# resp.created_at #=> Time
|
700
|
+
# resp.device_config.device #=> String
|
701
|
+
# resp.ended_at #=> Time
|
702
|
+
# resp.events #=> Array
|
703
|
+
# resp.events[0].event_type #=> String, one of "WAITING_FOR_PRIORITY", "QUEUED_FOR_EXECUTION", "STARTING_INSTANCE", "DOWNLOADING_DATA", "RUNNING", "DEPRIORITIZED_DUE_TO_INACTIVITY", "UPLOADING_RESULTS", "COMPLETED", "FAILED", "MAX_RUNTIME_EXCEEDED", "CANCELLED"
|
704
|
+
# resp.events[0].message #=> String
|
705
|
+
# resp.events[0].time_of_event #=> Time
|
706
|
+
# resp.failure_reason #=> String
|
707
|
+
# resp.hyper_parameters #=> Hash
|
708
|
+
# resp.hyper_parameters["String256"] #=> String
|
709
|
+
# resp.input_data_config #=> Array
|
710
|
+
# resp.input_data_config[0].channel_name #=> String
|
711
|
+
# resp.input_data_config[0].content_type #=> String
|
712
|
+
# resp.input_data_config[0].data_source.s3_data_source.s3_uri #=> String
|
713
|
+
# resp.instance_config.instance_type #=> String, one of "ml.m4.xlarge", "ml.m4.2xlarge", "ml.m4.4xlarge", "ml.m4.10xlarge", "ml.m4.16xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", "ml.g4dn.16xlarge", "ml.m5.large", "ml.m5.xlarge", "ml.m5.2xlarge", "ml.m5.4xlarge", "ml.m5.12xlarge", "ml.m5.24xlarge", "ml.c4.xlarge", "ml.c4.2xlarge", "ml.c4.4xlarge", "ml.c4.8xlarge", "ml.p2.xlarge", "ml.p2.8xlarge", "ml.p2.16xlarge", "ml.p3.2xlarge", "ml.p3.8xlarge", "ml.p3.16xlarge", "ml.p3dn.24xlarge", "ml.p4d.24xlarge", "ml.c5.xlarge", "ml.c5.2xlarge", "ml.c5.4xlarge", "ml.c5.9xlarge", "ml.c5.18xlarge", "ml.c5n.xlarge", "ml.c5n.2xlarge", "ml.c5n.4xlarge", "ml.c5n.9xlarge", "ml.c5n.18xlarge"
|
714
|
+
# resp.instance_config.volume_size_in_gb #=> Integer
|
715
|
+
# resp.job_arn #=> String
|
716
|
+
# resp.job_name #=> String
|
717
|
+
# resp.output_data_config.kms_key_id #=> String
|
718
|
+
# resp.output_data_config.s3_path #=> String
|
719
|
+
# resp.role_arn #=> String
|
720
|
+
# resp.started_at #=> Time
|
721
|
+
# resp.status #=> String, one of "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
|
722
|
+
# resp.stopping_condition.max_runtime_in_seconds #=> Integer
|
723
|
+
# resp.tags #=> Hash
|
724
|
+
# resp.tags["String"] #=> String
|
725
|
+
#
|
726
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob AWS API Documentation
|
727
|
+
#
|
728
|
+
# @overload get_job(params = {})
|
729
|
+
# @param [Hash] params ({})
|
730
|
+
def get_job(params = {}, options = {})
|
731
|
+
req = build_request(:get_job, params)
|
732
|
+
req.send_request(options)
|
733
|
+
end
|
734
|
+
|
484
735
|
# Retrieves the specified quantum task.
|
485
736
|
#
|
486
737
|
# @option params [required, String] :quantum_task_arn
|
@@ -493,6 +744,7 @@ module Aws::Braket
|
|
493
744
|
# * {Types::GetQuantumTaskResponse#device_parameters #device_parameters} => String
|
494
745
|
# * {Types::GetQuantumTaskResponse#ended_at #ended_at} => Time
|
495
746
|
# * {Types::GetQuantumTaskResponse#failure_reason #failure_reason} => String
|
747
|
+
# * {Types::GetQuantumTaskResponse#job_arn #job_arn} => String
|
496
748
|
# * {Types::GetQuantumTaskResponse#output_s3_bucket #output_s3_bucket} => String
|
497
749
|
# * {Types::GetQuantumTaskResponse#output_s3_directory #output_s3_directory} => String
|
498
750
|
# * {Types::GetQuantumTaskResponse#quantum_task_arn #quantum_task_arn} => String
|
@@ -513,6 +765,7 @@ module Aws::Braket
|
|
513
765
|
# resp.device_parameters #=> String
|
514
766
|
# resp.ended_at #=> Time
|
515
767
|
# resp.failure_reason #=> String
|
768
|
+
# resp.job_arn #=> String
|
516
769
|
# resp.output_s3_bucket #=> String
|
517
770
|
# resp.output_s3_directory #=> String
|
518
771
|
# resp.quantum_task_arn #=> String
|
@@ -611,6 +864,64 @@ module Aws::Braket
|
|
611
864
|
req.send_request(options)
|
612
865
|
end
|
613
866
|
|
867
|
+
# Searches for Amazon Braket jobs that match the specified filter
|
868
|
+
# values.
|
869
|
+
#
|
870
|
+
# @option params [required, Array<Types::SearchJobsFilter>] :filters
|
871
|
+
# The filter values to use when searching for a job.
|
872
|
+
#
|
873
|
+
# @option params [Integer] :max_results
|
874
|
+
# The maximum number of results to return in the response.
|
875
|
+
#
|
876
|
+
# @option params [String] :next_token
|
877
|
+
# A token used for pagination of results returned in the response. Use
|
878
|
+
# the token returned from the previous request to continue results where
|
879
|
+
# the previous request ended.
|
880
|
+
#
|
881
|
+
# @return [Types::SearchJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
882
|
+
#
|
883
|
+
# * {Types::SearchJobsResponse#jobs #jobs} => Array<Types::JobSummary>
|
884
|
+
# * {Types::SearchJobsResponse#next_token #next_token} => String
|
885
|
+
#
|
886
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
887
|
+
#
|
888
|
+
# @example Request syntax with placeholder values
|
889
|
+
#
|
890
|
+
# resp = client.search_jobs({
|
891
|
+
# filters: [ # required
|
892
|
+
# {
|
893
|
+
# name: "String64", # required
|
894
|
+
# operator: "LT", # required, accepts LT, LTE, EQUAL, GT, GTE, BETWEEN, CONTAINS
|
895
|
+
# values: ["String256"], # required
|
896
|
+
# },
|
897
|
+
# ],
|
898
|
+
# max_results: 1,
|
899
|
+
# next_token: "String",
|
900
|
+
# })
|
901
|
+
#
|
902
|
+
# @example Response structure
|
903
|
+
#
|
904
|
+
# resp.jobs #=> Array
|
905
|
+
# resp.jobs[0].created_at #=> Time
|
906
|
+
# resp.jobs[0].device #=> String
|
907
|
+
# resp.jobs[0].ended_at #=> Time
|
908
|
+
# resp.jobs[0].job_arn #=> String
|
909
|
+
# resp.jobs[0].job_name #=> String
|
910
|
+
# resp.jobs[0].started_at #=> Time
|
911
|
+
# resp.jobs[0].status #=> String, one of "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
|
912
|
+
# resp.jobs[0].tags #=> Hash
|
913
|
+
# resp.jobs[0].tags["String"] #=> String
|
914
|
+
# resp.next_token #=> String
|
915
|
+
#
|
916
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs AWS API Documentation
|
917
|
+
#
|
918
|
+
# @overload search_jobs(params = {})
|
919
|
+
# @param [Hash] params ({})
|
920
|
+
def search_jobs(params = {}, options = {})
|
921
|
+
req = build_request(:search_jobs, params)
|
922
|
+
req.send_request(options)
|
923
|
+
end
|
924
|
+
|
614
925
|
# Searches for tasks that match the specified filter values.
|
615
926
|
#
|
616
927
|
# @option params [required, Array<Types::SearchQuantumTasksFilter>] :filters
|
@@ -738,7 +1049,7 @@ module Aws::Braket
|
|
738
1049
|
params: params,
|
739
1050
|
config: config)
|
740
1051
|
context[:gem_name] = 'aws-sdk-braket'
|
741
|
-
context[:gem_version] = '1.
|
1052
|
+
context[:gem_version] = '1.17.0'
|
742
1053
|
Seahorse::Client::Request.new(handlers, context)
|
743
1054
|
end
|
744
1055
|
|