Struct aws_sdk_cloudformation::types::WarningDetail
source · #[non_exhaustive]pub struct WarningDetail {
pub type: Option<WarningType>,
pub properties: Option<Vec<WarningProperty>>,
}
Expand description
The warnings generated for a specific resource for this generated template.
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.type: Option<WarningType>
The type of this warning. For more information, see IaC generator and write-only properties in the CloudFormation User Guide.
-
MUTUALLY_EXCLUSIVE_PROPERTIES
- The resource requires mutually-exclusive write-only properties. The IaC generator selects one set of mutually exclusive properties and converts the included properties into parameters. The parameter names have a suffixOneOf
and the parameter descriptions indicate that the corresponding property can be replaced with other exclusive properties. -
UNSUPPORTED_PROPERTIES
- Unsupported properties are present in the resource. One example of unsupported properties would be a required write-only property that is an array, because a parameter cannot be an array. Another example is an optional write-only property. -
MUTUALLY_EXCLUSIVE_TYPES
- One or more required write-only properties are found in the resource, and the type of that property can be any of several types.
Currently the resource and property reference documentation does not indicate if a property uses a type of oneOf
or anyOf
. You need to look at the resource provider schema.
properties: Option<Vec<WarningProperty>>
The properties of the resource that are impacted by this warning.
Implementations§
source§impl WarningDetail
impl WarningDetail
sourcepub fn type(&self) -> Option<&WarningType>
pub fn type(&self) -> Option<&WarningType>
The type of this warning. For more information, see IaC generator and write-only properties in the CloudFormation User Guide.
-
MUTUALLY_EXCLUSIVE_PROPERTIES
- The resource requires mutually-exclusive write-only properties. The IaC generator selects one set of mutually exclusive properties and converts the included properties into parameters. The parameter names have a suffixOneOf
and the parameter descriptions indicate that the corresponding property can be replaced with other exclusive properties. -
UNSUPPORTED_PROPERTIES
- Unsupported properties are present in the resource. One example of unsupported properties would be a required write-only property that is an array, because a parameter cannot be an array. Another example is an optional write-only property. -
MUTUALLY_EXCLUSIVE_TYPES
- One or more required write-only properties are found in the resource, and the type of that property can be any of several types.
Currently the resource and property reference documentation does not indicate if a property uses a type of oneOf
or anyOf
. You need to look at the resource provider schema.
sourcepub fn properties(&self) -> &[WarningProperty]
pub fn properties(&self) -> &[WarningProperty]
The properties of the resource that are impacted by this warning.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .properties.is_none()
.
source§impl WarningDetail
impl WarningDetail
sourcepub fn builder() -> WarningDetailBuilder
pub fn builder() -> WarningDetailBuilder
Creates a new builder-style object to manufacture WarningDetail
.
Trait Implementations§
source§impl Clone for WarningDetail
impl Clone for WarningDetail
source§fn clone(&self) -> WarningDetail
fn clone(&self) -> WarningDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WarningDetail
impl Debug for WarningDetail
source§impl PartialEq for WarningDetail
impl PartialEq for WarningDetail
source§fn eq(&self, other: &WarningDetail) -> bool
fn eq(&self, other: &WarningDetail) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WarningDetail
Auto Trait Implementations§
impl Freeze for WarningDetail
impl RefUnwindSafe for WarningDetail
impl Send for WarningDetail
impl Sync for WarningDetail
impl Unpin for WarningDetail
impl UnwindSafe for WarningDetail
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more