Class LocalExecProvisioner.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
com.hashicorp.cdktf.LocalExecProvisioner.Jsii$Proxy
All Implemented Interfaces:
LocalExecProvisioner, software.amazon.jsii.JsiiSerializable
Enclosing interface:
LocalExecProvisioner

@Stability(Experimental) @Internal public static final class LocalExecProvisioner.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LocalExecProvisioner
An implementation for LocalExecProvisioner
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface com.hashicorp.cdktf.LocalExecProvisioner

    LocalExecProvisioner.Builder, LocalExecProvisioner.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the LocalExecProvisioner.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final String
    (experimental) This is the command to execute.
    (experimental) A record of key value pairs representing the environment of the executed command.
    final List<String>
    (experimental) If provided, this is a list of interpreter arguments used to execute the command.
    final String
     
    final String
    (experimental) If provided, specifies when Terraform will execute the command.
    final String
    (experimental) If provided, specifies the working directory where command will be executed.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(LocalExecProvisioner.Builder builder)
      Constructor that initializes the object based on literal property values passed by the LocalExecProvisioner.Builder.
  • Method Details

    • getCommand

      public final String getCommand()
      Description copied from interface: LocalExecProvisioner
      (experimental) This is the command to execute.

      It can be provided as a relative path to the current working directory or as an absolute path. It is evaluated in a shell, and can use environment variables or Terraform variables.

      Specified by:
      getCommand in interface LocalExecProvisioner
    • getType

      public final String getType()
      Specified by:
      getType in interface LocalExecProvisioner
    • getEnvironment

      public final Map<String,String> getEnvironment()
      Description copied from interface: LocalExecProvisioner
      (experimental) A record of key value pairs representing the environment of the executed command.

      It inherits the current process environment.

      Specified by:
      getEnvironment in interface LocalExecProvisioner
    • getInterpreter

      public final List<String> getInterpreter()
      Description copied from interface: LocalExecProvisioner
      (experimental) If provided, this is a list of interpreter arguments used to execute the command.

      The first argument is the interpreter itself. It can be provided as a relative path to the current working directory or as an absolute path The remaining arguments are appended prior to the command. This allows building command lines of the form "/bin/bash", "-c", "echo foo". If interpreter is unspecified, sensible defaults will be chosen based on the system OS.

      Specified by:
      getInterpreter in interface LocalExecProvisioner
    • getWhen

      public final String getWhen()
      Description copied from interface: LocalExecProvisioner
      (experimental) If provided, specifies when Terraform will execute the command.

      For example, when = destroy specifies that the provisioner will run when the associated resource is destroyed

      Specified by:
      getWhen in interface LocalExecProvisioner
    • getWorkingDir

      public final String getWorkingDir()
      Description copied from interface: LocalExecProvisioner
      (experimental) If provided, specifies the working directory where command will be executed.

      It can be provided as a relative path to the current working directory or as an absolute path. The directory must exist.

      Specified by:
      getWorkingDir in interface LocalExecProvisioner
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object