Class CfnPipelinePropsMixin.ActionDeclarationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipelinePropsMixin.ActionDeclarationProperty>
- Enclosing interface:
CfnPipelinePropsMixin.ActionDeclarationProperty
CfnPipelinePropsMixin.ActionDeclarationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionTypeId(CfnPipelinePropsMixin.ActionTypeIdProperty actionTypeId) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getActionTypeId()actionTypeId(IResolvable actionTypeId) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getActionTypeId()build()Builds the configured instance.Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getCommands()configuration(Object configuration) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getConfiguration()environmentVariables(List<? extends Object> environmentVariables) environmentVariables(IResolvable environmentVariables) inputArtifacts(List<? extends Object> inputArtifacts) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getInputArtifacts()inputArtifacts(IResolvable inputArtifacts) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getInputArtifacts()Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getName()Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getNamespace()outputArtifacts(List<? extends Object> outputArtifacts) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getOutputArtifacts()outputArtifacts(IResolvable outputArtifacts) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getOutputArtifacts()outputVariables(List<String> outputVariables) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getOutputVariables()Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getRegion()Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getRoleArn()Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getRoleArn()Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getRunOrder()timeoutInMinutes(Number timeoutInMinutes) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getTimeoutInMinutes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionTypeId
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder actionTypeId(IResolvable actionTypeId) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getActionTypeId()- Parameters:
actionTypeId- Specifies the action type and the provider of the action.- Returns:
this
-
actionTypeId
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder actionTypeId(CfnPipelinePropsMixin.ActionTypeIdProperty actionTypeId) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getActionTypeId()- Parameters:
actionTypeId- Specifies the action type and the provider of the action.- Returns:
this
-
commands
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder commands(List<String> commands) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getCommands()- Parameters:
commands- The shell commands to run with your compute action 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 .
- Returns:
this
-
configuration
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder configuration(Object configuration) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getConfiguration()- Parameters:
configuration- The action's configuration. These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline . For the list of configuration properties for the AWS CloudFormation action type in CodePipeline, see Configuration Properties Reference in the AWS CloudFormation User Guide . For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the AWS CloudFormation User Guide .The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows:
JSON:
"Configuration" : { Key : Value },- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder environmentVariables(IResolvable environmentVariables) - Parameters:
environmentVariables- The environment variables for the action.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder environmentVariables(List<? extends Object> environmentVariables) - Parameters:
environmentVariables- The environment variables for the action.- Returns:
this
-
inputArtifacts
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder inputArtifacts(IResolvable inputArtifacts) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getInputArtifacts()- Parameters:
inputArtifacts- The name or ID of the artifact consumed by the action, such as a test or build artifact. While the field is not a required parameter, most actions have an action configuration that requires a specified quantity of input artifacts. To refer to the action configuration specification by action provider, see the Action structure reference in the AWS CodePipeline User Guide .For a CodeBuild action with multiple input artifacts, one of your input sources must be designated the PrimarySource. For more information, see the CodeBuild action reference page in the AWS CodePipeline User Guide .
- Returns:
this
-
inputArtifacts
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder inputArtifacts(List<? extends Object> inputArtifacts) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getInputArtifacts()- Parameters:
inputArtifacts- The name or ID of the artifact consumed by the action, such as a test or build artifact. While the field is not a required parameter, most actions have an action configuration that requires a specified quantity of input artifacts. To refer to the action configuration specification by action provider, see the Action structure reference in the AWS CodePipeline User Guide .For a CodeBuild action with multiple input artifacts, one of your input sources must be designated the PrimarySource. For more information, see the CodeBuild action reference page in the AWS CodePipeline User Guide .
- Returns:
this
-
name
Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getName()- Parameters:
name- The action declaration's name.- Returns:
this
-
namespace
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder namespace(String namespace) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getNamespace()- Parameters:
namespace- The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.- Returns:
this
-
outputArtifacts
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder outputArtifacts(IResolvable outputArtifacts) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getOutputArtifacts()- Parameters:
outputArtifacts- The name or ID of the result of the action declaration, such as a test or build artifact. While the field is not a required parameter, most actions have an action configuration that requires a specified quantity of output artifacts. To refer to the action configuration specification by action provider, see the Action structure reference in the AWS CodePipeline User Guide .- Returns:
this
-
outputArtifacts
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder outputArtifacts(List<? extends Object> outputArtifacts) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getOutputArtifacts()- Parameters:
outputArtifacts- The name or ID of the result of the action declaration, such as a test or build artifact. While the field is not a required parameter, most actions have an action configuration that requires a specified quantity of output artifacts. To refer to the action configuration specification by action provider, see the Action structure reference in the AWS CodePipeline User Guide .- Returns:
this
-
outputVariables
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder outputVariables(List<String> outputVariables) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getOutputVariables()- Parameters:
outputVariables- The list of variables that are to be exported from the compute action. This is specifically CodeBuild environment variables as used for that action.- Returns:
this
-
region
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder region(String region) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getRegion()- Parameters:
region- The action declaration's AWS Region, such as us-east-1.- Returns:
this
-
roleArn
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder roleArn(String roleArn) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the pipeline.- Returns:
this
-
roleArn
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder roleArn(IRoleRef roleArn) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the pipeline.- Returns:
this
-
runOrder
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder runOrder(Number runOrder) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getRunOrder()- Parameters:
runOrder- The order in which actions are run.- Returns:
this
-
timeoutInMinutes
@Stability(Stable) public CfnPipelinePropsMixin.ActionDeclarationProperty.Builder timeoutInMinutes(Number timeoutInMinutes) Sets the value ofCfnPipelinePropsMixin.ActionDeclarationProperty.getTimeoutInMinutes()- Parameters:
timeoutInMinutes- A timeout duration in minutes that can be applied against the ActionType’s default timeout value specified in Quotas for AWS CodePipeline . This attribute is available only to the manual approval ActionType.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipelinePropsMixin.ActionDeclarationProperty>- Returns:
- a new instance of
CfnPipelinePropsMixin.ActionDeclarationProperty - Throws:
NullPointerException- if any required attribute was not provided
-