#[non_exhaustive]pub struct ParameterConstraints { /* private fields */ }Expand description
A set of criteria that CloudFormation uses to validate parameter values. Although other constraints might be defined in the stack template, CloudFormation returns only the AllowedValues property.
Implementations§
source§impl ParameterConstraints
impl ParameterConstraints
sourcepub fn allowed_values(&self) -> Option<&[String]>
pub fn allowed_values(&self) -> Option<&[String]>
A list of values that are permitted for a parameter.
source§impl ParameterConstraints
impl ParameterConstraints
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ParameterConstraints.
Examples found in repository?
src/xml_deser.rs (line 9989)
9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006
pub fn deser_structure_crate_model_parameter_constraints(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ParameterConstraints, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ParameterConstraints::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("AllowedValues") /* AllowedValues com.amazonaws.cloudformation#ParameterConstraints$AllowedValues */ => {
let var_468 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_allowed_values(&mut tag)
?
)
;
builder = builder.set_allowed_values(var_468);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for ParameterConstraints
impl Clone for ParameterConstraints
source§fn clone(&self) -> ParameterConstraints
fn clone(&self) -> ParameterConstraints
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more