Interface CfnPipeline.FailureConditionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPipeline.FailureConditionsProperty.Jsii$Proxy
- Enclosing class:
CfnPipeline
@Stability(Stable)
public static interface CfnPipeline.FailureConditionsProperty
extends software.amazon.jsii.JsiiSerializable
The configuration that specifies the result, such as rollback, to occur upon stage failure.
For more information about conditions, see Stage conditions and How do stage conditions work? .
Example:
// 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;
FailureConditionsProperty failureConditionsProperty = 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPipeline.FailureConditionsPropertystatic final classAn implementation forCfnPipeline.FailureConditionsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe conditions that are configured as failure conditions.default StringThe specified result for when the failure conditions are met, such as rolling back the stage.default ObjectThe retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConditions
The conditions that are configured as failure conditions.For more information about conditions, see Stage conditions and How do stage conditions work? .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPipeline.ConditionProperty>- See Also:
-
getResult
The specified result for when the failure conditions are met, such as rolling back the stage.- See Also:
-
getRetryConfiguration
The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.Returns union: either
IResolvableorCfnPipeline.RetryConfigurationProperty- See Also:
-
builder
-