Class BuildEnvironmentVariable.Builder

java.lang.Object
software.amazon.awscdk.services.codebuild.BuildEnvironmentVariable.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<BuildEnvironmentVariable>
Enclosing interface:
BuildEnvironmentVariable

@Stability(Stable) public static final class BuildEnvironmentVariable.Builder extends Object implements software.amazon.jsii.Builder<BuildEnvironmentVariable>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • value

      @Stability(Stable) public BuildEnvironmentVariable.Builder value(Object value)
      Parameters:
      value - The value of the environment variable. This parameter is required. 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 https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager for details).
      Returns:
      this
    • type

      @Stability(Stable) public BuildEnvironmentVariable.Builder type(BuildEnvironmentVariableType type)
      Parameters:
      type - The type of environment variable.
      Returns:
      this
    • build

      @Stability(Stable) public BuildEnvironmentVariable build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<BuildEnvironmentVariable>
      Returns:
      a new instance of BuildEnvironmentVariable
      Throws:
      NullPointerException - if any required attribute was not provided