@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.295Z") @Stability(value=Stable) public enum BuildEnvironmentVariableType extends Enum<BuildEnvironmentVariableType>
import software.amazon.awscdk.services.codebuild.*;
Project codebuildProject = Project.Builder.create(this, "Project")
.projectName("MyTestProject")
.buildSpec(BuildSpec.fromObject(Map.of(
"version", "0.2",
"phases", Map.of(
"build", Map.of(
"commands", List.of("echo \"Hello, CodeBuild!\""))))))
.build();
CodeBuildStartBuild task = CodeBuildStartBuild.Builder.create(this, "Task")
.project(codebuildProject)
.integrationPattern(IntegrationPattern.RUN_JOB)
.environmentVariablesOverride(Map.of(
"ZONE", BuildEnvironmentVariable.builder()
.type(BuildEnvironmentVariableType.PLAINTEXT)
.value(JsonPath.stringAt("$.envVariables.zone"))
.build()))
.build();
| Enum Constant and Description |
|---|
PARAMETER_STORE
An environment variable stored in Systems Manager Parameter Store.
|
PLAINTEXT
An environment variable in plaintext format.
|
SECRETS_MANAGER
An environment variable stored in AWS Secrets Manager.
|
| Modifier and Type | Method and Description |
|---|---|
static BuildEnvironmentVariableType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuildEnvironmentVariableType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final BuildEnvironmentVariableType PLAINTEXT
@Stability(value=Stable) public static final BuildEnvironmentVariableType PARAMETER_STORE
@Stability(value=Stable) public static final BuildEnvironmentVariableType SECRETS_MANAGER
public static BuildEnvironmentVariableType[] values()
for (BuildEnvironmentVariableType c : BuildEnvironmentVariableType.values()) System.out.println(c);
public static BuildEnvironmentVariableType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.