Class CfnProjectPropsMixin.EnvironmentVariableProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnProjectPropsMixin.EnvironmentVariableProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProjectPropsMixin.EnvironmentVariableProperty>
- Enclosing interface:
CfnProjectPropsMixin.EnvironmentVariableProperty
@Stability(Stable)
public static final class CfnProjectPropsMixin.EnvironmentVariableProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProjectPropsMixin.EnvironmentVariableProperty>
A builder for
CfnProjectPropsMixin.EnvironmentVariableProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnProjectPropsMixin.EnvironmentVariableProperty.getName()Sets the value ofCfnProjectPropsMixin.EnvironmentVariableProperty.getType()Sets the value ofCfnProjectPropsMixin.EnvironmentVariableProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
@Stability(Stable) public CfnProjectPropsMixin.EnvironmentVariableProperty.Builder name(String name) Sets the value ofCfnProjectPropsMixin.EnvironmentVariableProperty.getName()- Parameters:
name- The name or key of the environment variable.- Returns:
this
-
type
@Stability(Stable) public CfnProjectPropsMixin.EnvironmentVariableProperty.Builder type(String type) Sets the value ofCfnProjectPropsMixin.EnvironmentVariableProperty.getType()- Parameters:
type- The type of environment variable. Valid values include:.PARAMETER_STORE: An environment variable stored in Systems Manager Parameter Store. For environment variables of this type, specify the name of the parameter as thevalueof the EnvironmentVariable. The parameter value will be substituted for the name at runtime. You can also define Parameter Store environment variables in the buildspec. To learn how to do so, see env/parameter-store in the AWS CodeBuild User Guide .PLAINTEXT: An environment variable in plain text format. This is the default value.SECRETS_MANAGER: An environment variable stored in AWS Secrets Manager . For environment variables of this type, specify the name of the secret as thevalueof the EnvironmentVariable. The secret value will be substituted for the name at runtime. You can also define AWS Secrets Manager environment variables in the buildspec. To learn how to do so, see env/secrets-manager in the AWS CodeBuild User Guide .
- Returns:
this
-
value
@Stability(Stable) public CfnProjectPropsMixin.EnvironmentVariableProperty.Builder value(String value) Sets the value ofCfnProjectPropsMixin.EnvironmentVariableProperty.getValue()- Parameters:
value- The value of the environment variable.We strongly discourage the use of
PLAINTEXTenvironment variables to store sensitive values, especially AWS secret key IDs.PLAINTEXTenvironment variables can be displayed in plain text using the AWS CodeBuild console and the AWS CLI . For sensitive values, we recommend you use an environment variable of typePARAMETER_STOREorSECRETS_MANAGER.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProjectPropsMixin.EnvironmentVariableProperty>- Returns:
- a new instance of
CfnProjectPropsMixin.EnvironmentVariableProperty - Throws:
NullPointerException- if any required attribute was not provided
-