aws-sdk-braket 1.31.0 → 1.32.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: d73a60df8a3e1f5a9f8892046c3a76de83c1101880b3f36a91d4a307b5784b54
4
- data.tar.gz: ada971d07efc21ec87d29fa68a9880084dec874d2a4663231baaff54959f3de2
3
+ metadata.gz: 4fe873520623a0fedf9e3a3a5be87e217083e2bc7295898fc1f7722b182b5af8
4
+ data.tar.gz: a962c9604b25a81ab46cb711ff7e411ed552c3ce85b13664ceb9cf6f8c4f21da
5
5
  SHA512:
6
- metadata.gz: bcf9a171f6398422b87d81a9c42fb6373d0b276151ac7328dc6d8bd0c2d347dc6a612dc77a205e93a0875b4430954f8987be045d50ef7026f5fcd7726d14d77e
7
- data.tar.gz: d1df0e67898ef2158cb522ca7684cbb67f66fa61e447cd22d6d758e57b43772d21fe85a74725f70c9a9eb803d2ad74996a4a0eb68cdd24a52e0fde49fe771470
6
+ metadata.gz: 51f0f51a3cdb5c320f60f1d88c84e1e3bcb15fbd5e1b137fb09471b22386da1b66d5d3e6f9c3d06c6a72b6837e38aff01fefa95c35b31774cb67b28812e8385e
7
+ data.tar.gz: 4f6b7e9b3ed463a0e79206db288b7e44e87fe8003887509fc3a89a09d2a0e2c7c891279e9c837f754da14080a481b7e93beb65d70ee75cb38a4d0a90a4f7922d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.32.0 (2023-12-04)
5
+ ------------------
6
+
7
+ * Feature - This release enhances service support to create quantum tasks and hybrid jobs associated with Braket Direct Reservations.
8
+
4
9
  1.31.0 (2023-11-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.31.0
1
+ 1.32.0
@@ -462,6 +462,9 @@ module Aws::Braket
462
462
  # container image the job uses and information about the Python scripts
463
463
  # used for entry and training.
464
464
  #
465
+ # @option params [Array<Types::Association>] :associations
466
+ # The list of Amazon Braket resources associated with the hybrid job.
467
+ #
465
468
  # @option params [Types::JobCheckpointConfig] :checkpoint_config
466
469
  # Information about the output locations for job checkpoint data.
467
470
  #
@@ -527,6 +530,12 @@ module Aws::Braket
527
530
  # s3_uri: "S3Path", # required
528
531
  # },
529
532
  # },
533
+ # associations: [
534
+ # {
535
+ # arn: "BraketResourceArn", # required
536
+ # type: "RESERVATION_TIME_WINDOW_ARN", # required, accepts RESERVATION_TIME_WINDOW_ARN
537
+ # },
538
+ # ],
530
539
  # checkpoint_config: {
531
540
  # local_path: "String4096",
532
541
  # s3_uri: "S3Path", # required
@@ -590,6 +599,9 @@ module Aws::Braket
590
599
  # when the required value (Hash, Array, etc.) is provided according to
591
600
  # the description.**
592
601
  #
602
+ # @option params [Array<Types::Association>] :associations
603
+ # The list of Amazon Braket resources associated with the quantum task.
604
+ #
593
605
  # @option params [required, String] :client_token
594
606
  # The client token associated with the request.
595
607
  #
@@ -631,6 +643,12 @@ module Aws::Braket
631
643
  #
632
644
  # resp = client.create_quantum_task({
633
645
  # action: "JsonValue", # required
646
+ # associations: [
647
+ # {
648
+ # arn: "BraketResourceArn", # required
649
+ # type: "RESERVATION_TIME_WINDOW_ARN", # required, accepts RESERVATION_TIME_WINDOW_ARN
650
+ # },
651
+ # ],
634
652
  # client_token: "String64", # required
635
653
  # device_arn: "DeviceArn", # required
636
654
  # device_parameters: "CreateQuantumTaskRequestDeviceParametersString",
@@ -722,6 +740,7 @@ module Aws::Braket
722
740
  # @return [Types::GetJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
723
741
  #
724
742
  # * {Types::GetJobResponse#algorithm_specification #algorithm_specification} => Types::AlgorithmSpecification
743
+ # * {Types::GetJobResponse#associations #associations} => Array&lt;Types::Association&gt;
725
744
  # * {Types::GetJobResponse#billable_duration #billable_duration} => Integer
726
745
  # * {Types::GetJobResponse#checkpoint_config #checkpoint_config} => Types::JobCheckpointConfig
727
746
  # * {Types::GetJobResponse#created_at #created_at} => Time
@@ -755,6 +774,9 @@ module Aws::Braket
755
774
  # resp.algorithm_specification.script_mode_config.compression_type #=> String, one of "NONE", "GZIP"
756
775
  # resp.algorithm_specification.script_mode_config.entry_point #=> String
757
776
  # resp.algorithm_specification.script_mode_config.s3_uri #=> String
777
+ # resp.associations #=> Array
778
+ # resp.associations[0].arn #=> String
779
+ # resp.associations[0].type #=> String, one of "RESERVATION_TIME_WINDOW_ARN"
758
780
  # resp.billable_duration #=> Integer
759
781
  # resp.checkpoint_config.local_path #=> String
760
782
  # resp.checkpoint_config.s3_uri #=> String
@@ -804,10 +826,11 @@ module Aws::Braket
804
826
  # A list of attributes to return information for.
805
827
  #
806
828
  # @option params [required, String] :quantum_task_arn
807
- # the ARN of the task to retrieve.
829
+ # The ARN of the task to retrieve.
808
830
  #
809
831
  # @return [Types::GetQuantumTaskResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
810
832
  #
833
+ # * {Types::GetQuantumTaskResponse#associations #associations} => Array&lt;Types::Association&gt;
811
834
  # * {Types::GetQuantumTaskResponse#created_at #created_at} => Time
812
835
  # * {Types::GetQuantumTaskResponse#device_arn #device_arn} => String
813
836
  # * {Types::GetQuantumTaskResponse#device_parameters #device_parameters} => String
@@ -831,6 +854,9 @@ module Aws::Braket
831
854
  #
832
855
  # @example Response structure
833
856
  #
857
+ # resp.associations #=> Array
858
+ # resp.associations[0].arn #=> String
859
+ # resp.associations[0].type #=> String, one of "RESERVATION_TIME_WINDOW_ARN"
834
860
  # resp.created_at #=> Time
835
861
  # resp.device_arn #=> String
836
862
  # resp.device_parameters #=> String
@@ -1124,7 +1150,7 @@ module Aws::Braket
1124
1150
  params: params,
1125
1151
  config: config)
1126
1152
  context[:gem_name] = 'aws-sdk-braket'
1127
- context[:gem_version] = '1.31.0'
1153
+ context[:gem_version] = '1.32.0'
1128
1154
  Seahorse::Client::Request.new(handlers, context)
1129
1155
  end
1130
1156
 
@@ -15,6 +15,10 @@ module Aws::Braket
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
17
  AlgorithmSpecification = Shapes::StructureShape.new(name: 'AlgorithmSpecification')
18
+ Association = Shapes::StructureShape.new(name: 'Association')
19
+ AssociationType = Shapes::StringShape.new(name: 'AssociationType')
20
+ Associations = Shapes::ListShape.new(name: 'Associations')
21
+ BraketResourceArn = Shapes::StringShape.new(name: 'BraketResourceArn')
18
22
  CancelJobRequest = Shapes::StructureShape.new(name: 'CancelJobRequest')
19
23
  CancelJobResponse = Shapes::StructureShape.new(name: 'CancelJobResponse')
20
24
  CancelQuantumTaskRequest = Shapes::StructureShape.new(name: 'CancelQuantumTaskRequest')
@@ -24,10 +28,12 @@ module Aws::Braket
24
28
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
25
29
  ContainerImage = Shapes::StructureShape.new(name: 'ContainerImage')
26
30
  CreateJobRequest = Shapes::StructureShape.new(name: 'CreateJobRequest')
31
+ CreateJobRequestAssociationsList = Shapes::ListShape.new(name: 'CreateJobRequestAssociationsList')
27
32
  CreateJobRequestInputDataConfigList = Shapes::ListShape.new(name: 'CreateJobRequestInputDataConfigList')
28
33
  CreateJobRequestJobNameString = Shapes::StringShape.new(name: 'CreateJobRequestJobNameString')
29
34
  CreateJobResponse = Shapes::StructureShape.new(name: 'CreateJobResponse')
30
35
  CreateQuantumTaskRequest = Shapes::StructureShape.new(name: 'CreateQuantumTaskRequest')
36
+ CreateQuantumTaskRequestAssociationsList = Shapes::ListShape.new(name: 'CreateQuantumTaskRequestAssociationsList')
31
37
  CreateQuantumTaskRequestDeviceParametersString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestDeviceParametersString')
32
38
  CreateQuantumTaskRequestOutputS3BucketString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestOutputS3BucketString')
33
39
  CreateQuantumTaskRequestOutputS3KeyPrefixString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestOutputS3KeyPrefixString')
@@ -142,6 +148,12 @@ module Aws::Braket
142
148
  AlgorithmSpecification.add_member(:script_mode_config, Shapes::ShapeRef.new(shape: ScriptModeConfig, location_name: "scriptModeConfig"))
143
149
  AlgorithmSpecification.struct_class = Types::AlgorithmSpecification
144
150
 
151
+ Association.add_member(:arn, Shapes::ShapeRef.new(shape: BraketResourceArn, required: true, location_name: "arn"))
152
+ Association.add_member(:type, Shapes::ShapeRef.new(shape: AssociationType, required: true, location_name: "type"))
153
+ Association.struct_class = Types::Association
154
+
155
+ Associations.member = Shapes::ShapeRef.new(shape: Association)
156
+
145
157
  CancelJobRequest.add_member(:job_arn, Shapes::ShapeRef.new(shape: JobArn, required: true, location: "uri", location_name: "jobArn"))
146
158
  CancelJobRequest.struct_class = Types::CancelJobRequest
147
159
 
@@ -164,6 +176,7 @@ module Aws::Braket
164
176
  ContainerImage.struct_class = Types::ContainerImage
165
177
 
166
178
  CreateJobRequest.add_member(:algorithm_specification, Shapes::ShapeRef.new(shape: AlgorithmSpecification, required: true, location_name: "algorithmSpecification"))
179
+ CreateJobRequest.add_member(:associations, Shapes::ShapeRef.new(shape: CreateJobRequestAssociationsList, location_name: "associations"))
167
180
  CreateJobRequest.add_member(:checkpoint_config, Shapes::ShapeRef.new(shape: JobCheckpointConfig, location_name: "checkpointConfig"))
168
181
  CreateJobRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
169
182
  CreateJobRequest.add_member(:device_config, Shapes::ShapeRef.new(shape: DeviceConfig, required: true, location_name: "deviceConfig"))
@@ -177,12 +190,15 @@ module Aws::Braket
177
190
  CreateJobRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
178
191
  CreateJobRequest.struct_class = Types::CreateJobRequest
179
192
 
193
+ CreateJobRequestAssociationsList.member = Shapes::ShapeRef.new(shape: Association)
194
+
180
195
  CreateJobRequestInputDataConfigList.member = Shapes::ShapeRef.new(shape: InputFileConfig)
181
196
 
182
197
  CreateJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: JobArn, required: true, location_name: "jobArn"))
183
198
  CreateJobResponse.struct_class = Types::CreateJobResponse
184
199
 
185
200
  CreateQuantumTaskRequest.add_member(:action, Shapes::ShapeRef.new(shape: JsonValue, required: true, location_name: "action", metadata: {"jsonvalue"=>true}))
201
+ CreateQuantumTaskRequest.add_member(:associations, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestAssociationsList, location_name: "associations"))
186
202
  CreateQuantumTaskRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
187
203
  CreateQuantumTaskRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
188
204
  CreateQuantumTaskRequest.add_member(:device_parameters, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestDeviceParametersString, location_name: "deviceParameters", metadata: {"jsonvalue"=>true}))
@@ -193,6 +209,8 @@ module Aws::Braket
193
209
  CreateQuantumTaskRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
194
210
  CreateQuantumTaskRequest.struct_class = Types::CreateQuantumTaskRequest
195
211
 
212
+ CreateQuantumTaskRequestAssociationsList.member = Shapes::ShapeRef.new(shape: Association)
213
+
196
214
  CreateQuantumTaskResponse.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
197
215
  CreateQuantumTaskResponse.struct_class = Types::CreateQuantumTaskResponse
198
216
 
@@ -241,6 +259,7 @@ module Aws::Braket
241
259
  GetJobRequest.struct_class = Types::GetJobRequest
242
260
 
243
261
  GetJobResponse.add_member(:algorithm_specification, Shapes::ShapeRef.new(shape: AlgorithmSpecification, required: true, location_name: "algorithmSpecification"))
262
+ GetJobResponse.add_member(:associations, Shapes::ShapeRef.new(shape: Associations, location_name: "associations"))
244
263
  GetJobResponse.add_member(:billable_duration, Shapes::ShapeRef.new(shape: Integer, location_name: "billableDuration"))
245
264
  GetJobResponse.add_member(:checkpoint_config, Shapes::ShapeRef.new(shape: JobCheckpointConfig, location_name: "checkpointConfig"))
246
265
  GetJobResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createdAt"))
@@ -266,6 +285,7 @@ module Aws::Braket
266
285
  GetQuantumTaskRequest.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location: "uri", location_name: "quantumTaskArn"))
267
286
  GetQuantumTaskRequest.struct_class = Types::GetQuantumTaskRequest
268
287
 
288
+ GetQuantumTaskResponse.add_member(:associations, Shapes::ShapeRef.new(shape: Associations, location_name: "associations"))
269
289
  GetQuantumTaskResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createdAt"))
270
290
  GetQuantumTaskResponse.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
271
291
  GetQuantumTaskResponse.add_member(:device_parameters, Shapes::ShapeRef.new(shape: JsonValue, required: true, location_name: "deviceParameters", metadata: {"jsonvalue"=>true}))
@@ -32,7 +32,7 @@ module Aws::Braket
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://braket-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -45,6 +45,25 @@ module Aws::Braket
45
45
  include Aws::Structure
46
46
  end
47
47
 
48
+ # The Amazon Braket resource and the association type.
49
+ #
50
+ # @!attribute [rw] arn
51
+ # The Amazon Braket resource arn.
52
+ # @return [String]
53
+ #
54
+ # @!attribute [rw] type
55
+ # The association type for the specified Amazon Braket resource arn.
56
+ # @return [String]
57
+ #
58
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/Association AWS API Documentation
59
+ #
60
+ class Association < Struct.new(
61
+ :arn,
62
+ :type)
63
+ SENSITIVE = []
64
+ include Aws::Structure
65
+ end
66
+
48
67
  # @!attribute [rw] job_arn
49
68
  # The ARN of the Amazon Braket job to cancel.
50
69
  # @return [String]
@@ -144,6 +163,10 @@ module Aws::Braket
144
163
  # scripts used for entry and training.
145
164
  # @return [Types::AlgorithmSpecification]
146
165
  #
166
+ # @!attribute [rw] associations
167
+ # The list of Amazon Braket resources associated with the hybrid job.
168
+ # @return [Array<Types::Association>]
169
+ #
147
170
  # @!attribute [rw] checkpoint_config
148
171
  # Information about the output locations for job checkpoint data.
149
172
  # @return [Types::JobCheckpointConfig]
@@ -207,6 +230,7 @@ module Aws::Braket
207
230
  #
208
231
  class CreateJobRequest < Struct.new(
209
232
  :algorithm_specification,
233
+ :associations,
210
234
  :checkpoint_config,
211
235
  :client_token,
212
236
  :device_config,
@@ -238,6 +262,11 @@ module Aws::Braket
238
262
  # The action associated with the task.
239
263
  # @return [String]
240
264
  #
265
+ # @!attribute [rw] associations
266
+ # The list of Amazon Braket resources associated with the quantum
267
+ # task.
268
+ # @return [Array<Types::Association>]
269
+ #
241
270
  # @!attribute [rw] client_token
242
271
  # The client token associated with the request.
243
272
  #
@@ -279,6 +308,7 @@ module Aws::Braket
279
308
  #
280
309
  class CreateQuantumTaskRequest < Struct.new(
281
310
  :action,
311
+ :associations,
282
312
  :client_token,
283
313
  :device_arn,
284
314
  :device_parameters,
@@ -498,6 +528,10 @@ module Aws::Braket
498
528
  # the job.
499
529
  # @return [Types::AlgorithmSpecification]
500
530
  #
531
+ # @!attribute [rw] associations
532
+ # The list of Amazon Braket resources associated with the hybrid job.
533
+ # @return [Array<Types::Association>]
534
+ #
501
535
  # @!attribute [rw] billable_duration
502
536
  # The billable time the Amazon Braket job used to complete.
503
537
  # @return [Integer]
@@ -593,6 +627,7 @@ module Aws::Braket
593
627
  #
594
628
  class GetJobResponse < Struct.new(
595
629
  :algorithm_specification,
630
+ :associations,
596
631
  :billable_duration,
597
632
  :checkpoint_config,
598
633
  :created_at,
@@ -621,7 +656,7 @@ module Aws::Braket
621
656
  # @return [Array<String>]
622
657
  #
623
658
  # @!attribute [rw] quantum_task_arn
624
- # the ARN of the task to retrieve.
659
+ # The ARN of the task to retrieve.
625
660
  # @return [String]
626
661
  #
627
662
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTaskRequest AWS API Documentation
@@ -633,6 +668,11 @@ module Aws::Braket
633
668
  include Aws::Structure
634
669
  end
635
670
 
671
+ # @!attribute [rw] associations
672
+ # The list of Amazon Braket resources associated with the quantum
673
+ # task.
674
+ # @return [Array<Types::Association>]
675
+ #
636
676
  # @!attribute [rw] created_at
637
677
  # The time at which the task was created.
638
678
  # @return [Time]
@@ -690,6 +730,7 @@ module Aws::Braket
690
730
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTaskResponse AWS API Documentation
691
731
  #
692
732
  class GetQuantumTaskResponse < Struct.new(
733
+ :associations,
693
734
  :created_at,
694
735
  :device_arn,
695
736
  :device_parameters,
@@ -834,7 +875,7 @@ module Aws::Braket
834
875
  # @return [String]
835
876
  #
836
877
  # @!attribute [rw] time_of_event
837
- # TThe type of event that occurred related to the Amazon Braket job.
878
+ # The type of event that occurred related to the Amazon Braket job.
838
879
  # @return [Time]
839
880
  #
840
881
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/JobEventDetails AWS API Documentation
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-braket/customizations'
52
52
  # @!group service
53
53
  module Aws::Braket
54
54
 
55
- GEM_VERSION = '1.31.0'
55
+ GEM_VERSION = '1.32.0'
56
56
 
57
57
  end
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.31.0
4
+ version: 1.32.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: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core