Struct aws_sdk_ecs::model::EnvironmentFile
source · [−]#[non_exhaustive]pub struct EnvironmentFile {
pub value: Option<String>,
pub type: Option<EnvironmentFileType>,
}Expand description
A list of files containing the environment variables to pass to a container. You can specify up to ten environment files. The file must have a .env file extension. Each line in an environment file should contain an environment variable in VARIABLE=VALUE format. Lines beginning with # are treated as comments and are ignored. For more information about the environment variable file syntax, see Declare default environment variables in file.
If there are environment variables specified using the environment parameter in a container definition, they take precedence over the variables contained within an environment file. If multiple environment files are specified that contain the same variable, they're processed from the top down. We recommend that you use unique variable names. For more information, see Specifying environment variables in the Amazon Elastic Container Service Developer Guide.
This parameter is only supported for tasks hosted on Fargate using the following platform versions:
-
Linux platform version
1.4.0or later. -
Windows platform version
1.0.0or later.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: Option<String>The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment variable file.
type: Option<EnvironmentFileType>The file type to use. The only supported value is s3.
Implementations
Creates a new builder-style object to manufacture EnvironmentFile
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for EnvironmentFile
impl Send for EnvironmentFile
impl Sync for EnvironmentFile
impl Unpin for EnvironmentFile
impl UnwindSafe for EnvironmentFile
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more