Type of user-defined per-stage configuration.
ReadonlybranchesBranch configurations. Each entry creates a separate CodePipeline.
Optional ReadonlycrossCross-account keys for artifact encryption. Enable when deploying to accounts different from the pipeline account.
Optional ReadonlyselfWhether the pipeline should self-mutate (update its own definition).
ReadonlysourceSource repository configuration.
connectionArn is narrowed to a plain string here. @aws-blocks/pipeline
additionally accepts a config('CONNECTION_ARN') marker, but only on its
async Pipeline.create() path (which awaits synth-time resolution).
definePipeline() synthesizes synchronously (new AmplifyPipelineConstruct),
which rejects a marker connectionArn — so allowing one in the type would be a
contract the runtime can't honor. Pass the ARN literally, or read it into a
string before calling definePipeline().
Optional ReadonlystackOptional CloudFormation stack name for the pipeline stack.
When omitted, defaults to amplify-pipeline-<sanitized-repo-name>.
Provide an explicit name if you need a stable stack name or have
multiple pipelines for the same repository in one account/region.
Optional ReadonlysynthSynth step configuration.
User-facing props for
definePipeline().Unlike the internal PipelineProps, this type does NOT expose
stageFactory—definePipeline()automatically discovers and importsamplify/hosting.tsandamplify/backend.tsfor each stage using the ambient scope pattern (globalThis.__AMPLIFY_PIPELINE_SCOPE__).This is Amplify-specific glue and has no equivalent in
@aws-blocks/pipeline.Example