Class AwsCdkCli

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.cli.lib.alpha.AwsCdkCli
All Implemented Interfaces:
IAwsCdkCli, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.241Z") @Stability(Experimental) public class AwsCdkCli extends software.amazon.jsii.JsiiObject implements IAwsCdkCli
(experimental) Provides a programmatic interface for interacting with the AWS CDK CLI.

Example:

 AwsCdkCli cli = AwsCdkCli.fromCdkAppDirectory("/path/to/cdk/app");
 
  • Constructor Details

    • AwsCdkCli

      protected AwsCdkCli(software.amazon.jsii.JsiiObjectRef objRef)
    • AwsCdkCli

      protected AwsCdkCli(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • fromCdkAppDirectory

      @Stability(Experimental) @NotNull public static AwsCdkCli fromCdkAppDirectory(@Nullable String directory, @Nullable CdkAppDirectoryProps props)
      (experimental) Create the CLI from a directory containing an AWS CDK app.

      Parameters:
      directory - the directory of the AWS CDK app.
      props - additional configuration properties.
      Returns:
      an instance of AwsCdkCli
    • fromCdkAppDirectory

      @Stability(Experimental) @NotNull public static AwsCdkCli fromCdkAppDirectory(@Nullable String directory)
      (experimental) Create the CLI from a directory containing an AWS CDK app.

      Parameters:
      directory - the directory of the AWS CDK app.
      Returns:
      an instance of AwsCdkCli
    • fromCdkAppDirectory

      @Stability(Experimental) @NotNull public static AwsCdkCli fromCdkAppDirectory()
      (experimental) Create the CLI from a directory containing an AWS CDK app.

      Returns:
      an instance of AwsCdkCli
    • fromCloudAssemblyDirectoryProducer

      @Stability(Experimental) @NotNull public static AwsCdkCli fromCloudAssemblyDirectoryProducer(@NotNull ICloudAssemblyDirectoryProducer producer)
      (experimental) Create the CLI from a CloudAssemblyDirectoryProducer.

      Parameters:
      producer - This parameter is required.
    • bootstrap

      @Stability(Experimental) public void bootstrap(@Nullable BootstrapOptions options)
      (experimental) cdk bootstrap.

      Specified by:
      bootstrap in interface IAwsCdkCli
      Parameters:
      options -
    • bootstrap

      @Stability(Experimental) public void bootstrap()
      (experimental) cdk bootstrap.
      Specified by:
      bootstrap in interface IAwsCdkCli
    • deploy

      @Stability(Experimental) public void deploy(@Nullable DeployOptions options)
      (experimental) cdk deploy.

      Specified by:
      deploy in interface IAwsCdkCli
      Parameters:
      options -
    • deploy

      @Stability(Experimental) public void deploy()
      (experimental) cdk deploy.
      Specified by:
      deploy in interface IAwsCdkCli
    • destroy

      @Stability(Experimental) public void destroy(@Nullable DestroyOptions options)
      (experimental) cdk destroy.

      Specified by:
      destroy in interface IAwsCdkCli
      Parameters:
      options -
    • destroy

      @Stability(Experimental) public void destroy()
      (experimental) cdk destroy.
      Specified by:
      destroy in interface IAwsCdkCli
    • list

      @Stability(Experimental) public void list(@Nullable ListOptions options)
      (experimental) cdk list.

      Specified by:
      list in interface IAwsCdkCli
      Parameters:
      options -
    • list

      @Stability(Experimental) public void list()
      (experimental) cdk list.
      Specified by:
      list in interface IAwsCdkCli
    • synth

      @Stability(Experimental) public void synth(@Nullable SynthOptions options)
      (experimental) cdk synth.

      Specified by:
      synth in interface IAwsCdkCli
      Parameters:
      options -
    • synth

      @Stability(Experimental) public void synth()
      (experimental) cdk synth.
      Specified by:
      synth in interface IAwsCdkCli