aws-sdk-braket 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f8618f33cd57f8fe046be35924e324c88d9a26f5449bdfcf51f75abcb01c19b
4
- data.tar.gz: cd39ea4471d85a7e16e5d40f1ce32c097d749dcd2af1024702548fd3c1bb738b
3
+ metadata.gz: 0dc7b49b31077ffb47cc8bf5acf1ee60aedecd5feb93ab4eb5d1d01e242ab62f
4
+ data.tar.gz: e7135a0e30e7114e04a367fbb33afcda97e682762f96f54738817bdf0b22da48
5
5
  SHA512:
6
- metadata.gz: e3cf7b6fe62532f0d9ed97e150b6041fa4b620a6f719c0236ea628da3a301ad1b71791a5db9bcae6f20c255194f14a4899a341d1760561a442a3c6a9e4b37304
7
- data.tar.gz: 12c895445894a93845e7bf3030a0f0cfd179fbf30fd7d63206b4a04c09ae60db17c5c4307da3a7419efb52350eb2feadf43b5f3364a0651ddc22540fdd2fc29d
6
+ metadata.gz: 6c98cbbd16f39ef0edb4e56972a1fa2bf732af37e64318d481bed3b89308ec5af75b403bf2f064bf66bb4295c705073e9ee06f5556f5a4b67bef79722b6096e7
7
+ data.tar.gz: 2b14ff1a78bc3b85070200fddbf571989127122c220c213759a944f0d89415c78207ff4c7b4977414f95312a76e8f3cced0510e71692fcd1a3a514d1114d3b1a
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-braket/customizations'
48
48
  # @!group service
49
49
  module Aws::Braket
50
50
 
51
- GEM_VERSION = '1.4.0'
51
+ GEM_VERSION = '1.5.0'
52
52
 
53
53
  end
@@ -352,7 +352,7 @@ module Aws::Braket
352
352
  #
353
353
  # @example Response structure
354
354
  #
355
- # resp.cancellation_status #=> String, one of "CANCELLED", "CANCELLING"
355
+ # resp.cancellation_status #=> String, one of "CANCELLING", "CANCELLED"
356
356
  # resp.quantum_task_arn #=> String
357
357
  #
358
358
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask AWS API Documentation
@@ -399,6 +399,9 @@ module Aws::Braket
399
399
  # @option params [required, Integer] :shots
400
400
  # The number of shots to use for the task.
401
401
  #
402
+ # @option params [Hash<String,String>] :tags
403
+ # Tags to be added to the quantum task you're creating.
404
+ #
402
405
  # @return [Types::CreateQuantumTaskResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
403
406
  #
404
407
  # * {Types::CreateQuantumTaskResponse#quantum_task_arn #quantum_task_arn} => String
@@ -409,10 +412,13 @@ module Aws::Braket
409
412
  # action: "JsonValue", # required
410
413
  # client_token: "String64", # required
411
414
  # device_arn: "DeviceArn", # required
412
- # device_parameters: "CreateQuantumTaskRequestdeviceParametersJsonValue",
413
- # output_s3_bucket: "CreateQuantumTaskRequestoutputS3BucketString", # required
414
- # output_s3_key_prefix: "CreateQuantumTaskRequestoutputS3KeyPrefixString", # required
415
+ # device_parameters: "CreateQuantumTaskRequestDeviceParametersString",
416
+ # output_s3_bucket: "CreateQuantumTaskRequestOutputS3BucketString", # required
417
+ # output_s3_key_prefix: "CreateQuantumTaskRequestOutputS3KeyPrefixString", # required
415
418
  # shots: 1, # required
419
+ # tags: {
420
+ # "String" => "String",
421
+ # },
416
422
  # })
417
423
  #
418
424
  # @example Response structure
@@ -453,7 +459,7 @@ module Aws::Braket
453
459
  # resp.device_arn #=> String
454
460
  # resp.device_capabilities #=> String
455
461
  # resp.device_name #=> String
456
- # resp.device_status #=> String, one of "OFFLINE", "ONLINE"
462
+ # resp.device_status #=> String, one of "ONLINE", "OFFLINE"
457
463
  # resp.device_type #=> String, one of "QPU", "SIMULATOR"
458
464
  # resp.provider_name #=> String
459
465
  #
@@ -483,6 +489,7 @@ module Aws::Braket
483
489
  # * {Types::GetQuantumTaskResponse#quantum_task_arn #quantum_task_arn} => String
484
490
  # * {Types::GetQuantumTaskResponse#shots #shots} => Integer
485
491
  # * {Types::GetQuantumTaskResponse#status #status} => String
492
+ # * {Types::GetQuantumTaskResponse#tags #tags} => Hash&lt;String,String&gt;
486
493
  #
487
494
  # @example Request syntax with placeholder values
488
495
  #
@@ -501,7 +508,9 @@ module Aws::Braket
501
508
  # resp.output_s3_directory #=> String
502
509
  # resp.quantum_task_arn #=> String
503
510
  # resp.shots #=> Integer
504
- # resp.status #=> String, one of "CANCELLED", "CANCELLING", "COMPLETED", "CREATED", "FAILED", "QUEUED", "RUNNING"
511
+ # resp.status #=> String, one of "CREATED", "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
512
+ # resp.tags #=> Hash
513
+ # resp.tags["String"] #=> String
505
514
  #
506
515
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask AWS API Documentation
507
516
  #
@@ -512,6 +521,35 @@ module Aws::Braket
512
521
  req.send_request(options)
513
522
  end
514
523
 
524
+ # Shows the tags associated with this resource.
525
+ #
526
+ # @option params [required, String] :resource_arn
527
+ # Specify the `resourceArn` for the resource whose tags to display.
528
+ #
529
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
530
+ #
531
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
532
+ #
533
+ # @example Request syntax with placeholder values
534
+ #
535
+ # resp = client.list_tags_for_resource({
536
+ # resource_arn: "String", # required
537
+ # })
538
+ #
539
+ # @example Response structure
540
+ #
541
+ # resp.tags #=> Hash
542
+ # resp.tags["String"] #=> String
543
+ #
544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource AWS API Documentation
545
+ #
546
+ # @overload list_tags_for_resource(params = {})
547
+ # @param [Hash] params ({})
548
+ def list_tags_for_resource(params = {}, options = {})
549
+ req = build_request(:list_tags_for_resource, params)
550
+ req.send_request(options)
551
+ end
552
+
515
553
  # Searches for devices using the specified filters.
516
554
  #
517
555
  # @option params [required, Array<Types::SearchDevicesFilter>] :filters
@@ -537,7 +575,7 @@ module Aws::Braket
537
575
  # resp = client.search_devices({
538
576
  # filters: [ # required
539
577
  # {
540
- # name: "SearchDevicesFilternameString", # required
578
+ # name: "SearchDevicesFilterNameString", # required
541
579
  # values: ["String256"], # required
542
580
  # },
543
581
  # ],
@@ -550,7 +588,7 @@ module Aws::Braket
550
588
  # resp.devices #=> Array
551
589
  # resp.devices[0].device_arn #=> String
552
590
  # resp.devices[0].device_name #=> String
553
- # resp.devices[0].device_status #=> String, one of "OFFLINE", "ONLINE"
591
+ # resp.devices[0].device_status #=> String, one of "ONLINE", "OFFLINE"
554
592
  # resp.devices[0].device_type #=> String, one of "QPU", "SIMULATOR"
555
593
  # resp.devices[0].provider_name #=> String
556
594
  # resp.next_token #=> String
@@ -590,7 +628,7 @@ module Aws::Braket
590
628
  # filters: [ # required
591
629
  # {
592
630
  # name: "String64", # required
593
- # operator: "BETWEEN", # required, accepts BETWEEN, EQUAL, GT, GTE, LT, LTE
631
+ # operator: "LT", # required, accepts LT, LTE, EQUAL, GT, GTE, BETWEEN
594
632
  # values: ["String256"], # required
595
633
  # },
596
634
  # ],
@@ -609,7 +647,9 @@ module Aws::Braket
609
647
  # resp.quantum_tasks[0].output_s3_directory #=> String
610
648
  # resp.quantum_tasks[0].quantum_task_arn #=> String
611
649
  # resp.quantum_tasks[0].shots #=> Integer
612
- # resp.quantum_tasks[0].status #=> String, one of "CANCELLED", "CANCELLING", "COMPLETED", "CREATED", "FAILED", "QUEUED", "RUNNING"
650
+ # resp.quantum_tasks[0].status #=> String, one of "CREATED", "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
651
+ # resp.quantum_tasks[0].tags #=> Hash
652
+ # resp.quantum_tasks[0].tags["String"] #=> String
613
653
  #
614
654
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks AWS API Documentation
615
655
  #
@@ -620,6 +660,62 @@ module Aws::Braket
620
660
  req.send_request(options)
621
661
  end
622
662
 
663
+ # Add a tag to the specified resource.
664
+ #
665
+ # @option params [required, String] :resource_arn
666
+ # Specify the `resourceArn` of the resource to which a tag will be
667
+ # added.
668
+ #
669
+ # @option params [required, Hash<String,String>] :tags
670
+ # Specify the tags to add to the resource.
671
+ #
672
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
673
+ #
674
+ # @example Request syntax with placeholder values
675
+ #
676
+ # resp = client.tag_resource({
677
+ # resource_arn: "String", # required
678
+ # tags: { # required
679
+ # "String" => "String",
680
+ # },
681
+ # })
682
+ #
683
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource AWS API Documentation
684
+ #
685
+ # @overload tag_resource(params = {})
686
+ # @param [Hash] params ({})
687
+ def tag_resource(params = {}, options = {})
688
+ req = build_request(:tag_resource, params)
689
+ req.send_request(options)
690
+ end
691
+
692
+ # Remove tags from a resource.
693
+ #
694
+ # @option params [required, String] :resource_arn
695
+ # Specify the `resourceArn` for the resource from which to remove the
696
+ # tags.
697
+ #
698
+ # @option params [required, Array<String>] :tag_keys
699
+ # pecify the keys for the tags to remove from the resource.
700
+ #
701
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
702
+ #
703
+ # @example Request syntax with placeholder values
704
+ #
705
+ # resp = client.untag_resource({
706
+ # resource_arn: "String", # required
707
+ # tag_keys: ["String"], # required
708
+ # })
709
+ #
710
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource AWS API Documentation
711
+ #
712
+ # @overload untag_resource(params = {})
713
+ # @param [Hash] params ({})
714
+ def untag_resource(params = {}, options = {})
715
+ req = build_request(:untag_resource, params)
716
+ req.send_request(options)
717
+ end
718
+
623
719
  # @!endgroup
624
720
 
625
721
  # @param params ({})
@@ -633,7 +729,7 @@ module Aws::Braket
633
729
  params: params,
634
730
  config: config)
635
731
  context[:gem_name] = 'aws-sdk-braket'
636
- context[:gem_version] = '1.4.0'
732
+ context[:gem_version] = '1.5.0'
637
733
  Seahorse::Client::Request.new(handlers, context)
638
734
  end
639
735
 
@@ -19,10 +19,10 @@ module Aws::Braket
19
19
  CancellationStatus = Shapes::StringShape.new(name: 'CancellationStatus')
20
20
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
21
21
  CreateQuantumTaskRequest = Shapes::StructureShape.new(name: 'CreateQuantumTaskRequest')
22
- CreateQuantumTaskRequestdeviceParametersJsonValue = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestdeviceParametersJsonValue')
23
- CreateQuantumTaskRequestoutputS3BucketString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestoutputS3BucketString')
24
- CreateQuantumTaskRequestoutputS3KeyPrefixString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestoutputS3KeyPrefixString')
25
- CreateQuantumTaskRequestshotsLong = Shapes::IntegerShape.new(name: 'CreateQuantumTaskRequestshotsLong')
22
+ CreateQuantumTaskRequestDeviceParametersString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestDeviceParametersString')
23
+ CreateQuantumTaskRequestOutputS3BucketString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestOutputS3BucketString')
24
+ CreateQuantumTaskRequestOutputS3KeyPrefixString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestOutputS3KeyPrefixString')
25
+ CreateQuantumTaskRequestShotsLong = Shapes::IntegerShape.new(name: 'CreateQuantumTaskRequestShotsLong')
26
26
  CreateQuantumTaskResponse = Shapes::StructureShape.new(name: 'CreateQuantumTaskResponse')
27
27
  DeviceArn = Shapes::StringShape.new(name: 'DeviceArn')
28
28
  DeviceOfflineException = Shapes::StructureShape.new(name: 'DeviceOfflineException')
@@ -36,6 +36,8 @@ module Aws::Braket
36
36
  GetQuantumTaskResponse = Shapes::StructureShape.new(name: 'GetQuantumTaskResponse')
37
37
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
38
38
  JsonValue = Shapes::StringShape.new(name: 'JsonValue')
39
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
40
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
39
41
  Long = Shapes::IntegerShape.new(name: 'Long')
40
42
  QuantumTaskArn = Shapes::StringShape.new(name: 'QuantumTaskArn')
41
43
  QuantumTaskStatus = Shapes::StringShape.new(name: 'QuantumTaskStatus')
@@ -43,25 +45,31 @@ module Aws::Braket
43
45
  QuantumTaskSummaryList = Shapes::ListShape.new(name: 'QuantumTaskSummaryList')
44
46
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
45
47
  SearchDevicesFilter = Shapes::StructureShape.new(name: 'SearchDevicesFilter')
46
- SearchDevicesFilternameString = Shapes::StringShape.new(name: 'SearchDevicesFilternameString')
47
- SearchDevicesFiltervaluesString256List = Shapes::ListShape.new(name: 'SearchDevicesFiltervaluesString256List')
48
+ SearchDevicesFilterNameString = Shapes::StringShape.new(name: 'SearchDevicesFilterNameString')
49
+ SearchDevicesFilterValuesList = Shapes::ListShape.new(name: 'SearchDevicesFilterValuesList')
48
50
  SearchDevicesRequest = Shapes::StructureShape.new(name: 'SearchDevicesRequest')
49
- SearchDevicesRequestfiltersSearchDevicesFilterList = Shapes::ListShape.new(name: 'SearchDevicesRequestfiltersSearchDevicesFilterList')
50
- SearchDevicesRequestmaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchDevicesRequestmaxResultsInteger')
51
+ SearchDevicesRequestFiltersList = Shapes::ListShape.new(name: 'SearchDevicesRequestFiltersList')
52
+ SearchDevicesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchDevicesRequestMaxResultsInteger')
51
53
  SearchDevicesResponse = Shapes::StructureShape.new(name: 'SearchDevicesResponse')
52
54
  SearchQuantumTasksFilter = Shapes::StructureShape.new(name: 'SearchQuantumTasksFilter')
53
55
  SearchQuantumTasksFilterOperator = Shapes::StringShape.new(name: 'SearchQuantumTasksFilterOperator')
54
- SearchQuantumTasksFiltervaluesString256List = Shapes::ListShape.new(name: 'SearchQuantumTasksFiltervaluesString256List')
56
+ SearchQuantumTasksFilterValuesList = Shapes::ListShape.new(name: 'SearchQuantumTasksFilterValuesList')
55
57
  SearchQuantumTasksRequest = Shapes::StructureShape.new(name: 'SearchQuantumTasksRequest')
56
- SearchQuantumTasksRequestfiltersSearchQuantumTasksFilterList = Shapes::ListShape.new(name: 'SearchQuantumTasksRequestfiltersSearchQuantumTasksFilterList')
57
- SearchQuantumTasksRequestmaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchQuantumTasksRequestmaxResultsInteger')
58
+ SearchQuantumTasksRequestFiltersList = Shapes::ListShape.new(name: 'SearchQuantumTasksRequestFiltersList')
59
+ SearchQuantumTasksRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchQuantumTasksRequestMaxResultsInteger')
58
60
  SearchQuantumTasksResponse = Shapes::StructureShape.new(name: 'SearchQuantumTasksResponse')
59
61
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
60
62
  String = Shapes::StringShape.new(name: 'String')
61
63
  String256 = Shapes::StringShape.new(name: 'String256')
62
64
  String64 = Shapes::StringShape.new(name: 'String64')
63
65
  SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
66
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
67
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
68
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
69
+ TagsMap = Shapes::MapShape.new(name: 'TagsMap')
64
70
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
71
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
72
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
65
73
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
66
74
 
67
75
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
@@ -81,10 +89,11 @@ module Aws::Braket
81
89
  CreateQuantumTaskRequest.add_member(:action, Shapes::ShapeRef.new(shape: JsonValue, required: true, location_name: "action", metadata: {"jsonvalue"=>true}))
82
90
  CreateQuantumTaskRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
83
91
  CreateQuantumTaskRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
84
- CreateQuantumTaskRequest.add_member(:device_parameters, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestdeviceParametersJsonValue, location_name: "deviceParameters", metadata: {"jsonvalue"=>true}))
85
- CreateQuantumTaskRequest.add_member(:output_s3_bucket, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestoutputS3BucketString, required: true, location_name: "outputS3Bucket"))
86
- CreateQuantumTaskRequest.add_member(:output_s3_key_prefix, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestoutputS3KeyPrefixString, required: true, location_name: "outputS3KeyPrefix"))
87
- CreateQuantumTaskRequest.add_member(:shots, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestshotsLong, required: true, location_name: "shots"))
92
+ CreateQuantumTaskRequest.add_member(:device_parameters, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestDeviceParametersString, location_name: "deviceParameters", metadata: {"jsonvalue"=>true}))
93
+ CreateQuantumTaskRequest.add_member(:output_s3_bucket, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestOutputS3BucketString, required: true, location_name: "outputS3Bucket"))
94
+ CreateQuantumTaskRequest.add_member(:output_s3_key_prefix, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestOutputS3KeyPrefixString, required: true, location_name: "outputS3KeyPrefix"))
95
+ CreateQuantumTaskRequest.add_member(:shots, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestShotsLong, required: true, location_name: "shots"))
96
+ CreateQuantumTaskRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
88
97
  CreateQuantumTaskRequest.struct_class = Types::CreateQuantumTaskRequest
89
98
 
90
99
  CreateQuantumTaskResponse.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
@@ -126,11 +135,18 @@ module Aws::Braket
126
135
  GetQuantumTaskResponse.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
127
136
  GetQuantumTaskResponse.add_member(:shots, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "shots"))
128
137
  GetQuantumTaskResponse.add_member(:status, Shapes::ShapeRef.new(shape: QuantumTaskStatus, required: true, location_name: "status"))
138
+ GetQuantumTaskResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
129
139
  GetQuantumTaskResponse.struct_class = Types::GetQuantumTaskResponse
130
140
 
131
141
  InternalServiceException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
132
142
  InternalServiceException.struct_class = Types::InternalServiceException
133
143
 
144
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
145
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
146
+
147
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
148
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
149
+
134
150
  QuantumTaskSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createdAt"))
135
151
  QuantumTaskSummary.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
136
152
  QuantumTaskSummary.add_member(:ended_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "endedAt"))
@@ -139,6 +155,7 @@ module Aws::Braket
139
155
  QuantumTaskSummary.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
140
156
  QuantumTaskSummary.add_member(:shots, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "shots"))
141
157
  QuantumTaskSummary.add_member(:status, Shapes::ShapeRef.new(shape: QuantumTaskStatus, required: true, location_name: "status"))
158
+ QuantumTaskSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
142
159
  QuantumTaskSummary.struct_class = Types::QuantumTaskSummary
143
160
 
144
161
  QuantumTaskSummaryList.member = Shapes::ShapeRef.new(shape: QuantumTaskSummary)
@@ -146,18 +163,18 @@ module Aws::Braket
146
163
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
147
164
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
148
165
 
149
- SearchDevicesFilter.add_member(:name, Shapes::ShapeRef.new(shape: SearchDevicesFilternameString, required: true, location_name: "name"))
150
- SearchDevicesFilter.add_member(:values, Shapes::ShapeRef.new(shape: SearchDevicesFiltervaluesString256List, required: true, location_name: "values"))
166
+ SearchDevicesFilter.add_member(:name, Shapes::ShapeRef.new(shape: SearchDevicesFilterNameString, required: true, location_name: "name"))
167
+ SearchDevicesFilter.add_member(:values, Shapes::ShapeRef.new(shape: SearchDevicesFilterValuesList, required: true, location_name: "values"))
151
168
  SearchDevicesFilter.struct_class = Types::SearchDevicesFilter
152
169
 
153
- SearchDevicesFiltervaluesString256List.member = Shapes::ShapeRef.new(shape: String256)
170
+ SearchDevicesFilterValuesList.member = Shapes::ShapeRef.new(shape: String256)
154
171
 
155
- SearchDevicesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SearchDevicesRequestfiltersSearchDevicesFilterList, required: true, location_name: "filters"))
156
- SearchDevicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchDevicesRequestmaxResultsInteger, location_name: "maxResults"))
172
+ SearchDevicesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SearchDevicesRequestFiltersList, required: true, location_name: "filters"))
173
+ SearchDevicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchDevicesRequestMaxResultsInteger, location_name: "maxResults"))
157
174
  SearchDevicesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
158
175
  SearchDevicesRequest.struct_class = Types::SearchDevicesRequest
159
176
 
160
- SearchDevicesRequestfiltersSearchDevicesFilterList.member = Shapes::ShapeRef.new(shape: SearchDevicesFilter)
177
+ SearchDevicesRequestFiltersList.member = Shapes::ShapeRef.new(shape: SearchDevicesFilter)
161
178
 
162
179
  SearchDevicesResponse.add_member(:devices, Shapes::ShapeRef.new(shape: DeviceSummaryList, required: true, location_name: "devices"))
163
180
  SearchDevicesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
@@ -165,17 +182,17 @@ module Aws::Braket
165
182
 
166
183
  SearchQuantumTasksFilter.add_member(:name, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "name"))
167
184
  SearchQuantumTasksFilter.add_member(:operator, Shapes::ShapeRef.new(shape: SearchQuantumTasksFilterOperator, required: true, location_name: "operator"))
168
- SearchQuantumTasksFilter.add_member(:values, Shapes::ShapeRef.new(shape: SearchQuantumTasksFiltervaluesString256List, required: true, location_name: "values"))
185
+ SearchQuantumTasksFilter.add_member(:values, Shapes::ShapeRef.new(shape: SearchQuantumTasksFilterValuesList, required: true, location_name: "values"))
169
186
  SearchQuantumTasksFilter.struct_class = Types::SearchQuantumTasksFilter
170
187
 
171
- SearchQuantumTasksFiltervaluesString256List.member = Shapes::ShapeRef.new(shape: String256)
188
+ SearchQuantumTasksFilterValuesList.member = Shapes::ShapeRef.new(shape: String256)
172
189
 
173
- SearchQuantumTasksRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SearchQuantumTasksRequestfiltersSearchQuantumTasksFilterList, required: true, location_name: "filters"))
174
- SearchQuantumTasksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchQuantumTasksRequestmaxResultsInteger, location_name: "maxResults"))
190
+ SearchQuantumTasksRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SearchQuantumTasksRequestFiltersList, required: true, location_name: "filters"))
191
+ SearchQuantumTasksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchQuantumTasksRequestMaxResultsInteger, location_name: "maxResults"))
175
192
  SearchQuantumTasksRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
176
193
  SearchQuantumTasksRequest.struct_class = Types::SearchQuantumTasksRequest
177
194
 
178
- SearchQuantumTasksRequestfiltersSearchQuantumTasksFilterList.member = Shapes::ShapeRef.new(shape: SearchQuantumTasksFilter)
195
+ SearchQuantumTasksRequestFiltersList.member = Shapes::ShapeRef.new(shape: SearchQuantumTasksFilter)
179
196
 
180
197
  SearchQuantumTasksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
181
198
  SearchQuantumTasksResponse.add_member(:quantum_tasks, Shapes::ShapeRef.new(shape: QuantumTaskSummaryList, required: true, location_name: "quantumTasks"))
@@ -184,9 +201,26 @@ module Aws::Braket
184
201
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
185
202
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
186
203
 
204
+ TagKeys.member = Shapes::ShapeRef.new(shape: String)
205
+
206
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
207
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, required: true, location_name: "tags"))
208
+ TagResourceRequest.struct_class = Types::TagResourceRequest
209
+
210
+ TagResourceResponse.struct_class = Types::TagResourceResponse
211
+
212
+ TagsMap.key = Shapes::ShapeRef.new(shape: String)
213
+ TagsMap.value = Shapes::ShapeRef.new(shape: String)
214
+
187
215
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
188
216
  ThrottlingException.struct_class = Types::ThrottlingException
189
217
 
218
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
219
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
220
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
221
+
222
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
223
+
190
224
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
191
225
  ValidationException.struct_class = Types::ValidationException
192
226
 
@@ -262,6 +296,17 @@ module Aws::Braket
262
296
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
263
297
  end)
264
298
 
299
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
300
+ o.name = "ListTagsForResource"
301
+ o.http_method = "GET"
302
+ o.http_request_uri = "/tags/{resourceArn}"
303
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
304
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
305
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
306
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
307
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
308
+ end)
309
+
265
310
  api.add_operation(:search_devices, Seahorse::Model::Operation.new.tap do |o|
266
311
  o.name = "SearchDevices"
267
312
  o.http_method = "POST"
@@ -297,6 +342,28 @@ module Aws::Braket
297
342
  }
298
343
  )
299
344
  end)
345
+
346
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
347
+ o.name = "TagResource"
348
+ o.http_method = "POST"
349
+ o.http_request_uri = "/tags/{resourceArn}"
350
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
351
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
352
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
353
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
354
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
355
+ end)
356
+
357
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
358
+ o.name = "UntagResource"
359
+ o.http_method = "DELETE"
360
+ o.http_request_uri = "/tags/{resourceArn}"
361
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
362
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
363
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
364
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
365
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
366
+ end)
300
367
  end
301
368
 
302
369
  end
@@ -88,10 +88,13 @@ module Aws::Braket
88
88
  # action: "JsonValue", # required
89
89
  # client_token: "String64", # required
90
90
  # device_arn: "DeviceArn", # required
91
- # device_parameters: "CreateQuantumTaskRequestdeviceParametersJsonValue",
92
- # output_s3_bucket: "CreateQuantumTaskRequestoutputS3BucketString", # required
93
- # output_s3_key_prefix: "CreateQuantumTaskRequestoutputS3KeyPrefixString", # required
91
+ # device_parameters: "CreateQuantumTaskRequestDeviceParametersString",
92
+ # output_s3_bucket: "CreateQuantumTaskRequestOutputS3BucketString", # required
93
+ # output_s3_key_prefix: "CreateQuantumTaskRequestOutputS3KeyPrefixString", # required
94
94
  # shots: 1, # required
95
+ # tags: {
96
+ # "String" => "String",
97
+ # },
95
98
  # }
96
99
  #
97
100
  # @!attribute [rw] action
@@ -126,6 +129,10 @@ module Aws::Braket
126
129
  # The number of shots to use for the task.
127
130
  # @return [Integer]
128
131
  #
132
+ # @!attribute [rw] tags
133
+ # Tags to be added to the quantum task you're creating.
134
+ # @return [Hash<String,String>]
135
+ #
129
136
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTaskRequest AWS API Documentation
130
137
  #
131
138
  class CreateQuantumTaskRequest < Struct.new(
@@ -135,7 +142,8 @@ module Aws::Braket
135
142
  :device_parameters,
136
143
  :output_s3_bucket,
137
144
  :output_s3_key_prefix,
138
- :shots)
145
+ :shots,
146
+ :tags)
139
147
  SENSITIVE = []
140
148
  include Aws::Structure
141
149
  end
@@ -314,6 +322,10 @@ module Aws::Braket
314
322
  # The status of the task.
315
323
  # @return [String]
316
324
  #
325
+ # @!attribute [rw] tags
326
+ # The tags that belong to this task.
327
+ # @return [Hash<String,String>]
328
+ #
317
329
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTaskResponse AWS API Documentation
318
330
  #
319
331
  class GetQuantumTaskResponse < Struct.new(
@@ -326,13 +338,14 @@ module Aws::Braket
326
338
  :output_s3_directory,
327
339
  :quantum_task_arn,
328
340
  :shots,
329
- :status)
341
+ :status,
342
+ :tags)
330
343
  SENSITIVE = []
331
344
  include Aws::Structure
332
345
  end
333
346
 
334
347
  # The request processing has failed because of an unknown error,
335
- # exception or failure.
348
+ # exception, or failure.
336
349
  #
337
350
  # @!attribute [rw] message
338
351
  # @return [String]
@@ -345,6 +358,37 @@ module Aws::Braket
345
358
  include Aws::Structure
346
359
  end
347
360
 
361
+ # @note When making an API call, you may pass ListTagsForResourceRequest
362
+ # data as a hash:
363
+ #
364
+ # {
365
+ # resource_arn: "String", # required
366
+ # }
367
+ #
368
+ # @!attribute [rw] resource_arn
369
+ # Specify the `resourceArn` for the resource whose tags to display.
370
+ # @return [String]
371
+ #
372
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResourceRequest AWS API Documentation
373
+ #
374
+ class ListTagsForResourceRequest < Struct.new(
375
+ :resource_arn)
376
+ SENSITIVE = []
377
+ include Aws::Structure
378
+ end
379
+
380
+ # @!attribute [rw] tags
381
+ # Displays the key, value pairs of tags associated with this resource.
382
+ # @return [Hash<String,String>]
383
+ #
384
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResourceResponse AWS API Documentation
385
+ #
386
+ class ListTagsForResourceResponse < Struct.new(
387
+ :tags)
388
+ SENSITIVE = []
389
+ include Aws::Structure
390
+ end
391
+
348
392
  # Includes information about a quantum task.
349
393
  #
350
394
  # @!attribute [rw] created_at
@@ -379,6 +423,11 @@ module Aws::Braket
379
423
  # The status of the task.
380
424
  # @return [String]
381
425
  #
426
+ # @!attribute [rw] tags
427
+ # Displays the key, value pairs of tags associated with this quantum
428
+ # task.
429
+ # @return [Hash<String,String>]
430
+ #
382
431
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/QuantumTaskSummary AWS API Documentation
383
432
  #
384
433
  class QuantumTaskSummary < Struct.new(
@@ -389,7 +438,8 @@ module Aws::Braket
389
438
  :output_s3_directory,
390
439
  :quantum_task_arn,
391
440
  :shots,
392
- :status)
441
+ :status,
442
+ :tags)
393
443
  SENSITIVE = []
394
444
  include Aws::Structure
395
445
  end
@@ -413,7 +463,7 @@ module Aws::Braket
413
463
  # data as a hash:
414
464
  #
415
465
  # {
416
- # name: "SearchDevicesFilternameString", # required
466
+ # name: "SearchDevicesFilterNameString", # required
417
467
  # values: ["String256"], # required
418
468
  # }
419
469
  #
@@ -440,7 +490,7 @@ module Aws::Braket
440
490
  # {
441
491
  # filters: [ # required
442
492
  # {
443
- # name: "SearchDevicesFilternameString", # required
493
+ # name: "SearchDevicesFilterNameString", # required
444
494
  # values: ["String256"], # required
445
495
  # },
446
496
  # ],
@@ -499,7 +549,7 @@ module Aws::Braket
499
549
  #
500
550
  # {
501
551
  # name: "String64", # required
502
- # operator: "BETWEEN", # required, accepts BETWEEN, EQUAL, GT, GTE, LT, LTE
552
+ # operator: "LT", # required, accepts LT, LTE, EQUAL, GT, GTE, BETWEEN
503
553
  # values: ["String256"], # required
504
554
  # }
505
555
  #
@@ -532,7 +582,7 @@ module Aws::Braket
532
582
  # filters: [ # required
533
583
  # {
534
584
  # name: "String64", # required
535
- # operator: "BETWEEN", # required, accepts BETWEEN, EQUAL, GT, GTE, LT, LTE
585
+ # operator: "LT", # required, accepts LT, LTE, EQUAL, GT, GTE, BETWEEN
536
586
  # values: ["String256"], # required
537
587
  # },
538
588
  # ],
@@ -584,7 +634,7 @@ module Aws::Braket
584
634
  include Aws::Structure
585
635
  end
586
636
 
587
- # The request failed because a service quota is met.
637
+ # The request failed because a service quota is exceeded.
588
638
  #
589
639
  # @!attribute [rw] message
590
640
  # @return [String]
@@ -597,6 +647,38 @@ module Aws::Braket
597
647
  include Aws::Structure
598
648
  end
599
649
 
650
+ # @note When making an API call, you may pass TagResourceRequest
651
+ # data as a hash:
652
+ #
653
+ # {
654
+ # resource_arn: "String", # required
655
+ # tags: { # required
656
+ # "String" => "String",
657
+ # },
658
+ # }
659
+ #
660
+ # @!attribute [rw] resource_arn
661
+ # Specify the `resourceArn` of the resource to which a tag will be
662
+ # added.
663
+ # @return [String]
664
+ #
665
+ # @!attribute [rw] tags
666
+ # Specify the tags to add to the resource.
667
+ # @return [Hash<String,String>]
668
+ #
669
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResourceRequest AWS API Documentation
670
+ #
671
+ class TagResourceRequest < Struct.new(
672
+ :resource_arn,
673
+ :tags)
674
+ SENSITIVE = []
675
+ include Aws::Structure
676
+ end
677
+
678
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResourceResponse AWS API Documentation
679
+ #
680
+ class TagResourceResponse < Aws::EmptyStructure; end
681
+
600
682
  # The throttling rate limit is met.
601
683
  #
602
684
  # @!attribute [rw] message
@@ -610,6 +692,36 @@ module Aws::Braket
610
692
  include Aws::Structure
611
693
  end
612
694
 
695
+ # @note When making an API call, you may pass UntagResourceRequest
696
+ # data as a hash:
697
+ #
698
+ # {
699
+ # resource_arn: "String", # required
700
+ # tag_keys: ["String"], # required
701
+ # }
702
+ #
703
+ # @!attribute [rw] resource_arn
704
+ # Specify the `resourceArn` for the resource from which to remove the
705
+ # tags.
706
+ # @return [String]
707
+ #
708
+ # @!attribute [rw] tag_keys
709
+ # pecify the keys for the tags to remove from the resource.
710
+ # @return [Array<String>]
711
+ #
712
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResourceRequest AWS API Documentation
713
+ #
714
+ class UntagResourceRequest < Struct.new(
715
+ :resource_arn,
716
+ :tag_keys)
717
+ SENSITIVE = []
718
+ include Aws::Structure
719
+ end
720
+
721
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResourceResponse AWS API Documentation
722
+ #
723
+ class UntagResourceResponse < Aws::EmptyStructure; end
724
+
613
725
  # The input fails to satisfy the constraints specified by an AWS
614
726
  # service.
615
727
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-braket
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2020-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core