StageDeclarationProperty
Struct External
Represents information about a stage and its definition.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline as codepipeline } from 'aws-cdk-lib';
declare const configuration: any;
const stageDeclarationProperty: codepipeline.CfnPipeline.StageDeclarationProperty = {
actions: [{
actionTypeId: {
category: 'category',
owner: 'owner',
provider: 'provider',
version: 'version',
},
name: 'name',
// the properties below are optional
commands: ['commands'],
configuration: configuration,
environmentVariables: [{
name: 'name',
value: 'value',
// the properties below are optional
type: 'type',
}],
inputArtifacts: [{
name: 'name',
}],
namespace: 'namespace',
outputArtifacts: [{
name: 'name',
// the properties below are optional
files: ['files'],
}],
outputVariables: ['outputVariables'],
region: 'region',
roleArn: 'roleArn',
runOrder: 123,
timeoutInMinutes: 123,
}],
name: 'name',
// the properties below are optional
beforeEntry: {
conditions: [{
result: 'result',
rules: [{
commands: ['commands'],
configuration: configuration,
inputArtifacts: [{
name: 'name',
}],
name: 'name',
region: 'region',
roleArn: 'roleArn',
ruleTypeId: {
category: 'category',
owner: 'owner',
provider: 'provider',
version: 'version',
},
}],
}],
},
blockers: [{
name: 'name',
type: 'type',
}],
onFailure: {
conditions: [{
result: 'result',
rules: [{
commands: ['commands'],
configuration: configuration,
inputArtifacts: [{
name: 'name',
}],
name: 'name',
region: 'region',
roleArn: 'roleArn',
ruleTypeId: {
category: 'category',
owner: 'owner',
provider: 'provider',
version: 'version',
},
}],
}],
result: 'result',
retryConfiguration: {
retryMode: 'retryMode',
},
},
onSuccess: {
conditions: [{
result: 'result',
rules: [{
commands: ['commands'],
configuration: configuration,
inputArtifacts: [{
name: 'name',
}],
name: 'name',
region: 'region',
roleArn: 'roleArn',
ruleTypeId: {
category: 'category',
owner: 'owner',
provider: 'provider',
version: 'version',
},
}],
}],
},
};
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_codepipeline as codepipeline
# configuration: Any
stage_declaration_property = codepipeline.CfnPipeline.StageDeclarationProperty(
actions=[codepipeline.CfnPipeline.ActionDeclarationProperty(
action_type_id=codepipeline.CfnPipeline.ActionTypeIdProperty(
category="category",
owner="owner",
provider="provider",
version="version"
),
name="name",
# the properties below are optional
commands=["commands"],
configuration=configuration,
environment_variables=[codepipeline.CfnPipeline.EnvironmentVariableProperty(
name="name",
value="value",
# the properties below are optional
type="type"
)],
input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
name="name"
)],
namespace="namespace",
output_artifacts=[codepipeline.CfnPipeline.OutputArtifactProperty(
name="name",
# the properties below are optional
files=["files"]
)],
output_variables=["outputVariables"],
region="region",
role_arn="roleArn",
run_order=123,
timeout_in_minutes=123
)],
name="name",
# the properties below are optional
before_entry=codepipeline.CfnPipeline.BeforeEntryConditionsProperty(
conditions=[codepipeline.CfnPipeline.ConditionProperty(
result="result",
rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
commands=["commands"],
configuration=configuration,
input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
name="name"
)],
name="name",
region="region",
role_arn="roleArn",
rule_type_id=codepipeline.CfnPipeline.RuleTypeIdProperty(
category="category",
owner="owner",
provider="provider",
version="version"
)
)]
)]
),
blockers=[codepipeline.CfnPipeline.BlockerDeclarationProperty(
name="name",
type="type"
)],
on_failure=codepipeline.CfnPipeline.FailureConditionsProperty(
conditions=[codepipeline.CfnPipeline.ConditionProperty(
result="result",
rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
commands=["commands"],
configuration=configuration,
input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
name="name"
)],
name="name",
region="region",
role_arn="roleArn",
rule_type_id=codepipeline.CfnPipeline.RuleTypeIdProperty(
category="category",
owner="owner",
provider="provider",
version="version"
)
)]
)],
result="result",
retry_configuration=codepipeline.CfnPipeline.RetryConfigurationProperty(
retry_mode="retryMode"
)
),
on_success=codepipeline.CfnPipeline.SuccessConditionsProperty(
conditions=[codepipeline.CfnPipeline.ConditionProperty(
result="result",
rules=[codepipeline.CfnPipeline.RuleDeclarationProperty(
commands=["commands"],
configuration=configuration,
input_artifacts=[codepipeline.CfnPipeline.InputArtifactProperty(
name="name"
)],
name="name",
region="region",
role_arn="roleArn",
rule_type_id=codepipeline.CfnPipeline.RuleTypeIdProperty(
category="category",
owner="owner",
provider="provider",
version="version"
)
)]
)]
)
)
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.codepipeline.*;
Object configuration;
StageDeclarationProperty stageDeclarationProperty = StageDeclarationProperty.builder()
.actions(List.of(ActionDeclarationProperty.builder()
.actionTypeId(ActionTypeIdProperty.builder()
.category("category")
.owner("owner")
.provider("provider")
.version("version")
.build())
.name("name")
// the properties below are optional
.commands(List.of("commands"))
.configuration(configuration)
.environmentVariables(List.of(EnvironmentVariableProperty.builder()
.name("name")
.value("value")
// the properties below are optional
.type("type")
.build()))
.inputArtifacts(List.of(InputArtifactProperty.builder()
.name("name")
.build()))
.namespace("namespace")
.outputArtifacts(List.of(OutputArtifactProperty.builder()
.name("name")
// the properties below are optional
.files(List.of("files"))
.build()))
.outputVariables(List.of("outputVariables"))
.region("region")
.roleArn("roleArn")
.runOrder(123)
.timeoutInMinutes(123)
.build()))
.name("name")
// the properties below are optional
.beforeEntry(BeforeEntryConditionsProperty.builder()
.conditions(List.of(ConditionProperty.builder()
.result("result")
.rules(List.of(RuleDeclarationProperty.builder()
.commands(List.of("commands"))
.configuration(configuration)
.inputArtifacts(List.of(InputArtifactProperty.builder()
.name("name")
.build()))
.name("name")
.region("region")
.roleArn("roleArn")
.ruleTypeId(RuleTypeIdProperty.builder()
.category("category")
.owner("owner")
.provider("provider")
.version("version")
.build())
.build()))
.build()))
.build())
.blockers(List.of(BlockerDeclarationProperty.builder()
.name("name")
.type("type")
.build()))
.onFailure(FailureConditionsProperty.builder()
.conditions(List.of(ConditionProperty.builder()
.result("result")
.rules(List.of(RuleDeclarationProperty.builder()
.commands(List.of("commands"))
.configuration(configuration)
.inputArtifacts(List.of(InputArtifactProperty.builder()
.name("name")
.build()))
.name("name")
.region("region")
.roleArn("roleArn")
.ruleTypeId(RuleTypeIdProperty.builder()
.category("category")
.owner("owner")
.provider("provider")
.version("version")
.build())
.build()))
.build()))
.result("result")
.retryConfiguration(RetryConfigurationProperty.builder()
.retryMode("retryMode")
.build())
.build())
.onSuccess(SuccessConditionsProperty.builder()
.conditions(List.of(ConditionProperty.builder()
.result("result")
.rules(List.of(RuleDeclarationProperty.builder()
.commands(List.of("commands"))
.configuration(configuration)
.inputArtifacts(List.of(InputArtifactProperty.builder()
.name("name")
.build()))
.name("name")
.region("region")
.roleArn("roleArn")
.ruleTypeId(RuleTypeIdProperty.builder()
.category("category")
.owner("owner")
.provider("provider")
.version("version")
.build())
.build()))
.build()))
.build())
.build();
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.CodePipeline;
var configuration;
var stageDeclarationProperty = new StageDeclarationProperty {
Actions = new [] { new ActionDeclarationProperty {
ActionTypeId = new ActionTypeIdProperty {
Category = "category",
Owner = "owner",
Provider = "provider",
Version = "version"
},
Name = "name",
// the properties below are optional
Commands = new [] { "commands" },
Configuration = configuration,
EnvironmentVariables = new [] { new EnvironmentVariableProperty {
Name = "name",
Value = "value",
// the properties below are optional
Type = "type"
} },
InputArtifacts = new [] { new InputArtifactProperty {
Name = "name"
} },
Namespace = "namespace",
OutputArtifacts = new [] { new OutputArtifactProperty {
Name = "name",
// the properties below are optional
Files = new [] { "files" }
} },
OutputVariables = new [] { "outputVariables" },
Region = "region",
RoleArn = "roleArn",
RunOrder = 123,
TimeoutInMinutes = 123
} },
Name = "name",
// the properties below are optional
BeforeEntry = new BeforeEntryConditionsProperty {
Conditions = new [] { new ConditionProperty {
Result = "result",
Rules = new [] { new RuleDeclarationProperty {
Commands = new [] { "commands" },
Configuration = configuration,
InputArtifacts = new [] { new InputArtifactProperty {
Name = "name"
} },
Name = "name",
Region = "region",
RoleArn = "roleArn",
RuleTypeId = new RuleTypeIdProperty {
Category = "category",
Owner = "owner",
Provider = "provider",
Version = "version"
}
} }
} }
},
Blockers = new [] { new BlockerDeclarationProperty {
Name = "name",
Type = "type"
} },
OnFailure = new FailureConditionsProperty {
Conditions = new [] { new ConditionProperty {
Result = "result",
Rules = new [] { new RuleDeclarationProperty {
Commands = new [] { "commands" },
Configuration = configuration,
InputArtifacts = new [] { new InputArtifactProperty {
Name = "name"
} },
Name = "name",
Region = "region",
RoleArn = "roleArn",
RuleTypeId = new RuleTypeIdProperty {
Category = "category",
Owner = "owner",
Provider = "provider",
Version = "version"
}
} }
} },
Result = "result",
RetryConfiguration = new RetryConfigurationProperty {
RetryMode = "retryMode"
}
},
OnSuccess = new SuccessConditionsProperty {
Conditions = new [] { new ConditionProperty {
Result = "result",
Rules = new [] { new RuleDeclarationProperty {
Commands = new [] { "commands" },
Configuration = configuration,
InputArtifacts = new [] { new InputArtifactProperty {
Name = "name"
} },
Name = "name",
Region = "region",
RoleArn = "roleArn",
RuleTypeId = new RuleTypeIdProperty {
Category = "category",
Owner = "owner",
Provider = "provider",
Version = "version"
}
} }
} }
}
};
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"
var configuration interface{}
stageDeclarationProperty := &StageDeclarationProperty{
Actions: []interface{}{
&ActionDeclarationProperty{
ActionTypeId: &ActionTypeIdProperty{
Category: jsii.String("category"),
Owner: jsii.String("owner"),
Provider: jsii.String("provider"),
Version: jsii.String("version"),
},
Name: jsii.String("name"),
// the properties below are optional
Commands: []*string{
jsii.String("commands"),
},
Configuration: configuration,
EnvironmentVariables: []interface{}{
&EnvironmentVariableProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
// the properties below are optional
Type: jsii.String("type"),
},
},
InputArtifacts: []interface{}{
&InputArtifactProperty{
Name: jsii.String("name"),
},
},
Namespace: jsii.String("namespace"),
OutputArtifacts: []interface{}{
&OutputArtifactProperty{
Name: jsii.String("name"),
// the properties below are optional
Files: []*string{
jsii.String("files"),
},
},
},
OutputVariables: []*string{
jsii.String("outputVariables"),
},
Region: jsii.String("region"),
RoleArn: jsii.String("roleArn"),
RunOrder: jsii.Number(123),
TimeoutInMinutes: jsii.Number(123),
},
},
Name: jsii.String("name"),
// the properties below are optional
BeforeEntry: &BeforeEntryConditionsProperty{
Conditions: []interface{}{
&ConditionProperty{
Result: jsii.String("result"),
Rules: []interface{}{
&RuleDeclarationProperty{
Commands: []*string{
jsii.String("commands"),
},
Configuration: configuration,
InputArtifacts: []interface{}{
&InputArtifactProperty{
Name: jsii.String("name"),
},
},
Name: jsii.String("name"),
Region: jsii.String("region"),
RoleArn: jsii.String("roleArn"),
RuleTypeId: &RuleTypeIdProperty{
Category: jsii.String("category"),
Owner: jsii.String("owner"),
Provider: jsii.String("provider"),
Version: jsii.String("version"),
},
},
},
},
},
},
Blockers: []interface{}{
&BlockerDeclarationProperty{
Name: jsii.String("name"),
Type: jsii.String("type"),
},
},
OnFailure: &FailureConditionsProperty{
Conditions: []interface{}{
&ConditionProperty{
Result: jsii.String("result"),
Rules: []interface{}{
&RuleDeclarationProperty{
Commands: []*string{
jsii.String("commands"),
},
Configuration: configuration,
InputArtifacts: []interface{}{
&InputArtifactProperty{
Name: jsii.String("name"),
},
},
Name: jsii.String("name"),
Region: jsii.String("region"),
RoleArn: jsii.String("roleArn"),
RuleTypeId: &RuleTypeIdProperty{
Category: jsii.String("category"),
Owner: jsii.String("owner"),
Provider: jsii.String("provider"),
Version: jsii.String("version"),
},
},
},
},
},
Result: jsii.String("result"),
RetryConfiguration: &RetryConfigurationProperty{
RetryMode: jsii.String("retryMode"),
},
},
OnSuccess: &SuccessConditionsProperty{
Conditions: []interface{}{
&ConditionProperty{
Result: jsii.String("result"),
Rules: []interface{}{
&RuleDeclarationProperty{
Commands: []*string{
jsii.String("commands"),
},
Configuration: configuration,
InputArtifacts: []interface{}{
&InputArtifactProperty{
Name: jsii.String("name"),
},
},
Name: jsii.String("name"),
Region: jsii.String("region"),
RoleArn: jsii.String("roleArn"),
RuleTypeId: &RuleTypeIdProperty{
Category: jsii.String("category"),
Owner: jsii.String("owner"),
Provider: jsii.String("provider"),
Version: jsii.String("version"),
},
},
},
},
},
},
}
Properties
actionsIResolvable | IResolvable | CfnPipeline.actionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ActionDeclarationProperty]]]actionsIResolvableActionsIResolvableActionsinterface{} required #The actions included in a stage.
beforeEntryoptionalIResolvable | CfnPipeline.before_entryoptionaltyping.Union[IResolvable, BeforeEntryConditionsProperty]beforeEntryoptionalIResolvableBeforeEntryoptionalIResolvableBeforeEntryoptionalinterface{} #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.
blockersoptionalIResolvable | IResolvable | CfnPipeline.blockersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, BlockerDeclarationProperty]]]blockersoptionalIResolvableBlockersoptionalIResolvableBlockersoptionalinterface{} #Reserved for future use.
The name of the stage.
onFailureoptionalIResolvable | CfnPipeline.on_failureoptionaltyping.Union[IResolvable, FailureConditionsProperty]onFailureoptionalIResolvableOnFailureoptionalIResolvableOnFailureoptionalinterface{} #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.
onSuccessoptionalIResolvable | CfnPipeline.on_successoptionaltyping.Union[IResolvable, SuccessConditionsProperty]onSuccessoptionalIResolvableOnSuccessoptionalIResolvableOnSuccessoptionalinterface{} #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.