1. Packages
  2. AWS
  3. API Docs
  4. codepipeline
  5. Pipeline
AWS v6.77.1 published on Friday, Apr 18, 2025 by Pulumi

aws.codepipeline.Pipeline

Explore with Pulumi AI

Provides a CodePipeline.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.codestarconnections.Connection("example", {
    name: "example-connection",
    providerType: "GitHub",
});
const codepipelineBucket = new aws.s3.BucketV2("codepipeline_bucket", {bucket: "test-bucket"});
const assumeRole = aws.iam.getPolicyDocument({
    statements: [{
        effect: "Allow",
        principals: [{
            type: "Service",
            identifiers: ["codepipeline.amazonaws.com"],
        }],
        actions: ["sts:AssumeRole"],
    }],
});
const codepipelineRole = new aws.iam.Role("codepipeline_role", {
    name: "test-role",
    assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
});
const s3kmskey = aws.kms.getAlias({
    name: "alias/myKmsKey",
});
const codepipeline = new aws.codepipeline.Pipeline("codepipeline", {
    name: "tf-test-pipeline",
    roleArn: codepipelineRole.arn,
    artifactStores: [{
        location: codepipelineBucket.bucket,
        type: "S3",
        encryptionKey: {
            id: s3kmskey.then(s3kmskey => s3kmskey.arn),
            type: "KMS",
        },
    }],
    stages: [
        {
            name: "Source",
            actions: [{
                name: "Source",
                category: "Source",
                owner: "AWS",
                provider: "CodeStarSourceConnection",
                version: "1",
                outputArtifacts: ["source_output"],
                configuration: {
                    ConnectionArn: example.arn,
                    FullRepositoryId: "my-organization/example",
                    BranchName: "main",
                },
            }],
        },
        {
            name: "Build",
            actions: [{
                name: "Build",
                category: "Build",
                owner: "AWS",
                provider: "CodeBuild",
                inputArtifacts: ["source_output"],
                outputArtifacts: ["build_output"],
                version: "1",
                configuration: {
                    ProjectName: "test",
                },
            }],
        },
        {
            name: "Deploy",
            actions: [{
                name: "Deploy",
                category: "Deploy",
                owner: "AWS",
                provider: "CloudFormation",
                inputArtifacts: ["build_output"],
                version: "1",
                configuration: {
                    ActionMode: "REPLACE_ON_FAILURE",
                    Capabilities: "CAPABILITY_AUTO_EXPAND,CAPABILITY_IAM",
                    OutputFileName: "CreateStackOutput.json",
                    StackName: "MyStack",
                    TemplatePath: "build_output::sam-templated.yaml",
                },
            }],
        },
    ],
});
const codepipelineBucketPab = new aws.s3.BucketPublicAccessBlock("codepipeline_bucket_pab", {
    bucket: codepipelineBucket.id,
    blockPublicAcls: true,
    blockPublicPolicy: true,
    ignorePublicAcls: true,
    restrictPublicBuckets: true,
});
const codepipelinePolicy = aws.iam.getPolicyDocumentOutput({
    statements: [
        {
            effect: "Allow",
            actions: [
                "s3:GetObject",
                "s3:GetObjectVersion",
                "s3:GetBucketVersioning",
                "s3:PutObjectAcl",
                "s3:PutObject",
            ],
            resources: [
                codepipelineBucket.arn,
                pulumi.interpolate`${codepipelineBucket.arn}/*`,
            ],
        },
        {
            effect: "Allow",
            actions: ["codestar-connections:UseConnection"],
            resources: [example.arn],
        },
        {
            effect: "Allow",
            actions: [
                "codebuild:BatchGetBuilds",
                "codebuild:StartBuild",
            ],
            resources: ["*"],
        },
    ],
});
const codepipelinePolicyRolePolicy = new aws.iam.RolePolicy("codepipeline_policy", {
    name: "codepipeline_policy",
    role: codepipelineRole.id,
    policy: codepipelinePolicy.apply(codepipelinePolicy => codepipelinePolicy.json),
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.codestarconnections.Connection("example",
    name="example-connection",
    provider_type="GitHub")
codepipeline_bucket = aws.s3.BucketV2("codepipeline_bucket", bucket="test-bucket")
assume_role = aws.iam.get_policy_document(statements=[{
    "effect": "Allow",
    "principals": [{
        "type": "Service",
        "identifiers": ["codepipeline.amazonaws.com"],
    }],
    "actions": ["sts:AssumeRole"],
}])
codepipeline_role = aws.iam.Role("codepipeline_role",
    name="test-role",
    assume_role_policy=assume_role.json)
s3kmskey = aws.kms.get_alias(name="alias/myKmsKey")
codepipeline = aws.codepipeline.Pipeline("codepipeline",
    name="tf-test-pipeline",
    role_arn=codepipeline_role.arn,
    artifact_stores=[{
        "location": codepipeline_bucket.bucket,
        "type": "S3",
        "encryption_key": {
            "id": s3kmskey.arn,
            "type": "KMS",
        },
    }],
    stages=[
        {
            "name": "Source",
            "actions": [{
                "name": "Source",
                "category": "Source",
                "owner": "AWS",
                "provider": "CodeStarSourceConnection",
                "version": "1",
                "output_artifacts": ["source_output"],
                "configuration": {
                    "ConnectionArn": example.arn,
                    "FullRepositoryId": "my-organization/example",
                    "BranchName": "main",
                },
            }],
        },
        {
            "name": "Build",
            "actions": [{
                "name": "Build",
                "category": "Build",
                "owner": "AWS",
                "provider": "CodeBuild",
                "input_artifacts": ["source_output"],
                "output_artifacts": ["build_output"],
                "version": "1",
                "configuration": {
                    "ProjectName": "test",
                },
            }],
        },
        {
            "name": "Deploy",
            "actions": [{
                "name": "Deploy",
                "category": "Deploy",
                "owner": "AWS",
                "provider": "CloudFormation",
                "input_artifacts": ["build_output"],
                "version": "1",
                "configuration": {
                    "ActionMode": "REPLACE_ON_FAILURE",
                    "Capabilities": "CAPABILITY_AUTO_EXPAND,CAPABILITY_IAM",
                    "OutputFileName": "CreateStackOutput.json",
                    "StackName": "MyStack",
                    "TemplatePath": "build_output::sam-templated.yaml",
                },
            }],
        },
    ])
codepipeline_bucket_pab = aws.s3.BucketPublicAccessBlock("codepipeline_bucket_pab",
    bucket=codepipeline_bucket.id,
    block_public_acls=True,
    block_public_policy=True,
    ignore_public_acls=True,
    restrict_public_buckets=True)
codepipeline_policy = aws.iam.get_policy_document_output(statements=[
    {
        "effect": "Allow",
        "actions": [
            "s3:GetObject",
            "s3:GetObjectVersion",
            "s3:GetBucketVersioning",
            "s3:PutObjectAcl",
            "s3:PutObject",
        ],
        "resources": [
            codepipeline_bucket.arn,
            codepipeline_bucket.arn.apply(lambda arn: f"{arn}/*"),
        ],
    },
    {
        "effect": "Allow",
        "actions": ["codestar-connections:UseConnection"],
        "resources": [example.arn],
    },
    {
        "effect": "Allow",
        "actions": [
            "codebuild:BatchGetBuilds",
            "codebuild:StartBuild",
        ],
        "resources": ["*"],
    },
])
codepipeline_policy_role_policy = aws.iam.RolePolicy("codepipeline_policy",
    name="codepipeline_policy",
    role=codepipeline_role.id,
    policy=codepipeline_policy.json)
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codepipeline"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codestarconnections"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := codestarconnections.NewConnection(ctx, "example", &codestarconnections.ConnectionArgs{
			Name:         pulumi.String("example-connection"),
			ProviderType: pulumi.String("GitHub"),
		})
		if err != nil {
			return err
		}
		codepipelineBucket, err := s3.NewBucketV2(ctx, "codepipeline_bucket", &s3.BucketV2Args{
			Bucket: pulumi.String("test-bucket"),
		})
		if err != nil {
			return err
		}
		assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
			Statements: []iam.GetPolicyDocumentStatement{
				{
					Effect: pulumi.StringRef("Allow"),
					Principals: []iam.GetPolicyDocumentStatementPrincipal{
						{
							Type: "Service",
							Identifiers: []string{
								"codepipeline.amazonaws.com",
							},
						},
					},
					Actions: []string{
						"sts:AssumeRole",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		codepipelineRole, err := iam.NewRole(ctx, "codepipeline_role", &iam.RoleArgs{
			Name:             pulumi.String("test-role"),
			AssumeRolePolicy: pulumi.String(assumeRole.Json),
		})
		if err != nil {
			return err
		}
		s3kmskey, err := kms.LookupAlias(ctx, &kms.LookupAliasArgs{
			Name: "alias/myKmsKey",
		}, nil)
		if err != nil {
			return err
		}
		_, err = codepipeline.NewPipeline(ctx, "codepipeline", &codepipeline.PipelineArgs{
			Name:    pulumi.String("tf-test-pipeline"),
			RoleArn: codepipelineRole.Arn,
			ArtifactStores: codepipeline.PipelineArtifactStoreArray{
				&codepipeline.PipelineArtifactStoreArgs{
					Location: codepipelineBucket.Bucket,
					Type:     pulumi.String("S3"),
					EncryptionKey: &codepipeline.PipelineArtifactStoreEncryptionKeyArgs{
						Id:   pulumi.String(s3kmskey.Arn),
						Type: pulumi.String("KMS"),
					},
				},
			},
			Stages: codepipeline.PipelineStageArray{
				&codepipeline.PipelineStageArgs{
					Name: pulumi.String("Source"),
					Actions: codepipeline.PipelineStageActionArray{
						&codepipeline.PipelineStageActionArgs{
							Name:     pulumi.String("Source"),
							Category: pulumi.String("Source"),
							Owner:    pulumi.String("AWS"),
							Provider: pulumi.String("CodeStarSourceConnection"),
							Version:  pulumi.String("1"),
							OutputArtifacts: pulumi.StringArray{
								pulumi.String("source_output"),
							},
							Configuration: pulumi.StringMap{
								"ConnectionArn":    example.Arn,
								"FullRepositoryId": pulumi.String("my-organization/example"),
								"BranchName":       pulumi.String("main"),
							},
						},
					},
				},
				&codepipeline.PipelineStageArgs{
					Name: pulumi.String("Build"),
					Actions: codepipeline.PipelineStageActionArray{
						&codepipeline.PipelineStageActionArgs{
							Name:     pulumi.String("Build"),
							Category: pulumi.String("Build"),
							Owner:    pulumi.String("AWS"),
							Provider: pulumi.String("CodeBuild"),
							InputArtifacts: pulumi.StringArray{
								pulumi.String("source_output"),
							},
							OutputArtifacts: pulumi.StringArray{
								pulumi.String("build_output"),
							},
							Version: pulumi.String("1"),
							Configuration: pulumi.StringMap{
								"ProjectName": pulumi.String("test"),
							},
						},
					},
				},
				&codepipeline.PipelineStageArgs{
					Name: pulumi.String("Deploy"),
					Actions: codepipeline.PipelineStageActionArray{
						&codepipeline.PipelineStageActionArgs{
							Name:     pulumi.String("Deploy"),
							Category: pulumi.String("Deploy"),
							Owner:    pulumi.String("AWS"),
							Provider: pulumi.String("CloudFormation"),
							InputArtifacts: pulumi.StringArray{
								pulumi.String("build_output"),
							},
							Version: pulumi.String("1"),
							Configuration: pulumi.StringMap{
								"ActionMode":     pulumi.String("REPLACE_ON_FAILURE"),
								"Capabilities":   pulumi.String("CAPABILITY_AUTO_EXPAND,CAPABILITY_IAM"),
								"OutputFileName": pulumi.String("CreateStackOutput.json"),
								"StackName":      pulumi.String("MyStack"),
								"TemplatePath":   pulumi.String("build_output::sam-templated.yaml"),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = s3.NewBucketPublicAccessBlock(ctx, "codepipeline_bucket_pab", &s3.BucketPublicAccessBlockArgs{
			Bucket:                codepipelineBucket.ID(),
			BlockPublicAcls:       pulumi.Bool(true),
			BlockPublicPolicy:     pulumi.Bool(true),
			IgnorePublicAcls:      pulumi.Bool(true),
			RestrictPublicBuckets: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		codepipelinePolicy := iam.GetPolicyDocumentOutput(ctx, iam.GetPolicyDocumentOutputArgs{
			Statements: iam.GetPolicyDocumentStatementArray{
				&iam.GetPolicyDocumentStatementArgs{
					Effect: pulumi.String("Allow"),
					Actions: pulumi.StringArray{
						pulumi.String("s3:GetObject"),
						pulumi.String("s3:GetObjectVersion"),
						pulumi.String("s3:GetBucketVersioning"),
						pulumi.String("s3:PutObjectAcl"),
						pulumi.String("s3:PutObject"),
					},
					Resources: pulumi.StringArray{
						codepipelineBucket.Arn,
						codepipelineBucket.Arn.ApplyT(func(arn string) (string, error) {
							return fmt.Sprintf("%v/*", arn), nil
						}).(pulumi.StringOutput),
					},
				},
				&iam.GetPolicyDocumentStatementArgs{
					Effect: pulumi.String("Allow"),
					Actions: pulumi.StringArray{
						pulumi.String("codestar-connections:UseConnection"),
					},
					Resources: pulumi.StringArray{
						example.Arn,
					},
				},
				&iam.GetPolicyDocumentStatementArgs{
					Effect: pulumi.String("Allow"),
					Actions: pulumi.StringArray{
						pulumi.String("codebuild:BatchGetBuilds"),
						pulumi.String("codebuild:StartBuild"),
					},
					Resources: pulumi.StringArray{
						pulumi.String("*"),
					},
				},
			},
		}, nil)
		_, err = iam.NewRolePolicy(ctx, "codepipeline_policy", &iam.RolePolicyArgs{
			Name: pulumi.String("codepipeline_policy"),
			Role: codepipelineRole.ID(),
			Policy: pulumi.String(codepipelinePolicy.ApplyT(func(codepipelinePolicy iam.GetPolicyDocumentResult) (*string, error) {
				return &codepipelinePolicy.Json, nil
			}).(pulumi.StringPtrOutput)),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.CodeStarConnections.Connection("example", new()
    {
        Name = "example-connection",
        ProviderType = "GitHub",
    });

    var codepipelineBucket = new Aws.S3.BucketV2("codepipeline_bucket", new()
    {
        Bucket = "test-bucket",
    });

    var assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
    {
        Statements = new[]
        {
            new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
            {
                Effect = "Allow",
                Principals = new[]
                {
                    new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                    {
                        Type = "Service",
                        Identifiers = new[]
                        {
                            "codepipeline.amazonaws.com",
                        },
                    },
                },
                Actions = new[]
                {
                    "sts:AssumeRole",
                },
            },
        },
    });

    var codepipelineRole = new Aws.Iam.Role("codepipeline_role", new()
    {
        Name = "test-role",
        AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
    });

    var s3kmskey = Aws.Kms.GetAlias.Invoke(new()
    {
        Name = "alias/myKmsKey",
    });

    var codepipeline = new Aws.CodePipeline.Pipeline("codepipeline", new()
    {
        Name = "tf-test-pipeline",
        RoleArn = codepipelineRole.Arn,
        ArtifactStores = new[]
        {
            new Aws.CodePipeline.Inputs.PipelineArtifactStoreArgs
            {
                Location = codepipelineBucket.Bucket,
                Type = "S3",
                EncryptionKey = new Aws.CodePipeline.Inputs.PipelineArtifactStoreEncryptionKeyArgs
                {
                    Id = s3kmskey.Apply(getAliasResult => getAliasResult.Arn),
                    Type = "KMS",
                },
            },
        },
        Stages = new[]
        {
            new Aws.CodePipeline.Inputs.PipelineStageArgs
            {
                Name = "Source",
                Actions = new[]
                {
                    new Aws.CodePipeline.Inputs.PipelineStageActionArgs
                    {
                        Name = "Source",
                        Category = "Source",
                        Owner = "AWS",
                        Provider = "CodeStarSourceConnection",
                        Version = "1",
                        OutputArtifacts = new[]
                        {
                            "source_output",
                        },
                        Configuration = 
                        {
                            { "ConnectionArn", example.Arn },
                            { "FullRepositoryId", "my-organization/example" },
                            { "BranchName", "main" },
                        },
                    },
                },
            },
            new Aws.CodePipeline.Inputs.PipelineStageArgs
            {
                Name = "Build",
                Actions = new[]
                {
                    new Aws.CodePipeline.Inputs.PipelineStageActionArgs
                    {
                        Name = "Build",
                        Category = "Build",
                        Owner = "AWS",
                        Provider = "CodeBuild",
                        InputArtifacts = new[]
                        {
                            "source_output",
                        },
                        OutputArtifacts = new[]
                        {
                            "build_output",
                        },
                        Version = "1",
                        Configuration = 
                        {
                            { "ProjectName", "test" },
                        },
                    },
                },
            },
            new Aws.CodePipeline.Inputs.PipelineStageArgs
            {
                Name = "Deploy",
                Actions = new[]
                {
                    new Aws.CodePipeline.Inputs.PipelineStageActionArgs
                    {
                        Name = "Deploy",
                        Category = "Deploy",
                        Owner = "AWS",
                        Provider = "CloudFormation",
                        InputArtifacts = new[]
                        {
                            "build_output",
                        },
                        Version = "1",
                        Configuration = 
                        {
                            { "ActionMode", "REPLACE_ON_FAILURE" },
                            { "Capabilities", "CAPABILITY_AUTO_EXPAND,CAPABILITY_IAM" },
                            { "OutputFileName", "CreateStackOutput.json" },
                            { "StackName", "MyStack" },
                            { "TemplatePath", "build_output::sam-templated.yaml" },
                        },
                    },
                },
            },
        },
    });

    var codepipelineBucketPab = new Aws.S3.BucketPublicAccessBlock("codepipeline_bucket_pab", new()
    {
        Bucket = codepipelineBucket.Id,
        BlockPublicAcls = true,
        BlockPublicPolicy = true,
        IgnorePublicAcls = true,
        RestrictPublicBuckets = true,
    });

    var codepipelinePolicy = Aws.Iam.GetPolicyDocument.Invoke(new()
    {
        Statements = new[]
        {
            new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
            {
                Effect = "Allow",
                Actions = new[]
                {
                    "s3:GetObject",
                    "s3:GetObjectVersion",
                    "s3:GetBucketVersioning",
                    "s3:PutObjectAcl",
                    "s3:PutObject",
                },
                Resources = new[]
                {
                    codepipelineBucket.Arn,
                    $"{codepipelineBucket.Arn}/*",
                },
            },
            new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
            {
                Effect = "Allow",
                Actions = new[]
                {
                    "codestar-connections:UseConnection",
                },
                Resources = new[]
                {
                    example.Arn,
                },
            },
            new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
            {
                Effect = "Allow",
                Actions = new[]
                {
                    "codebuild:BatchGetBuilds",
                    "codebuild:StartBuild",
                },
                Resources = new[]
                {
                    "*",
                },
            },
        },
    });

    var codepipelinePolicyRolePolicy = new Aws.Iam.RolePolicy("codepipeline_policy", new()
    {
        Name = "codepipeline_policy",
        Role = codepipelineRole.Id,
        Policy = codepipelinePolicy.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codestarconnections.Connection;
import com.pulumi.aws.codestarconnections.ConnectionArgs;
import com.pulumi.aws.s3.BucketV2;
import com.pulumi.aws.s3.BucketV2Args;
import com.pulumi.aws.iam.IamFunctions;
import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.kms.KmsFunctions;
import com.pulumi.aws.kms.inputs.GetAliasArgs;
import com.pulumi.aws.codepipeline.Pipeline;
import com.pulumi.aws.codepipeline.PipelineArgs;
import com.pulumi.aws.codepipeline.inputs.PipelineArtifactStoreArgs;
import com.pulumi.aws.codepipeline.inputs.PipelineArtifactStoreEncryptionKeyArgs;
import com.pulumi.aws.codepipeline.inputs.PipelineStageArgs;
import com.pulumi.aws.s3.BucketPublicAccessBlock;
import com.pulumi.aws.s3.BucketPublicAccessBlockArgs;
import com.pulumi.aws.iam.RolePolicy;
import com.pulumi.aws.iam.RolePolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Connection("example", ConnectionArgs.builder()
            .name("example-connection")
            .providerType("GitHub")
            .build());

        var codepipelineBucket = new BucketV2("codepipelineBucket", BucketV2Args.builder()
            .bucket("test-bucket")
            .build());

        final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
            .statements(GetPolicyDocumentStatementArgs.builder()
                .effect("Allow")
                .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                    .type("Service")
                    .identifiers("codepipeline.amazonaws.com")
                    .build())
                .actions("sts:AssumeRole")
                .build())
            .build());

        var codepipelineRole = new Role("codepipelineRole", RoleArgs.builder()
            .name("test-role")
            .assumeRolePolicy(assumeRole.json())
            .build());

        final var s3kmskey = KmsFunctions.getAlias(GetAliasArgs.builder()
            .name("alias/myKmsKey")
            .build());

        var codepipeline = new Pipeline("codepipeline", PipelineArgs.builder()
            .name("tf-test-pipeline")
            .roleArn(codepipelineRole.arn())
            .artifactStores(PipelineArtifactStoreArgs.builder()
                .location(codepipelineBucket.bucket())
                .type("S3")
                .encryptionKey(PipelineArtifactStoreEncryptionKeyArgs.builder()
                    .id(s3kmskey.arn())
                    .type("KMS")
                    .build())
                .build())
            .stages(            
                PipelineStageArgs.builder()
                    .name("Source")
                    .actions(PipelineStageActionArgs.builder()
                        .name("Source")
                        .category("Source")
                        .owner("AWS")
                        .provider("CodeStarSourceConnection")
                        .version("1")
                        .outputArtifacts("source_output")
                        .configuration(Map.ofEntries(
                            Map.entry("ConnectionArn", example.arn()),
                            Map.entry("FullRepositoryId", "my-organization/example"),
                            Map.entry("BranchName", "main")
                        ))
                        .build())
                    .build(),
                PipelineStageArgs.builder()
                    .name("Build")
                    .actions(PipelineStageActionArgs.builder()
                        .name("Build")
                        .category("Build")
                        .owner("AWS")
                        .provider("CodeBuild")
                        .inputArtifacts("source_output")
                        .outputArtifacts("build_output")
                        .version("1")
                        .configuration(Map.of("ProjectName", "test"))
                        .build())
                    .build(),
                PipelineStageArgs.builder()
                    .name("Deploy")
                    .actions(PipelineStageActionArgs.builder()
                        .name("Deploy")
                        .category("Deploy")
                        .owner("AWS")
                        .provider("CloudFormation")
                        .inputArtifacts("build_output")
                        .version("1")
                        .configuration(Map.ofEntries(
                            Map.entry("ActionMode", "REPLACE_ON_FAILURE"),
                            Map.entry("Capabilities", "CAPABILITY_AUTO_EXPAND,CAPABILITY_IAM"),
                            Map.entry("OutputFileName", "CreateStackOutput.json"),
                            Map.entry("StackName", "MyStack"),
                            Map.entry("TemplatePath", "build_output::sam-templated.yaml")
                        ))
                        .build())
                    .build())
            .build());

        var codepipelineBucketPab = new BucketPublicAccessBlock("codepipelineBucketPab", BucketPublicAccessBlockArgs.builder()
            .bucket(codepipelineBucket.id())
            .blockPublicAcls(true)
            .blockPublicPolicy(true)
            .ignorePublicAcls(true)
            .restrictPublicBuckets(true)
            .build());

        final var codepipelinePolicy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
            .statements(            
                GetPolicyDocumentStatementArgs.builder()
                    .effect("Allow")
                    .actions(                    
                        "s3:GetObject",
                        "s3:GetObjectVersion",
                        "s3:GetBucketVersioning",
                        "s3:PutObjectAcl",
                        "s3:PutObject")
                    .resources(                    
                        codepipelineBucket.arn(),
                        codepipelineBucket.arn().applyValue(_arn -> String.format("%s/*", _arn)))
                    .build(),
                GetPolicyDocumentStatementArgs.builder()
                    .effect("Allow")
                    .actions("codestar-connections:UseConnection")
                    .resources(example.arn())
                    .build(),
                GetPolicyDocumentStatementArgs.builder()
                    .effect("Allow")
                    .actions(                    
                        "codebuild:BatchGetBuilds",
                        "codebuild:StartBuild")
                    .resources("*")
                    .build())
            .build());

        var codepipelinePolicyRolePolicy = new RolePolicy("codepipelinePolicyRolePolicy", RolePolicyArgs.builder()
            .name("codepipeline_policy")
            .role(codepipelineRole.id())
            .policy(codepipelinePolicy.applyValue(_codepipelinePolicy -> _codepipelinePolicy.json()))
            .build());

    }
}
Copy
resources:
  codepipeline:
    type: aws:codepipeline:Pipeline
    properties:
      name: tf-test-pipeline
      roleArn: ${codepipelineRole.arn}
      artifactStores:
        - location: ${codepipelineBucket.bucket}
          type: S3
          encryptionKey:
            id: ${s3kmskey.arn}
            type: KMS
      stages:
        - name: Source
          actions:
            - name: Source
              category: Source
              owner: AWS
              provider: CodeStarSourceConnection
              version: '1'
              outputArtifacts:
                - source_output
              configuration:
                ConnectionArn: ${example.arn}
                FullRepositoryId: my-organization/example
                BranchName: main
        - name: Build
          actions:
            - name: Build
              category: Build
              owner: AWS
              provider: CodeBuild
              inputArtifacts:
                - source_output
              outputArtifacts:
                - build_output
              version: '1'
              configuration:
                ProjectName: test
        - name: Deploy
          actions:
            - name: Deploy
              category: Deploy
              owner: AWS
              provider: CloudFormation
              inputArtifacts:
                - build_output
              version: '1'
              configuration:
                ActionMode: REPLACE_ON_FAILURE
                Capabilities: CAPABILITY_AUTO_EXPAND,CAPABILITY_IAM
                OutputFileName: CreateStackOutput.json
                StackName: MyStack
                TemplatePath: build_output::sam-templated.yaml
  example:
    type: aws:codestarconnections:Connection
    properties:
      name: example-connection
      providerType: GitHub
  codepipelineBucket:
    type: aws:s3:BucketV2
    name: codepipeline_bucket
    properties:
      bucket: test-bucket
  codepipelineBucketPab:
    type: aws:s3:BucketPublicAccessBlock
    name: codepipeline_bucket_pab
    properties:
      bucket: ${codepipelineBucket.id}
      blockPublicAcls: true
      blockPublicPolicy: true
      ignorePublicAcls: true
      restrictPublicBuckets: true
  codepipelineRole:
    type: aws:iam:Role
    name: codepipeline_role
    properties:
      name: test-role
      assumeRolePolicy: ${assumeRole.json}
  codepipelinePolicyRolePolicy:
    type: aws:iam:RolePolicy
    name: codepipeline_policy
    properties:
      name: codepipeline_policy
      role: ${codepipelineRole.id}
      policy: ${codepipelinePolicy.json}
variables:
  assumeRole:
    fn::invoke:
      function: aws:iam:getPolicyDocument
      arguments:
        statements:
          - effect: Allow
            principals:
              - type: Service
                identifiers:
                  - codepipeline.amazonaws.com
            actions:
              - sts:AssumeRole
  codepipelinePolicy:
    fn::invoke:
      function: aws:iam:getPolicyDocument
      arguments:
        statements:
          - effect: Allow
            actions:
              - s3:GetObject
              - s3:GetObjectVersion
              - s3:GetBucketVersioning
              - s3:PutObjectAcl
              - s3:PutObject
            resources:
              - ${codepipelineBucket.arn}
              - ${codepipelineBucket.arn}/*
          - effect: Allow
            actions:
              - codestar-connections:UseConnection
            resources:
              - ${example.arn}
          - effect: Allow
            actions:
              - codebuild:BatchGetBuilds
              - codebuild:StartBuild
            resources:
              - '*'
  s3kmskey:
    fn::invoke:
      function: aws:kms:getAlias
      arguments:
        name: alias/myKmsKey
Copy

Create Pipeline Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Pipeline(name: string, args: PipelineArgs, opts?: CustomResourceOptions);
@overload
def Pipeline(resource_name: str,
             args: PipelineArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def Pipeline(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             artifact_stores: Optional[Sequence[PipelineArtifactStoreArgs]] = None,
             role_arn: Optional[str] = None,
             stages: Optional[Sequence[PipelineStageArgs]] = None,
             execution_mode: Optional[str] = None,
             name: Optional[str] = None,
             pipeline_type: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None,
             triggers: Optional[Sequence[PipelineTriggerArgs]] = None,
             variables: Optional[Sequence[PipelineVariableArgs]] = None)
func NewPipeline(ctx *Context, name string, args PipelineArgs, opts ...ResourceOption) (*Pipeline, error)
public Pipeline(string name, PipelineArgs args, CustomResourceOptions? opts = null)
public Pipeline(String name, PipelineArgs args)
public Pipeline(String name, PipelineArgs args, CustomResourceOptions options)
type: aws:codepipeline:Pipeline
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PipelineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PipelineArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PipelineArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PipelineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PipelineArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var pipelineResource = new Aws.CodePipeline.Pipeline("pipelineResource", new()
{
    ArtifactStores = new[]
    {
        new Aws.CodePipeline.Inputs.PipelineArtifactStoreArgs
        {
            Location = "string",
            Type = "string",
            EncryptionKey = new Aws.CodePipeline.Inputs.PipelineArtifactStoreEncryptionKeyArgs
            {
                Id = "string",
                Type = "string",
            },
            Region = "string",
        },
    },
    RoleArn = "string",
    Stages = new[]
    {
        new Aws.CodePipeline.Inputs.PipelineStageArgs
        {
            Actions = new[]
            {
                new Aws.CodePipeline.Inputs.PipelineStageActionArgs
                {
                    Owner = "string",
                    Name = "string",
                    Category = "string",
                    Provider = "string",
                    Version = "string",
                    Configuration = 
                    {
                        { "string", "string" },
                    },
                    InputArtifacts = new[]
                    {
                        "string",
                    },
                    Namespace = "string",
                    OutputArtifacts = new[]
                    {
                        "string",
                    },
                    Region = "string",
                    RoleArn = "string",
                    RunOrder = 0,
                    TimeoutInMinutes = 0,
                },
            },
            Name = "string",
            BeforeEntry = new Aws.CodePipeline.Inputs.PipelineStageBeforeEntryArgs
            {
                Condition = new Aws.CodePipeline.Inputs.PipelineStageBeforeEntryConditionArgs
                {
                    Rules = new[]
                    {
                        new Aws.CodePipeline.Inputs.PipelineStageBeforeEntryConditionRuleArgs
                        {
                            Name = "string",
                            RuleTypeId = new Aws.CodePipeline.Inputs.PipelineStageBeforeEntryConditionRuleRuleTypeIdArgs
                            {
                                Category = "string",
                                Provider = "string",
                                Owner = "string",
                                Version = "string",
                            },
                            Commands = new[]
                            {
                                "string",
                            },
                            Configuration = 
                            {
                                { "string", "string" },
                            },
                            InputArtifacts = new[]
                            {
                                "string",
                            },
                            Region = "string",
                            RoleArn = "string",
                            TimeoutInMinutes = 0,
                        },
                    },
                    Result = "string",
                },
            },
            OnFailure = new Aws.CodePipeline.Inputs.PipelineStageOnFailureArgs
            {
                Condition = new Aws.CodePipeline.Inputs.PipelineStageOnFailureConditionArgs
                {
                    Rules = new[]
                    {
                        new Aws.CodePipeline.Inputs.PipelineStageOnFailureConditionRuleArgs
                        {
                            Name = "string",
                            RuleTypeId = new Aws.CodePipeline.Inputs.PipelineStageOnFailureConditionRuleRuleTypeIdArgs
                            {
                                Category = "string",
                                Provider = "string",
                                Owner = "string",
                                Version = "string",
                            },
                            Commands = new[]
                            {
                                "string",
                            },
                            Configuration = 
                            {
                                { "string", "string" },
                            },
                            InputArtifacts = new[]
                            {
                                "string",
                            },
                            Region = "string",
                            RoleArn = "string",
                            TimeoutInMinutes = 0,
                        },
                    },
                    Result = "string",
                },
                Result = "string",
                RetryConfiguration = new Aws.CodePipeline.Inputs.PipelineStageOnFailureRetryConfigurationArgs
                {
                    RetryMode = "string",
                },
            },
            OnSuccess = new Aws.CodePipeline.Inputs.PipelineStageOnSuccessArgs
            {
                Condition = new Aws.CodePipeline.Inputs.PipelineStageOnSuccessConditionArgs
                {
                    Rules = new[]
                    {
                        new Aws.CodePipeline.Inputs.PipelineStageOnSuccessConditionRuleArgs
                        {
                            Name = "string",
                            RuleTypeId = new Aws.CodePipeline.Inputs.PipelineStageOnSuccessConditionRuleRuleTypeIdArgs
                            {
                                Category = "string",
                                Provider = "string",
                                Owner = "string",
                                Version = "string",
                            },
                            Commands = new[]
                            {
                                "string",
                            },
                            Configuration = 
                            {
                                { "string", "string" },
                            },
                            InputArtifacts = new[]
                            {
                                "string",
                            },
                            Region = "string",
                            RoleArn = "string",
                            TimeoutInMinutes = 0,
                        },
                    },
                    Result = "string",
                },
            },
        },
    },
    ExecutionMode = "string",
    Name = "string",
    PipelineType = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Triggers = new[]
    {
        new Aws.CodePipeline.Inputs.PipelineTriggerArgs
        {
            GitConfiguration = new Aws.CodePipeline.Inputs.PipelineTriggerGitConfigurationArgs
            {
                SourceActionName = "string",
                PullRequests = new[]
                {
                    new Aws.CodePipeline.Inputs.PipelineTriggerGitConfigurationPullRequestArgs
                    {
                        Branches = new Aws.CodePipeline.Inputs.PipelineTriggerGitConfigurationPullRequestBranchesArgs
                        {
                            Excludes = new[]
                            {
                                "string",
                            },
                            Includes = new[]
                            {
                                "string",
                            },
                        },
                        Events = new[]
                        {
                            "string",
                        },
                        FilePaths = new Aws.CodePipeline.Inputs.PipelineTriggerGitConfigurationPullRequestFilePathsArgs
                        {
                            Excludes = new[]
                            {
                                "string",
                            },
                            Includes = new[]
                            {
                                "string",
                            },
                        },
                    },
                },
                Pushes = new[]
                {
                    new Aws.CodePipeline.Inputs.PipelineTriggerGitConfigurationPushArgs
                    {
                        Branches = new Aws.CodePipeline.Inputs.PipelineTriggerGitConfigurationPushBranchesArgs
                        {
                            Excludes = new[]
                            {
                                "string",
                            },
                            Includes = new[]
                            {
                                "string",
                            },
                        },
                        FilePaths = new Aws.CodePipeline.Inputs.PipelineTriggerGitConfigurationPushFilePathsArgs
                        {
                            Excludes = new[]
                            {
                                "string",
                            },
                            Includes = new[]
                            {
                                "string",
                            },
                        },
                        Tags = new Aws.CodePipeline.Inputs.PipelineTriggerGitConfigurationPushTagsArgs
                        {
                            Excludes = new[]
                            {
                                "string",
                            },
                            Includes = new[]
                            {
                                "string",
                            },
                        },
                    },
                },
            },
            ProviderType = "string",
        },
    },
    Variables = new[]
    {
        new Aws.CodePipeline.Inputs.PipelineVariableArgs
        {
            Name = "string",
            DefaultValue = "string",
            Description = "string",
        },
    },
});
Copy
example, err := codepipeline.NewPipeline(ctx, "pipelineResource", &codepipeline.PipelineArgs{
	ArtifactStores: codepipeline.PipelineArtifactStoreArray{
		&codepipeline.PipelineArtifactStoreArgs{
			Location: pulumi.String("string"),
			Type:     pulumi.String("string"),
			EncryptionKey: &codepipeline.PipelineArtifactStoreEncryptionKeyArgs{
				Id:   pulumi.String("string"),
				Type: pulumi.String("string"),
			},
			Region: pulumi.String("string"),
		},
	},
	RoleArn: pulumi.String("string"),
	Stages: codepipeline.PipelineStageArray{
		&codepipeline.PipelineStageArgs{
			Actions: codepipeline.PipelineStageActionArray{
				&codepipeline.PipelineStageActionArgs{
					Owner:    pulumi.String("string"),
					Name:     pulumi.String("string"),
					Category: pulumi.String("string"),
					Provider: pulumi.String("string"),
					Version:  pulumi.String("string"),
					Configuration: pulumi.StringMap{
						"string": pulumi.String("string"),
					},
					InputArtifacts: pulumi.StringArray{
						pulumi.String("string"),
					},
					Namespace: pulumi.String("string"),
					OutputArtifacts: pulumi.StringArray{
						pulumi.String("string"),
					},
					Region:           pulumi.String("string"),
					RoleArn:          pulumi.String("string"),
					RunOrder:         pulumi.Int(0),
					TimeoutInMinutes: pulumi.Int(0),
				},
			},
			Name: pulumi.String("string"),
			BeforeEntry: &codepipeline.PipelineStageBeforeEntryArgs{
				Condition: &codepipeline.PipelineStageBeforeEntryConditionArgs{
					Rules: codepipeline.PipelineStageBeforeEntryConditionRuleArray{
						&codepipeline.PipelineStageBeforeEntryConditionRuleArgs{
							Name: pulumi.String("string"),
							RuleTypeId: &codepipeline.PipelineStageBeforeEntryConditionRuleRuleTypeIdArgs{
								Category: pulumi.String("string"),
								Provider: pulumi.String("string"),
								Owner:    pulumi.String("string"),
								Version:  pulumi.String("string"),
							},
							Commands: pulumi.StringArray{
								pulumi.String("string"),
							},
							Configuration: pulumi.StringMap{
								"string": pulumi.String("string"),
							},
							InputArtifacts: pulumi.StringArray{
								pulumi.String("string"),
							},
							Region:           pulumi.String("string"),
							RoleArn:          pulumi.String("string"),
							TimeoutInMinutes: pulumi.Int(0),
						},
					},
					Result: pulumi.String("string"),
				},
			},
			OnFailure: &codepipeline.PipelineStageOnFailureArgs{
				Condition: &codepipeline.PipelineStageOnFailureConditionArgs{
					Rules: codepipeline.PipelineStageOnFailureConditionRuleArray{
						&codepipeline.PipelineStageOnFailureConditionRuleArgs{
							Name: pulumi.String("string"),
							RuleTypeId: &codepipeline.PipelineStageOnFailureConditionRuleRuleTypeIdArgs{
								Category: pulumi.String("string"),
								Provider: pulumi.String("string"),
								Owner:    pulumi.String("string"),
								Version:  pulumi.String("string"),
							},
							Commands: pulumi.StringArray{
								pulumi.String("string"),
							},
							Configuration: pulumi.StringMap{
								"string": pulumi.String("string"),
							},
							InputArtifacts: pulumi.StringArray{
								pulumi.String("string"),
							},
							Region:           pulumi.String("string"),
							RoleArn:          pulumi.String("string"),
							TimeoutInMinutes: pulumi.Int(0),
						},
					},
					Result: pulumi.String("string"),
				},
				Result: pulumi.String("string"),
				RetryConfiguration: &codepipeline.PipelineStageOnFailureRetryConfigurationArgs{
					RetryMode: pulumi.String("string"),
				},
			},
			OnSuccess: &codepipeline.PipelineStageOnSuccessArgs{
				Condition: &codepipeline.PipelineStageOnSuccessConditionArgs{
					Rules: codepipeline.PipelineStageOnSuccessConditionRuleArray{
						&codepipeline.PipelineStageOnSuccessConditionRuleArgs{
							Name: pulumi.String("string"),
							RuleTypeId: &codepipeline.PipelineStageOnSuccessConditionRuleRuleTypeIdArgs{
								Category: pulumi.String("string"),
								Provider: pulumi.String("string"),
								Owner:    pulumi.String("string"),
								Version:  pulumi.String("string"),
							},
							Commands: pulumi.StringArray{
								pulumi.String("string"),
							},
							Configuration: pulumi.StringMap{
								"string": pulumi.String("string"),
							},
							InputArtifacts: pulumi.StringArray{
								pulumi.String("string"),
							},
							Region:           pulumi.String("string"),
							RoleArn:          pulumi.String("string"),
							TimeoutInMinutes: pulumi.Int(0),
						},
					},
					Result: pulumi.String("string"),
				},
			},
		},
	},
	ExecutionMode: pulumi.String("string"),
	Name:          pulumi.String("string"),
	PipelineType:  pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Triggers: codepipeline.PipelineTriggerArray{
		&codepipeline.PipelineTriggerArgs{
			GitConfiguration: &codepipeline.PipelineTriggerGitConfigurationArgs{
				SourceActionName: pulumi.String("string"),
				PullRequests: codepipeline.PipelineTriggerGitConfigurationPullRequestArray{
					&codepipeline.PipelineTriggerGitConfigurationPullRequestArgs{
						Branches: &codepipeline.PipelineTriggerGitConfigurationPullRequestBranchesArgs{
							Excludes: pulumi.StringArray{
								pulumi.String("string"),
							},
							Includes: pulumi.StringArray{
								pulumi.String("string"),
							},
						},
						Events: pulumi.StringArray{
							pulumi.String("string"),
						},
						FilePaths: &codepipeline.PipelineTriggerGitConfigurationPullRequestFilePathsArgs{
							Excludes: pulumi.StringArray{
								pulumi.String("string"),
							},
							Includes: pulumi.StringArray{
								pulumi.String("string"),
							},
						},
					},
				},
				Pushes: codepipeline.PipelineTriggerGitConfigurationPushArray{
					&codepipeline.PipelineTriggerGitConfigurationPushArgs{
						Branches: &codepipeline.PipelineTriggerGitConfigurationPushBranchesArgs{
							Excludes: pulumi.StringArray{
								pulumi.String("string"),
							},
							Includes: pulumi.StringArray{
								pulumi.String("string"),
							},
						},
						FilePaths: &codepipeline.PipelineTriggerGitConfigurationPushFilePathsArgs{
							Excludes: pulumi.StringArray{
								pulumi.String("string"),
							},
							Includes: pulumi.StringArray{
								pulumi.String("string"),
							},
						},
						Tags: &codepipeline.PipelineTriggerGitConfigurationPushTagsArgs{
							Excludes: pulumi.StringArray{
								pulumi.String("string"),
							},
							Includes: pulumi.StringArray{
								pulumi.String("string"),
							},
						},
					},
				},
			},
			ProviderType: pulumi.String("string"),
		},
	},
	Variables: codepipeline.PipelineVariableArray{
		&codepipeline.PipelineVariableArgs{
			Name:         pulumi.String("string"),
			DefaultValue: pulumi.String("string"),
			Description:  pulumi.String("string"),
		},
	},
})
Copy
var pipelineResource = new com.pulumi.aws.codepipeline.Pipeline("pipelineResource", com.pulumi.aws.codepipeline.PipelineArgs.builder()
    .artifactStores(PipelineArtifactStoreArgs.builder()
        .location("string")
        .type("string")
        .encryptionKey(PipelineArtifactStoreEncryptionKeyArgs.builder()
            .id("string")
            .type("string")
            .build())
        .region("string")
        .build())
    .roleArn("string")
    .stages(PipelineStageArgs.builder()
        .actions(PipelineStageActionArgs.builder()
            .owner("string")
            .name("string")
            .category("string")
            .provider("string")
            .version("string")
            .configuration(Map.of("string", "string"))
            .inputArtifacts("string")
            .namespace("string")
            .outputArtifacts("string")
            .region("string")
            .roleArn("string")
            .runOrder(0)
            .timeoutInMinutes(0)
            .build())
        .name("string")
        .beforeEntry(PipelineStageBeforeEntryArgs.builder()
            .condition(PipelineStageBeforeEntryConditionArgs.builder()
                .rules(PipelineStageBeforeEntryConditionRuleArgs.builder()
                    .name("string")
                    .ruleTypeId(PipelineStageBeforeEntryConditionRuleRuleTypeIdArgs.builder()
                        .category("string")
                        .provider("string")
                        .owner("string")
                        .version("string")
                        .build())
                    .commands("string")
                    .configuration(Map.of("string", "string"))
                    .inputArtifacts("string")
                    .region("string")
                    .roleArn("string")
                    .timeoutInMinutes(0)
                    .build())
                .result("string")
                .build())
            .build())
        .onFailure(PipelineStageOnFailureArgs.builder()
            .condition(PipelineStageOnFailureConditionArgs.builder()
                .rules(PipelineStageOnFailureConditionRuleArgs.builder()
                    .name("string")
                    .ruleTypeId(PipelineStageOnFailureConditionRuleRuleTypeIdArgs.builder()
                        .category("string")
                        .provider("string")
                        .owner("string")
                        .version("string")
                        .build())
                    .commands("string")
                    .configuration(Map.of("string", "string"))
                    .inputArtifacts("string")
                    .region("string")
                    .roleArn("string")
                    .timeoutInMinutes(0)
                    .build())
                .result("string")
                .build())
            .result("string")
            .retryConfiguration(PipelineStageOnFailureRetryConfigurationArgs.builder()
                .retryMode("string")
                .build())
            .build())
        .onSuccess(PipelineStageOnSuccessArgs.builder()
            .condition(PipelineStageOnSuccessConditionArgs.builder()
                .rules(PipelineStageOnSuccessConditionRuleArgs.builder()
                    .name("string")
                    .ruleTypeId(PipelineStageOnSuccessConditionRuleRuleTypeIdArgs.builder()
                        .category("string")
                        .provider("string")
                        .owner("string")
                        .version("string")
                        .build())
                    .commands("string")
                    .configuration(Map.of("string", "string"))
                    .inputArtifacts("string")
                    .region("string")
                    .roleArn("string")
                    .timeoutInMinutes(0)
                    .build())
                .result("string")
                .build())
            .build())
        .build())
    .executionMode("string")
    .name("string")
    .pipelineType("string")
    .tags(Map.of("string", "string"))
    .triggers(PipelineTriggerArgs.builder()
        .gitConfiguration(PipelineTriggerGitConfigurationArgs.builder()
            .sourceActionName("string")
            .pullRequests(PipelineTriggerGitConfigurationPullRequestArgs.builder()
                .branches(PipelineTriggerGitConfigurationPullRequestBranchesArgs.builder()
                    .excludes("string")
                    .includes("string")
                    .build())
                .events("string")
                .filePaths(PipelineTriggerGitConfigurationPullRequestFilePathsArgs.builder()
                    .excludes("string")
                    .includes("string")
                    .build())
                .build())
            .pushes(PipelineTriggerGitConfigurationPushArgs.builder()
                .branches(PipelineTriggerGitConfigurationPushBranchesArgs.builder()
                    .excludes("string")
                    .includes("string")
                    .build())
                .filePaths(PipelineTriggerGitConfigurationPushFilePathsArgs.builder()
                    .excludes("string")
                    .includes("string")
                    .build())
                .tags(PipelineTriggerGitConfigurationPushTagsArgs.builder()
                    .excludes("string")
                    .includes("string")
                    .build())
                .build())
            .build())
        .providerType("string")
        .build())
    .variables(PipelineVariableArgs.builder()
        .name("string")
        .defaultValue("string")
        .description("string")
        .build())
    .build());
Copy
pipeline_resource = aws.codepipeline.Pipeline("pipelineResource",
    artifact_stores=[{
        "location": "string",
        "type": "string",
        "encryption_key": {
            "id": "string",
            "type": "string",
        },
        "region": "string",
    }],
    role_arn="string",
    stages=[{
        "actions": [{
            "owner": "string",
            "name": "string",
            "category": "string",
            "provider": "string",
            "version": "string",
            "configuration": {
                "string": "string",
            },
            "input_artifacts": ["string"],
            "namespace": "string",
            "output_artifacts": ["string"],
            "region": "string",
            "role_arn": "string",
            "run_order": 0,
            "timeout_in_minutes": 0,
        }],
        "name": "string",
        "before_entry": {
            "condition": {
                "rules": [{
                    "name": "string",
                    "rule_type_id": {
                        "category": "string",
                        "provider": "string",
                        "owner": "string",
                        "version": "string",
                    },
                    "commands": ["string"],
                    "configuration": {
                        "string": "string",
                    },
                    "input_artifacts": ["string"],
                    "region": "string",
                    "role_arn": "string",
                    "timeout_in_minutes": 0,
                }],
                "result": "string",
            },
        },
        "on_failure": {
            "condition": {
                "rules": [{
                    "name": "string",
                    "rule_type_id": {
                        "category": "string",
                        "provider": "string",
                        "owner": "string",
                        "version": "string",
                    },
                    "commands": ["string"],
                    "configuration": {
                        "string": "string",
                    },
                    "input_artifacts": ["string"],
                    "region": "string",
                    "role_arn": "string",
                    "timeout_in_minutes": 0,
                }],
                "result": "string",
            },
            "result": "string",
            "retry_configuration": {
                "retry_mode": "string",
            },
        },
        "on_success": {
            "condition": {
                "rules": [{
                    "name": "string",
                    "rule_type_id": {
                        "category": "string",
                        "provider": "string",
                        "owner": "string",
                        "version": "string",
                    },
                    "commands": ["string"],
                    "configuration": {
                        "string": "string",
                    },
                    "input_artifacts": ["string"],
                    "region": "string",
                    "role_arn": "string",
                    "timeout_in_minutes": 0,
                }],
                "result": "string",
            },
        },
    }],
    execution_mode="string",
    name="string",
    pipeline_type="string",
    tags={
        "string": "string",
    },
    triggers=[{
        "git_configuration": {
            "source_action_name": "string",
            "pull_requests": [{
                "branches": {
                    "excludes": ["string"],
                    "includes": ["string"],
                },
                "events": ["string"],
                "file_paths": {
                    "excludes": ["string"],
                    "includes": ["string"],
                },
            }],
            "pushes": [{
                "branches": {
                    "excludes": ["string"],
                    "includes": ["string"],
                },
                "file_paths": {
                    "excludes": ["string"],
                    "includes": ["string"],
                },
                "tags": {
                    "excludes": ["string"],
                    "includes": ["string"],
                },
            }],
        },
        "provider_type": "string",
    }],
    variables=[{
        "name": "string",
        "default_value": "string",
        "description": "string",
    }])
Copy
const pipelineResource = new aws.codepipeline.Pipeline("pipelineResource", {
    artifactStores: [{
        location: "string",
        type: "string",
        encryptionKey: {
            id: "string",
            type: "string",
        },
        region: "string",
    }],
    roleArn: "string",
    stages: [{
        actions: [{
            owner: "string",
            name: "string",
            category: "string",
            provider: "string",
            version: "string",
            configuration: {
                string: "string",
            },
            inputArtifacts: ["string"],
            namespace: "string",
            outputArtifacts: ["string"],
            region: "string",
            roleArn: "string",
            runOrder: 0,
            timeoutInMinutes: 0,
        }],
        name: "string",
        beforeEntry: {
            condition: {
                rules: [{
                    name: "string",
                    ruleTypeId: {
                        category: "string",
                        provider: "string",
                        owner: "string",
                        version: "string",
                    },
                    commands: ["string"],
                    configuration: {
                        string: "string",
                    },
                    inputArtifacts: ["string"],
                    region: "string",
                    roleArn: "string",
                    timeoutInMinutes: 0,
                }],
                result: "string",
            },
        },
        onFailure: {
            condition: {
                rules: [{
                    name: "string",
                    ruleTypeId: {
                        category: "string",
                        provider: "string",
                        owner: "string",
                        version: "string",
                    },
                    commands: ["string"],
                    configuration: {
                        string: "string",
                    },
                    inputArtifacts: ["string"],
                    region: "string",
                    roleArn: "string",
                    timeoutInMinutes: 0,
                }],
                result: "string",
            },
            result: "string",
            retryConfiguration: {
                retryMode: "string",
            },
        },
        onSuccess: {
            condition: {
                rules: [{
                    name: "string",
                    ruleTypeId: {
                        category: "string",
                        provider: "string",
                        owner: "string",
                        version: "string",
                    },
                    commands: ["string"],
                    configuration: {
                        string: "string",
                    },
                    inputArtifacts: ["string"],
                    region: "string",
                    roleArn: "string",
                    timeoutInMinutes: 0,
                }],
                result: "string",
            },
        },
    }],
    executionMode: "string",
    name: "string",
    pipelineType: "string",
    tags: {
        string: "string",
    },
    triggers: [{
        gitConfiguration: {
            sourceActionName: "string",
            pullRequests: [{
                branches: {
                    excludes: ["string"],
                    includes: ["string"],
                },
                events: ["string"],
                filePaths: {
                    excludes: ["string"],
                    includes: ["string"],
                },
            }],
            pushes: [{
                branches: {
                    excludes: ["string"],
                    includes: ["string"],
                },
                filePaths: {
                    excludes: ["string"],
                    includes: ["string"],
                },
                tags: {
                    excludes: ["string"],
                    includes: ["string"],
                },
            }],
        },
        providerType: "string",
    }],
    variables: [{
        name: "string",
        defaultValue: "string",
        description: "string",
    }],
});
Copy
type: aws:codepipeline:Pipeline
properties:
    artifactStores:
        - encryptionKey:
            id: string
            type: string
          location: string
          region: string
          type: string
    executionMode: string
    name: string
    pipelineType: string
    roleArn: string
    stages:
        - actions:
            - category: string
              configuration:
                string: string
              inputArtifacts:
                - string
              name: string
              namespace: string
              outputArtifacts:
                - string
              owner: string
              provider: string
              region: string
              roleArn: string
              runOrder: 0
              timeoutInMinutes: 0
              version: string
          beforeEntry:
            condition:
                result: string
                rules:
                    - commands:
                        - string
                      configuration:
                        string: string
                      inputArtifacts:
                        - string
                      name: string
                      region: string
                      roleArn: string
                      ruleTypeId:
                        category: string
                        owner: string
                        provider: string
                        version: string
                      timeoutInMinutes: 0
          name: string
          onFailure:
            condition:
                result: string
                rules:
                    - commands:
                        - string
                      configuration:
                        string: string
                      inputArtifacts:
                        - string
                      name: string
                      region: string
                      roleArn: string
                      ruleTypeId:
                        category: string
                        owner: string
                        provider: string
                        version: string
                      timeoutInMinutes: 0
            result: string
            retryConfiguration:
                retryMode: string
          onSuccess:
            condition:
                result: string
                rules:
                    - commands:
                        - string
                      configuration:
                        string: string
                      inputArtifacts:
                        - string
                      name: string
                      region: string
                      roleArn: string
                      ruleTypeId:
                        category: string
                        owner: string
                        provider: string
                        version: string
                      timeoutInMinutes: 0
    tags:
        string: string
    triggers:
        - gitConfiguration:
            pullRequests:
                - branches:
                    excludes:
                        - string
                    includes:
                        - string
                  events:
                    - string
                  filePaths:
                    excludes:
                        - string
                    includes:
                        - string
            pushes:
                - branches:
                    excludes:
                        - string
                    includes:
                        - string
                  filePaths:
                    excludes:
                        - string
                    includes:
                        - string
                  tags:
                    excludes:
                        - string
                    includes:
                        - string
            sourceActionName: string
          providerType: string
    variables:
        - defaultValue: string
          description: string
          name: string
Copy

Pipeline Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Pipeline resource accepts the following input properties:

ArtifactStores This property is required. List<PipelineArtifactStore>
One or more artifact_store blocks. Artifact stores are documented below.
RoleArn This property is required. string
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
Stages This property is required. List<PipelineStage>
A stage block. Stages are documented below.
ExecutionMode string

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

Name Changes to this property will trigger replacement. string
The name of the pipeline.
PipelineType string
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
Tags Dictionary<string, string>
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Triggers List<PipelineTrigger>
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
Variables List<PipelineVariable>
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
ArtifactStores This property is required. []PipelineArtifactStoreArgs
One or more artifact_store blocks. Artifact stores are documented below.
RoleArn This property is required. string
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
Stages This property is required. []PipelineStageArgs
A stage block. Stages are documented below.
ExecutionMode string

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

Name Changes to this property will trigger replacement. string
The name of the pipeline.
PipelineType string
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
Tags map[string]string
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Triggers []PipelineTriggerArgs
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
Variables []PipelineVariableArgs
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
artifactStores This property is required. List<PipelineArtifactStore>
One or more artifact_store blocks. Artifact stores are documented below.
roleArn This property is required. String
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
stages This property is required. List<PipelineStage>
A stage block. Stages are documented below.
executionMode String

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

name Changes to this property will trigger replacement. String
The name of the pipeline.
pipelineType String
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
tags Map<String,String>
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
triggers List<PipelineTrigger>
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
variables List<PipelineVariable>
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
artifactStores This property is required. PipelineArtifactStore[]
One or more artifact_store blocks. Artifact stores are documented below.
roleArn This property is required. string
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
stages This property is required. PipelineStage[]
A stage block. Stages are documented below.
executionMode string

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

name Changes to this property will trigger replacement. string
The name of the pipeline.
pipelineType string
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
tags {[key: string]: string}
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
triggers PipelineTrigger[]
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
variables PipelineVariable[]
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
artifact_stores This property is required. Sequence[PipelineArtifactStoreArgs]
One or more artifact_store blocks. Artifact stores are documented below.
role_arn This property is required. str
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
stages This property is required. Sequence[PipelineStageArgs]
A stage block. Stages are documented below.
execution_mode str

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

name Changes to this property will trigger replacement. str
The name of the pipeline.
pipeline_type str
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
tags Mapping[str, str]
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
triggers Sequence[PipelineTriggerArgs]
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
variables Sequence[PipelineVariableArgs]
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
artifactStores This property is required. List<Property Map>
One or more artifact_store blocks. Artifact stores are documented below.
roleArn This property is required. String
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
stages This property is required. List<Property Map>
A stage block. Stages are documented below.
executionMode String

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

name Changes to this property will trigger replacement. String
The name of the pipeline.
pipelineType String
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
tags Map<String>
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
triggers List<Property Map>
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
variables List<Property Map>
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.

Outputs

All input properties are implicitly available as output properties. Additionally, the Pipeline resource produces the following output properties:

Arn string
Codepipeline ARN.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

TriggerAlls List<PipelineTriggerAll>
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
Arn string
Codepipeline ARN.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

TriggerAlls []PipelineTriggerAll
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
arn String
Codepipeline ARN.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

triggerAlls List<PipelineTriggerAll>
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
arn string
Codepipeline ARN.
id string
The provider-assigned unique ID for this managed resource.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

triggerAlls PipelineTriggerAll[]
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
arn str
Codepipeline ARN.
id str
The provider-assigned unique ID for this managed resource.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

trigger_alls Sequence[PipelineTriggerAll]
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
arn String
Codepipeline ARN.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

triggerAlls List<Property Map>
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.

Look up Existing Pipeline Resource

Get an existing Pipeline resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PipelineState, opts?: CustomResourceOptions): Pipeline
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        artifact_stores: Optional[Sequence[PipelineArtifactStoreArgs]] = None,
        execution_mode: Optional[str] = None,
        name: Optional[str] = None,
        pipeline_type: Optional[str] = None,
        role_arn: Optional[str] = None,
        stages: Optional[Sequence[PipelineStageArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        trigger_alls: Optional[Sequence[PipelineTriggerAllArgs]] = None,
        triggers: Optional[Sequence[PipelineTriggerArgs]] = None,
        variables: Optional[Sequence[PipelineVariableArgs]] = None) -> Pipeline
func GetPipeline(ctx *Context, name string, id IDInput, state *PipelineState, opts ...ResourceOption) (*Pipeline, error)
public static Pipeline Get(string name, Input<string> id, PipelineState? state, CustomResourceOptions? opts = null)
public static Pipeline get(String name, Output<String> id, PipelineState state, CustomResourceOptions options)
resources:  _:    type: aws:codepipeline:Pipeline    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string
Codepipeline ARN.
ArtifactStores List<PipelineArtifactStore>
One or more artifact_store blocks. Artifact stores are documented below.
ExecutionMode string

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

Name Changes to this property will trigger replacement. string
The name of the pipeline.
PipelineType string
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
RoleArn string
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
Stages List<PipelineStage>
A stage block. Stages are documented below.
Tags Dictionary<string, string>
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

TriggerAlls List<PipelineTriggerAll>
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
Triggers List<PipelineTrigger>
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
Variables List<PipelineVariable>
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
Arn string
Codepipeline ARN.
ArtifactStores []PipelineArtifactStoreArgs
One or more artifact_store blocks. Artifact stores are documented below.
ExecutionMode string

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

Name Changes to this property will trigger replacement. string
The name of the pipeline.
PipelineType string
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
RoleArn string
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
Stages []PipelineStageArgs
A stage block. Stages are documented below.
Tags map[string]string
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

TriggerAlls []PipelineTriggerAllArgs
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
Triggers []PipelineTriggerArgs
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
Variables []PipelineVariableArgs
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
arn String
Codepipeline ARN.
artifactStores List<PipelineArtifactStore>
One or more artifact_store blocks. Artifact stores are documented below.
executionMode String

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

name Changes to this property will trigger replacement. String
The name of the pipeline.
pipelineType String
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
roleArn String
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
stages List<PipelineStage>
A stage block. Stages are documented below.
tags Map<String,String>
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

triggerAlls List<PipelineTriggerAll>
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
triggers List<PipelineTrigger>
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
variables List<PipelineVariable>
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
arn string
Codepipeline ARN.
artifactStores PipelineArtifactStore[]
One or more artifact_store blocks. Artifact stores are documented below.
executionMode string

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

name Changes to this property will trigger replacement. string
The name of the pipeline.
pipelineType string
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
roleArn string
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
stages PipelineStage[]
A stage block. Stages are documented below.
tags {[key: string]: string}
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

triggerAlls PipelineTriggerAll[]
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
triggers PipelineTrigger[]
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
variables PipelineVariable[]
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
arn str
Codepipeline ARN.
artifact_stores Sequence[PipelineArtifactStoreArgs]
One or more artifact_store blocks. Artifact stores are documented below.
execution_mode str

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

name Changes to this property will trigger replacement. str
The name of the pipeline.
pipeline_type str
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
role_arn str
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
stages Sequence[PipelineStageArgs]
A stage block. Stages are documented below.
tags Mapping[str, str]
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

trigger_alls Sequence[PipelineTriggerAllArgs]
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
triggers Sequence[PipelineTriggerArgs]
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
variables Sequence[PipelineVariableArgs]
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.
arn String
Codepipeline ARN.
artifactStores List<Property Map>
One or more artifact_store blocks. Artifact stores are documented below.
executionMode String

The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED. For value values, refer to the AWS documentation.

Note: QUEUED or PARALLEL mode can only be used with V2 pipelines.

name Changes to this property will trigger replacement. String
The name of the pipeline.
pipelineType String
Type of the pipeline. Possible values are: V1 and V2. Default value is V1.
roleArn String
A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf.
stages List<Property Map>
A stage block. Stages are documented below.
tags Map<String>
A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

triggerAlls List<Property Map>
A list of all triggers present on the pipeline, including default triggers added by AWS for V2 pipelines which omit an explicit trigger definition.
triggers List<Property Map>
A trigger block. Valid only when pipeline_type is V2. Triggers are documented below.
variables List<Property Map>
A pipeline-level variable block. Valid only when pipeline_type is V2. Variable are documented below.

Supporting Types

PipelineArtifactStore
, PipelineArtifactStoreArgs

Location This property is required. string
The location where AWS CodePipeline stores artifacts for a pipeline; currently only S3 is supported.
Type This property is required. string
The type of the artifact store, such as Amazon S3
EncryptionKey PipelineArtifactStoreEncryptionKey
The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below.
Region string
The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline.
Location This property is required. string
The location where AWS CodePipeline stores artifacts for a pipeline; currently only S3 is supported.
Type This property is required. string
The type of the artifact store, such as Amazon S3
EncryptionKey PipelineArtifactStoreEncryptionKey
The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below.
Region string
The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline.
location This property is required. String
The location where AWS CodePipeline stores artifacts for a pipeline; currently only S3 is supported.
type This property is required. String
The type of the artifact store, such as Amazon S3
encryptionKey PipelineArtifactStoreEncryptionKey
The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below.
region String
The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline.
location This property is required. string
The location where AWS CodePipeline stores artifacts for a pipeline; currently only S3 is supported.
type This property is required. string
The type of the artifact store, such as Amazon S3
encryptionKey PipelineArtifactStoreEncryptionKey
The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below.
region string
The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline.
location This property is required. str
The location where AWS CodePipeline stores artifacts for a pipeline; currently only S3 is supported.
type This property is required. str
The type of the artifact store, such as Amazon S3
encryption_key PipelineArtifactStoreEncryptionKey
The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below.
region str
The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline.
location This property is required. String
The location where AWS CodePipeline stores artifacts for a pipeline; currently only S3 is supported.
type This property is required. String
The type of the artifact store, such as Amazon S3
encryptionKey Property Map
The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below.
region String
The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline.

PipelineArtifactStoreEncryptionKey
, PipelineArtifactStoreEncryptionKeyArgs

Id This property is required. string
The KMS key ARN or ID
Type This property is required. string
The type of key; currently only KMS is supported
Id This property is required. string
The KMS key ARN or ID
Type This property is required. string
The type of key; currently only KMS is supported
id This property is required. String
The KMS key ARN or ID
type This property is required. String
The type of key; currently only KMS is supported
id This property is required. string
The KMS key ARN or ID
type This property is required. string
The type of key; currently only KMS is supported
id This property is required. str
The KMS key ARN or ID
type This property is required. str
The type of key; currently only KMS is supported
id This property is required. String
The KMS key ARN or ID
type This property is required. String
The type of key; currently only KMS is supported

PipelineStage
, PipelineStageArgs

Actions This property is required. List<PipelineStageAction>
The action(s) to include in the stage. Defined as an action block below
Name This property is required. string
The name of the stage.
BeforeEntry PipelineStageBeforeEntry
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
OnFailure PipelineStageOnFailure
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
OnSuccess PipelineStageOnSuccess
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
Actions This property is required. []PipelineStageAction
The action(s) to include in the stage. Defined as an action block below
Name This property is required. string
The name of the stage.
BeforeEntry PipelineStageBeforeEntry
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
OnFailure PipelineStageOnFailure
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
OnSuccess PipelineStageOnSuccess
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
actions This property is required. List<PipelineStageAction>
The action(s) to include in the stage. Defined as an action block below
name This property is required. String
The name of the stage.
beforeEntry PipelineStageBeforeEntry
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
onFailure PipelineStageOnFailure
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
onSuccess PipelineStageOnSuccess
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
actions This property is required. PipelineStageAction[]
The action(s) to include in the stage. Defined as an action block below
name This property is required. string
The name of the stage.
beforeEntry PipelineStageBeforeEntry
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
onFailure PipelineStageOnFailure
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
onSuccess PipelineStageOnSuccess
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
actions This property is required. Sequence[PipelineStageAction]
The action(s) to include in the stage. Defined as an action block below
name This property is required. str
The name of the stage.
before_entry PipelineStageBeforeEntry
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
on_failure PipelineStageOnFailure
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
on_success PipelineStageOnSuccess
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
actions This property is required. List<Property Map>
The action(s) to include in the stage. Defined as an action block below
name This property is required. String
The name of the stage.
beforeEntry Property Map
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
onFailure Property Map
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
onSuccess Property Map
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.

PipelineStageAction
, PipelineStageActionArgs

Category This property is required. string
A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test.
Name This property is required. string
The action declaration's name.
Owner This property is required. string
The creator of the action being called. Possible values are AWS, Custom and ThirdParty.
Provider This property is required. string
The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation.
Version This property is required. string
A string that identifies the action type.
Configuration Dictionary<string, string>
A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. Note: The DetectChanges parameter (optional, default value is true) in the configuration section causes CodePipeline to automatically start your pipeline upon new commits. Please refer to AWS Documentation for more details: https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-config.
InputArtifacts List<string>
A list of artifact names to be worked on.
Namespace string
The namespace all output variables will be accessed from.
OutputArtifacts List<string>
A list of artifact names to output. Output artifact names must be unique within a pipeline.
Region string
The region in which to run the action.
RoleArn string
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
RunOrder int
The order in which actions are run.
TimeoutInMinutes int
The action timeout for the rule.
Category This property is required. string
A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test.
Name This property is required. string
The action declaration's name.
Owner This property is required. string
The creator of the action being called. Possible values are AWS, Custom and ThirdParty.
Provider This property is required. string
The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation.
Version This property is required. string
A string that identifies the action type.
Configuration map[string]string
A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. Note: The DetectChanges parameter (optional, default value is true) in the configuration section causes CodePipeline to automatically start your pipeline upon new commits. Please refer to AWS Documentation for more details: https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-config.
InputArtifacts []string
A list of artifact names to be worked on.
Namespace string
The namespace all output variables will be accessed from.
OutputArtifacts []string
A list of artifact names to output. Output artifact names must be unique within a pipeline.
Region string
The region in which to run the action.
RoleArn string
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
RunOrder int
The order in which actions are run.
TimeoutInMinutes int
The action timeout for the rule.
category This property is required. String
A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test.
name This property is required. String
The action declaration's name.
owner This property is required. String
The creator of the action being called. Possible values are AWS, Custom and ThirdParty.
provider This property is required. String
The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation.
version This property is required. String
A string that identifies the action type.
configuration Map<String,String>
A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. Note: The DetectChanges parameter (optional, default value is true) in the configuration section causes CodePipeline to automatically start your pipeline upon new commits. Please refer to AWS Documentation for more details: https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-config.
inputArtifacts List<String>
A list of artifact names to be worked on.
namespace String
The namespace all output variables will be accessed from.
outputArtifacts List<String>
A list of artifact names to output. Output artifact names must be unique within a pipeline.
region String
The region in which to run the action.
roleArn String
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
runOrder Integer
The order in which actions are run.
timeoutInMinutes Integer
The action timeout for the rule.
category This property is required. string
A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test.
name This property is required. string
The action declaration's name.
owner This property is required. string
The creator of the action being called. Possible values are AWS, Custom and ThirdParty.
provider This property is required. string
The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation.
version This property is required. string
A string that identifies the action type.
configuration {[key: string]: string}
A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. Note: The DetectChanges parameter (optional, default value is true) in the configuration section causes CodePipeline to automatically start your pipeline upon new commits. Please refer to AWS Documentation for more details: https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-config.
inputArtifacts string[]
A list of artifact names to be worked on.
namespace string
The namespace all output variables will be accessed from.
outputArtifacts string[]
A list of artifact names to output. Output artifact names must be unique within a pipeline.
region string
The region in which to run the action.
roleArn string
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
runOrder number
The order in which actions are run.
timeoutInMinutes number
The action timeout for the rule.
category This property is required. str
A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test.
name This property is required. str
The action declaration's name.
owner This property is required. str
The creator of the action being called. Possible values are AWS, Custom and ThirdParty.
provider This property is required. str
The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation.
version This property is required. str
A string that identifies the action type.
configuration Mapping[str, str]
A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. Note: The DetectChanges parameter (optional, default value is true) in the configuration section causes CodePipeline to automatically start your pipeline upon new commits. Please refer to AWS Documentation for more details: https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-config.
input_artifacts Sequence[str]
A list of artifact names to be worked on.
namespace str
The namespace all output variables will be accessed from.
output_artifacts Sequence[str]
A list of artifact names to output. Output artifact names must be unique within a pipeline.
region str
The region in which to run the action.
role_arn str
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
run_order int
The order in which actions are run.
timeout_in_minutes int
The action timeout for the rule.
category This property is required. String
A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test.
name This property is required. String
The action declaration's name.
owner This property is required. String
The creator of the action being called. Possible values are AWS, Custom and ThirdParty.
provider This property is required. String
The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation.
version This property is required. String
A string that identifies the action type.
configuration Map<String>
A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. Note: The DetectChanges parameter (optional, default value is true) in the configuration section causes CodePipeline to automatically start your pipeline upon new commits. Please refer to AWS Documentation for more details: https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-config.
inputArtifacts List<String>
A list of artifact names to be worked on.
namespace String
The namespace all output variables will be accessed from.
outputArtifacts List<String>
A list of artifact names to output. Output artifact names must be unique within a pipeline.
region String
The region in which to run the action.
roleArn String
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
runOrder Number
The order in which actions are run.
timeoutInMinutes Number
The action timeout for the rule.

PipelineStageBeforeEntry
, PipelineStageBeforeEntryArgs

Condition This property is required. PipelineStageBeforeEntryCondition
The conditions that are configured as entry condition. Defined as a condition block below.
Condition This property is required. PipelineStageBeforeEntryCondition
The conditions that are configured as entry condition. Defined as a condition block below.
condition This property is required. PipelineStageBeforeEntryCondition
The conditions that are configured as entry condition. Defined as a condition block below.
condition This property is required. PipelineStageBeforeEntryCondition
The conditions that are configured as entry condition. Defined as a condition block below.
condition This property is required. PipelineStageBeforeEntryCondition
The conditions that are configured as entry condition. Defined as a condition block below.
condition This property is required. Property Map
The conditions that are configured as entry condition. Defined as a condition block below.

PipelineStageBeforeEntryCondition
, PipelineStageBeforeEntryConditionArgs

Rules This property is required. List<PipelineStageBeforeEntryConditionRule>
The rules that make up the condition. Defined as a rule block below.
Result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
Rules This property is required. []PipelineStageBeforeEntryConditionRule
The rules that make up the condition. Defined as a rule block below.
Result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. List<PipelineStageBeforeEntryConditionRule>
The rules that make up the condition. Defined as a rule block below.
result String
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. PipelineStageBeforeEntryConditionRule[]
The rules that make up the condition. Defined as a rule block below.
result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. Sequence[PipelineStageBeforeEntryConditionRule]
The rules that make up the condition. Defined as a rule block below.
result str
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. List<Property Map>
The rules that make up the condition. Defined as a rule block below.
result String
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.

PipelineStageBeforeEntryConditionRule
, PipelineStageBeforeEntryConditionRuleArgs

Name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
RuleTypeId This property is required. PipelineStageBeforeEntryConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
Commands List<string>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
Configuration Dictionary<string, string>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
InputArtifacts List<string>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
Region string
The Region for the condition associated with the rule.
RoleArn string
The pipeline role ARN associated with the rule.
TimeoutInMinutes int
The action timeout for the rule.
Name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
RuleTypeId This property is required. PipelineStageBeforeEntryConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
Commands []string
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
Configuration map[string]string
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
InputArtifacts []string
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
Region string
The Region for the condition associated with the rule.
RoleArn string
The pipeline role ARN associated with the rule.
TimeoutInMinutes int
The action timeout for the rule.
name This property is required. String
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. PipelineStageBeforeEntryConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands List<String>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Map<String,String>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts List<String>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region String
The Region for the condition associated with the rule.
roleArn String
The pipeline role ARN associated with the rule.
timeoutInMinutes Integer
The action timeout for the rule.
name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. PipelineStageBeforeEntryConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands string[]
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration {[key: string]: string}
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts string[]
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region string
The Region for the condition associated with the rule.
roleArn string
The pipeline role ARN associated with the rule.
timeoutInMinutes number
The action timeout for the rule.
name This property is required. str
The name of the rule that is created for the condition, such as VariableCheck.
rule_type_id This property is required. PipelineStageBeforeEntryConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands Sequence[str]
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Mapping[str, str]
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
input_artifacts Sequence[str]
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region str
The Region for the condition associated with the rule.
role_arn str
The pipeline role ARN associated with the rule.
timeout_in_minutes int
The action timeout for the rule.
name This property is required. String
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. Property Map
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands List<String>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Map<String>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts List<String>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region String
The Region for the condition associated with the rule.
roleArn String
The pipeline role ARN associated with the rule.
timeoutInMinutes Number
The action timeout for the rule.

PipelineStageBeforeEntryConditionRuleRuleTypeId
, PipelineStageBeforeEntryConditionRuleRuleTypeIdArgs

Category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
Provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
Owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
Version string
A string that describes the rule version.
Category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
Provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
Owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
Version string
A string that describes the rule version.
category This property is required. String
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. String
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner String
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version String
A string that describes the rule version.
category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version string
A string that describes the rule version.
category This property is required. str
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. str
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner str
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version str
A string that describes the rule version.
category This property is required. String
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. String
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner String
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version String
A string that describes the rule version.

PipelineStageOnFailure
, PipelineStageOnFailureArgs

Condition PipelineStageOnFailureCondition
The conditions that are failure conditions. Defined as a condition block below.
Result string
The conditions that are configured as failure conditions. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
RetryConfiguration PipelineStageOnFailureRetryConfiguration
The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode. Defined as a retry_configuration block below.
Condition PipelineStageOnFailureCondition
The conditions that are failure conditions. Defined as a condition block below.
Result string
The conditions that are configured as failure conditions. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
RetryConfiguration PipelineStageOnFailureRetryConfiguration
The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode. Defined as a retry_configuration block below.
condition PipelineStageOnFailureCondition
The conditions that are failure conditions. Defined as a condition block below.
result String
The conditions that are configured as failure conditions. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
retryConfiguration PipelineStageOnFailureRetryConfiguration
The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode. Defined as a retry_configuration block below.
condition PipelineStageOnFailureCondition
The conditions that are failure conditions. Defined as a condition block below.
result string
The conditions that are configured as failure conditions. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
retryConfiguration PipelineStageOnFailureRetryConfiguration
The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode. Defined as a retry_configuration block below.
condition PipelineStageOnFailureCondition
The conditions that are failure conditions. Defined as a condition block below.
result str
The conditions that are configured as failure conditions. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
retry_configuration PipelineStageOnFailureRetryConfiguration
The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode. Defined as a retry_configuration block below.
condition Property Map
The conditions that are failure conditions. Defined as a condition block below.
result String
The conditions that are configured as failure conditions. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
retryConfiguration Property Map
The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode. Defined as a retry_configuration block below.

PipelineStageOnFailureCondition
, PipelineStageOnFailureConditionArgs

Rules This property is required. List<PipelineStageOnFailureConditionRule>
The rules that make up the condition. Defined as a rule block below.
Result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
Rules This property is required. []PipelineStageOnFailureConditionRule
The rules that make up the condition. Defined as a rule block below.
Result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. List<PipelineStageOnFailureConditionRule>
The rules that make up the condition. Defined as a rule block below.
result String
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. PipelineStageOnFailureConditionRule[]
The rules that make up the condition. Defined as a rule block below.
result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. Sequence[PipelineStageOnFailureConditionRule]
The rules that make up the condition. Defined as a rule block below.
result str
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. List<Property Map>
The rules that make up the condition. Defined as a rule block below.
result String
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.

PipelineStageOnFailureConditionRule
, PipelineStageOnFailureConditionRuleArgs

Name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
RuleTypeId This property is required. PipelineStageOnFailureConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
Commands List<string>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
Configuration Dictionary<string, string>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
InputArtifacts List<string>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
Region string
The Region for the condition associated with the rule.
RoleArn string
The pipeline role ARN associated with the rule.
TimeoutInMinutes int
The action timeout for the rule.
Name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
RuleTypeId This property is required. PipelineStageOnFailureConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
Commands []string
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
Configuration map[string]string
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
InputArtifacts []string
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
Region string
The Region for the condition associated with the rule.
RoleArn string
The pipeline role ARN associated with the rule.
TimeoutInMinutes int
The action timeout for the rule.
name This property is required. String
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. PipelineStageOnFailureConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands List<String>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Map<String,String>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts List<String>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region String
The Region for the condition associated with the rule.
roleArn String
The pipeline role ARN associated with the rule.
timeoutInMinutes Integer
The action timeout for the rule.
name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. PipelineStageOnFailureConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands string[]
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration {[key: string]: string}
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts string[]
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region string
The Region for the condition associated with the rule.
roleArn string
The pipeline role ARN associated with the rule.
timeoutInMinutes number
The action timeout for the rule.
name This property is required. str
The name of the rule that is created for the condition, such as VariableCheck.
rule_type_id This property is required. PipelineStageOnFailureConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands Sequence[str]
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Mapping[str, str]
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
input_artifacts Sequence[str]
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region str
The Region for the condition associated with the rule.
role_arn str
The pipeline role ARN associated with the rule.
timeout_in_minutes int
The action timeout for the rule.
name This property is required. String
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. Property Map
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands List<String>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Map<String>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts List<String>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region String
The Region for the condition associated with the rule.
roleArn String
The pipeline role ARN associated with the rule.
timeoutInMinutes Number
The action timeout for the rule.

PipelineStageOnFailureConditionRuleRuleTypeId
, PipelineStageOnFailureConditionRuleRuleTypeIdArgs

Category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
Provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
Owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
Version string
A string that describes the rule version.
Category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
Provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
Owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
Version string
A string that describes the rule version.
category This property is required. String
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. String
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner String
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version String
A string that describes the rule version.
category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version string
A string that describes the rule version.
category This property is required. str
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. str
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner str
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version str
A string that describes the rule version.
category This property is required. String
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. String
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner String
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version String
A string that describes the rule version.

PipelineStageOnFailureRetryConfiguration
, PipelineStageOnFailureRetryConfigurationArgs

RetryMode string
The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage. Possible values are FAILED_ACTIONS and ALL_ACTIONS.
RetryMode string
The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage. Possible values are FAILED_ACTIONS and ALL_ACTIONS.
retryMode String
The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage. Possible values are FAILED_ACTIONS and ALL_ACTIONS.
retryMode string
The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage. Possible values are FAILED_ACTIONS and ALL_ACTIONS.
retry_mode str
The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage. Possible values are FAILED_ACTIONS and ALL_ACTIONS.
retryMode String
The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage. Possible values are FAILED_ACTIONS and ALL_ACTIONS.

PipelineStageOnSuccess
, PipelineStageOnSuccessArgs

Condition This property is required. PipelineStageOnSuccessCondition
The conditions that are success conditions. Defined as a condition block below.
Condition This property is required. PipelineStageOnSuccessCondition
The conditions that are success conditions. Defined as a condition block below.
condition This property is required. PipelineStageOnSuccessCondition
The conditions that are success conditions. Defined as a condition block below.
condition This property is required. PipelineStageOnSuccessCondition
The conditions that are success conditions. Defined as a condition block below.
condition This property is required. PipelineStageOnSuccessCondition
The conditions that are success conditions. Defined as a condition block below.
condition This property is required. Property Map
The conditions that are success conditions. Defined as a condition block below.

PipelineStageOnSuccessCondition
, PipelineStageOnSuccessConditionArgs

Rules This property is required. List<PipelineStageOnSuccessConditionRule>
The rules that make up the condition. Defined as a rule block below.
Result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
Rules This property is required. []PipelineStageOnSuccessConditionRule
The rules that make up the condition. Defined as a rule block below.
Result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. List<PipelineStageOnSuccessConditionRule>
The rules that make up the condition. Defined as a rule block below.
result String
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. PipelineStageOnSuccessConditionRule[]
The rules that make up the condition. Defined as a rule block below.
result string
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. Sequence[PipelineStageOnSuccessConditionRule]
The rules that make up the condition. Defined as a rule block below.
result str
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.
rules This property is required. List<Property Map>
The rules that make up the condition. Defined as a rule block below.
result String
The action to be done when the condition is met. For example, rolling back an execution for a failure condition. Possible values are ROLLBACK, FAIL, RETRY and SKIP.

PipelineStageOnSuccessConditionRule
, PipelineStageOnSuccessConditionRuleArgs

Name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
RuleTypeId This property is required. PipelineStageOnSuccessConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
Commands List<string>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
Configuration Dictionary<string, string>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
InputArtifacts List<string>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
Region string
The Region for the condition associated with the rule.
RoleArn string
The pipeline role ARN associated with the rule.
TimeoutInMinutes int
The action timeout for the rule.
Name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
RuleTypeId This property is required. PipelineStageOnSuccessConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
Commands []string
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
Configuration map[string]string
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
InputArtifacts []string
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
Region string
The Region for the condition associated with the rule.
RoleArn string
The pipeline role ARN associated with the rule.
TimeoutInMinutes int
The action timeout for the rule.
name This property is required. String
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. PipelineStageOnSuccessConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands List<String>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Map<String,String>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts List<String>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region String
The Region for the condition associated with the rule.
roleArn String
The pipeline role ARN associated with the rule.
timeoutInMinutes Integer
The action timeout for the rule.
name This property is required. string
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. PipelineStageOnSuccessConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands string[]
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration {[key: string]: string}
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts string[]
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region string
The Region for the condition associated with the rule.
roleArn string
The pipeline role ARN associated with the rule.
timeoutInMinutes number
The action timeout for the rule.
name This property is required. str
The name of the rule that is created for the condition, such as VariableCheck.
rule_type_id This property is required. PipelineStageOnSuccessConditionRuleRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands Sequence[str]
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Mapping[str, str]
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
input_artifacts Sequence[str]
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region str
The Region for the condition associated with the rule.
role_arn str
The pipeline role ARN associated with the rule.
timeout_in_minutes int
The action timeout for the rule.
name This property is required. String
The name of the rule that is created for the condition, such as VariableCheck.
ruleTypeId This property is required. Property Map
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version. Defined as an rule_type_id block below.
commands List<String>
The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats.
configuration Map<String>
The action configuration fields for the rule. Configurations options for rule types and providers can be found in the Rule structure reference.
inputArtifacts List<String>
The list of the input artifacts fields for the rule, such as specifying an input file for the rule.
region String
The Region for the condition associated with the rule.
roleArn String
The pipeline role ARN associated with the rule.
timeoutInMinutes Number
The action timeout for the rule.

PipelineStageOnSuccessConditionRuleRuleTypeId
, PipelineStageOnSuccessConditionRuleRuleTypeIdArgs

Category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
Provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
Owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
Version string
A string that describes the rule version.
Category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
Provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
Owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
Version string
A string that describes the rule version.
category This property is required. String
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. String
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner String
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version String
A string that describes the rule version.
category This property is required. string
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. string
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner string
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version string
A string that describes the rule version.
category This property is required. str
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. str
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner str
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version str
A string that describes the rule version.
category This property is required. String
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category is Rule.
provider This property is required. String
The rule provider, such as the DeploymentWindow rule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference.
owner String
The creator of the rule being called. The valid value for the Owner field in the rule category is AWS.
version String
A string that describes the rule version.

PipelineTrigger
, PipelineTriggerArgs

GitConfiguration This property is required. PipelineTriggerGitConfiguration
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
ProviderType This property is required. string
The source provider for the event. Possible value is CodeStarSourceConnection.
GitConfiguration This property is required. PipelineTriggerGitConfiguration
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
ProviderType This property is required. string
The source provider for the event. Possible value is CodeStarSourceConnection.
gitConfiguration This property is required. PipelineTriggerGitConfiguration
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
providerType This property is required. String
The source provider for the event. Possible value is CodeStarSourceConnection.
gitConfiguration This property is required. PipelineTriggerGitConfiguration
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
providerType This property is required. string
The source provider for the event. Possible value is CodeStarSourceConnection.
git_configuration This property is required. PipelineTriggerGitConfiguration
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
provider_type This property is required. str
The source provider for the event. Possible value is CodeStarSourceConnection.
gitConfiguration This property is required. Property Map
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
providerType This property is required. String
The source provider for the event. Possible value is CodeStarSourceConnection.

PipelineTriggerAll
, PipelineTriggerAllArgs

GitConfigurations List<PipelineTriggerAllGitConfiguration>
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
ProviderType string
The source provider for the event. Possible value is CodeStarSourceConnection.
GitConfigurations []PipelineTriggerAllGitConfiguration
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
ProviderType string
The source provider for the event. Possible value is CodeStarSourceConnection.
gitConfigurations List<PipelineTriggerAllGitConfiguration>
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
providerType String
The source provider for the event. Possible value is CodeStarSourceConnection.
gitConfigurations PipelineTriggerAllGitConfiguration[]
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
providerType string
The source provider for the event. Possible value is CodeStarSourceConnection.
git_configurations Sequence[PipelineTriggerAllGitConfiguration]
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
provider_type str
The source provider for the event. Possible value is CodeStarSourceConnection.
gitConfigurations List<Property Map>
Provides the filter criteria and the source stage for the repository event that starts the pipeline. For more information, refer to the AWS documentation. A git_configuration block is documented below.
providerType String
The source provider for the event. Possible value is CodeStarSourceConnection.

PipelineTriggerAllGitConfiguration
, PipelineTriggerAllGitConfigurationArgs

PullRequests List<PipelineTriggerAllGitConfigurationPullRequest>
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
Pushes List<PipelineTriggerAllGitConfigurationPush>
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
SourceActionName string
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
PullRequests []PipelineTriggerAllGitConfigurationPullRequest
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
Pushes []PipelineTriggerAllGitConfigurationPush
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
SourceActionName string
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
pullRequests List<PipelineTriggerAllGitConfigurationPullRequest>
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
pushes List<PipelineTriggerAllGitConfigurationPush>
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
sourceActionName String
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
pullRequests PipelineTriggerAllGitConfigurationPullRequest[]
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
pushes PipelineTriggerAllGitConfigurationPush[]
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
sourceActionName string
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
pull_requests Sequence[PipelineTriggerAllGitConfigurationPullRequest]
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
pushes Sequence[PipelineTriggerAllGitConfigurationPush]
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
source_action_name str
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
pullRequests List<Property Map>
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
pushes List<Property Map>
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
sourceActionName String
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.

PipelineTriggerAllGitConfigurationPullRequest
, PipelineTriggerAllGitConfigurationPullRequestArgs

Branches List<PipelineTriggerAllGitConfigurationPullRequestBranch>
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
Events List<string>
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
FilePaths List<PipelineTriggerAllGitConfigurationPullRequestFilePath>
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
Branches []PipelineTriggerAllGitConfigurationPullRequestBranch
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
Events []string
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
FilePaths []PipelineTriggerAllGitConfigurationPullRequestFilePath
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
branches List<PipelineTriggerAllGitConfigurationPullRequestBranch>
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
events List<String>
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
filePaths List<PipelineTriggerAllGitConfigurationPullRequestFilePath>
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
branches PipelineTriggerAllGitConfigurationPullRequestBranch[]
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
events string[]
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
filePaths PipelineTriggerAllGitConfigurationPullRequestFilePath[]
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
branches Sequence[PipelineTriggerAllGitConfigurationPullRequestBranch]
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
events Sequence[str]
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
file_paths Sequence[PipelineTriggerAllGitConfigurationPullRequestFilePath]
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
branches List<Property Map>
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
events List<String>
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
filePaths List<Property Map>
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.

PipelineTriggerAllGitConfigurationPullRequestBranch
, PipelineTriggerAllGitConfigurationPullRequestBranchArgs

Excludes List<string>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerAllGitConfigurationPullRequestFilePath
, PipelineTriggerAllGitConfigurationPullRequestFilePathArgs

Excludes List<string>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerAllGitConfigurationPush
, PipelineTriggerAllGitConfigurationPushArgs

Branches List<PipelineTriggerAllGitConfigurationPushBranch>
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
FilePaths List<PipelineTriggerAllGitConfigurationPushFilePath>
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
Tags List<PipelineTriggerAllGitConfigurationPushTag>
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
Branches []PipelineTriggerAllGitConfigurationPushBranch
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
FilePaths []PipelineTriggerAllGitConfigurationPushFilePath
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
Tags []PipelineTriggerAllGitConfigurationPushTag
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
branches List<PipelineTriggerAllGitConfigurationPushBranch>
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
filePaths List<PipelineTriggerAllGitConfigurationPushFilePath>
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
tags List<PipelineTriggerAllGitConfigurationPushTag>
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
branches PipelineTriggerAllGitConfigurationPushBranch[]
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
filePaths PipelineTriggerAllGitConfigurationPushFilePath[]
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
tags PipelineTriggerAllGitConfigurationPushTag[]
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
branches Sequence[PipelineTriggerAllGitConfigurationPushBranch]
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
file_paths Sequence[PipelineTriggerAllGitConfigurationPushFilePath]
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
tags Sequence[PipelineTriggerAllGitConfigurationPushTag]
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
branches List<Property Map>
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
filePaths List<Property Map>
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
tags List<Property Map>
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.

PipelineTriggerAllGitConfigurationPushBranch
, PipelineTriggerAllGitConfigurationPushBranchArgs

Excludes List<string>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerAllGitConfigurationPushFilePath
, PipelineTriggerAllGitConfigurationPushFilePathArgs

Excludes List<string>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerAllGitConfigurationPushTag
, PipelineTriggerAllGitConfigurationPushTagArgs

Excludes List<string>
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerGitConfiguration
, PipelineTriggerGitConfigurationArgs

SourceActionName This property is required. string
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
PullRequests List<PipelineTriggerGitConfigurationPullRequest>
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
Pushes List<PipelineTriggerGitConfigurationPush>
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
SourceActionName This property is required. string
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
PullRequests []PipelineTriggerGitConfigurationPullRequest
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
Pushes []PipelineTriggerGitConfigurationPush
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
sourceActionName This property is required. String
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
pullRequests List<PipelineTriggerGitConfigurationPullRequest>
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
pushes List<PipelineTriggerGitConfigurationPush>
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
sourceActionName This property is required. string
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
pullRequests PipelineTriggerGitConfigurationPullRequest[]
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
pushes PipelineTriggerGitConfigurationPush[]
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
source_action_name This property is required. str
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
pull_requests Sequence[PipelineTriggerGitConfigurationPullRequest]
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
pushes Sequence[PipelineTriggerGitConfigurationPush]
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.
sourceActionName This property is required. String
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
pullRequests List<Property Map>
The field where the repository event that will start the pipeline is specified as pull requests. A pull_request block is documented below.
pushes List<Property Map>
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. A push block is documented below.

PipelineTriggerGitConfigurationPullRequest
, PipelineTriggerGitConfigurationPullRequestArgs

Branches PipelineTriggerGitConfigurationPullRequestBranches
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
Events List<string>
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
FilePaths PipelineTriggerGitConfigurationPullRequestFilePaths
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
Branches PipelineTriggerGitConfigurationPullRequestBranches
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
Events []string
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
FilePaths PipelineTriggerGitConfigurationPullRequestFilePaths
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
branches PipelineTriggerGitConfigurationPullRequestBranches
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
events List<String>
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
filePaths PipelineTriggerGitConfigurationPullRequestFilePaths
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
branches PipelineTriggerGitConfigurationPullRequestBranches
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
events string[]
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
filePaths PipelineTriggerGitConfigurationPullRequestFilePaths
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
branches PipelineTriggerGitConfigurationPullRequestBranches
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
events Sequence[str]
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
file_paths PipelineTriggerGitConfigurationPullRequestFilePaths
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.
branches Property Map
The field that specifies to filter on branches for the pull request trigger configuration. A branches block is documented below.
events List<String>
A list that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. Possible values are OPEN, UPDATED and CLOSED.
filePaths Property Map
The field that specifies to filter on file paths for the pull request trigger configuration. A file_paths block is documented below.

PipelineTriggerGitConfigurationPullRequestBranches
, PipelineTriggerGitConfigurationPullRequestBranchesArgs

Excludes List<string>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerGitConfigurationPullRequestFilePaths
, PipelineTriggerGitConfigurationPullRequestFilePathsArgs

Excludes List<string>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerGitConfigurationPush
, PipelineTriggerGitConfigurationPushArgs

Branches PipelineTriggerGitConfigurationPushBranches
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
FilePaths PipelineTriggerGitConfigurationPushFilePaths
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
Tags PipelineTriggerGitConfigurationPushTags
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
Branches PipelineTriggerGitConfigurationPushBranches
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
FilePaths PipelineTriggerGitConfigurationPushFilePaths
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
Tags PipelineTriggerGitConfigurationPushTags
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
branches PipelineTriggerGitConfigurationPushBranches
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
filePaths PipelineTriggerGitConfigurationPushFilePaths
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
tags PipelineTriggerGitConfigurationPushTags
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
branches PipelineTriggerGitConfigurationPushBranches
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
filePaths PipelineTriggerGitConfigurationPushFilePaths
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
tags PipelineTriggerGitConfigurationPushTags
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
branches PipelineTriggerGitConfigurationPushBranches
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
file_paths PipelineTriggerGitConfigurationPushFilePaths
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
tags PipelineTriggerGitConfigurationPushTags
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.
branches Property Map
The field that specifies to filter on branches for the push trigger configuration. A branches block is documented below.
filePaths Property Map
The field that specifies to filter on file paths for the push trigger configuration. A file_paths block is documented below.
tags Property Map
The field that contains the details for the Git tags trigger configuration. A tags block is documented below.

PipelineTriggerGitConfigurationPushBranches
, PipelineTriggerGitConfigurationPushBranchesArgs

Excludes List<string>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerGitConfigurationPushFilePaths
, PipelineTriggerGitConfigurationPushFilePathsArgs

Excludes List<string>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

PipelineTriggerGitConfigurationPushTags
, PipelineTriggerGitConfigurationPushTagsArgs

Excludes List<string>
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
Includes List<string>
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
Excludes []string
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
Includes []string
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes string[]
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
includes string[]
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes Sequence[str]
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
includes Sequence[str]
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
excludes List<String>
A list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
includes List<String>
A list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.

PipelineVariable
, PipelineVariableArgs

Name This property is required. string
The name of a pipeline-level variable.
DefaultValue string
The default value of a pipeline-level variable.
Description string
The description of a pipeline-level variable.
Name This property is required. string
The name of a pipeline-level variable.
DefaultValue string
The default value of a pipeline-level variable.
Description string
The description of a pipeline-level variable.
name This property is required. String
The name of a pipeline-level variable.
defaultValue String
The default value of a pipeline-level variable.
description String
The description of a pipeline-level variable.
name This property is required. string
The name of a pipeline-level variable.
defaultValue string
The default value of a pipeline-level variable.
description string
The description of a pipeline-level variable.
name This property is required. str
The name of a pipeline-level variable.
default_value str
The default value of a pipeline-level variable.
description str
The description of a pipeline-level variable.
name This property is required. String
The name of a pipeline-level variable.
defaultValue String
The default value of a pipeline-level variable.
description String
The description of a pipeline-level variable.

Import

Using pulumi import, import CodePipelines using the name. For example:

$ pulumi import aws:codepipeline/pipeline:Pipeline example example-pipeline
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.