aws-cdk-lib.aws_codepipeline.CfnPipeline.ActionDeclarationProperty

interface ActionDeclarationProperty

LanguageType name
.NETAmazon.CDK.AWS.CodePipeline.CfnPipeline.ActionDeclarationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodepipeline#CfnPipeline_ActionDeclarationProperty
Javasoftware.amazon.awscdk.services.codepipeline.CfnPipeline.ActionDeclarationProperty
Pythonaws_cdk.aws_codepipeline.CfnPipeline.ActionDeclarationProperty
TypeScript aws-cdk-lib » aws_codepipeline » CfnPipeline » ActionDeclarationProperty

Represents information about an action declaration.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline as codepipeline } from 'aws-cdk-lib';

declare const configuration: any;
const actionDeclarationProperty: codepipeline.CfnPipeline.ActionDeclarationProperty = {
  actionTypeId: {
    category: 'category',
    owner: 'owner',
    provider: 'provider',
    version: 'version',
  },
  name: 'name',

  // the properties below are optional
  configuration: configuration,
  inputArtifacts: [{
    name: 'name',
  }],
  namespace: 'namespace',
  outputArtifacts: [{
    name: 'name',
  }],
  region: 'region',
  roleArn: 'roleArn',
  runOrder: 123,
};

Properties

NameTypeDescription
actionTypeIdIResolvable | ActionTypeIdPropertySpecifies the action type and the provider of the action.
namestringThe action declaration's name.
configuration?anyThe action's configuration.
inputArtifacts?IResolvable | IResolvable | InputArtifactProperty[]The name or ID of the artifact consumed by the action, such as a test or build artifact.
namespace?stringThe variable namespace associated with the action.
outputArtifacts?IResolvable | IResolvable | OutputArtifactProperty[]The name or ID of the result of the action declaration, such as a test or build artifact.
region?stringThe action declaration's AWS Region, such as us-east-1.
roleArn?stringThe ARN of the IAM service role that performs the declared action.
runOrder?numberThe order in which actions are run.

actionTypeId

Type: IResolvable | ActionTypeIdProperty

Specifies the action type and the provider of the action.


name

Type: string

The action declaration's name.


configuration?

Type: any (optional)

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 },


inputArtifacts?

Type: IResolvable | IResolvable | InputArtifactProperty[] (optional)

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 .


namespace?

Type: string (optional)

The variable namespace associated with the action.

All variables produced as output by this action fall under this namespace.


outputArtifacts?

Type: IResolvable | IResolvable | OutputArtifactProperty[] (optional)

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 .


region?

Type: string (optional)

The action declaration's AWS Region, such as us-east-1.


roleArn?

Type: string (optional)

The ARN of the IAM service role that performs the declared action.

This is assumed through the roleArn for the pipeline.


runOrder?

Type: number (optional)

The order in which actions are run.