BuildEnvironmentVariable

class aws_cdk.aws_codebuild.BuildEnvironmentVariable(*, value, type=None)

Bases: object

Parameters
  • value (Any) – 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 https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager for details).

  • type (Optional[BuildEnvironmentVariableType]) – The type of environment variable. Default: PlainText

Attributes

type

The type of environment variable.

Default

PlainText

Return type

Optional[BuildEnvironmentVariableType]

value

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 https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager for details).

Return type

Any