Struct aws_sdk_ec2::model::SecurityGroup
source · #[non_exhaustive]pub struct SecurityGroup { /* private fields */ }
Expand description
Describes a security group.
Implementations§
source§impl SecurityGroup
impl SecurityGroup
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A 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 ip_permissions(&self) -> Option<&[IpPermission]>
pub fn ip_permissions(&self) -> Option<&[IpPermission]>
The inbound rules associated with the security group.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The Amazon Web Services account ID of the owner of the security group.
sourcepub fn ip_permissions_egress(&self) -> Option<&[IpPermission]>
pub fn ip_permissions_egress(&self) -> Option<&[IpPermission]>
[VPC only] The outbound rules associated with the security group.
Any tags assigned to the security group.
source§impl SecurityGroup
impl SecurityGroup
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SecurityGroup
.
Examples found in repository?
src/xml_deser.rs (line 49371)
49367 49368 49369 49370 49371 49372 49373 49374 49375 49376 49377 49378 49379 49380 49381 49382 49383 49384 49385 49386 49387 49388 49389 49390 49391 49392 49393 49394 49395 49396 49397 49398 49399 49400 49401 49402 49403 49404 49405 49406 49407 49408 49409 49410 49411 49412 49413 49414 49415 49416 49417 49418 49419 49420 49421 49422 49423 49424 49425 49426 49427 49428 49429 49430 49431 49432 49433 49434 49435 49436 49437 49438 49439 49440 49441 49442 49443 49444 49445 49446 49447 49448 49449 49450 49451 49452 49453 49454 49455 49456 49457 49458 49459 49460 49461 49462 49463 49464 49465 49466 49467 49468 49469 49470 49471 49472 49473
pub fn deser_structure_crate_model_security_group(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SecurityGroup, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SecurityGroup::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("groupDescription") /* Description com.amazonaws.ec2#SecurityGroup$Description */ => {
let var_2295 =
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_2295);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#SecurityGroup$GroupName */ => {
let var_2296 =
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_2296);
}
,
s if s.matches("ipPermissions") /* IpPermissions com.amazonaws.ec2#SecurityGroup$IpPermissions */ => {
let var_2297 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ip_permission_list(&mut tag)
?
)
;
builder = builder.set_ip_permissions(var_2297);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#SecurityGroup$OwnerId */ => {
let var_2298 =
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_owner_id(var_2298);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#SecurityGroup$GroupId */ => {
let var_2299 =
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_2299);
}
,
s if s.matches("ipPermissionsEgress") /* IpPermissionsEgress com.amazonaws.ec2#SecurityGroup$IpPermissionsEgress */ => {
let var_2300 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ip_permission_list(&mut tag)
?
)
;
builder = builder.set_ip_permissions_egress(var_2300);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#SecurityGroup$Tags */ => {
let var_2301 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2301);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#SecurityGroup$VpcId */ => {
let var_2302 =
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_2302);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SecurityGroup
impl Clone for SecurityGroup
source§fn clone(&self) -> SecurityGroup
fn clone(&self) -> SecurityGroup
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