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 ==
.