CodeCommitSourceProps¶
-
class
aws_cdk.aws_codebuild.
CodeCommitSourceProps
(*, identifier=None, repository, branch_or_ref=None, clone_depth=None, fetch_submodules=None)¶ Bases:
aws_cdk.aws_codebuild.SourceProps
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 usedclone_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.fetch_submodules (
Optional
[bool
]) – Whether to fetch submodules while cloning git repo. Default: false
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
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
]
-
fetch_submodules
¶ Whether to fetch submodules while cloning git repo.
- Default
false
- Return type
Optional
[bool
]
-
identifier
¶ The source identifier.
This property is required on secondary sources.
- Return type
Optional
[str
]
-
repository
¶ - Return type