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.0
or later. -
Windows platform version
1.0.0
or 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
sourceimpl EnvironmentFile
impl EnvironmentFile
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EnvironmentFile
Trait Implementations
sourceimpl Clone for EnvironmentFile
impl Clone for EnvironmentFile
sourcefn clone(&self) -> EnvironmentFile
fn clone(&self) -> EnvironmentFile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnvironmentFile
impl Debug for EnvironmentFile
sourceimpl PartialEq<EnvironmentFile> for EnvironmentFile
impl PartialEq<EnvironmentFile> for EnvironmentFile
sourcefn eq(&self, other: &EnvironmentFile) -> bool
fn eq(&self, other: &EnvironmentFile) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnvironmentFile) -> bool
fn ne(&self, other: &EnvironmentFile) -> bool
This method tests for !=
.
impl StructuralPartialEq for EnvironmentFile
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more