#[non_exhaustive]pub struct Environment {
pub name: Arc<str>,
pub aws_account_id: Option<AccountId>,
pub aws_region: Option<Region>,
pub aws_profile: Option<Arc<str>>,
pub source_file: Arc<Path>,
pub locals: Map,
}Expand description
A named environment (staging, production, etc.).
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.name: Arc<str>Environment name (e.g. staging).
aws_account_id: Option<AccountId>AWS account id (12 digits). None if the source did not declare one.
aws_region: Option<Region>AWS region. None if the source did not declare one.
aws_profile: Option<Arc<str>>AWS shared-config profile name. None if the source did not declare
one.
source_file: Arc<Path>Path of the source file that defined this environment (typically
terraform/environments/<name>.terragrunt.hcl).
locals: MapResolved environment-level locals (every other key from the source file).
Implementations§
Source§impl Environment
impl Environment
Sourcepub fn builder() -> EnvironmentBuilder<((), (), (), (), (), ())>
pub fn builder() -> EnvironmentBuilder<((), (), (), (), (), ())>
Create a builder for building Environment.
On the builder, call .name(...), .aws_account_id(...)(optional), .aws_region(...)(optional), .aws_profile(...)(optional), .source_file(...), .locals(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Environment.
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Environment
impl Debug for Environment
Source§impl<'de> Deserialize<'de> for Environment
impl<'de> Deserialize<'de> for Environment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for Environment
impl PartialEq for Environment
Source§fn eq(&self, other: &Environment) -> bool
fn eq(&self, other: &Environment) -> bool
self and other values to be equal, and is used by ==.