Struct aws_sdk_ec2::model::AuthorizationRule
source · #[non_exhaustive]pub struct AuthorizationRule { /* private fields */ }
Expand description
Information about an authorization rule.
Implementations§
source§impl AuthorizationRule
impl AuthorizationRule
sourcepub fn client_vpn_endpoint_id(&self) -> Option<&str>
pub fn client_vpn_endpoint_id(&self) -> Option<&str>
The ID of the Client VPN endpoint with which the authorization rule is associated.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A brief description of the authorization rule.
sourcepub fn group_id(&self) -> Option<&str>
pub fn group_id(&self) -> Option<&str>
The ID of the Active Directory group to which the authorization rule grants access.
sourcepub fn access_all(&self) -> Option<bool>
pub fn access_all(&self) -> Option<bool>
Indicates whether the authorization rule grants access to all clients.
sourcepub fn destination_cidr(&self) -> Option<&str>
pub fn destination_cidr(&self) -> Option<&str>
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
sourcepub fn status(&self) -> Option<&ClientVpnAuthorizationRuleStatus>
pub fn status(&self) -> Option<&ClientVpnAuthorizationRuleStatus>
The current state of the authorization rule.
source§impl AuthorizationRule
impl AuthorizationRule
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AuthorizationRule
.
Examples found in repository?
src/xml_deser.rs (line 43445)
43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529
pub fn deser_structure_crate_model_authorization_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AuthorizationRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AuthorizationRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#AuthorizationRule$ClientVpnEndpointId */ => {
let var_1880 =
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_client_vpn_endpoint_id(var_1880);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#AuthorizationRule$Description */ => {
let var_1881 =
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_1881);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#AuthorizationRule$GroupId */ => {
let var_1882 =
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_1882);
}
,
s if s.matches("accessAll") /* AccessAll com.amazonaws.ec2#AuthorizationRule$AccessAll */ => {
let var_1883 =
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_access_all(var_1883);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#AuthorizationRule$DestinationCidr */ => {
let var_1884 =
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_destination_cidr(var_1884);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#AuthorizationRule$Status */ => {
let var_1885 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_authorization_rule_status(&mut tag)
?
)
;
builder = builder.set_status(var_1885);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AuthorizationRule
impl Clone for AuthorizationRule
source§fn clone(&self) -> AuthorizationRule
fn clone(&self) -> AuthorizationRule
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