SourceConfig

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

Bases: object

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

Parameters:
  • source_property (Union[SourceProperty, Dict[str, Any]])

  • build_triggers (Union[ProjectTriggersProperty, Dict[str, Any], None])

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

ExampleMetadata:

fixture=_generated

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
source_property
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