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 |
Starts a new job for a branch of an Amplify app.
Synopsis
- data StartJob = StartJob' {}
- newStartJob :: Text -> Text -> JobType -> StartJob
- startJob_commitId :: Lens' StartJob (Maybe Text)
- startJob_jobId :: Lens' StartJob (Maybe Text)
- startJob_jobReason :: Lens' StartJob (Maybe Text)
- startJob_commitTime :: Lens' StartJob (Maybe UTCTime)
- startJob_commitMessage :: Lens' StartJob (Maybe Text)
- startJob_appId :: Lens' StartJob Text
- startJob_branchName :: Lens' StartJob Text
- startJob_jobType :: Lens' StartJob JobType
- data StartJobResponse = StartJobResponse' {}
- newStartJobResponse :: Int -> JobSummary -> StartJobResponse
- startJobResponse_httpStatus :: Lens' StartJobResponse Int
- startJobResponse_jobSummary :: Lens' StartJobResponse JobSummary
Creating a Request
The request structure for the start job request.
See: newStartJob
smart constructor.
StartJob' | |
|
Instances
Create a value of StartJob
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:commitId:StartJob'
, startJob_commitId
- The commit ID from a third-party repository provider for the job.
$sel:jobId:StartJob'
, startJob_jobId
- The unique ID for an existing job. This is required if the value of
jobType
is RETRY
.
$sel:jobReason:StartJob'
, startJob_jobReason
- A descriptive reason for starting this job.
$sel:commitTime:StartJob'
, startJob_commitTime
- The commit date and time for the job.
$sel:commitMessage:StartJob'
, startJob_commitMessage
- The commit message from a third-party repository provider for the job.
$sel:appId:StartJob'
, startJob_appId
- The unique ID for an Amplify app.
$sel:branchName:StartJob'
, startJob_branchName
- The branch name for the job.
$sel:jobType:StartJob'
, startJob_jobType
- Describes the type for the job. The job type RELEASE
starts a new job
with the latest change from the specified branch. This value is
available only for apps that are connected to a repository. The job type
RETRY
retries an existing job. If the job type value is RETRY
, the
jobId
is also required.
Request Lenses
startJob_commitId :: Lens' StartJob (Maybe Text) Source #
The commit ID from a third-party repository provider for the job.
startJob_jobId :: Lens' StartJob (Maybe Text) Source #
The unique ID for an existing job. This is required if the value of
jobType
is RETRY
.
startJob_jobReason :: Lens' StartJob (Maybe Text) Source #
A descriptive reason for starting this job.
startJob_commitMessage :: Lens' StartJob (Maybe Text) Source #
The commit message from a third-party repository provider for the job.
startJob_jobType :: Lens' StartJob JobType Source #
Describes the type for the job. The job type RELEASE
starts a new job
with the latest change from the specified branch. This value is
available only for apps that are connected to a repository. The job type
RETRY
retries an existing job. If the job type value is RETRY
, the
jobId
is also required.
Destructuring the Response
data StartJobResponse Source #
The result structure for the run job request.
See: newStartJobResponse
smart constructor.
StartJobResponse' | |
|
Instances
:: Int | |
-> JobSummary | |
-> StartJobResponse |
Create a value of StartJobResponse
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:StartJobResponse'
, startJobResponse_httpStatus
- The response's http status code.
$sel:jobSummary:StartJobResponse'
, startJobResponse_jobSummary
- The summary for the job.
Response Lenses
startJobResponse_httpStatus :: Lens' StartJobResponse Int Source #
The response's http status code.
startJobResponse_jobSummary :: Lens' StartJobResponse JobSummary Source #
The summary for the job.