aws-sdk-braket 1.26.0 → 1.28.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: 8bc3aa718f51f98078d738e4411d296e036dfca3ed2175c35240a9c831f7de6c
4
- data.tar.gz: 579af6c66575db0d01bfbd675ac4426a6967a2b44a7aedeb0cace10675f1487f
3
+ metadata.gz: 2fe63333034a116ba9b502a7aa1ecc6d5f4789896eef3dd5d4fc970e1b2a87ec
4
+ data.tar.gz: be3d92afb4b9e1c1e2c197744976956abf820f4aa6e3cb14f866cc65480a5196
5
5
  SHA512:
6
- metadata.gz: c9b38644d3f277dc1e28bafcd153993f93cd268c0361fa98ae8b7f25696402c4b7a1d153190b7abd6110e2b10f8f765b76959a0b38ca1aa4de196ecb6c167238
7
- data.tar.gz: 44ed43fce4d88552255d8dd51d7e9cbaf19896633f7b25efd3a41d4f21a44a37b1e927b3ab8b9ac215f5172ba07dce8a24eea4647521a501e0d2320dc7c3c52f
6
+ metadata.gz: 37a505b22064e2050d0c2e10fb9aa62ff0a0b24fe7287747bce3c2d4f1b1e5b403288520a58b6b01ea8cd093c0edcf42da14a1c6c9c87057aeb2126a0a9c92a3
7
+ data.tar.gz: 6c75fcf6767e6dd753d103d83315601ee8ade1c0ed1366d4cf600018ca7148d0e7d223966c80e3cc9acc7a9779912010cf8c585df46e21da1334a5ac92596817
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.28.0 (2023-09-22)
5
+ ------------------
6
+
7
+ * Feature - This release adds support to view the device queue depth (the number of queued quantum tasks and hybrid jobs on a device) and queue position for a quantum task and hybrid job.
8
+
9
+ 1.27.0 (2023-09-19)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.26.0 (2023-07-11)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.26.0
1
+ 1.28.0
@@ -678,6 +678,7 @@ module Aws::Braket
678
678
  # * {Types::GetDeviceResponse#device_arn #device_arn} => String
679
679
  # * {Types::GetDeviceResponse#device_capabilities #device_capabilities} => String
680
680
  # * {Types::GetDeviceResponse#device_name #device_name} => String
681
+ # * {Types::GetDeviceResponse#device_queue_info #device_queue_info} => Array<Types::DeviceQueueInfo>
681
682
  # * {Types::GetDeviceResponse#device_status #device_status} => String
682
683
  # * {Types::GetDeviceResponse#device_type #device_type} => String
683
684
  # * {Types::GetDeviceResponse#provider_name #provider_name} => String
@@ -693,6 +694,10 @@ module Aws::Braket
693
694
  # resp.device_arn #=> String
694
695
  # resp.device_capabilities #=> String
695
696
  # resp.device_name #=> String
697
+ # resp.device_queue_info #=> Array
698
+ # resp.device_queue_info[0].queue #=> String, one of "QUANTUM_TASKS_QUEUE", "JOBS_QUEUE"
699
+ # resp.device_queue_info[0].queue_priority #=> String, one of "Normal", "Priority"
700
+ # resp.device_queue_info[0].queue_size #=> String
696
701
  # resp.device_status #=> String, one of "ONLINE", "OFFLINE", "RETIRED"
697
702
  # resp.device_type #=> String, one of "QPU", "SIMULATOR"
698
703
  # resp.provider_name #=> String
@@ -708,6 +713,9 @@ module Aws::Braket
708
713
 
709
714
  # Retrieves the specified Amazon Braket job.
710
715
  #
716
+ # @option params [Array<String>] :additional_attribute_names
717
+ # A list of attributes to return information for.
718
+ #
711
719
  # @option params [required, String] :job_arn
712
720
  # The ARN of the job to retrieve.
713
721
  #
@@ -727,6 +735,7 @@ module Aws::Braket
727
735
  # * {Types::GetJobResponse#job_arn #job_arn} => String
728
736
  # * {Types::GetJobResponse#job_name #job_name} => String
729
737
  # * {Types::GetJobResponse#output_data_config #output_data_config} => Types::JobOutputDataConfig
738
+ # * {Types::GetJobResponse#queue_info #queue_info} => Types::HybridJobQueueInfo
730
739
  # * {Types::GetJobResponse#role_arn #role_arn} => String
731
740
  # * {Types::GetJobResponse#started_at #started_at} => Time
732
741
  # * {Types::GetJobResponse#status #status} => String
@@ -736,6 +745,7 @@ module Aws::Braket
736
745
  # @example Request syntax with placeholder values
737
746
  #
738
747
  # resp = client.get_job({
748
+ # additional_attribute_names: ["QueueInfo"], # accepts QueueInfo
739
749
  # job_arn: "JobArn", # required
740
750
  # })
741
751
  #
@@ -769,6 +779,9 @@ module Aws::Braket
769
779
  # resp.job_name #=> String
770
780
  # resp.output_data_config.kms_key_id #=> String
771
781
  # resp.output_data_config.s3_path #=> String
782
+ # resp.queue_info.message #=> String
783
+ # resp.queue_info.position #=> String
784
+ # resp.queue_info.queue #=> String, one of "QUANTUM_TASKS_QUEUE", "JOBS_QUEUE"
772
785
  # resp.role_arn #=> String
773
786
  # resp.started_at #=> Time
774
787
  # resp.status #=> String, one of "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
@@ -787,6 +800,9 @@ module Aws::Braket
787
800
 
788
801
  # Retrieves the specified quantum task.
789
802
  #
803
+ # @option params [Array<String>] :additional_attribute_names
804
+ # A list of attributes to return information for.
805
+ #
790
806
  # @option params [required, String] :quantum_task_arn
791
807
  # the ARN of the task to retrieve.
792
808
  #
@@ -801,6 +817,7 @@ module Aws::Braket
801
817
  # * {Types::GetQuantumTaskResponse#output_s3_bucket #output_s3_bucket} => String
802
818
  # * {Types::GetQuantumTaskResponse#output_s3_directory #output_s3_directory} => String
803
819
  # * {Types::GetQuantumTaskResponse#quantum_task_arn #quantum_task_arn} => String
820
+ # * {Types::GetQuantumTaskResponse#queue_info #queue_info} => Types::QuantumTaskQueueInfo
804
821
  # * {Types::GetQuantumTaskResponse#shots #shots} => Integer
805
822
  # * {Types::GetQuantumTaskResponse#status #status} => String
806
823
  # * {Types::GetQuantumTaskResponse#tags #tags} => Hash&lt;String,String&gt;
@@ -808,6 +825,7 @@ module Aws::Braket
808
825
  # @example Request syntax with placeholder values
809
826
  #
810
827
  # resp = client.get_quantum_task({
828
+ # additional_attribute_names: ["QueueInfo"], # accepts QueueInfo
811
829
  # quantum_task_arn: "QuantumTaskArn", # required
812
830
  # })
813
831
  #
@@ -822,6 +840,10 @@ module Aws::Braket
822
840
  # resp.output_s3_bucket #=> String
823
841
  # resp.output_s3_directory #=> String
824
842
  # resp.quantum_task_arn #=> String
843
+ # resp.queue_info.message #=> String
844
+ # resp.queue_info.position #=> String
845
+ # resp.queue_info.queue #=> String, one of "QUANTUM_TASKS_QUEUE", "JOBS_QUEUE"
846
+ # resp.queue_info.queue_priority #=> String, one of "Normal", "Priority"
825
847
  # resp.shots #=> Integer
826
848
  # resp.status #=> String, one of "CREATED", "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
827
849
  # resp.tags #=> Hash
@@ -1102,7 +1124,7 @@ module Aws::Braket
1102
1124
  params: params,
1103
1125
  config: config)
1104
1126
  context[:gem_name] = 'aws-sdk-braket'
1105
- context[:gem_version] = '1.26.0'
1127
+ context[:gem_version] = '1.28.0'
1106
1128
  Seahorse::Client::Request.new(handlers, context)
1107
1129
  end
1108
1130
 
@@ -37,6 +37,8 @@ module Aws::Braket
37
37
  DeviceArn = Shapes::StringShape.new(name: 'DeviceArn')
38
38
  DeviceConfig = Shapes::StructureShape.new(name: 'DeviceConfig')
39
39
  DeviceOfflineException = Shapes::StructureShape.new(name: 'DeviceOfflineException')
40
+ DeviceQueueInfo = Shapes::StructureShape.new(name: 'DeviceQueueInfo')
41
+ DeviceQueueInfoList = Shapes::ListShape.new(name: 'DeviceQueueInfoList')
40
42
  DeviceRetiredException = Shapes::StructureShape.new(name: 'DeviceRetiredException')
41
43
  DeviceStatus = Shapes::StringShape.new(name: 'DeviceStatus')
42
44
  DeviceSummary = Shapes::StructureShape.new(name: 'DeviceSummary')
@@ -49,6 +51,9 @@ module Aws::Braket
49
51
  GetJobResponseJobNameString = Shapes::StringShape.new(name: 'GetJobResponseJobNameString')
50
52
  GetQuantumTaskRequest = Shapes::StructureShape.new(name: 'GetQuantumTaskRequest')
51
53
  GetQuantumTaskResponse = Shapes::StructureShape.new(name: 'GetQuantumTaskResponse')
54
+ HybridJobAdditionalAttributeName = Shapes::StringShape.new(name: 'HybridJobAdditionalAttributeName')
55
+ HybridJobAdditionalAttributeNamesList = Shapes::ListShape.new(name: 'HybridJobAdditionalAttributeNamesList')
56
+ HybridJobQueueInfo = Shapes::StructureShape.new(name: 'HybridJobQueueInfo')
52
57
  HyperParameters = Shapes::MapShape.new(name: 'HyperParameters')
53
58
  HyperParametersValueString = Shapes::StringShape.new(name: 'HyperParametersValueString')
54
59
  InputConfigList = Shapes::ListShape.new(name: 'InputConfigList')
@@ -77,10 +82,15 @@ module Aws::Braket
77
82
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
78
83
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
79
84
  Long = Shapes::IntegerShape.new(name: 'Long')
85
+ QuantumTaskAdditionalAttributeName = Shapes::StringShape.new(name: 'QuantumTaskAdditionalAttributeName')
86
+ QuantumTaskAdditionalAttributeNamesList = Shapes::ListShape.new(name: 'QuantumTaskAdditionalAttributeNamesList')
80
87
  QuantumTaskArn = Shapes::StringShape.new(name: 'QuantumTaskArn')
88
+ QuantumTaskQueueInfo = Shapes::StructureShape.new(name: 'QuantumTaskQueueInfo')
81
89
  QuantumTaskStatus = Shapes::StringShape.new(name: 'QuantumTaskStatus')
82
90
  QuantumTaskSummary = Shapes::StructureShape.new(name: 'QuantumTaskSummary')
83
91
  QuantumTaskSummaryList = Shapes::ListShape.new(name: 'QuantumTaskSummaryList')
92
+ QueueName = Shapes::StringShape.new(name: 'QueueName')
93
+ QueuePriority = Shapes::StringShape.new(name: 'QueuePriority')
84
94
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
85
95
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
86
96
  S3DataSource = Shapes::StructureShape.new(name: 'S3DataSource')
@@ -195,6 +205,13 @@ module Aws::Braket
195
205
  DeviceOfflineException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
196
206
  DeviceOfflineException.struct_class = Types::DeviceOfflineException
197
207
 
208
+ DeviceQueueInfo.add_member(:queue, Shapes::ShapeRef.new(shape: QueueName, required: true, location_name: "queue"))
209
+ DeviceQueueInfo.add_member(:queue_priority, Shapes::ShapeRef.new(shape: QueuePriority, location_name: "queuePriority"))
210
+ DeviceQueueInfo.add_member(:queue_size, Shapes::ShapeRef.new(shape: String, required: true, location_name: "queueSize"))
211
+ DeviceQueueInfo.struct_class = Types::DeviceQueueInfo
212
+
213
+ DeviceQueueInfoList.member = Shapes::ShapeRef.new(shape: DeviceQueueInfo)
214
+
198
215
  DeviceRetiredException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
199
216
  DeviceRetiredException.struct_class = Types::DeviceRetiredException
200
217
 
@@ -213,11 +230,13 @@ module Aws::Braket
213
230
  GetDeviceResponse.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
214
231
  GetDeviceResponse.add_member(:device_capabilities, Shapes::ShapeRef.new(shape: JsonValue, required: true, location_name: "deviceCapabilities", metadata: {"jsonvalue"=>true}))
215
232
  GetDeviceResponse.add_member(:device_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "deviceName"))
233
+ GetDeviceResponse.add_member(:device_queue_info, Shapes::ShapeRef.new(shape: DeviceQueueInfoList, location_name: "deviceQueueInfo"))
216
234
  GetDeviceResponse.add_member(:device_status, Shapes::ShapeRef.new(shape: DeviceStatus, required: true, location_name: "deviceStatus"))
217
235
  GetDeviceResponse.add_member(:device_type, Shapes::ShapeRef.new(shape: DeviceType, required: true, location_name: "deviceType"))
218
236
  GetDeviceResponse.add_member(:provider_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "providerName"))
219
237
  GetDeviceResponse.struct_class = Types::GetDeviceResponse
220
238
 
239
+ GetJobRequest.add_member(:additional_attribute_names, Shapes::ShapeRef.new(shape: HybridJobAdditionalAttributeNamesList, location: "querystring", location_name: "additionalAttributeNames"))
221
240
  GetJobRequest.add_member(:job_arn, Shapes::ShapeRef.new(shape: JobArn, required: true, location: "uri", location_name: "jobArn"))
222
241
  GetJobRequest.struct_class = Types::GetJobRequest
223
242
 
@@ -235,6 +254,7 @@ module Aws::Braket
235
254
  GetJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: JobArn, required: true, location_name: "jobArn"))
236
255
  GetJobResponse.add_member(:job_name, Shapes::ShapeRef.new(shape: GetJobResponseJobNameString, required: true, location_name: "jobName"))
237
256
  GetJobResponse.add_member(:output_data_config, Shapes::ShapeRef.new(shape: JobOutputDataConfig, required: true, location_name: "outputDataConfig"))
257
+ GetJobResponse.add_member(:queue_info, Shapes::ShapeRef.new(shape: HybridJobQueueInfo, location_name: "queueInfo"))
238
258
  GetJobResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
239
259
  GetJobResponse.add_member(:started_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "startedAt"))
240
260
  GetJobResponse.add_member(:status, Shapes::ShapeRef.new(shape: JobPrimaryStatus, required: true, location_name: "status"))
@@ -242,6 +262,7 @@ module Aws::Braket
242
262
  GetJobResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
243
263
  GetJobResponse.struct_class = Types::GetJobResponse
244
264
 
265
+ GetQuantumTaskRequest.add_member(:additional_attribute_names, Shapes::ShapeRef.new(shape: QuantumTaskAdditionalAttributeNamesList, location: "querystring", location_name: "additionalAttributeNames"))
245
266
  GetQuantumTaskRequest.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location: "uri", location_name: "quantumTaskArn"))
246
267
  GetQuantumTaskRequest.struct_class = Types::GetQuantumTaskRequest
247
268
 
@@ -254,11 +275,19 @@ module Aws::Braket
254
275
  GetQuantumTaskResponse.add_member(:output_s3_bucket, Shapes::ShapeRef.new(shape: String, required: true, location_name: "outputS3Bucket"))
255
276
  GetQuantumTaskResponse.add_member(:output_s3_directory, Shapes::ShapeRef.new(shape: String, required: true, location_name: "outputS3Directory"))
256
277
  GetQuantumTaskResponse.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
278
+ GetQuantumTaskResponse.add_member(:queue_info, Shapes::ShapeRef.new(shape: QuantumTaskQueueInfo, location_name: "queueInfo"))
257
279
  GetQuantumTaskResponse.add_member(:shots, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "shots"))
258
280
  GetQuantumTaskResponse.add_member(:status, Shapes::ShapeRef.new(shape: QuantumTaskStatus, required: true, location_name: "status"))
259
281
  GetQuantumTaskResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
260
282
  GetQuantumTaskResponse.struct_class = Types::GetQuantumTaskResponse
261
283
 
284
+ HybridJobAdditionalAttributeNamesList.member = Shapes::ShapeRef.new(shape: HybridJobAdditionalAttributeName)
285
+
286
+ HybridJobQueueInfo.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
287
+ HybridJobQueueInfo.add_member(:position, Shapes::ShapeRef.new(shape: String, required: true, location_name: "position"))
288
+ HybridJobQueueInfo.add_member(:queue, Shapes::ShapeRef.new(shape: QueueName, required: true, location_name: "queue"))
289
+ HybridJobQueueInfo.struct_class = Types::HybridJobQueueInfo
290
+
262
291
  HyperParameters.key = Shapes::ShapeRef.new(shape: String256)
263
292
  HyperParameters.value = Shapes::ShapeRef.new(shape: HyperParametersValueString)
264
293
 
@@ -313,6 +342,14 @@ module Aws::Braket
313
342
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
314
343
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
315
344
 
345
+ QuantumTaskAdditionalAttributeNamesList.member = Shapes::ShapeRef.new(shape: QuantumTaskAdditionalAttributeName)
346
+
347
+ QuantumTaskQueueInfo.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
348
+ QuantumTaskQueueInfo.add_member(:position, Shapes::ShapeRef.new(shape: String, required: true, location_name: "position"))
349
+ QuantumTaskQueueInfo.add_member(:queue, Shapes::ShapeRef.new(shape: QueueName, required: true, location_name: "queue"))
350
+ QuantumTaskQueueInfo.add_member(:queue_priority, Shapes::ShapeRef.new(shape: QueuePriority, location_name: "queuePriority"))
351
+ QuantumTaskQueueInfo.struct_class = Types::QuantumTaskQueueInfo
352
+
316
353
  QuantumTaskSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createdAt"))
317
354
  QuantumTaskSummary.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
318
355
  QuantumTaskSummary.add_member(:ended_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "endedAt"))
@@ -14,36 +14,39 @@ module Aws::Braket
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://braket-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://braket-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://braket.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://braket-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
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"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://braket-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://braket.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://braket.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://braket.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -348,6 +348,31 @@ module Aws::Braket
348
348
  include Aws::Structure
349
349
  end
350
350
 
351
+ # Information about tasks and jobs queued on a device.
352
+ #
353
+ # @!attribute [rw] queue
354
+ # The name of the queue.
355
+ # @return [String]
356
+ #
357
+ # @!attribute [rw] queue_priority
358
+ # Optional. Specifies the priority of the queue. Tasks in a priority
359
+ # queue are processed before the tasks in a normal queue.
360
+ # @return [String]
361
+ #
362
+ # @!attribute [rw] queue_size
363
+ # The number of jobs or tasks in the queue for a given device.
364
+ # @return [String]
365
+ #
366
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/DeviceQueueInfo AWS API Documentation
367
+ #
368
+ class DeviceQueueInfo < Struct.new(
369
+ :queue,
370
+ :queue_priority,
371
+ :queue_size)
372
+ SENSITIVE = []
373
+ include Aws::Structure
374
+ end
375
+
351
376
  # The specified device has been retired.
352
377
  #
353
378
  # @!attribute [rw] message
@@ -419,6 +444,10 @@ module Aws::Braket
419
444
  # The name of the device.
420
445
  # @return [String]
421
446
  #
447
+ # @!attribute [rw] device_queue_info
448
+ # List of information about tasks and jobs queued on a device.
449
+ # @return [Array<Types::DeviceQueueInfo>]
450
+ #
422
451
  # @!attribute [rw] device_status
423
452
  # The status of the device.
424
453
  # @return [String]
@@ -437,6 +466,7 @@ module Aws::Braket
437
466
  :device_arn,
438
467
  :device_capabilities,
439
468
  :device_name,
469
+ :device_queue_info,
440
470
  :device_status,
441
471
  :device_type,
442
472
  :provider_name)
@@ -444,6 +474,10 @@ module Aws::Braket
444
474
  include Aws::Structure
445
475
  end
446
476
 
477
+ # @!attribute [rw] additional_attribute_names
478
+ # A list of attributes to return information for.
479
+ # @return [Array<String>]
480
+ #
447
481
  # @!attribute [rw] job_arn
448
482
  # The ARN of the job to retrieve.
449
483
  # @return [String]
@@ -451,6 +485,7 @@ module Aws::Braket
451
485
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJobRequest AWS API Documentation
452
486
  #
453
487
  class GetJobRequest < Struct.new(
488
+ :additional_attribute_names,
454
489
  :job_arn)
455
490
  SENSITIVE = []
456
491
  include Aws::Structure
@@ -524,6 +559,12 @@ module Aws::Braket
524
559
  # encryption key used to store them there.
525
560
  # @return [Types::JobOutputDataConfig]
526
561
  #
562
+ # @!attribute [rw] queue_info
563
+ # Queue information for the requested job. Only returned if
564
+ # `QueueInfo` is specified in the `additionalAttributeNames"` field in
565
+ # the `GetJob` API request.
566
+ # @return [Types::HybridJobQueueInfo]
567
+ #
527
568
  # @!attribute [rw] role_arn
528
569
  # The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can
529
570
  # assume to perform tasks on behalf of a user. It can access user
@@ -565,6 +606,7 @@ module Aws::Braket
565
606
  :job_arn,
566
607
  :job_name,
567
608
  :output_data_config,
609
+ :queue_info,
568
610
  :role_arn,
569
611
  :started_at,
570
612
  :status,
@@ -574,6 +616,10 @@ module Aws::Braket
574
616
  include Aws::Structure
575
617
  end
576
618
 
619
+ # @!attribute [rw] additional_attribute_names
620
+ # A list of attributes to return information for.
621
+ # @return [Array<String>]
622
+ #
577
623
  # @!attribute [rw] quantum_task_arn
578
624
  # the ARN of the task to retrieve.
579
625
  # @return [String]
@@ -581,6 +627,7 @@ module Aws::Braket
581
627
  # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTaskRequest AWS API Documentation
582
628
  #
583
629
  class GetQuantumTaskRequest < Struct.new(
630
+ :additional_attribute_names,
584
631
  :quantum_task_arn)
585
632
  SENSITIVE = []
586
633
  include Aws::Structure
@@ -622,6 +669,12 @@ module Aws::Braket
622
669
  # The ARN of the task.
623
670
  # @return [String]
624
671
  #
672
+ # @!attribute [rw] queue_info
673
+ # Queue information for the requested quantum task. Only returned if
674
+ # `QueueInfo` is specified in the `additionalAttributeNames"` field in
675
+ # the `GetQuantumTask` API request.
676
+ # @return [Types::QuantumTaskQueueInfo]
677
+ #
625
678
  # @!attribute [rw] shots
626
679
  # The number of shots used in the task.
627
680
  # @return [Integer]
@@ -646,6 +699,7 @@ module Aws::Braket
646
699
  :output_s3_bucket,
647
700
  :output_s3_directory,
648
701
  :quantum_task_arn,
702
+ :queue_info,
649
703
  :shots,
650
704
  :status,
651
705
  :tags)
@@ -653,6 +707,32 @@ module Aws::Braket
653
707
  include Aws::Structure
654
708
  end
655
709
 
710
+ # Information about the queue for a specified job.
711
+ #
712
+ # @!attribute [rw] message
713
+ # Optional. Provides more information about the queue position. For
714
+ # example, if the job is complete and no longer in the queue, the
715
+ # message field contains that information.
716
+ # @return [String]
717
+ #
718
+ # @!attribute [rw] position
719
+ # Current position of the job in the jobs queue.
720
+ # @return [String]
721
+ #
722
+ # @!attribute [rw] queue
723
+ # The name of the queue.
724
+ # @return [String]
725
+ #
726
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/HybridJobQueueInfo AWS API Documentation
727
+ #
728
+ class HybridJobQueueInfo < Struct.new(
729
+ :message,
730
+ :position,
731
+ :queue)
732
+ SENSITIVE = []
733
+ include Aws::Structure
734
+ end
735
+
656
736
  # A list of parameters that specify the input channels, type of input
657
737
  # data, and where it is located.
658
738
  #
@@ -880,6 +960,38 @@ module Aws::Braket
880
960
  include Aws::Structure
881
961
  end
882
962
 
963
+ # Information about the queue for the specified quantum task.
964
+ #
965
+ # @!attribute [rw] message
966
+ # Optional. Provides more information about the queue position. For
967
+ # example, if the task is complete and no longer in the queue, the
968
+ # message field contains that information.
969
+ # @return [String]
970
+ #
971
+ # @!attribute [rw] position
972
+ # Current position of the task in the quantum tasks queue.
973
+ # @return [String]
974
+ #
975
+ # @!attribute [rw] queue
976
+ # The name of the queue.
977
+ # @return [String]
978
+ #
979
+ # @!attribute [rw] queue_priority
980
+ # Optional. Specifies the priority of the queue. Quantum tasks in a
981
+ # priority queue are processed before the tasks in a normal queue.
982
+ # @return [String]
983
+ #
984
+ # @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/QuantumTaskQueueInfo AWS API Documentation
985
+ #
986
+ class QuantumTaskQueueInfo < Struct.new(
987
+ :message,
988
+ :position,
989
+ :queue,
990
+ :queue_priority)
991
+ SENSITIVE = []
992
+ include Aws::Structure
993
+ end
994
+
883
995
  # Includes information about a quantum task.
884
996
  #
885
997
  # @!attribute [rw] created_at
@@ -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.26.0'
55
+ GEM_VERSION = '1.28.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.26.0
4
+ version: 1.28.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-07-11 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core