def __init__()

in infra/src/stages/repo_action_bitbucket.py [0:0]


    def __init__(self, scope: Construct):
        stack_scope = Stack.of(scope)
        # Source connection
        owner_parameter = core.CfnParameter(stack_scope, "Owner", type="String",
                                            description="The owner of the repository, e.g. owner-name")
        owner = owner_parameter.value_as_string

        # branch name
        branch_name_parameter = core.CfnParameter(stack_scope, "BranchName", type="String",
                                                  description="The code branch, e.g. master", default="master")
        branch_name = branch_name_parameter.value_as_string

        # branch name
        repo_parameter = core.CfnParameter(stack_scope, "RepoName", type="String",
                                           description="The repository name in Bit bucket. e.g. ml-training")
        repo = repo_parameter.value_as_string

        # Artifact source
        output_artifact = codepipeline.Artifact("source")

        # Bit bucket connection
        bitbucket_connection = codestarconnection.CfnConnection(scope=scope, id="bitbucket_connection",
                                                                connection_name="bitbucket_connection",
                                                                provider_type="Bitbucket")
        bitbucket_arn = bitbucket_connection.attr_connection_arn

        super().__init__(connection_arn=bitbucket_arn, output=output_artifact, owner=owner,
                         repo=repo, action_name="Source", branch=branch_name)