@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-14T20:30:48.338Z") @Stability(value=Stable) public interface ActionProperties extends software.amazon.jsii.JsiiSerializable
// 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.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.core.*;
Artifact artifact;
Resource resource;
Role role;
ActionProperties actionProperties = ActionProperties.builder()
.actionName("actionName")
.artifactBounds(ActionArtifactBounds.builder()
.maxInputs(123)
.maxOutputs(123)
.minInputs(123)
.minOutputs(123)
.build())
.category(ActionCategory.SOURCE)
.provider("provider")
// the properties below are optional
.account("account")
.inputs(List.of(artifact))
.outputs(List.of(artifact))
.owner("owner")
.region("region")
.resource(resource)
.role(role)
.runOrder(123)
.variablesNamespace("variablesNamespace")
.version("version")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ActionProperties.Builder
A builder for
ActionProperties |
static class |
ActionProperties.Jsii$Proxy
An implementation for
ActionProperties |
| Modifier and Type | Method and Description |
|---|---|
static ActionProperties.Builder |
builder() |
default String |
getAccount()
The account the Action is supposed to live in.
|
String |
getActionName() |
ActionArtifactBounds |
getArtifactBounds() |
ActionCategory |
getCategory()
The category of the action.
|
default List<Artifact> |
getInputs() |
default List<Artifact> |
getOutputs() |
default String |
getOwner() |
String |
getProvider()
The service provider that the action calls.
|
default String |
getRegion()
The AWS region the given Action resides in.
|
default IResource |
getResource()
The optional resource that is backing this Action.
|
default IRole |
getRole() |
default Number |
getRunOrder()
The order in which AWS CodePipeline runs this action.
|
default String |
getVariablesNamespace()
The name of the namespace to use for variables emitted by this action.
|
default String |
getVersion() |
@Stability(value=Stable) @NotNull String getActionName()
@Stability(value=Stable) @NotNull ActionArtifactBounds getArtifactBounds()
@Stability(value=Stable) @NotNull ActionCategory getCategory()
The category defines which action type the owner (the entity that performs the action) performs.
@Stability(value=Stable) @NotNull String getProvider()
@Stability(value=Stable) @Nullable default String getAccount()
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.
@Stability(value=Stable) @Nullable default String getOwner()
@Stability(value=Stable) @Nullable default String getRegion()
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.
Default: the Action resides in the same region as the Pipeline
@Stability(value=Stable) @Nullable default IResource getResource()
This is used for automatically handling Actions backed by resources from a different account and/or region.
@Stability(value=Stable) @Nullable default IRole getRole()
@Stability(value=Stable) @Nullable default Number getRunOrder()
https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements
@Stability(value=Stable) @Nullable default String getVariablesNamespace()
Default: - a name will be generated, based on the stage and action names
@Stability(value=Stable) @Nullable default String getVersion()
@Stability(value=Stable) static ActionProperties.Builder builder()
ActionProperties.Builder of ActionPropertiesCopyright © 2022. All rights reserved.