pub struct PseudoParameterOverrides {
pub account_id: Option<String>,
pub notification_arns: Option<String>,
pub partition: Option<String>,
pub region: Option<String>,
pub stack_id: Option<String>,
pub stack_name: Option<String>,
pub url_suffix: Option<String>,
}Expand description
Values used for AWS pseudo parameters (Ref AWS::Region, AWS::AccountId, …) when resolving the template; any field left unset falls back to a sensible default.
Fields§
§account_id: Option<String>§notification_arns: Option<String>§partition: Option<String>§region: Option<String>§stack_id: Option<String>§stack_name: Option<String>§url_suffix: Option<String>Implementations§
Source§impl PseudoParameterOverrides
impl PseudoParameterOverrides
pub fn region(&self) -> &str
pub fn get(&self, name: &str) -> Option<String>
pub fn invalid_overrides(&self) -> Vec<String>
Sourcepub fn fixed_value(&self, name: &str) -> Option<String>
pub fn fixed_value(&self, name: &str) -> Option<String>
Returns the user-supplied override for name only when the caller
explicitly set the corresponding field. Auto-derived defaults - e.g. the
commercial-vs-cn-vs-gov partition implied by region - are not
returned here.
The satisfiability solver uses this to decide whether a pseudo-parameter
is a constant (user pinned its value) or a free variable ranging over
the literals it is compared against plus a sentinel for “any other
value”. get always returns a default and would force the solver to
treat every pseudo-parameter as a constant, producing false-positive
“unreachable branch” diagnostics for templates that branch on
AWS::Partition, AWS::Region, etc. - see ConditionModel::eval_value_concrete.
Trait Implementations§
Source§impl Clone for PseudoParameterOverrides
impl Clone for PseudoParameterOverrides
Source§fn clone(&self) -> PseudoParameterOverrides
fn clone(&self) -> PseudoParameterOverrides
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 PseudoParameterOverrides
impl Debug for PseudoParameterOverrides
Source§impl Default for PseudoParameterOverrides
impl Default for PseudoParameterOverrides
Source§fn default() -> PseudoParameterOverrides
fn default() -> PseudoParameterOverrides
Source§impl<'de> Deserialize<'de> for PseudoParameterOverrides
impl<'de> Deserialize<'de> for PseudoParameterOverrides
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PseudoParameterOverrides, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PseudoParameterOverrides, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for PseudoParameterOverrides
impl Serialize for PseudoParameterOverrides
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for PseudoParameterOverrides
impl RefUnwindSafe for PseudoParameterOverrides
impl Send for PseudoParameterOverrides
impl Sync for PseudoParameterOverrides
impl Unpin for PseudoParameterOverrides
impl UnsafeUnpin for PseudoParameterOverrides
impl UnwindSafe for PseudoParameterOverrides
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
T behind Arc pointer