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 an Amazon Braket job.
Synopsis
- data CreateJob = CreateJob' {
- checkpointConfig :: Maybe JobCheckpointConfig
- hyperParameters :: Maybe (HashMap Text Text)
- inputDataConfig :: Maybe [InputFileConfig]
- stoppingCondition :: Maybe JobStoppingCondition
- tags :: Maybe (HashMap Text Text)
- algorithmSpecification :: AlgorithmSpecification
- clientToken :: Text
- deviceConfig :: DeviceConfig
- instanceConfig :: InstanceConfig
- jobName :: Text
- outputDataConfig :: JobOutputDataConfig
- roleArn :: Text
- newCreateJob :: AlgorithmSpecification -> Text -> DeviceConfig -> InstanceConfig -> Text -> JobOutputDataConfig -> Text -> CreateJob
- createJob_checkpointConfig :: Lens' CreateJob (Maybe JobCheckpointConfig)
- createJob_hyperParameters :: Lens' CreateJob (Maybe (HashMap Text Text))
- createJob_inputDataConfig :: Lens' CreateJob (Maybe [InputFileConfig])
- createJob_stoppingCondition :: Lens' CreateJob (Maybe JobStoppingCondition)
- createJob_tags :: Lens' CreateJob (Maybe (HashMap Text Text))
- createJob_algorithmSpecification :: Lens' CreateJob AlgorithmSpecification
- createJob_clientToken :: Lens' CreateJob Text
- createJob_deviceConfig :: Lens' CreateJob DeviceConfig
- createJob_instanceConfig :: Lens' CreateJob InstanceConfig
- createJob_jobName :: Lens' CreateJob Text
- createJob_outputDataConfig :: Lens' CreateJob JobOutputDataConfig
- createJob_roleArn :: Lens' CreateJob Text
- data CreateJobResponse = CreateJobResponse' {
- httpStatus :: Int
- jobArn :: Text
- newCreateJobResponse :: Int -> Text -> CreateJobResponse
- createJobResponse_httpStatus :: Lens' CreateJobResponse Int
- createJobResponse_jobArn :: Lens' CreateJobResponse Text
Creating a Request
See: newCreateJob
smart constructor.
CreateJob' | |
|
Instances
:: AlgorithmSpecification | |
-> Text | |
-> DeviceConfig | |
-> InstanceConfig | |
-> Text | |
-> JobOutputDataConfig | |
-> Text | |
-> CreateJob |
Create a value of CreateJob
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:checkpointConfig:CreateJob'
, createJob_checkpointConfig
- Information about the output locations for job checkpoint data.
$sel:hyperParameters:CreateJob'
, createJob_hyperParameters
- 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.
$sel:inputDataConfig:CreateJob'
, createJob_inputDataConfig
- A list of parameters that specify the name and type of input data and
where it is located.
$sel:stoppingCondition:CreateJob'
, createJob_stoppingCondition
- The user-defined criteria that specifies when a job stops running.
CreateJob
, createJob_tags
- A tag object that consists of a key and an optional value, used to
manage metadata for Amazon Braket resources.
$sel:algorithmSpecification:CreateJob'
, createJob_algorithmSpecification
- 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.
$sel:clientToken:CreateJob'
, createJob_clientToken
- A unique token that guarantees that the call to this API is idempotent.
$sel:deviceConfig:CreateJob'
, createJob_deviceConfig
- The quantum processing unit (QPU) or simulator used to create an Amazon
Braket job.
$sel:instanceConfig:CreateJob'
, createJob_instanceConfig
- Configuration of the resource instances to use while running the hybrid
job on Amazon Braket.
CreateJob
, createJob_jobName
- The name of the Amazon Braket job.
$sel:outputDataConfig:CreateJob'
, createJob_outputDataConfig
- The path to the S3 location where you want to store job artifacts and
the encryption key used to store them.
$sel:roleArn:CreateJob'
, createJob_roleArn
- 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.
Request Lenses
createJob_checkpointConfig :: Lens' CreateJob (Maybe JobCheckpointConfig) Source #
Information about the output locations for job checkpoint data.
createJob_hyperParameters :: Lens' CreateJob (Maybe (HashMap Text Text)) Source #
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.
createJob_inputDataConfig :: Lens' CreateJob (Maybe [InputFileConfig]) Source #
A list of parameters that specify the name and type of input data and where it is located.
createJob_stoppingCondition :: Lens' CreateJob (Maybe JobStoppingCondition) Source #
The user-defined criteria that specifies when a job stops running.
createJob_tags :: Lens' CreateJob (Maybe (HashMap Text Text)) Source #
A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.
createJob_algorithmSpecification :: Lens' CreateJob AlgorithmSpecification Source #
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.
createJob_clientToken :: Lens' CreateJob Text Source #
A unique token that guarantees that the call to this API is idempotent.
createJob_deviceConfig :: Lens' CreateJob DeviceConfig Source #
The quantum processing unit (QPU) or simulator used to create an Amazon Braket job.
createJob_instanceConfig :: Lens' CreateJob InstanceConfig Source #
Configuration of the resource instances to use while running the hybrid job on Amazon Braket.
createJob_outputDataConfig :: Lens' CreateJob JobOutputDataConfig Source #
The path to the S3 location where you want to store job artifacts and the encryption key used to store them.
createJob_roleArn :: Lens' CreateJob Text Source #
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.
Destructuring the Response
data CreateJobResponse Source #
See: newCreateJobResponse
smart constructor.
CreateJobResponse' | |
|
Instances
Create a value of CreateJobResponse
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:CreateJobResponse'
, createJobResponse_httpStatus
- The response's http status code.
CreateJobResponse
, createJobResponse_jobArn
- The ARN of the Amazon Braket job created.
Response Lenses
createJobResponse_httpStatus :: Lens' CreateJobResponse Int Source #
The response's http status code.
createJobResponse_jobArn :: Lens' CreateJobResponse Text Source #
The ARN of the Amazon Braket job created.