amazonka-codebuild-2.0: Amazon CodeBuild SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeBuild.Types.BuildBatch

Description

 
Synopsis

Documentation

data BuildBatch Source #

Contains information about a batch build.

See: newBuildBatch smart constructor.

Constructors

BuildBatch' 

Fields

  • arn :: Maybe Text

    The ARN of the batch build.

  • artifacts :: Maybe BuildArtifacts

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

  • buildBatchConfig :: Maybe ProjectBuildBatchConfig
     
  • 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.

  • buildBatchStatus :: Maybe StatusType

    The status of the batch build.

  • buildGroups :: Maybe [BuildGroup]

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

  • buildTimeoutInMinutes :: Maybe Int

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

  • cache :: Maybe ProjectCache
     
  • complete :: Maybe Bool

    Indicates if the batch build is complete.

  • currentPhase :: Maybe Text

    The current phase of the batch build.

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

  • 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>).

  • endTime :: Maybe POSIX

    The date and time that the batch build ended.

  • environment :: Maybe ProjectEnvironment
     
  • 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.

  • id :: Maybe Text

    The identifier of the batch build.

  • 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.
  • logConfig :: Maybe LogsConfig
     
  • phases :: Maybe [BuildBatchPhase]

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

  • projectName :: Maybe Text

    The name of the batch build project.

  • queuedTimeoutInMinutes :: Maybe Int

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

  • 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.
  • secondaryArtifacts :: Maybe [BuildArtifacts]

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

  • 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.
  • secondarySources :: Maybe [ProjectSource]

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

  • serviceRole :: Maybe Text

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

  • source :: Maybe ProjectSource
     
  • sourceVersion :: Maybe Text

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

  • startTime :: Maybe POSIX

    The date and time that the batch build started.

  • vpcConfig :: Maybe VpcConfig
     

Instances

Instances details
FromJSON 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 #

Read BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

Show BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

NFData BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

Methods

rnf :: BuildBatch -> () #

Eq BuildBatch Source # 
Instance details

Defined in Amazonka.CodeBuild.Types.BuildBatch

Hashable 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" "amazonka-codebuild-2.0-3KpZspRk9Ul8Wu4D0cM13Q" 'False) (C1 ('MetaCons "BuildBatch'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "artifacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BuildArtifacts)) :*: S1 ('MetaSel ('Just "buildBatchConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectBuildBatchConfig)))) :*: ((S1 ('MetaSel ('Just "buildBatchNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "buildBatchStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StatusType))) :*: (S1 ('MetaSel ('Just "buildGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BuildGroup])) :*: S1 ('MetaSel ('Just "buildTimeoutInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: (((S1 ('MetaSel ('Just "cache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectCache)) :*: S1 ('MetaSel ('Just "complete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "currentPhase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "debugSessionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "encryptionKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "environment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectEnvironment)) :*: S1 ('MetaSel ('Just "fileSystemLocations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProjectFileSystemLocation])))))) :*: (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "initiator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "logConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogsConfig)))) :*: ((S1 ('MetaSel ('Just "phases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BuildBatchPhase])) :*: S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "queuedTimeoutInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "resolvedSourceVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "secondaryArtifacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BuildArtifacts])) :*: S1 ('MetaSel ('Just "secondarySourceVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProjectSourceVersion]))) :*: (S1 ('MetaSel ('Just "secondarySources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProjectSource])) :*: S1 ('MetaSel ('Just "serviceRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectSource)) :*: S1 ('MetaSel ('Just "sourceVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "vpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfig))))))))

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:arn:BuildBatch', buildBatch_arn - The ARN of the batch build.

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

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

$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:buildBatchStatus:BuildBatch', buildBatch_buildBatchStatus - The status of the batch build.

$sel:buildGroups:BuildBatch', buildBatch_buildGroups - An array of BuildGroup objects that define the build groups for the 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:cache:BuildBatch', buildBatch_cache - Undocumented member.

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

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

$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: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>).

BuildBatch, buildBatch_endTime - The date and time that the batch build ended.

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

$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:id:BuildBatch', buildBatch_id - The identifier of the batch build.

$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:logConfig:BuildBatch', buildBatch_logConfig - Undocumented member.

$sel:phases:BuildBatch', buildBatch_phases - An array of BuildBatchPhase objects the specify the phases of the batch build.

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

$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: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:secondaryArtifacts:BuildBatch', buildBatch_secondaryArtifacts - An array of BuildArtifacts objects the define the build artifacts for this batch build.

$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:secondarySources:BuildBatch', buildBatch_secondarySources - An array of ProjectSource objects that define the sources for the batch build.

BuildBatch, buildBatch_serviceRole - The name of a service role used for builds in the batch.

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

BuildBatch, buildBatch_sourceVersion - The identifier of the version of the source code to be built.

BuildBatch, buildBatch_startTime - The date and time that the batch build started.

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

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

The ARN of the batch build.

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

A BuildArtifacts object the defines the build artifacts for this 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_buildGroups :: Lens' BuildBatch (Maybe [BuildGroup]) Source #

An array of BuildGroup objects that define the build groups for the 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_complete :: Lens' BuildBatch (Maybe Bool) Source #

Indicates if the batch build is complete.

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

The current phase of the batch build.

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_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_endTime :: Lens' BuildBatch (Maybe UTCTime) Source #

The date and time that the batch build ended.

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_id :: Lens' BuildBatch (Maybe Text) Source #

The identifier of the 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_phases :: Lens' BuildBatch (Maybe [BuildBatchPhase]) Source #

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

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

The name of the batch build project.

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_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_secondaryArtifacts :: Lens' BuildBatch (Maybe [BuildArtifacts]) Source #

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

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_secondarySources :: Lens' BuildBatch (Maybe [ProjectSource]) Source #

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

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

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

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

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

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

The date and time that the batch build started.