BuildEnvironmentVariableType

class aws_cdk.aws_codebuild.BuildEnvironmentVariableType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

ExampleMetadata:

infused

Example:

import aws_cdk.aws_codebuild as codebuild


codebuild_project = codebuild.Project(self, "Project",
    project_name="MyTestProject",
    build_spec=codebuild.BuildSpec.from_object({
        "version": "0.2",
        "phases": {
            "build": {
                "commands": ["echo "Hello, CodeBuild!""
                ]
            }
        }
    })
)

task = tasks.CodeBuildStartBuild(self, "Task",
    project=codebuild_project,
    integration_pattern=sfn.IntegrationPattern.RUN_JOB,
    environment_variables_override={
        "ZONE": codebuild.BuildEnvironmentVariable(
            type=codebuild.BuildEnvironmentVariableType.PLAINTEXT,
            value=sfn.JsonPath.string_at("$.envVariables.zone")
        )
    }
)

Attributes

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.