# StageDeploymentProps

Properties for a `StageDeployment`.

Used as argument in: [StageDeployment.fromStage](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.StageDeployment.html#fromstage)

- Source: [`pipelines/lib/blueprint/stage-deployment.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/pipelines/lib/blueprint/stage-deployment.ts#L13)

## Example

TypeScript:

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

declare const stack: cdk.Stack;
declare const step: pipelines.Step;
const stageDeploymentProps: pipelines.StageDeploymentProps = {
  post: [step],
  pre: [step],
  stackSteps: [{
    stack: stack,

    // the properties below are optional
    changeSet: [step],
    post: [step],
    pre: [step],
  }],
  stageName: 'stageName',
};
```

Python:

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

# stack: cdk.Stack
# step: pipelines.Step

stage_deployment_props = pipelines.StageDeploymentProps(
    post=[step],
    pre=[step],
    stack_steps=[pipelines.StackSteps(
        stack=stack,

        # the properties below are optional
        change_set=[step],
        post=[step],
        pre=[step]
    )],
    stage_name="stageName"
)
```

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.*;
import software.amazon.awscdk.pipelines.*;

Stack stack;
Step step;

StageDeploymentProps stageDeploymentProps = StageDeploymentProps.builder()
        .post(List.of(step))
        .pre(List.of(step))
        .stackSteps(List.of(StackSteps.builder()
                .stack(stack)

                // the properties below are optional
                .changeSet(List.of(step))
                .post(List.of(step))
                .pre(List.of(step))
                .build()))
        .stageName("stageName")
        .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;
using Amazon.CDK.Pipelines;

Stack stack;
Step step;

var stageDeploymentProps = new StageDeploymentProps {
    Post = new [] { step },
    Pre = new [] { step },
    StackSteps = new [] { new StackSteps {
        Stack = stack,

        // the properties below are optional
        ChangeSet = new [] { step },
        Post = new [] { step },
        Pre = new [] { step }
    } },
    StageName = "stageName"
};
```

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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var stack Stack
var step Step

stageDeploymentProps := &StageDeploymentProps{
	Post: []Step{
		step,
	},
	Pre: []Step{
		step,
	},
	StackSteps: []StackSteps{
		&StackSteps{
			Stack: stack,

			// the properties below are optional
			ChangeSet: []Step{
				step,
			},
			Post: []Step{
				step,
			},
			Pre: []Step{
				step,
			},
		},
	},
	StageName: jsii.String("stageName"),
}
```

## Properties

- `post`: [Step](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.Step.html)[] — Additional steps to run after all of the stacks in the stage.

  **Default:** No additional steps

- `pre`: [Step](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.Step.html)[] — Additional steps to run before any of the stacks in the stage.

  **Default:** No additional steps

- `stackSteps`: [StackSteps](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.StackSteps.html)[] — Instructions for additional steps that are run at the stack level.

  **Default:** No additional instructions

- `stageName`: string — Stage name to use in the pipeline.

  **Default:** Use Stage's construct ID
