libZSservicesZSamazonka-amplifyZSamazonka-amplify
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Amplify.StartJob

Description

Starts a new job for a branch of an Amplify app.

Synopsis

Creating a Request

data StartJob Source #

The request structure for the start job request.

See: newStartJob smart constructor.

Constructors

StartJob' 

Fields

  • commitId :: Maybe Text

    The commit ID from a third-party repository provider for the job.

  • jobId :: Maybe Text

    The unique ID for an existing job. This is required if the value of jobType is RETRY.

  • jobReason :: Maybe Text

    A descriptive reason for starting this job.

  • commitTime :: Maybe POSIX

    The commit date and time for the job.

  • commitMessage :: Maybe Text

    The commit message from a third-party repository provider for the job.

  • appId :: Text

    The unique ID for an Amplify app.

  • branchName :: Text

    The branch name for the job.

  • jobType :: 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.

Instances

Instances details
Eq StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Read StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Show StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Generic StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Associated Types

type Rep StartJob :: Type -> Type #

Methods

from :: StartJob -> Rep StartJob x #

to :: Rep StartJob x -> StartJob #

NFData StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Methods

rnf :: StartJob -> () #

Hashable StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Methods

hashWithSalt :: Int -> StartJob -> Int #

hash :: StartJob -> Int #

ToJSON StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

AWSRequest StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Associated Types

type AWSResponse StartJob #

ToHeaders StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Methods

toHeaders :: StartJob -> [Header] #

ToPath StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

ToQuery StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

type Rep StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

type AWSResponse StartJob Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

newStartJob Source #

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_commitTime :: Lens' StartJob (Maybe UTCTime) Source #

The commit date and time for the job.

startJob_commitMessage :: Lens' StartJob (Maybe Text) Source #

The commit message from a third-party repository provider for the job.

startJob_appId :: Lens' StartJob Text Source #

The unique ID for an Amplify app.

startJob_branchName :: Lens' StartJob Text Source #

The branch name 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.

Constructors

StartJobResponse' 

Fields

Instances

Instances details
Eq StartJobResponse Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Read StartJobResponse Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Show StartJobResponse Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Generic StartJobResponse Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Associated Types

type Rep StartJobResponse :: Type -> Type #

NFData StartJobResponse Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

Methods

rnf :: StartJobResponse -> () #

type Rep StartJobResponse Source # 
Instance details

Defined in Amazonka.Amplify.StartJob

type Rep StartJobResponse = D1 ('MetaData "StartJobResponse" "Amazonka.Amplify.StartJob" "libZSservicesZSamazonka-amplifyZSamazonka-amplify" 'False) (C1 ('MetaCons "StartJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "jobSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 JobSummary)))

newStartJobResponse Source #

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.