Braket 2019-09-01
- Client: Aws\Braket\BraketClient
- Service ID: braket
- Version: 2019-09-01
This page describes the parameters and results for the operations of the Braket (2019-09-01), and shows how to use the Aws\Braket\BraketClient object to call the described operations. This documentation is specific to the 2019-09-01 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- CancelJob ( array $params = [] )
- Cancels an Amazon Braket job.
- CancelQuantumTask ( array $params = [] )
- Cancels the specified task.
- CreateJob ( array $params = [] )
- Creates an Amazon Braket job.
- CreateQuantumTask ( array $params = [] )
- Creates a quantum task.
- GetDevice ( array $params = [] )
- Retrieves the devices available in Amazon Braket.
- GetJob ( array $params = [] )
- Retrieves the specified Amazon Braket job.
- GetQuantumTask ( array $params = [] )
- Retrieves the specified quantum task.
- ListTagsForResource ( array $params = [] )
- Shows the tags associated with this resource.
- SearchDevices ( array $params = [] )
- Searches for devices using the specified filters.
- SearchJobs ( array $params = [] )
- Searches for Amazon Braket jobs that match the specified filter values.
- SearchQuantumTasks ( array $params = [] )
- Searches for tasks that match the specified filter values.
- TagResource ( array $params = [] )
- Add a tag to the specified resource.
- UntagResource ( array $params = [] )
- Remove tags from a resource.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
Operations
CancelJob
$result = $client->cancelJob
([/* ... */]); $promise = $client->cancelJobAsync
([/* ... */]);
Cancels an Amazon Braket job.
Parameter Syntax
$result = $client->cancelJob([ 'jobArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- jobArn
-
- Required: Yes
- Type: string
The ARN of the Amazon Braket job to cancel.
Result Syntax
[ 'cancellationStatus' => 'CANCELLING|CANCELLED', 'jobArn' => '<string>', ]
Result Details
Members
- cancellationStatus
-
- Required: Yes
- Type: string
The status of the job cancellation request.
- jobArn
-
- Required: Yes
- Type: string
The ARN of the Amazon Braket job.
Errors
- ResourceNotFoundException:
The specified resource was not found.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ConflictException:
An error occurred due to a conflict.
- ThrottlingException:
The throttling rate limit is met.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
CancelQuantumTask
$result = $client->cancelQuantumTask
([/* ... */]); $promise = $client->cancelQuantumTaskAsync
([/* ... */]);
Cancels the specified task.
Parameter Syntax
$result = $client->cancelQuantumTask([ 'clientToken' => '<string>', // REQUIRED 'quantumTaskArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Required: Yes
- Type: string
The client token associated with the request.
- quantumTaskArn
-
- Required: Yes
- Type: string
The ARN of the task to cancel.
Result Syntax
[ 'cancellationStatus' => 'CANCELLING|CANCELLED', 'quantumTaskArn' => '<string>', ]
Result Details
Members
- cancellationStatus
-
- Required: Yes
- Type: string
The status of the cancellation request.
- quantumTaskArn
-
- Required: Yes
- Type: string
The ARN of the task.
Errors
- ResourceNotFoundException:
The specified resource was not found.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ConflictException:
An error occurred due to a conflict.
- ThrottlingException:
The throttling rate limit is met.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
CreateJob
$result = $client->createJob
([/* ... */]); $promise = $client->createJobAsync
([/* ... */]);
Creates an Amazon Braket job.
Parameter Syntax
$result = $client->createJob([ 'algorithmSpecification' => [ // REQUIRED 'containerImage' => [ 'uri' => '<string>', // REQUIRED ], 'scriptModeConfig' => [ 'compressionType' => 'NONE|GZIP', 'entryPoint' => '<string>', // REQUIRED 's3Uri' => '<string>', // REQUIRED ], ], 'associations' => [ [ 'arn' => '<string>', // REQUIRED 'type' => 'RESERVATION_TIME_WINDOW_ARN', // REQUIRED ], // ... ], 'checkpointConfig' => [ 'localPath' => '<string>', 's3Uri' => '<string>', // REQUIRED ], 'clientToken' => '<string>', // REQUIRED 'deviceConfig' => [ // REQUIRED 'device' => '<string>', // REQUIRED ], 'hyperParameters' => ['<string>', ...], 'inputDataConfig' => [ [ 'channelName' => '<string>', // REQUIRED 'contentType' => '<string>', 'dataSource' => [ // REQUIRED 's3DataSource' => [ // REQUIRED 's3Uri' => '<string>', // REQUIRED ], ], ], // ... ], 'instanceConfig' => [ // REQUIRED 'instanceCount' => <integer>, 'instanceType' => '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', // REQUIRED 'volumeSizeInGb' => <integer>, // REQUIRED ], 'jobName' => '<string>', // REQUIRED 'outputDataConfig' => [ // REQUIRED 'kmsKeyId' => '<string>', 's3Path' => '<string>', // REQUIRED ], 'roleArn' => '<string>', // REQUIRED 'stoppingCondition' => [ 'maxRuntimeInSeconds' => <integer>, ], 'tags' => ['<string>', ...], ]);
Parameter Details
Members
- algorithmSpecification
-
- Required: Yes
- Type: AlgorithmSpecification structure
Definition of the Amazon Braket job to be created. Specifies the container image the job uses and information about the Python scripts used for entry and training.
- associations
-
- Type: Array of Association structures
The list of Amazon Braket resources associated with the hybrid job.
- checkpointConfig
-
- Type: JobCheckpointConfig structure
Information about the output locations for job checkpoint data.
- clientToken
-
- Required: Yes
- Type: string
A unique token that guarantees that the call to this API is idempotent.
- deviceConfig
-
- Required: Yes
- Type: DeviceConfig structure
The quantum processing unit (QPU) or simulator used to create an Amazon Braket job.
- hyperParameters
-
- Type: Associative array of custom strings keys (String256) to strings
Algorithm-specific parameters used by an Amazon Braket job that influence the quality of the training job. The values are set with a string of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of th hyperparameter.
- inputDataConfig
-
- Type: Array of InputFileConfig structures
A list of parameters that specify the name and type of input data and where it is located.
- instanceConfig
-
- Required: Yes
- Type: InstanceConfig structure
Configuration of the resource instances to use while running the hybrid job on Amazon Braket.
- jobName
-
- Required: Yes
- Type: string
The name of the Amazon Braket job.
- outputDataConfig
-
- Required: Yes
- Type: JobOutputDataConfig structure
The path to the S3 location where you want to store job artifacts and the encryption key used to store them.
- roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output resources to the users' s3 buckets.
- stoppingCondition
-
- Type: JobStoppingCondition structure
The user-defined criteria that specifies when a job stops running.
- tags
-
- Type: Associative array of custom strings keys (String) to strings
A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.
Result Syntax
[ 'jobArn' => '<string>', ]
Result Details
Members
- jobArn
-
- Required: Yes
- Type: string
The ARN of the Amazon Braket job created.
Errors
- ConflictException:
An error occurred due to a conflict.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ThrottlingException:
The throttling rate limit is met.
- DeviceOfflineException:
The specified device is currently offline.
- DeviceRetiredException:
The specified device has been retired.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException:
The request failed because a service quota is exceeded.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
CreateQuantumTask
$result = $client->createQuantumTask
([/* ... */]); $promise = $client->createQuantumTaskAsync
([/* ... */]);
Creates a quantum task.
Parameter Syntax
$result = $client->createQuantumTask([ 'action' => '<string>', // REQUIRED 'associations' => [ [ 'arn' => '<string>', // REQUIRED 'type' => 'RESERVATION_TIME_WINDOW_ARN', // REQUIRED ], // ... ], 'clientToken' => '<string>', // REQUIRED 'deviceArn' => '<string>', // REQUIRED 'deviceParameters' => '<string>', 'jobToken' => '<string>', 'outputS3Bucket' => '<string>', // REQUIRED 'outputS3KeyPrefix' => '<string>', // REQUIRED 'shots' => <integer>, // REQUIRED 'tags' => ['<string>', ...], ]);
Parameter Details
Members
- action
-
- Required: Yes
- Type: string (string|number|array|map or anything parsable by json_encode)
The action associated with the task.
- associations
-
- Type: Array of Association structures
The list of Amazon Braket resources associated with the quantum task.
- clientToken
-
- Required: Yes
- Type: string
The client token associated with the request.
- deviceArn
-
- Required: Yes
- Type: string
The ARN of the device to run the task on.
- deviceParameters
-
- Type: string (string|number|array|map or anything parsable by json_encode)
The parameters for the device to run the task on.
- jobToken
-
- Type: string
The token for an Amazon Braket job that associates it with the quantum task.
- outputS3Bucket
-
- Required: Yes
- Type: string
The S3 bucket to store task result files in.
- outputS3KeyPrefix
-
- Required: Yes
- Type: string
The key prefix for the location in the S3 bucket to store task results in.
- shots
-
- Required: Yes
- Type: long (int|float)
The number of shots to use for the task.
- tags
-
- Type: Associative array of custom strings keys (String) to strings
Tags to be added to the quantum task you're creating.
Result Syntax
[ 'quantumTaskArn' => '<string>', ]
Result Details
Members
- quantumTaskArn
-
- Required: Yes
- Type: string
The ARN of the task created by the request.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ThrottlingException:
The throttling rate limit is met.
- DeviceOfflineException:
The specified device is currently offline.
- DeviceRetiredException:
The specified device has been retired.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException:
The request failed because a service quota is exceeded.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
GetDevice
$result = $client->getDevice
([/* ... */]); $promise = $client->getDeviceAsync
([/* ... */]);
Retrieves the devices available in Amazon Braket.
For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.
Parameter Syntax
$result = $client->getDevice([ 'deviceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- deviceArn
-
- Required: Yes
- Type: string
The ARN of the device to retrieve.
Result Syntax
[ 'deviceArn' => '<string>', 'deviceCapabilities' => '<string>', 'deviceName' => '<string>', 'deviceQueueInfo' => [ [ 'queue' => 'QUANTUM_TASKS_QUEUE|JOBS_QUEUE', 'queuePriority' => 'Normal|Priority', 'queueSize' => '<string>', ], // ... ], 'deviceStatus' => 'ONLINE|OFFLINE|RETIRED', 'deviceType' => 'QPU|SIMULATOR', 'providerName' => '<string>', ]
Result Details
Members
- deviceArn
-
- Required: Yes
- Type: string
The ARN of the device.
- deviceCapabilities
-
- Required: Yes
- Type: string (string|number|array|map or anything parsable by json_encode)
Details about the capabilities of the device.
- deviceName
-
- Required: Yes
- Type: string
The name of the device.
- deviceQueueInfo
-
- Type: Array of DeviceQueueInfo structures
List of information about tasks and jobs queued on a device.
- deviceStatus
-
- Required: Yes
- Type: string
The status of the device.
- deviceType
-
- Required: Yes
- Type: string
The type of the device.
- providerName
-
- Required: Yes
- Type: string
The name of the partner company for the device.
Errors
- ResourceNotFoundException:
The specified resource was not found.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ThrottlingException:
The throttling rate limit is met.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
GetJob
$result = $client->getJob
([/* ... */]); $promise = $client->getJobAsync
([/* ... */]);
Retrieves the specified Amazon Braket job.
Parameter Syntax
$result = $client->getJob([ 'additionalAttributeNames' => ['<string>', ...], 'jobArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- additionalAttributeNames
-
- Type: Array of strings
A list of attributes to return information for.
- jobArn
-
- Required: Yes
- Type: string
The ARN of the job to retrieve.
Result Syntax
[ 'algorithmSpecification' => [ 'containerImage' => [ 'uri' => '<string>', ], 'scriptModeConfig' => [ 'compressionType' => 'NONE|GZIP', 'entryPoint' => '<string>', 's3Uri' => '<string>', ], ], 'associations' => [ [ 'arn' => '<string>', 'type' => 'RESERVATION_TIME_WINDOW_ARN', ], // ... ], 'billableDuration' => <integer>, 'checkpointConfig' => [ 'localPath' => '<string>', 's3Uri' => '<string>', ], 'createdAt' => <DateTime>, 'deviceConfig' => [ 'device' => '<string>', ], 'endedAt' => <DateTime>, 'events' => [ [ 'eventType' => 'WAITING_FOR_PRIORITY|QUEUED_FOR_EXECUTION|STARTING_INSTANCE|DOWNLOADING_DATA|RUNNING|DEPRIORITIZED_DUE_TO_INACTIVITY|UPLOADING_RESULTS|COMPLETED|FAILED|MAX_RUNTIME_EXCEEDED|CANCELLED', 'message' => '<string>', 'timeOfEvent' => <DateTime>, ], // ... ], 'failureReason' => '<string>', 'hyperParameters' => ['<string>', ...], 'inputDataConfig' => [ [ 'channelName' => '<string>', 'contentType' => '<string>', 'dataSource' => [ 's3DataSource' => [ 's3Uri' => '<string>', ], ], ], // ... ], 'instanceConfig' => [ 'instanceCount' => <integer>, 'instanceType' => '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', 'volumeSizeInGb' => <integer>, ], 'jobArn' => '<string>', 'jobName' => '<string>', 'outputDataConfig' => [ 'kmsKeyId' => '<string>', 's3Path' => '<string>', ], 'queueInfo' => [ 'message' => '<string>', 'position' => '<string>', 'queue' => 'QUANTUM_TASKS_QUEUE|JOBS_QUEUE', ], 'roleArn' => '<string>', 'startedAt' => <DateTime>, 'status' => 'QUEUED|RUNNING|COMPLETED|FAILED|CANCELLING|CANCELLED', 'stoppingCondition' => [ 'maxRuntimeInSeconds' => <integer>, ], 'tags' => ['<string>', ...], ]
Result Details
Members
- algorithmSpecification
-
- Required: Yes
- Type: AlgorithmSpecification structure
Definition of the Amazon Braket job created. Specifies the container image the job uses, information about the Python scripts used for entry and training, and the user-defined metrics used to evaluation the job.
- associations
-
- Type: Array of Association structures
The list of Amazon Braket resources associated with the hybrid job.
- billableDuration
-
- Type: int
The billable time the Amazon Braket job used to complete.
- checkpointConfig
-
- Type: JobCheckpointConfig structure
Information about the output locations for job checkpoint data.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that the Amazon Braket job was created.
- deviceConfig
-
- Type: DeviceConfig structure
The quantum processing unit (QPU) or simulator used to run the Amazon Braket job.
- endedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that the Amazon Braket job ended.
- events
-
- Type: Array of JobEventDetails structures
Details about the type and time events occurred related to the Amazon Braket job.
- failureReason
-
- Type: string
A description of the reason why an Amazon Braket job failed, if it failed.
- hyperParameters
-
- Type: Associative array of custom strings keys (String256) to strings
Algorithm-specific parameters used by an Amazon Braket job that influence the quality of the traiing job. The values are set with a string of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of th hyperparameter.
- inputDataConfig
-
- Type: Array of InputFileConfig structures
A list of parameters that specify the name and type of input data and where it is located.
- instanceConfig
-
- Required: Yes
- Type: InstanceConfig structure
The resource instances to use while running the hybrid job on Amazon Braket.
- jobArn
-
- Required: Yes
- Type: string
The ARN of the Amazon Braket job.
- jobName
-
- Required: Yes
- Type: string
The name of the Amazon Braket job.
- outputDataConfig
-
- Required: Yes
- Type: JobOutputDataConfig structure
The path to the S3 location where job artifacts are stored and the encryption key used to store them there.
- queueInfo
-
- Type: HybridJobQueueInfo structure
Queue information for the requested job. Only returned if
QueueInfo
is specified in theadditionalAttributeNames"
field in theGetJob
API request. - roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output resources to the s3 buckets of a user.
- startedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that the Amazon Braket job was started.
- status
-
- Required: Yes
- Type: string
The status of the Amazon Braket job.
- stoppingCondition
-
- Type: JobStoppingCondition structure
The user-defined criteria that specifies when to stop a job running.
- tags
-
- Type: Associative array of custom strings keys (String) to strings
A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.
Errors
- ResourceNotFoundException:
The specified resource was not found.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ThrottlingException:
The throttling rate limit is met.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
GetQuantumTask
$result = $client->getQuantumTask
([/* ... */]); $promise = $client->getQuantumTaskAsync
([/* ... */]);
Retrieves the specified quantum task.
Parameter Syntax
$result = $client->getQuantumTask([ 'additionalAttributeNames' => ['<string>', ...], 'quantumTaskArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- additionalAttributeNames
-
- Type: Array of strings
A list of attributes to return information for.
- quantumTaskArn
-
- Required: Yes
- Type: string
The ARN of the task to retrieve.
Result Syntax
[ 'associations' => [ [ 'arn' => '<string>', 'type' => 'RESERVATION_TIME_WINDOW_ARN', ], // ... ], 'createdAt' => <DateTime>, 'deviceArn' => '<string>', 'deviceParameters' => '<string>', 'endedAt' => <DateTime>, 'failureReason' => '<string>', 'jobArn' => '<string>', 'outputS3Bucket' => '<string>', 'outputS3Directory' => '<string>', 'quantumTaskArn' => '<string>', 'queueInfo' => [ 'message' => '<string>', 'position' => '<string>', 'queue' => 'QUANTUM_TASKS_QUEUE|JOBS_QUEUE', 'queuePriority' => 'Normal|Priority', ], 'shots' => <integer>, 'status' => 'CREATED|QUEUED|RUNNING|COMPLETED|FAILED|CANCELLING|CANCELLED', 'tags' => ['<string>', ...], ]
Result Details
Members
- associations
-
- Type: Array of Association structures
The list of Amazon Braket resources associated with the quantum task.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the task was created.
- deviceArn
-
- Required: Yes
- Type: string
The ARN of the device the task was run on.
- deviceParameters
-
- Required: Yes
- Type: string (string|number|array|map or anything parsable by json_encode)
The parameters for the device on which the task ran.
- endedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the task ended.
- failureReason
-
- Type: string
The reason that a task failed.
- jobArn
-
- Type: string
The ARN of the Amazon Braket job associated with the quantum task.
- outputS3Bucket
-
- Required: Yes
- Type: string
The S3 bucket where task results are stored.
- outputS3Directory
-
- Required: Yes
- Type: string
The folder in the S3 bucket where task results are stored.
- quantumTaskArn
-
- Required: Yes
- Type: string
The ARN of the task.
- queueInfo
-
- Type: QuantumTaskQueueInfo structure
Queue information for the requested quantum task. Only returned if
QueueInfo
is specified in theadditionalAttributeNames"
field in theGetQuantumTask
API request. - shots
-
- Required: Yes
- Type: long (int|float)
The number of shots used in the task.
- status
-
- Required: Yes
- Type: string
The status of the task.
- tags
-
- Type: Associative array of custom strings keys (String) to strings
The tags that belong to this task.
Errors
- ResourceNotFoundException:
The specified resource was not found.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ThrottlingException:
The throttling rate limit is met.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
ListTagsForResource
$result = $client->listTagsForResource
([/* ... */]); $promise = $client->listTagsForResourceAsync
([/* ... */]);
Shows the tags associated with this resource.
Parameter Syntax
$result = $client->listTagsForResource([ 'resourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
Specify the
resourceArn
for the resource whose tags to display.
Result Syntax
[ 'tags' => ['<string>', ...], ]
Result Details
Members
- tags
-
- Type: Associative array of custom strings keys (String) to strings
Displays the key, value pairs of tags associated with this resource.
Errors
- ResourceNotFoundException:
The specified resource was not found.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
SearchDevices
$result = $client->searchDevices
([/* ... */]); $promise = $client->searchDevicesAsync
([/* ... */]);
Searches for devices using the specified filters.
Parameter Syntax
$result = $client->searchDevices([ 'filters' => [ // REQUIRED [ 'name' => '<string>', // REQUIRED 'values' => ['<string>', ...], // REQUIRED ], // ... ], 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- filters
-
- Required: Yes
- Type: Array of SearchDevicesFilter structures
The filter values to use to search for a device.
- maxResults
-
- Type: int
The maximum number of results to return in the response.
- nextToken
-
- Type: string
A token used for pagination of results returned in the response. Use the token returned from the previous request continue results where the previous request ended.
Result Syntax
[ 'devices' => [ [ 'deviceArn' => '<string>', 'deviceName' => '<string>', 'deviceStatus' => 'ONLINE|OFFLINE|RETIRED', 'deviceType' => 'QPU|SIMULATOR', 'providerName' => '<string>', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- devices
-
- Required: Yes
- Type: Array of DeviceSummary structures
An array of
DeviceSummary
objects for devices that match the specified filter values. - nextToken
-
- Type: string
A token used for pagination of results, or null if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ThrottlingException:
The throttling rate limit is met.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
SearchJobs
$result = $client->searchJobs
([/* ... */]); $promise = $client->searchJobsAsync
([/* ... */]);
Searches for Amazon Braket jobs that match the specified filter values.
Parameter Syntax
$result = $client->searchJobs([ 'filters' => [ // REQUIRED [ 'name' => '<string>', // REQUIRED 'operator' => 'LT|LTE|EQUAL|GT|GTE|BETWEEN|CONTAINS', // REQUIRED 'values' => ['<string>', ...], // REQUIRED ], // ... ], 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- filters
-
- Required: Yes
- Type: Array of SearchJobsFilter structures
The filter values to use when searching for a job.
- maxResults
-
- Type: int
The maximum number of results to return in the response.
- nextToken
-
- Type: string
A token used for pagination of results returned in the response. Use the token returned from the previous request to continue results where the previous request ended.
Result Syntax
[ 'jobs' => [ [ 'createdAt' => <DateTime>, 'device' => '<string>', 'endedAt' => <DateTime>, 'jobArn' => '<string>', 'jobName' => '<string>', 'startedAt' => <DateTime>, 'status' => 'QUEUED|RUNNING|COMPLETED|FAILED|CANCELLING|CANCELLED', 'tags' => ['<string>', ...], ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- jobs
-
- Required: Yes
- Type: Array of JobSummary structures
An array of
JobSummary
objects for devices that match the specified filter values. - nextToken
-
- Type: string
A token used for pagination of results, or
null
if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ThrottlingException:
The throttling rate limit is met.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
SearchQuantumTasks
$result = $client->searchQuantumTasks
([/* ... */]); $promise = $client->searchQuantumTasksAsync
([/* ... */]);
Searches for tasks that match the specified filter values.
Parameter Syntax
$result = $client->searchQuantumTasks([ 'filters' => [ // REQUIRED [ 'name' => '<string>', // REQUIRED 'operator' => 'LT|LTE|EQUAL|GT|GTE|BETWEEN', // REQUIRED 'values' => ['<string>', ...], // REQUIRED ], // ... ], 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- filters
-
- Required: Yes
- Type: Array of SearchQuantumTasksFilter structures
Array of
SearchQuantumTasksFilter
objects. - maxResults
-
- Type: int
Maximum number of results to return in the response.
- nextToken
-
- Type: string
A token used for pagination of results returned in the response. Use the token returned from the previous request continue results where the previous request ended.
Result Syntax
[ 'nextToken' => '<string>', 'quantumTasks' => [ [ 'createdAt' => <DateTime>, 'deviceArn' => '<string>', 'endedAt' => <DateTime>, 'outputS3Bucket' => '<string>', 'outputS3Directory' => '<string>', 'quantumTaskArn' => '<string>', 'shots' => <integer>, 'status' => 'CREATED|QUEUED|RUNNING|COMPLETED|FAILED|CANCELLING|CANCELLED', 'tags' => ['<string>', ...], ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
A token used for pagination of results, or null if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.
- quantumTasks
-
- Required: Yes
- Type: Array of QuantumTaskSummary structures
An array of
QuantumTaskSummary
objects for tasks that match the specified filters.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ThrottlingException:
The throttling rate limit is met.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
Add a tag to the specified resource.
Parameter Syntax
$result = $client->tagResource([ 'resourceArn' => '<string>', // REQUIRED 'tags' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
Specify the
resourceArn
of the resource to which a tag will be added. - tags
-
- Required: Yes
- Type: Associative array of custom strings keys (String) to strings
Specify the tags to add to the resource.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource was not found.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
Remove tags from a resource.
Parameter Syntax
$result = $client->untagResource([ 'resourceArn' => '<string>', // REQUIRED 'tagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
Specify the
resourceArn
for the resource from which to remove the tags. - tagKeys
-
- Required: Yes
- Type: Array of strings
Specify the keys for the tags to remove from the resource.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource was not found.
- InternalServiceException:
The request processing has failed because of an unknown error, exception, or failure.
- ValidationException:
The input fails to satisfy the constraints specified by an AWS service.
Shapes
AccessDeniedException
Description
You do not have sufficient access to perform this action.
Members
- message
-
- Type: string
AlgorithmSpecification
Description
Defines the Amazon Braket job to be created. Specifies the container image the job uses and the paths to the Python scripts used for entry and training.
Members
- containerImage
-
- Type: ContainerImage structure
The container image used to create an Amazon Braket job.
- scriptModeConfig
-
- Type: ScriptModeConfig structure
Configures the paths to the Python scripts used for entry and training.
Association
Description
The Amazon Braket resource and the association type.
Members
- arn
-
- Required: Yes
- Type: string
The Amazon Braket resource arn.
- type
-
- Required: Yes
- Type: string
The association type for the specified Amazon Braket resource arn.
ConflictException
Description
An error occurred due to a conflict.
Members
- message
-
- Type: string
ContainerImage
Description
The container image used to create an Amazon Braket job.
Members
- uri
-
- Required: Yes
- Type: string
The URI locating the container image.
DataSource
Description
Information about the source of the data used by the Amazon Braket job.
Members
- s3DataSource
-
- Required: Yes
- Type: S3DataSource structure
Information about the data stored in Amazon S3 used by the Amazon Braket job.
DeviceConfig
Description
Configures the quantum processing units (QPUs) or simulator used to create and run an Amazon Braket job.
Members
- device
-
- Required: Yes
- Type: string
The primary quantum processing unit (QPU) or simulator used to create and run an Amazon Braket job.
DeviceOfflineException
Description
The specified device is currently offline.
Members
- message
-
- Type: string
DeviceQueueInfo
Description
Information about tasks and jobs queued on a device.
Members
- queue
-
- Required: Yes
- Type: string
The name of the queue.
- queuePriority
-
- Type: string
Optional. Specifies the priority of the queue. Tasks in a priority queue are processed before the tasks in a normal queue.
- queueSize
-
- Required: Yes
- Type: string
The number of jobs or tasks in the queue for a given device.
DeviceRetiredException
Description
The specified device has been retired.
Members
- message
-
- Type: string
DeviceSummary
Description
Includes information about the device.
Members
- deviceArn
-
- Required: Yes
- Type: string
The ARN of the device.
- deviceName
-
- Required: Yes
- Type: string
The name of the device.
- deviceStatus
-
- Required: Yes
- Type: string
The status of the device.
- deviceType
-
- Required: Yes
- Type: string
The type of the device.
- providerName
-
- Required: Yes
- Type: string
The provider of the device.
HybridJobQueueInfo
Description
Information about the queue for a specified job.
Members
- message
-
- Type: string
Optional. Provides more information about the queue position. For example, if the job is complete and no longer in the queue, the message field contains that information.
- position
-
- Required: Yes
- Type: string
Current position of the job in the jobs queue.
- queue
-
- Required: Yes
- Type: string
The name of the queue.
InputFileConfig
Description
A list of parameters that specify the input channels, type of input data, and where it is located.
Members
- channelName
-
- Required: Yes
- Type: string
A named input source that an Amazon Braket job can consume.
- contentType
-
- Type: string
The MIME type of the data.
- dataSource
-
- Required: Yes
- Type: DataSource structure
The location of the channel data.
InstanceConfig
Description
Configures the resource instances to use while running the Amazon Braket hybrid job on Amazon Braket.
Members
- instanceCount
-
- Type: int
Configures the number of resource instances to use while running an Amazon Braket job on Amazon Braket. The default value is 1.
- instanceType
-
- Required: Yes
- Type: string
Configures the type resource instances to use while running an Amazon Braket hybrid job.
- volumeSizeInGb
-
- Required: Yes
- Type: int
The size of the storage volume, in GB, that user wants to provision.
InternalServiceException
Description
The request processing has failed because of an unknown error, exception, or failure.
Members
- message
-
- Type: string
JobCheckpointConfig
Description
Contains information about the output locations for job checkpoint data.
Members
- localPath
-
- Type: string
(Optional) The local directory where checkpoints are written. The default directory is
/opt/braket/checkpoints/
. - s3Uri
-
- Required: Yes
- Type: string
Identifies the S3 path where you want Amazon Braket to store checkpoints. For example,
s3://bucket-name/key-name-prefix
.
JobEventDetails
Description
Details about the type and time events occurred related to the Amazon Braket job.
Members
- eventType
-
- Type: string
The type of event that occurred related to the Amazon Braket job.
- message
-
- Type: string
A message describing the event that occurred related to the Amazon Braket job.
- timeOfEvent
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The type of event that occurred related to the Amazon Braket job.
JobOutputDataConfig
Description
Specifies the path to the S3 location where you want to store job artifacts and the encryption key used to store them.
Members
- kmsKeyId
-
- Type: string
The AWS Key Management Service (AWS KMS) key that Amazon Braket uses to encrypt the job training artifacts at rest using Amazon S3 server-side encryption.
- s3Path
-
- Required: Yes
- Type: string
Identifies the S3 path where you want Amazon Braket to store the job training artifacts. For example,
s3://bucket-name/key-name-prefix
.
JobStoppingCondition
Description
Specifies limits for how long an Amazon Braket job can run.
Members
- maxRuntimeInSeconds
-
- Type: int
The maximum length of time, in seconds, that an Amazon Braket job can run.
JobSummary
Description
Provides summary information about an Amazon Braket job.
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that the Amazon Braket job was created.
- device
-
- Required: Yes
- Type: string
Provides summary information about the primary device used by an Amazon Braket job.
- endedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that the Amazon Braket job ended.
- jobArn
-
- Required: Yes
- Type: string
The ARN of the Amazon Braket job.
- jobName
-
- Required: Yes
- Type: string
The name of the Amazon Braket job.
- startedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that the Amazon Braket job was started.
- status
-
- Required: Yes
- Type: string
The status of the Amazon Braket job.
- tags
-
- Type: Associative array of custom strings keys (String) to strings
A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.
QuantumTaskQueueInfo
Description
Information about the queue for the specified quantum task.
Members
- message
-
- Type: string
Optional. Provides more information about the queue position. For example, if the task is complete and no longer in the queue, the message field contains that information.
- position
-
- Required: Yes
- Type: string
Current position of the task in the quantum tasks queue.
- queue
-
- Required: Yes
- Type: string
The name of the queue.
- queuePriority
-
- Type: string
Optional. Specifies the priority of the queue. Quantum tasks in a priority queue are processed before the tasks in a normal queue.
QuantumTaskSummary
Description
Includes information about a quantum task.
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the task was created.
- deviceArn
-
- Required: Yes
- Type: string
The ARN of the device the task ran on.
- endedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the task finished.
- outputS3Bucket
-
- Required: Yes
- Type: string
The S3 bucket where the task result file is stored..
- outputS3Directory
-
- Required: Yes
- Type: string
The folder in the S3 bucket where the task result file is stored.
- quantumTaskArn
-
- Required: Yes
- Type: string
The ARN of the task.
- shots
-
- Required: Yes
- Type: long (int|float)
The shots used for the task.
- status
-
- Required: Yes
- Type: string
The status of the task.
- tags
-
- Type: Associative array of custom strings keys (String) to strings
Displays the key, value pairs of tags associated with this quantum task.
ResourceNotFoundException
Description
The specified resource was not found.
Members
- message
-
- Type: string
S3DataSource
Description
Information about the data stored in Amazon S3 used by the Amazon Braket job.
Members
- s3Uri
-
- Required: Yes
- Type: string
Depending on the value specified for the
S3DataType
, identifies either a key name prefix or a manifest that locates the S3 data source.
ScriptModeConfig
Description
Contains information about the Python scripts used for entry and by an Amazon Braket job.
Members
- compressionType
-
- Type: string
The type of compression used by the Python scripts for an Amazon Braket job.
- entryPoint
-
- Required: Yes
- Type: string
The path to the Python script that serves as the entry point for an Amazon Braket job.
- s3Uri
-
- Required: Yes
- Type: string
The URI that specifies the S3 path to the Python script module that contains the training script used by an Amazon Braket job.
SearchDevicesFilter
Description
The filter to use for searching devices.
Members
- name
-
- Required: Yes
- Type: string
The name to use to filter results.
- values
-
- Required: Yes
- Type: Array of strings
The values to use to filter results.
SearchJobsFilter
Description
A filter used to search for Amazon Braket jobs.
Members
- name
-
- Required: Yes
- Type: string
The name to use for the jobs filter.
- operator
-
- Required: Yes
- Type: string
An operator to use for the jobs filter.
- values
-
- Required: Yes
- Type: Array of strings
The values to use for the jobs filter.
SearchQuantumTasksFilter
Description
A filter to use to search for tasks.
Members
- name
-
- Required: Yes
- Type: string
The name of the device used for the task.
- operator
-
- Required: Yes
- Type: string
An operator to use in the filter.
- values
-
- Required: Yes
- Type: Array of strings
The values to use for the filter.
ServiceQuotaExceededException
Description
The request failed because a service quota is exceeded.
Members
- message
-
- Type: string
ThrottlingException
Description
The throttling rate limit is met.
Members
- message
-
- Type: string
ValidationException
Description
The input fails to satisfy the constraints specified by an AWS service.
Members
- message
-
- Type: string