Struct aws_sdk_ec2::model::NetworkAcl
source · #[non_exhaustive]pub struct NetworkAcl { /* private fields */ }
Expand description
Describes a network ACL.
Implementations§
source§impl NetworkAcl
impl NetworkAcl
sourcepub fn associations(&self) -> Option<&[NetworkAclAssociation]>
pub fn associations(&self) -> Option<&[NetworkAclAssociation]>
Any associations between the network ACL and one or more subnets
sourcepub fn entries(&self) -> Option<&[NetworkAclEntry]>
pub fn entries(&self) -> Option<&[NetworkAclEntry]>
One or more entries (rules) in the network ACL.
sourcepub fn is_default(&self) -> Option<bool>
pub fn is_default(&self) -> Option<bool>
Indicates whether this is the default network ACL for the VPC.
sourcepub fn network_acl_id(&self) -> Option<&str>
pub fn network_acl_id(&self) -> Option<&str>
The ID of the network ACL.
Any tags assigned to the network ACL.
source§impl NetworkAcl
impl NetworkAcl
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkAcl
.
Examples found in repository?
src/xml_deser.rs (line 28807)
28803 28804 28805 28806 28807 28808 28809 28810 28811 28812 28813 28814 28815 28816 28817 28818 28819 28820 28821 28822 28823 28824 28825 28826 28827 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 28838 28839 28840 28841 28842 28843 28844 28845 28846 28847 28848 28849 28850 28851 28852 28853 28854 28855 28856 28857 28858 28859 28860 28861 28862 28863 28864 28865 28866 28867 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878 28879 28880 28881 28882 28883 28884 28885 28886 28887 28888 28889 28890 28891 28892 28893 28894 28895 28896 28897 28898
pub fn deser_structure_crate_model_network_acl(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkAcl, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkAcl::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("associationSet") /* Associations com.amazonaws.ec2#NetworkAcl$Associations */ => {
let var_1206 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_network_acl_association_list(&mut tag)
?
)
;
builder = builder.set_associations(var_1206);
}
,
s if s.matches("entrySet") /* Entries com.amazonaws.ec2#NetworkAcl$Entries */ => {
let var_1207 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_network_acl_entry_list(&mut tag)
?
)
;
builder = builder.set_entries(var_1207);
}
,
s if s.matches("default") /* IsDefault com.amazonaws.ec2#NetworkAcl$IsDefault */ => {
let var_1208 =
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.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1208);
}
,
s if s.matches("networkAclId") /* NetworkAclId com.amazonaws.ec2#NetworkAcl$NetworkAclId */ => {
let var_1209 =
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_network_acl_id(var_1209);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#NetworkAcl$Tags */ => {
let var_1210 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1210);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#NetworkAcl$VpcId */ => {
let var_1211 =
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_1211);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#NetworkAcl$OwnerId */ => {
let var_1212 =
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_1212);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for NetworkAcl
impl Clone for NetworkAcl
source§fn clone(&self) -> NetworkAcl
fn clone(&self) -> NetworkAcl
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