Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a quantum task.
Synopsis
- data CreateQuantumTask = CreateQuantumTask' {}
- newCreateQuantumTask :: Text -> Text -> Text -> Text -> Text -> Natural -> CreateQuantumTask
- createQuantumTask_deviceParameters :: Lens' CreateQuantumTask (Maybe Text)
- createQuantumTask_jobToken :: Lens' CreateQuantumTask (Maybe Text)
- createQuantumTask_tags :: Lens' CreateQuantumTask (Maybe (HashMap Text Text))
- createQuantumTask_action :: Lens' CreateQuantumTask Text
- createQuantumTask_clientToken :: Lens' CreateQuantumTask Text
- createQuantumTask_deviceArn :: Lens' CreateQuantumTask Text
- createQuantumTask_outputS3Bucket :: Lens' CreateQuantumTask Text
- createQuantumTask_outputS3KeyPrefix :: Lens' CreateQuantumTask Text
- createQuantumTask_shots :: Lens' CreateQuantumTask Natural
- data CreateQuantumTaskResponse = CreateQuantumTaskResponse' {
- httpStatus :: Int
- quantumTaskArn :: Text
- newCreateQuantumTaskResponse :: Int -> Text -> CreateQuantumTaskResponse
- createQuantumTaskResponse_httpStatus :: Lens' CreateQuantumTaskResponse Int
- createQuantumTaskResponse_quantumTaskArn :: Lens' CreateQuantumTaskResponse Text
Creating a Request
data CreateQuantumTask Source #
See: newCreateQuantumTask
smart constructor.
CreateQuantumTask' | |
|
Instances
Create a value of CreateQuantumTask
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:deviceParameters:CreateQuantumTask'
, createQuantumTask_deviceParameters
- The parameters for the device to run the task on.
$sel:jobToken:CreateQuantumTask'
, createQuantumTask_jobToken
- The token for an Amazon Braket job that associates it with the quantum
task.
CreateQuantumTask
, createQuantumTask_tags
- Tags to be added to the quantum task you're creating.
$sel:action:CreateQuantumTask'
, createQuantumTask_action
- The action associated with the task.
$sel:clientToken:CreateQuantumTask'
, createQuantumTask_clientToken
- The client token associated with the request.
CreateQuantumTask
, createQuantumTask_deviceArn
- The ARN of the device to run the task on.
CreateQuantumTask
, createQuantumTask_outputS3Bucket
- The S3 bucket to store task result files in.
$sel:outputS3KeyPrefix:CreateQuantumTask'
, createQuantumTask_outputS3KeyPrefix
- The key prefix for the location in the S3 bucket to store task results
in.
CreateQuantumTask
, createQuantumTask_shots
- The number of shots to use for the task.
Request Lenses
createQuantumTask_deviceParameters :: Lens' CreateQuantumTask (Maybe Text) Source #
The parameters for the device to run the task on.
createQuantumTask_jobToken :: Lens' CreateQuantumTask (Maybe Text) Source #
The token for an Amazon Braket job that associates it with the quantum task.
createQuantumTask_tags :: Lens' CreateQuantumTask (Maybe (HashMap Text Text)) Source #
Tags to be added to the quantum task you're creating.
createQuantumTask_action :: Lens' CreateQuantumTask Text Source #
The action associated with the task.
createQuantumTask_clientToken :: Lens' CreateQuantumTask Text Source #
The client token associated with the request.
createQuantumTask_deviceArn :: Lens' CreateQuantumTask Text Source #
The ARN of the device to run the task on.
createQuantumTask_outputS3Bucket :: Lens' CreateQuantumTask Text Source #
The S3 bucket to store task result files in.
createQuantumTask_outputS3KeyPrefix :: Lens' CreateQuantumTask Text Source #
The key prefix for the location in the S3 bucket to store task results in.
createQuantumTask_shots :: Lens' CreateQuantumTask Natural Source #
The number of shots to use for the task.
Destructuring the Response
data CreateQuantumTaskResponse Source #
See: newCreateQuantumTaskResponse
smart constructor.
CreateQuantumTaskResponse' | |
|
Instances
newCreateQuantumTaskResponse Source #
:: Int | |
-> Text | |
-> CreateQuantumTaskResponse |
Create a value of CreateQuantumTaskResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateQuantumTaskResponse'
, createQuantumTaskResponse_httpStatus
- The response's http status code.
CreateQuantumTaskResponse
, createQuantumTaskResponse_quantumTaskArn
- The ARN of the task created by the request.
Response Lenses
createQuantumTaskResponse_httpStatus :: Lens' CreateQuantumTaskResponse Int Source #
The response's http status code.
createQuantumTaskResponse_quantumTaskArn :: Lens' CreateQuantumTaskResponse Text Source #
The ARN of the task created by the request.