ActionDeclarationProperty Struct
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
commands: ['commands'],
configuration: configuration,
environmentVariables: [{
name: 'name',
value: 'value',
// the properties below are optional
type: 'type',
}],
inputArtifacts: [{
name: 'name',
}],
namespace: 'namespace',
outputArtifacts: [{
name: 'name',
// the properties below are optional
files: ['files'],
}],
outputVariables: ['outputVariables'],
region: 'region',
roleArn: 'roleArn',
runOrder: 123,
timeoutInMinutes: 123,
};
Properties
actionTypeIdIResolvable | CfnPipeline.ActionTypeIdPropertyaction_type_idtyping.Union[IResolvable, ActionTypeIdProperty]actionTypeIdIResolvableActionTypeIdIResolvableActionTypeIdinterface{}required#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 .
notes
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 },
environmentVariablesIResolvable | IResolvable | CfnPipeline.EnvironmentVariableProperty[]environment_variablestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EnvironmentVariableProperty]]]environmentVariablesIResolvableEnvironmentVariablesIResolvableEnvironmentVariablesinterface{}#inputArtifactsIResolvable | IResolvable | CfnPipeline.InputArtifactProperty[]input_artifactstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InputArtifactProperty]]]inputArtifactsIResolvableInputArtifactsIResolvableInputArtifactsinterface{}#notes
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 .
All variables produced as output by this action fall under this namespace.
outputArtifactsIResolvable | IResolvable | CfnPipeline.OutputArtifactProperty[]output_artifactstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, OutputArtifactProperty]]]outputArtifactsIResolvableOutputArtifactsIResolvableOutputArtifactsinterface{}#notes
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 .
outputVariablesstring[]output_variablestyping.List[str]outputVariablesList<String>OutputVariablesstring[]OutputVariables*[]*string#This is specifically CodeBuild environment variables as used for that action.
This is assumed through the roleArn for the pipeline.
timeoutInMinutesnumbertimeout_in_minutesint | floattimeoutInMinutesNumberTimeoutInMinutesdoubleTimeoutInMinutes*float64#