Interface BuildEnvironmentVariable

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:14.016Z") @Stability(Stable) public interface BuildEnvironmentVariable extends

 // later:
 PipelineProject project;
 Artifact sourceOutput = new Artifact();
 CodeBuildAction buildAction = CodeBuildAction.Builder.create()
         .project(PipelineProject.Builder.create(this, "Project")
                         "version", "0.2",
                         "env", Map.of(
                                 "exported-variables", List.of("MY_VAR")),
                         "phases", Map.of(
                                 "build", Map.of(
                                         "commands", "export MY_VAR=\"some value\"")))))
                 "MyVar", BuildEnvironmentVariable.builder()
  • Method Details

    • getValue

      @Stability(Stable) @NotNull Object getValue()
      The value of the environment variable.

      For plain-text variables (the default), this is the literal value of variable. For SSM parameter variables, pass the name of the parameter here (parameterName property of IParameter). For SecretsManager variables secrets, pass either the secret name (secretName property of ISecret) or the secret ARN (secretArn property of ISecret) here, along with optional SecretsManager qualifiers separated by ':', like the JSON key, or the version or stage (see for details).

    • getType

      @Stability(Stable) @Nullable default BuildEnvironmentVariableType getType()
      The type of environment variable.

      Default: PlainText

    • builder

      @Stability(Stable) static BuildEnvironmentVariable.Builder builder()
      a BuildEnvironmentVariable.Builder of BuildEnvironmentVariable