# CodePipelineActionFactoryResult

The result of adding actions to the pipeline.

Returned by: [ICodePipelineActionFactory.produceAction](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.ICodePipelineActionFactory.html#produceaction)

- Source: [`pipelines/lib/codepipeline/codepipeline-action-factory.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/pipelines/lib/codepipeline/codepipeline-action-factory.ts#L109)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
import { pipelines } from 'aws-cdk-lib';

declare const project: codebuild.Project;
const codePipelineActionFactoryResult: pipelines.CodePipelineActionFactoryResult = {
  runOrdersConsumed: 123,

  // the properties below are optional
  project: project,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild
from aws_cdk import pipelines

# project: codebuild.Project

code_pipeline_action_factory_result = pipelines.CodePipelineActionFactoryResult(
    run_orders_consumed=123,

    # the properties below are optional
    project=project
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
import software.amazon.awscdk.pipelines.*;

Project project;

CodePipelineActionFactoryResult codePipelineActionFactoryResult = CodePipelineActionFactoryResult.builder()
        .runOrdersConsumed(123)

        // the properties below are optional
        .project(project)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
using Amazon.CDK.Pipelines;

Project project;

var codePipelineActionFactoryResult = new CodePipelineActionFactoryResult {
    RunOrdersConsumed = 123,

    // the properties below are optional
    Project = project
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var project Project

codePipelineActionFactoryResult := &CodePipelineActionFactoryResult{
	RunOrdersConsumed: jsii.Number(123),

	// the properties below are optional
	Project: project,
}
```

## Properties

- `project`: [IProject](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.IProject.html) — If a CodeBuild project got created, the project.

  **Default:** This factory did not create a CodeBuild project

- `runOrdersConsumed`: number (required) — How many RunOrders were consumed.

  If you add 1 action, return the value 1 here.
