CodeCommitSourceProps

class aws_cdk.aws_codebuild.CodeCommitSourceProps(*, identifier=None, repository, branch_or_ref=None, clone_depth=None)

Bases: aws_cdk.aws_codebuild.SourceProps

__init__(*, identifier=None, repository, branch_or_ref=None, clone_depth=None)

Construction properties for {@link CodeCommitSource}.

Parameters
  • identifier (Optional[str]) – The source identifier. This property is required on secondary sources.

  • repository (IRepository) –

  • branch_or_ref (Optional[str]) – The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. Default: the default branch’s HEAD commit ID is used

  • clone_depth (Union[int, float, None]) – The depth of history to download. Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build of the project.

Return type

None

Attributes

branch_or_ref

The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build.

default :default: the default branch’s HEAD commit ID is used

Example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
"mybranch"
Return type

Optional[str]

clone_depth

The depth of history to download.

Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build of the project.

Return type

Union[int, float, None]

identifier

The source identifier.

This property is required on secondary sources.

Return type

Optional[str]

repository
Return type

IRepository