Class CfnTaskDefinition.EnvironmentFileProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.EnvironmentFileProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.EnvironmentFileProperty>
- Enclosing interface:
CfnTaskDefinition.EnvironmentFileProperty
@Stability(Stable)
public static final class CfnTaskDefinition.EnvironmentFileProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.EnvironmentFileProperty>
A builder for
CfnTaskDefinition.EnvironmentFileProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTaskDefinition.EnvironmentFileProperty.getType()
Sets the value ofCfnTaskDefinition.EnvironmentFileProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnTaskDefinition.EnvironmentFileProperty.getType()
- Parameters:
type
- The file type to use. Environment files are objects in Amazon S3. The only supported value iss3
.- Returns:
this
-
value
Sets the value ofCfnTaskDefinition.EnvironmentFileProperty.getValue()
- Parameters:
value
- The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment variable file.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.EnvironmentFileProperty>
- Returns:
- a new instance of
CfnTaskDefinition.EnvironmentFileProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-