SourceConfig

class aws_cdk.aws_codebuild.SourceConfig(*, build_triggers=None, source_property, source_version=None)

Bases: object

The type returned from {@link ISource#bind}.

Parameters
  • build_triggers (Optional[ProjectTriggersProperty]) –

  • source_property (SourceProperty) –

  • source_version (Optional[str]) – AWS::CodeBuild::Project.SourceVersion. Default: the latest version

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_codebuild as codebuild

source_config = codebuild.SourceConfig(
    source_property=codebuild.CfnProject.SourceProperty(
        type="type",

        # the properties below are optional
        auth=codebuild.CfnProject.SourceAuthProperty(
            type="type",

            # the properties below are optional
            resource="resource"
        ),
        build_spec="buildSpec",
        build_status_config=codebuild.CfnProject.BuildStatusConfigProperty(
            context="context",
            target_url="targetUrl"
        ),
        git_clone_depth=123,
        git_submodules_config=codebuild.CfnProject.GitSubmodulesConfigProperty(
            fetch_submodules=False
        ),
        insecure_ssl=False,
        location="location",
        report_build_status=False,
        source_identifier="sourceIdentifier"
    ),

    # the properties below are optional
    build_triggers=codebuild.CfnProject.ProjectTriggersProperty(
        build_type="buildType",
        filter_groups=[[codebuild.CfnProject.WebhookFilterProperty(
            pattern="pattern",
            type="type",

            # the properties below are optional
            exclude_matched_pattern=False
        )]],
        webhook=False
    ),
    source_version="sourceVersion"
)

Attributes

build_triggers
Return type

Optional[ProjectTriggersProperty]

source_property
Return type

SourceProperty

source_version

AWS::CodeBuild::Project.SourceVersion.

Default

the latest version

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-sourceversion

Return type

Optional[str]