CodeConfig

class aws_cdk.aws_codecommit.CodeConfig(*, code)

Bases: object

Represents the structure to pass into the underlying CfnRepository class.

Parameters:

code (Union[CodeProperty, Dict[str, Any]]) – represents the underlying code structure.

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_codecommit as codecommit

code_config = codecommit.CodeConfig(
    code=codecommit.CfnRepository.CodeProperty(
        s3=codecommit.CfnRepository.S3Property(
            bucket="bucket",
            key="key",

            # the properties below are optional
            object_version="objectVersion"
        ),

        # the properties below are optional
        branch_name="branchName"
    )
)

Attributes

code

represents the underlying code structure.