BitBucketSourceActionProps

class aws_cdk.aws_codepipeline_actions.BitBucketSourceActionProps(*, action_name, run_order=None, variables_namespace=None, role=None, connection_arn, output, owner, repo, branch=None, code_build_clone_output=None, trigger_on_push=None)

Bases: CodeStarConnectionsSourceActionProps

(deprecated) Construction properties for {@link BitBucketSourceAction}.

Parameters:
  • action_name (str) – The physical, human-readable name of the Action. Note that Action names must be unique within a single Stage.

  • run_order (Union[int, float, None]) – The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute. Default: 1

  • variables_namespace (Optional[str]) – The name of the namespace to use for variables emitted by this action. Default: - a name will be generated, based on the stage and action names, if any of the action’s variables were referenced - otherwise, no namespace will be set

  • role (Optional[IRole]) – The Role in which context’s this Action will be executing in. The Pipeline’s Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your {@link IAction.bind} method in the {@link ActionBindOptions.role} property. Default: a new Role will be generated

  • connection_arn (str) – The ARN of the CodeStar Connection created in the AWS console that has permissions to access this GitHub or BitBucket repository.

  • output (Artifact) – The output artifact that this action produces. Can be used as input for further pipeline actions.

  • owner (str) – The owning user or organization of the repository.

  • repo (str) – The name of the repository.

  • branch (Optional[str]) – The branch to build. Default: ‘master’

  • code_build_clone_output (Optional[bool]) – Whether the output should be the contents of the repository (which is the default), or a link that allows CodeBuild to clone the repository before building. Note: if this option is true, then only CodeBuild actions can use the resulting {@link output}. Default: false

  • trigger_on_push (Optional[bool]) – Controls automatically starting your pipeline when a new commit is made on the configured repository and branch. If unspecified, the default value is true, and the field does not display by default. Default: true

Deprecated:

use CodeStarConnectionsSourceActionProps instead

Stability:

deprecated

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_codepipeline as codepipeline
import aws_cdk.aws_codepipeline_actions as codepipeline_actions
import aws_cdk.aws_iam as iam

# artifact: codepipeline.Artifact
# role: iam.Role

bit_bucket_source_action_props = codepipeline_actions.BitBucketSourceActionProps(
    action_name="actionName",
    connection_arn="connectionArn",
    output=artifact,
    owner="owner",
    repo="repo",

    # the properties below are optional
    branch="branch",
    code_build_clone_output=False,
    role=role,
    run_order=123,
    trigger_on_push=False,
    variables_namespace="variablesNamespace"
)

Attributes

action_name

The physical, human-readable name of the Action.

Note that Action names must be unique within a single Stage.

branch

The branch to build.

Default:

‘master’

code_build_clone_output

Whether the output should be the contents of the repository (which is the default), or a link that allows CodeBuild to clone the repository before building.

Note: if this option is true, then only CodeBuild actions can use the resulting {@link output}.

Default:

false

See:

https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-config

connection_arn

The ARN of the CodeStar Connection created in the AWS console that has permissions to access this GitHub or BitBucket repository.

See:

https://docs.aws.amazon.com/codepipeline/latest/userguide/connections-create.html

Example:

"arn:aws:codestar-connections:us-east-1:123456789012:connection/12345678-abcd-12ab-34cdef5678gh"
output

The output artifact that this action produces.

Can be used as input for further pipeline actions.

owner

The owning user or organization of the repository.

Example:

"aws"
repo

The name of the repository.

Example:

"aws-cdk"
role

The Role in which context’s this Action will be executing in.

The Pipeline’s Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your {@link IAction.bind} method in the {@link ActionBindOptions.role} property.

Default:

a new Role will be generated

run_order

The runOrder property for this Action.

RunOrder determines the relative order in which multiple Actions in the same Stage execute.

Default:

1

See:

https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html

trigger_on_push

Controls automatically starting your pipeline when a new commit is made on the configured repository and branch.

If unspecified, the default value is true, and the field does not display by default.

Default:

true

See:

https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html

variables_namespace

The name of the namespace to use for variables emitted by this action.

Default:

  • a name will be generated, based on the stage and action names,

if any of the action’s variables were referenced - otherwise, no namespace will be set