libZSservicesZSamazonka-codebuildZSamazonka-codebuild
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.CodeBuild.Types.BuildBatch

Description

 
Synopsis

Documentation

data BuildBatch Source #

Contains information about a batch build.

See: newBuildBatch smart constructor.

Constructors

BuildBatch' 

Fields

  • phases :: Maybe [BuildBatchPhase]

    An array of BuildBatchPhase objects the specify the phases of the batch build.

  • secondaryArtifacts :: Maybe [BuildArtifacts]

    An array of BuildArtifacts objects the define the build artifacts for this batch build.

  • buildTimeoutInMinutes :: Maybe Int

    Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.

  • debugSessionEnabled :: Maybe Bool

    Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.

  • arn :: Maybe Text

    The ARN of the batch build.

  • startTime :: Maybe POSIX

    The date and time that the batch build started.

  • artifacts :: Maybe BuildArtifacts

    A BuildArtifacts object the defines the build artifacts for this batch build.

  • environment :: Maybe ProjectEnvironment
     
  • initiator :: Maybe Text

    The entity that started the batch build. Valid values include:

    • If CodePipeline started the build, the pipeline's name (for example, codepipeline/my-demo-pipeline).
    • If an IAM user started the build, the user's name.
    • If the Jenkins plugin for CodeBuild started the build, the string CodeBuild-Jenkins-Plugin.
  • secondarySourceVersions :: Maybe [ProjectSourceVersion]

    An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one of:

    • For CodeCommit: the commit ID, branch, or Git tag to use.
    • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example, pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
    • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
    • For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
  • buildBatchStatus :: Maybe StatusType

    The status of the batch build.

  • currentPhase :: Maybe Text

    The current phase of the batch build.

  • buildBatchNumber :: Maybe Integer

    The number of the batch build. For each project, the buildBatchNumber of its first batch build is 1. The buildBatchNumber of each subsequent batch build is incremented by 1. If a batch build is deleted, the buildBatchNumber of other batch builds does not change.

  • queuedTimeoutInMinutes :: Maybe Int

    Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.

  • cache :: Maybe ProjectCache
     
  • secondarySources :: Maybe [ProjectSource]

    An array of ProjectSource objects that define the sources for the batch build.

  • sourceVersion :: Maybe Text

    The identifier of the version of the source code to be built.

  • resolvedSourceVersion :: Maybe Text

    The identifier of the resolved version of this batch build's source code.

    • For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
    • For CodePipeline, the source revision provided by CodePipeline.
    • For Amazon S3, this does not apply.
  • vpcConfig :: Maybe VpcConfig
     
  • endTime :: Maybe POSIX

    The date and time that the batch build ended.

  • projectName :: Maybe Text

    The name of the batch build project.

  • buildGroups :: Maybe [BuildGroup]

    An array of BuildGroup objects that define the build groups for the batch build.

  • source :: Maybe ProjectSource
     
  • id :: Maybe Text

    The identifier of the batch build.

  • fileSystemLocations :: Maybe [ProjectFileSystemLocation]

    An array of ProjectFileSystemLocation objects for the batch build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

  • buildBatchConfig :: Maybe ProjectBuildBatchConfig
     
  • encryptionKey :: Maybe Text

    The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.

    You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

    You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/<alias-name>).

  • logConfig :: Maybe LogsConfig
     
  • serviceRole :: Maybe Text

    The name of a service role used for builds in the batch.

  • complete :: Maybe Bool

    Indicates if the batch build is complete.

Instances

Instances details
Eq BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

Read BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

Show BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

Generic BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

Associated Types

type Rep BuildBatch :: Type -> Type #

NFData BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

Methods

rnf :: BuildBatch -> () #

Hashable BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

FromJSON BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

type Rep BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

type Rep BuildBatch = D1 ('MetaData "BuildBatch" "Amazonka.CodeBuild.Types.BuildBatch" "libZSservicesZSamazonka-codebuildZSamazonka-codebuild" 'False) (C1 ('MetaCons "BuildBatch'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "phases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BuildBatchPhase])) :*: (S1 ('MetaSel ('Just "secondaryArtifacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BuildArtifacts])) :*: S1 ('MetaSel ('Just "buildTimeoutInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "debugSessionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "artifacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BuildArtifacts))))) :*: (((S1 ('MetaSel ('Just "environment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectEnvironment)) :*: S1 ('MetaSel ('Just "initiator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "secondarySourceVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProjectSourceVersion])) :*: S1 ('MetaSel ('Just "buildBatchStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StatusType)))) :*: ((S1 ('MetaSel ('Just "currentPhase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "buildBatchNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "queuedTimeoutInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "cache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectCache)))))) :*: (((S1 ('MetaSel ('Just "secondarySources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProjectSource])) :*: (S1 ('MetaSel ('Just "sourceVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resolvedSourceVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "vpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfig)) :*: S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "buildGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BuildGroup]))))) :*: (((S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectSource)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "fileSystemLocations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProjectFileSystemLocation])) :*: S1 ('MetaSel ('Just "buildBatchConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectBuildBatchConfig)))) :*: ((S1 ('MetaSel ('Just "encryptionKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "logConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogsConfig))) :*: (S1 ('MetaSel ('Just "serviceRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "complete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))))))

newBuildBatch :: BuildBatch Source #

Create a value of BuildBatch 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:phases:BuildBatch', buildBatch_phases - An array of BuildBatchPhase objects the specify the phases of the batch build.

$sel:secondaryArtifacts:BuildBatch', buildBatch_secondaryArtifacts - An array of BuildArtifacts objects the define the build artifacts for this batch build.

$sel:buildTimeoutInMinutes:BuildBatch', buildBatch_buildTimeoutInMinutes - Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.

$sel:debugSessionEnabled:BuildBatch', buildBatch_debugSessionEnabled - Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.

$sel:arn:BuildBatch', buildBatch_arn - The ARN of the batch build.

$sel:startTime:BuildBatch', buildBatch_startTime - The date and time that the batch build started.

$sel:artifacts:BuildBatch', buildBatch_artifacts - A BuildArtifacts object the defines the build artifacts for this batch build.

$sel:environment:BuildBatch', buildBatch_environment - Undocumented member.

$sel:initiator:BuildBatch', buildBatch_initiator - The entity that started the batch build. Valid values include:

  • If CodePipeline started the build, the pipeline's name (for example, codepipeline/my-demo-pipeline).
  • If an IAM user started the build, the user's name.
  • If the Jenkins plugin for CodeBuild started the build, the string CodeBuild-Jenkins-Plugin.

$sel:secondarySourceVersions:BuildBatch', buildBatch_secondarySourceVersions - An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one of:

  • For CodeCommit: the commit ID, branch, or Git tag to use.
  • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example, pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
  • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
  • For Amazon S3: the version ID of the object that represents the build input ZIP file to use.

$sel:buildBatchStatus:BuildBatch', buildBatch_buildBatchStatus - The status of the batch build.

$sel:currentPhase:BuildBatch', buildBatch_currentPhase - The current phase of the batch build.

$sel:buildBatchNumber:BuildBatch', buildBatch_buildBatchNumber - The number of the batch build. For each project, the buildBatchNumber of its first batch build is 1. The buildBatchNumber of each subsequent batch build is incremented by 1. If a batch build is deleted, the buildBatchNumber of other batch builds does not change.

$sel:queuedTimeoutInMinutes:BuildBatch', buildBatch_queuedTimeoutInMinutes - Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.

$sel:cache:BuildBatch', buildBatch_cache - Undocumented member.

$sel:secondarySources:BuildBatch', buildBatch_secondarySources - An array of ProjectSource objects that define the sources for the batch build.

$sel:sourceVersion:BuildBatch', buildBatch_sourceVersion - The identifier of the version of the source code to be built.

$sel:resolvedSourceVersion:BuildBatch', buildBatch_resolvedSourceVersion - The identifier of the resolved version of this batch build's source code.

  • For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
  • For CodePipeline, the source revision provided by CodePipeline.
  • For Amazon S3, this does not apply.

$sel:vpcConfig:BuildBatch', buildBatch_vpcConfig - Undocumented member.

$sel:endTime:BuildBatch', buildBatch_endTime - The date and time that the batch build ended.

$sel:projectName:BuildBatch', buildBatch_projectName - The name of the batch build project.

$sel:buildGroups:BuildBatch', buildBatch_buildGroups - An array of BuildGroup objects that define the build groups for the batch build.

$sel:source:BuildBatch', buildBatch_source - Undocumented member.

$sel:id:BuildBatch', buildBatch_id - The identifier of the batch build.

$sel:fileSystemLocations:BuildBatch', buildBatch_fileSystemLocations - An array of ProjectFileSystemLocation objects for the batch build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

$sel:buildBatchConfig:BuildBatch', buildBatch_buildBatchConfig - Undocumented member.

$sel:encryptionKey:BuildBatch', buildBatch_encryptionKey - The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.

You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/<alias-name>).

$sel:logConfig:BuildBatch', buildBatch_logConfig - Undocumented member.

$sel:serviceRole:BuildBatch', buildBatch_serviceRole - The name of a service role used for builds in the batch.

$sel:complete:BuildBatch', buildBatch_complete - Indicates if the batch build is complete.

buildBatch_phases :: Lens' BuildBatch (Maybe [BuildBatchPhase]) Source #

An array of BuildBatchPhase objects the specify the phases of the batch build.

buildBatch_secondaryArtifacts :: Lens' BuildBatch (Maybe [BuildArtifacts]) Source #

An array of BuildArtifacts objects the define the build artifacts for this batch build.

buildBatch_buildTimeoutInMinutes :: Lens' BuildBatch (Maybe Int) Source #

Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.

buildBatch_debugSessionEnabled :: Lens' BuildBatch (Maybe Bool) Source #

Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.

buildBatch_arn :: Lens' BuildBatch (Maybe Text) Source #

The ARN of the batch build.

buildBatch_startTime :: Lens' BuildBatch (Maybe UTCTime) Source #

The date and time that the batch build started.

buildBatch_artifacts :: Lens' BuildBatch (Maybe BuildArtifacts) Source #

A BuildArtifacts object the defines the build artifacts for this batch build.

buildBatch_initiator :: Lens' BuildBatch (Maybe Text) Source #

The entity that started the batch build. Valid values include:

  • If CodePipeline started the build, the pipeline's name (for example, codepipeline/my-demo-pipeline).
  • If an IAM user started the build, the user's name.
  • If the Jenkins plugin for CodeBuild started the build, the string CodeBuild-Jenkins-Plugin.

buildBatch_secondarySourceVersions :: Lens' BuildBatch (Maybe [ProjectSourceVersion]) Source #

An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one of:

  • For CodeCommit: the commit ID, branch, or Git tag to use.
  • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example, pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
  • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
  • For Amazon S3: the version ID of the object that represents the build input ZIP file to use.

buildBatch_currentPhase :: Lens' BuildBatch (Maybe Text) Source #

The current phase of the batch build.

buildBatch_buildBatchNumber :: Lens' BuildBatch (Maybe Integer) Source #

The number of the batch build. For each project, the buildBatchNumber of its first batch build is 1. The buildBatchNumber of each subsequent batch build is incremented by 1. If a batch build is deleted, the buildBatchNumber of other batch builds does not change.

buildBatch_queuedTimeoutInMinutes :: Lens' BuildBatch (Maybe Int) Source #

Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.

buildBatch_secondarySources :: Lens' BuildBatch (Maybe [ProjectSource]) Source #

An array of ProjectSource objects that define the sources for the batch build.

buildBatch_sourceVersion :: Lens' BuildBatch (Maybe Text) Source #

The identifier of the version of the source code to be built.

buildBatch_resolvedSourceVersion :: Lens' BuildBatch (Maybe Text) Source #

The identifier of the resolved version of this batch build's source code.

  • For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
  • For CodePipeline, the source revision provided by CodePipeline.
  • For Amazon S3, this does not apply.

buildBatch_endTime :: Lens' BuildBatch (Maybe UTCTime) Source #

The date and time that the batch build ended.

buildBatch_projectName :: Lens' BuildBatch (Maybe Text) Source #

The name of the batch build project.

buildBatch_buildGroups :: Lens' BuildBatch (Maybe [BuildGroup]) Source #

An array of BuildGroup objects that define the build groups for the batch build.

buildBatch_id :: Lens' BuildBatch (Maybe Text) Source #

The identifier of the batch build.

buildBatch_fileSystemLocations :: Lens' BuildBatch (Maybe [ProjectFileSystemLocation]) Source #

An array of ProjectFileSystemLocation objects for the batch build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

buildBatch_encryptionKey :: Lens' BuildBatch (Maybe Text) Source #

The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.

You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/<alias-name>).

buildBatch_serviceRole :: Lens' BuildBatch (Maybe Text) Source #

The name of a service role used for builds in the batch.

buildBatch_complete :: Lens' BuildBatch (Maybe Bool) Source #

Indicates if the batch build is complete.