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 |
Retrieves the specified quantum task.
Synopsis
- data GetQuantumTask = GetQuantumTask' {}
- newGetQuantumTask :: Text -> GetQuantumTask
- getQuantumTask_quantumTaskArn :: Lens' GetQuantumTask Text
- data GetQuantumTaskResponse = GetQuantumTaskResponse' {
- failureReason :: Maybe Text
- endedAt :: Maybe POSIX
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- createdAt :: POSIX
- deviceArn :: Text
- deviceParameters :: Text
- outputS3Bucket :: Text
- outputS3Directory :: Text
- quantumTaskArn :: Text
- shots :: Integer
- status :: QuantumTaskStatus
- newGetQuantumTaskResponse :: Int -> UTCTime -> Text -> Text -> Text -> Text -> Text -> Integer -> QuantumTaskStatus -> GetQuantumTaskResponse
- getQuantumTaskResponse_failureReason :: Lens' GetQuantumTaskResponse (Maybe Text)
- getQuantumTaskResponse_endedAt :: Lens' GetQuantumTaskResponse (Maybe UTCTime)
- getQuantumTaskResponse_tags :: Lens' GetQuantumTaskResponse (Maybe (HashMap Text Text))
- getQuantumTaskResponse_httpStatus :: Lens' GetQuantumTaskResponse Int
- getQuantumTaskResponse_createdAt :: Lens' GetQuantumTaskResponse UTCTime
- getQuantumTaskResponse_deviceArn :: Lens' GetQuantumTaskResponse Text
- getQuantumTaskResponse_deviceParameters :: Lens' GetQuantumTaskResponse Text
- getQuantumTaskResponse_outputS3Bucket :: Lens' GetQuantumTaskResponse Text
- getQuantumTaskResponse_outputS3Directory :: Lens' GetQuantumTaskResponse Text
- getQuantumTaskResponse_quantumTaskArn :: Lens' GetQuantumTaskResponse Text
- getQuantumTaskResponse_shots :: Lens' GetQuantumTaskResponse Integer
- getQuantumTaskResponse_status :: Lens' GetQuantumTaskResponse QuantumTaskStatus
Creating a Request
data GetQuantumTask Source #
See: newGetQuantumTask
smart constructor.
GetQuantumTask' | |
|
Instances
Create a value of GetQuantumTask
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:quantumTaskArn:GetQuantumTask'
, getQuantumTask_quantumTaskArn
- the ARN of the task to retrieve.
Request Lenses
getQuantumTask_quantumTaskArn :: Lens' GetQuantumTask Text Source #
the ARN of the task to retrieve.
Destructuring the Response
data GetQuantumTaskResponse Source #
See: newGetQuantumTaskResponse
smart constructor.
GetQuantumTaskResponse' | |
|
Instances
newGetQuantumTaskResponse Source #
:: Int | |
-> UTCTime | |
-> Text | |
-> Text | |
-> Text | |
-> Text | |
-> Text | |
-> Integer | |
-> QuantumTaskStatus | |
-> GetQuantumTaskResponse |
Create a value of GetQuantumTaskResponse
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:failureReason:GetQuantumTaskResponse'
, getQuantumTaskResponse_failureReason
- The reason that a task failed.
$sel:endedAt:GetQuantumTaskResponse'
, getQuantumTaskResponse_endedAt
- The time at which the task ended.
$sel:tags:GetQuantumTaskResponse'
, getQuantumTaskResponse_tags
- The tags that belong to this task.
$sel:httpStatus:GetQuantumTaskResponse'
, getQuantumTaskResponse_httpStatus
- The response's http status code.
$sel:createdAt:GetQuantumTaskResponse'
, getQuantumTaskResponse_createdAt
- The time at which the task was created.
$sel:deviceArn:GetQuantumTaskResponse'
, getQuantumTaskResponse_deviceArn
- The ARN of the device the task was run on.
$sel:deviceParameters:GetQuantumTaskResponse'
, getQuantumTaskResponse_deviceParameters
- The parameters for the device on which the task ran.
$sel:outputS3Bucket:GetQuantumTaskResponse'
, getQuantumTaskResponse_outputS3Bucket
- The S3 bucket where task results are stored.
$sel:outputS3Directory:GetQuantumTaskResponse'
, getQuantumTaskResponse_outputS3Directory
- The folder in the S3 bucket where task results are stored.
$sel:quantumTaskArn:GetQuantumTask'
, getQuantumTaskResponse_quantumTaskArn
- The ARN of the task.
$sel:shots:GetQuantumTaskResponse'
, getQuantumTaskResponse_shots
- The number of shots used in the task.
$sel:status:GetQuantumTaskResponse'
, getQuantumTaskResponse_status
- The status of the task.
Response Lenses
getQuantumTaskResponse_failureReason :: Lens' GetQuantumTaskResponse (Maybe Text) Source #
The reason that a task failed.
getQuantumTaskResponse_endedAt :: Lens' GetQuantumTaskResponse (Maybe UTCTime) Source #
The time at which the task ended.
getQuantumTaskResponse_tags :: Lens' GetQuantumTaskResponse (Maybe (HashMap Text Text)) Source #
The tags that belong to this task.
getQuantumTaskResponse_httpStatus :: Lens' GetQuantumTaskResponse Int Source #
The response's http status code.
getQuantumTaskResponse_createdAt :: Lens' GetQuantumTaskResponse UTCTime Source #
The time at which the task was created.
getQuantumTaskResponse_deviceArn :: Lens' GetQuantumTaskResponse Text Source #
The ARN of the device the task was run on.
getQuantumTaskResponse_deviceParameters :: Lens' GetQuantumTaskResponse Text Source #
The parameters for the device on which the task ran.
getQuantumTaskResponse_outputS3Bucket :: Lens' GetQuantumTaskResponse Text Source #
The S3 bucket where task results are stored.
getQuantumTaskResponse_outputS3Directory :: Lens' GetQuantumTaskResponse Text Source #
The folder in the S3 bucket where task results are stored.
getQuantumTaskResponse_quantumTaskArn :: Lens' GetQuantumTaskResponse Text Source #
The ARN of the task.
getQuantumTaskResponse_shots :: Lens' GetQuantumTaskResponse Integer Source #
The number of shots used in the task.
getQuantumTaskResponse_status :: Lens' GetQuantumTaskResponse QuantumTaskStatus Source #
The status of the task.