Skip to main content

DiagnosticResource

Struct DiagnosticResource 

Source
pub struct DiagnosticResource {
Show 23 fields pub resource_type: String, pub condition: Option<String>, pub depends_on: Vec<String>, pub deletion_policy: Option<JsonValue>, pub update_replace_policy: Option<JsonValue>, pub creation_policy: Option<JsonValue>, pub update_policy: Option<JsonValue>, pub properties: HashMap<String, JsonValue>, pub outgoing_refs: Vec<OutgoingRef>, pub incoming_refs: Vec<IncomingRef>, pub find_in_map_refs: Vec<String>, pub simple_subs: Vec<PathVariable>, pub redundant_subs: Vec<String>, pub empty_joins: Vec<String>, pub hardcoded_partition_arns: Vec<String>, pub conditionally_null_props: Vec<ConditionalNull>, pub condition_refs: Vec<String>, pub for_each_expansions: Vec<DiagnosticForEachExpansion>, pub unsubstituted_variables: Vec<PathVariable>, pub unused_sub_keys: Vec<PathVariable>, pub raw_pseudo_params: Vec<PathVariable>, pub secretsmanager_ref_paths: Vec<String>, pub invalid_refs: Vec<PathTarget>,
}
Expand description

A resource after intrinsic resolution, with its properties, references, and detected findings.

Fields§

§resource_type: String§condition: Option<String>

Name of the condition gating whether this resource is created, if any.

§depends_on: Vec<String>§deletion_policy: Option<JsonValue>§update_replace_policy: Option<JsonValue>§creation_policy: Option<JsonValue>§update_policy: Option<JsonValue>§properties: HashMap<String, JsonValue>

The resource’s properties with intrinsics resolved where possible.

§outgoing_refs: Vec<OutgoingRef>§incoming_refs: Vec<IncomingRef>§find_in_map_refs: Vec<String>

Mapping names referenced by Fn::FindInMap within this resource.

§simple_subs: Vec<PathVariable>

Fn::Sub uses whose template is a single variable with no surrounding text, which could be written as a plain reference.

§redundant_subs: Vec<String>

Property paths where Fn::Sub has no variables to substitute.

§empty_joins: Vec<String>

Property paths where Fn::Join uses an empty delimiter, concatenating its elements directly.

§hardcoded_partition_arns: Vec<String>

Property paths where an ARN hardcodes the aws partition instead of using AWS::Partition.

§conditionally_null_props: Vec<ConditionalNull>

Properties that resolve to null in one branch of a condition.

§condition_refs: Vec<String>

Names of conditions referenced within this resource’s properties.

§for_each_expansions: Vec<DiagnosticForEachExpansion>

Fn::ForEach loops in this resource, each with its iteration variable and collection source.

§unsubstituted_variables: Vec<PathVariable>

Property paths containing ${…} text that is not an Fn::Sub variable and is left as a literal.

§unused_sub_keys: Vec<PathVariable>

Fn::Sub map keys not referenced in the template string, each with its path and the unused key name.

§raw_pseudo_params: Vec<PathVariable>

Property values that are a raw pseudo-parameter string instead of using Ref, each with its path and the pseudo-parameter name.

§secretsmanager_ref_paths: Vec<String>

Property paths containing a {{resolve:secretsmanager:…}} dynamic reference.

§invalid_refs: Vec<PathTarget>

References whose target does not resolve to any resource or parameter, each with its path and unresolved target.

Trait Implementations§

Source§

impl Clone for DiagnosticResource

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DiagnosticResource

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for DiagnosticResource

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.