pub struct ViolationContext {
pub actual_value: Option<JsonValue>,
pub expected_constraint: Option<String>,
pub property: Option<String>,
pub lifecycle: Option<String>,
pub resolution_source: Option<String>,
pub extra: Option<HashMap<String, JsonValue>>,
}Expand description
Extra detail about a specific violation, present only at the DETAILED detail level.
Fields§
§actual_value: Option<JsonValue>The resolved property value that triggered the violation.
expected_constraint: Option<String>The constraint the value was expected to satisfy (such as the required type or allowed pattern).
property: Option<String>Name of the offending property.
lifecycle: Option<String>Lifecycle marker for the flagged resource type or property, such as ‘deprecated’, ‘create-only’, or ‘write-only’.
resolution_source: Option<String>How the offending value was derived, such as a Ref, Fn::GetAtt, Fn::If, or parameter.
extra: Option<HashMap<String, JsonValue>>Additional finding-specific values keyed by name.
Trait Implementations§
Source§impl Clone for ViolationContext
impl Clone for ViolationContext
Source§impl Debug for ViolationContext
impl Debug for ViolationContext
Source§impl<'de> Deserialize<'de> for ViolationContext
impl<'de> Deserialize<'de> for ViolationContext
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ViolationContext
impl RefUnwindSafe for ViolationContext
impl Send for ViolationContext
impl Sync for ViolationContext
impl Unpin for ViolationContext
impl UnsafeUnpin for ViolationContext
impl UnwindSafe for ViolationContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more