public static final class ActionProperties.Builder
extends java.lang.Object
ActionProperties
Constructor and Description |
---|
Builder() |
public ActionProperties.Builder actionName(java.lang.String actionName)
ActionProperties.getActionName()
actionName
- the value to be set. This parameter is required.this
public ActionProperties.Builder artifactBounds(ActionArtifactBounds artifactBounds)
ActionProperties.getArtifactBounds()
artifactBounds
- the value to be set. This parameter is required.this
public ActionProperties.Builder category(ActionCategory category)
ActionProperties.getCategory()
category
- The category of the action. This parameter is required.
The category defines which action type the owner
(the entity that performs the action) performs.this
public ActionProperties.Builder provider(java.lang.String provider)
ActionProperties.getProvider()
provider
- The service provider that the action calls. This parameter is required.this
public ActionProperties.Builder account(java.lang.String account)
ActionProperties.getAccount()
account
- The account the Action is supposed to live in.
For Actions backed by resources,
this is inferred from the Stack {@link resource} is part of.
However, some Actions, like the CloudFormation ones,
are not backed by any resource, and they still might want to be cross-account.
In general, a concrete Action class should specify either {@link resource},
or {@link account} - but not both.this
public ActionProperties.Builder inputs(java.util.List<? extends Artifact> inputs)
ActionProperties.getInputs()
inputs
- the value to be set.this
public ActionProperties.Builder outputs(java.util.List<? extends Artifact> outputs)
ActionProperties.getOutputs()
outputs
- the value to be set.this
public ActionProperties.Builder owner(java.lang.String owner)
ActionProperties.getOwner()
owner
- the value to be set.this
public ActionProperties.Builder region(java.lang.String region)
ActionProperties.getRegion()
region
- The AWS region the given Action resides in.
Note that a cross-region Pipeline requires replication buckets to function correctly.
You can provide their names with the {@link PipelineProps#crossRegionReplicationBuckets} property.
If you don't, the CodePipeline Construct will create new Stacks in your CDK app containing those buckets,
that you will need to cdk deploy
before deploying the main, Pipeline-containing Stack.this
public ActionProperties.Builder resource(IResource resource)
ActionProperties.getResource()
resource
- The optional resource that is backing this Action.
This is used for automatically handling Actions backed by
resources from a different account and/or region.this
public ActionProperties.Builder role(IRole role)
ActionProperties.getRole()
role
- the value to be set.this
public ActionProperties.Builder runOrder(java.lang.Number runOrder)
ActionProperties.getRunOrder()
runOrder
- The order in which AWS CodePipeline runs this action. For more information, see the AWS CodePipeline User Guide.
https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirementsthis
public ActionProperties.Builder variablesNamespace(java.lang.String variablesNamespace)
ActionProperties.getVariablesNamespace()
variablesNamespace
- The name of the namespace to use for variables emitted by this action.this
public ActionProperties.Builder version(java.lang.String version)
ActionProperties.getVersion()
version
- the value to be set.this
public ActionProperties build()
ActionProperties
java.lang.NullPointerException
- if any required attribute was not provided