Struct aws_sdk_ec2::model::StaleSecurityGroup
source · #[non_exhaustive]pub struct StaleSecurityGroup { /* private fields */ }
Expand description
Describes a stale security group (a security group that contains stale rules).
Implementations§
source§impl StaleSecurityGroup
impl StaleSecurityGroup
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the security group.
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the security group.
sourcepub fn stale_ip_permissions(&self) -> Option<&[StaleIpPermission]>
pub fn stale_ip_permissions(&self) -> Option<&[StaleIpPermission]>
Information about the stale inbound rules in the security group.
sourcepub fn stale_ip_permissions_egress(&self) -> Option<&[StaleIpPermission]>
pub fn stale_ip_permissions_egress(&self) -> Option<&[StaleIpPermission]>
Information about the stale outbound rules in the security group.
source§impl StaleSecurityGroup
impl StaleSecurityGroup
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StaleSecurityGroup
.
Examples found in repository?
src/xml_deser.rs (line 50409)
50405 50406 50407 50408 50409 50410 50411 50412 50413 50414 50415 50416 50417 50418 50419 50420 50421 50422 50423 50424 50425 50426 50427 50428 50429 50430 50431 50432 50433 50434 50435 50436 50437 50438 50439 50440 50441 50442 50443 50444 50445 50446 50447 50448 50449 50450 50451 50452 50453 50454 50455 50456 50457 50458 50459 50460 50461 50462 50463 50464 50465 50466 50467 50468 50469 50470 50471 50472 50473 50474 50475 50476 50477 50478 50479 50480 50481 50482 50483 50484 50485 50486 50487 50488
pub fn deser_structure_crate_model_stale_security_group(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StaleSecurityGroup, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StaleSecurityGroup::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("description") /* Description com.amazonaws.ec2#StaleSecurityGroup$Description */ => {
let var_2367 =
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_2367);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#StaleSecurityGroup$GroupId */ => {
let var_2368 =
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_group_id(var_2368);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#StaleSecurityGroup$GroupName */ => {
let var_2369 =
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_group_name(var_2369);
}
,
s if s.matches("staleIpPermissions") /* StaleIpPermissions com.amazonaws.ec2#StaleSecurityGroup$StaleIpPermissions */ => {
let var_2370 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_stale_ip_permission_set(&mut tag)
?
)
;
builder = builder.set_stale_ip_permissions(var_2370);
}
,
s if s.matches("staleIpPermissionsEgress") /* StaleIpPermissionsEgress com.amazonaws.ec2#StaleSecurityGroup$StaleIpPermissionsEgress */ => {
let var_2371 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_stale_ip_permission_set(&mut tag)
?
)
;
builder = builder.set_stale_ip_permissions_egress(var_2371);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#StaleSecurityGroup$VpcId */ => {
let var_2372 =
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_vpc_id(var_2372);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for StaleSecurityGroup
impl Clone for StaleSecurityGroup
source§fn clone(&self) -> StaleSecurityGroup
fn clone(&self) -> StaleSecurityGroup
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