Interface CfnPipeline.RuleDeclarationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPipeline.RuleDeclarationProperty.Jsii$Proxy
- Enclosing class:
CfnPipeline
An example would be creating a new rule for an entry condition, such as a rule that checks for a test result before allowing the run to enter the deployment stage. For more information about conditions, see Stage conditions and How do stage conditions work? . For more information about rules, see the AWS CodePipeline rule reference .
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;
RuleDeclarationProperty ruleDeclarationProperty = 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPipeline.RuleDeclarationPropertystatic final classAn implementation forCfnPipeline.RuleDeclarationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The shell commands to run with your commands rule in CodePipeline.default ObjectThe action configuration fields for the rule.default ObjectThe input artifacts fields for the rule, such as specifying an input file for the rule.default StringgetName()The name of the rule that is created for the condition, such asVariableCheck.default StringThe Region for the condition associated with the rule.default StringThe pipeline role ARN associated with the rule.default ObjectThe ID for the rule type, which is made up of the combined values for category, owner, provider, and version.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCommands
The shell commands to run with your commands rule in CodePipeline.All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild.
Using compute time for this action will incur separate charges in AWS CodeBuild .
- See Also:
-
getConfiguration
The action configuration fields for the rule.- See Also:
-
getInputArtifacts
The input artifacts fields for the rule, such as specifying an input file for the rule.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPipeline.InputArtifactProperty>- See Also:
-
getName
The name of the rule that is created for the condition, such asVariableCheck.- See Also:
-
getRegion
The Region for the condition associated with the rule.- See Also:
-
getRoleArn
The pipeline role ARN associated with the rule.- See Also:
-
getRuleTypeId
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.Returns union: either
IResolvableorCfnPipeline.RuleTypeIdProperty- See Also:
-
builder
-