Class SimpleSynthAction

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.pipelines.SimpleSynthAction
All Implemented Interfaces:
IAction, IGrantable, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.880Z") @Stability(Deprecated) @Deprecated public class SimpleSynthAction extends software.amazon.jsii.JsiiObject implements IAction, IGrantable
Deprecated.
This class is part of the old API. Use the API based on the CodePipeline class instead
(deprecated) A standard synth with a generated buildspec.

Example:

 Artifact sourceArtifact = new Artifact();
 Artifact cloudAssemblyArtifact = new Artifact();
 CdkPipeline pipeline = CdkPipeline.Builder.create(this, "MyPipeline")
         .cloudAssemblyArtifact(cloudAssemblyArtifact)
         .synthAction(SimpleSynthAction.standardNpmSynth(StandardNpmSynthOptions.builder()
                 .sourceArtifact(sourceArtifact)
                 .cloudAssemblyArtifact(cloudAssemblyArtifact)
                 .environment(BuildEnvironment.builder()
                         .privileged(true)
                         .build())
                 .build()))
         .build();
 

  • Constructor Details

    • SimpleSynthAction

      protected SimpleSynthAction(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • SimpleSynthAction

      protected SimpleSynthAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
    • SimpleSynthAction

      @Stability(Deprecated) @Deprecated public SimpleSynthAction(@NotNull SimpleSynthActionProps props)
      Deprecated.
      Parameters:
      props - This parameter is required.
  • Method Details

    • standardNpmSynth

      @Stability(Deprecated) @Deprecated @NotNull public static SimpleSynthAction standardNpmSynth(@NotNull StandardNpmSynthOptions options)
      Deprecated.
      (deprecated) 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'.

      Parameters:
      options - This parameter is required.
    • standardYarnSynth

      @Stability(Deprecated) @Deprecated @NotNull public static SimpleSynthAction standardYarnSynth(@NotNull StandardYarnSynthOptions options)
      Deprecated.
      (deprecated) 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'.

      Parameters:
      options - This parameter is required.
    • bind

      @Stability(Deprecated) @Deprecated @NotNull public ActionConfig bind(@NotNull Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
      Deprecated.
      (deprecated) Exists to implement IAction.

      Specified by:
      bind in interface IAction
      Parameters:
      scope - This parameter is required.
      stage - This parameter is required.
      options - This parameter is required.
    • onStateChange

      @Stability(Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name, @Nullable IRuleTarget target, @Nullable RuleProps options)
      Deprecated.
      (deprecated) Exists to implement IAction.

      Specified by:
      onStateChange in interface IAction
      Parameters:
      name - This parameter is required.
      target -
      options -
    • onStateChange

      @Stability(Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name, @Nullable IRuleTarget target)
      Deprecated.
      (deprecated) Exists to implement IAction.

      Specified by:
      onStateChange in interface IAction
      Parameters:
      name - This parameter is required.
      target -
    • onStateChange

      @Stability(Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name)
      Deprecated.
      (deprecated) Exists to implement IAction.

      Specified by:
      onStateChange in interface IAction
      Parameters:
      name - This parameter is required.
    • getActionProperties

      @Stability(Deprecated) @Deprecated @NotNull public ActionProperties getActionProperties()
      Deprecated.
      (deprecated) Exists to implement IAction.
      Specified by:
      getActionProperties in interface IAction
    • getGrantPrincipal

      @Stability(Deprecated) @Deprecated @NotNull public IPrincipal getGrantPrincipal()
      Deprecated.
      (deprecated) The CodeBuild Project's principal.
      Specified by:
      getGrantPrincipal in interface IGrantable
    • getProject

      @Stability(Deprecated) @Deprecated @NotNull public IProject getProject()
      Deprecated.
      (deprecated) Project generated to run the synth command.