#[non_exhaustive]pub struct ParameterDeclaration { /* private fields */ }Expand description
The ParameterDeclaration data type.
Implementations§
source§impl ParameterDeclaration
impl ParameterDeclaration
sourcepub fn parameter_key(&self) -> Option<&str>
pub fn parameter_key(&self) -> Option<&str>
The name that's associated with the parameter.
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value of the parameter.
sourcepub fn parameter_type(&self) -> Option<&str>
pub fn parameter_type(&self) -> Option<&str>
The type of parameter.
sourcepub fn no_echo(&self) -> Option<bool>
pub fn no_echo(&self) -> Option<bool>
Flag that indicates whether the parameter value is shown as plain text in logs and in the Amazon Web Services Management Console.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description that's associate with the parameter.
sourcepub fn parameter_constraints(&self) -> Option<&ParameterConstraints>
pub fn parameter_constraints(&self) -> Option<&ParameterConstraints>
The criteria that CloudFormation uses to validate parameter values.
source§impl ParameterDeclaration
impl ParameterDeclaration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ParameterDeclaration.
Examples found in repository?
src/xml_deser.rs (line 8092)
8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176
pub fn deser_structure_crate_model_parameter_declaration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ParameterDeclaration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ParameterDeclaration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ParameterKey") /* ParameterKey com.amazonaws.cloudformation#ParameterDeclaration$ParameterKey */ => {
let var_348 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parameter_key(var_348);
}
,
s if s.matches("DefaultValue") /* DefaultValue com.amazonaws.cloudformation#ParameterDeclaration$DefaultValue */ => {
let var_349 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_default_value(var_349);
}
,
s if s.matches("ParameterType") /* ParameterType com.amazonaws.cloudformation#ParameterDeclaration$ParameterType */ => {
let var_350 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parameter_type(var_350);
}
,
s if s.matches("NoEcho") /* NoEcho com.amazonaws.cloudformation#ParameterDeclaration$NoEcho */ => {
let var_351 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#NoEcho`)"))
}
?
)
;
builder = builder.set_no_echo(var_351);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#ParameterDeclaration$Description */ => {
let var_352 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_352);
}
,
s if s.matches("ParameterConstraints") /* ParameterConstraints com.amazonaws.cloudformation#ParameterDeclaration$ParameterConstraints */ => {
let var_353 =
Some(
crate::xml_deser::deser_structure_crate_model_parameter_constraints(&mut tag)
?
)
;
builder = builder.set_parameter_constraints(var_353);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for ParameterDeclaration
impl Clone for ParameterDeclaration
source§fn clone(&self) -> ParameterDeclaration
fn clone(&self) -> ParameterDeclaration
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