Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a quantum task.
Synopsis
- data CreateQuantumTask = CreateQuantumTask' {
- deviceParameters :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- action :: Text
- clientToken :: Text
- deviceArn :: Text
- outputS3Bucket :: Text
- outputS3KeyPrefix :: Text
- shots :: Natural
- newCreateQuantumTask :: Text -> Text -> Text -> Text -> Text -> Natural -> CreateQuantumTask
- createQuantumTask_deviceParameters :: 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:tags: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.
$sel:deviceArn:CreateQuantumTask'
, createQuantumTask_deviceArn
- The ARN of the device to run the task on.
$sel:outputS3Bucket: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.
$sel:shots: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_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.
$sel:quantumTaskArn: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.