class SimpleSynthAction
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Pipelines.SimpleSynthAction |
Java | software.amazon.awscdk.pipelines.SimpleSynthAction |
Python | aws_cdk.pipelines.SimpleSynthAction |
TypeScript (source) | @aws-cdk/pipelines » SimpleSynthAction |
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Implements
IAction, IGrantable
A standard synth with a generated buildspec.
Example
const sourceArtifact = new codepipeline.Artifact();
const cloudAssemblyArtifact = new codepipeline.Artifact();
const pipeline = new pipelines.CdkPipeline(this, 'MyPipeline', {
cloudAssemblyArtifact,
synthAction: pipelines.SimpleSynthAction.standardNpmSynth({
sourceArtifact,
cloudAssemblyArtifact,
environment: {
privileged: true,
},
}),
});
Initializer
new SimpleSynthAction(props: SimpleSynthActionProps)
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Parameters
- props
SimpleSynth Action Props
Properties
| Name | Type | Description |
|---|---|---|
| action | Action | Exists to implement IAction. |
| grant | IPrincipal | The CodeBuild Project's principal. |
| project | IProject | Project generated to run the synth command. |
actionProperties
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Type:
Action
Exists to implement IAction.
grantPrincipal
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Type:
IPrincipal
The CodeBuild Project's principal.
project
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Type:
IProject
Project generated to run the synth command.
Methods
| Name | Description |
|---|---|
| bind(scope, stage, options) | Exists to implement IAction. |
| on | Exists to implement IAction. |
| static standard | Create a standard NPM synth action. |
| static standard | Create a standard Yarn synth action. |
bind(scope, stage, options)
public bind(scope: Construct, stage: IStage, options: ActionBindOptions): ActionConfig
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Parameters
- scope
Construct - stage
IStage - options
ActionBind Options
Returns
Exists to implement IAction.
onStateChange(name, target?, options?)
public onStateChange(name: string, target?: IRuleTarget, options?: RuleProps): Rule
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Parameters
- name
string - target
IRuleTarget - options
RuleProps
Returns
Exists to implement IAction.
static standardNpmSynth(options)
public static standardNpmSynth(options: StandardNpmSynthOptions): SimpleSynthAction
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Parameters
- options
StandardNpm Synth Options
Returns
Create a standard NPM synth action.
Uses npm ci to install dependencies and npx cdk synth to synthesize.
If you need a build step, add buildCommand: 'npm run build'.
static standardYarnSynth(options)
public static standardYarnSynth(options: StandardYarnSynthOptions): SimpleSynthAction
⚠️ Deprecated: This class is part of the old API. Use the API based on the CodePipeline class instead
Parameters
- options
StandardYarn Synth Options
Returns
Create a standard Yarn synth action.
Uses yarn install --frozen-lockfile to install dependencies and npx cdk synth to synthesize.
If you need a build step, add buildCommand: 'yarn build'.

.NET
Java
Python
TypeScript (