Struct aws_sdk_ec2::model::ConnectionNotification
source · #[non_exhaustive]pub struct ConnectionNotification { /* private fields */ }
Expand description
Describes a connection notification for a VPC endpoint or VPC endpoint service.
Implementations§
source§impl ConnectionNotification
impl ConnectionNotification
sourcepub fn connection_notification_id(&self) -> Option<&str>
pub fn connection_notification_id(&self) -> Option<&str>
The ID of the notification.
sourcepub fn service_id(&self) -> Option<&str>
pub fn service_id(&self) -> Option<&str>
The ID of the endpoint service.
sourcepub fn vpc_endpoint_id(&self) -> Option<&str>
pub fn vpc_endpoint_id(&self) -> Option<&str>
The ID of the VPC endpoint.
sourcepub fn connection_notification_type(
&self
) -> Option<&ConnectionNotificationType>
pub fn connection_notification_type(
&self
) -> Option<&ConnectionNotificationType>
The type of notification.
sourcepub fn connection_notification_arn(&self) -> Option<&str>
pub fn connection_notification_arn(&self) -> Option<&str>
The ARN of the SNS topic for the notification.
sourcepub fn connection_events(&self) -> Option<&[String]>
pub fn connection_events(&self) -> Option<&[String]>
The events for the notification. Valid values are Accept
, Connect
, Delete
, and Reject
.
sourcepub fn connection_notification_state(
&self
) -> Option<&ConnectionNotificationState>
pub fn connection_notification_state(
&self
) -> Option<&ConnectionNotificationState>
The state of the notification.
source§impl ConnectionNotification
impl ConnectionNotification
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ConnectionNotification
.
Examples found in repository?
src/xml_deser.rs (line 31792)
31788 31789 31790 31791 31792 31793 31794 31795 31796 31797 31798 31799 31800 31801 31802 31803 31804 31805 31806 31807 31808 31809 31810 31811 31812 31813 31814 31815 31816 31817 31818 31819 31820 31821 31822 31823 31824 31825 31826 31827 31828 31829 31830 31831 31832 31833 31834 31835 31836 31837 31838 31839 31840 31841 31842 31843 31844 31845 31846 31847 31848 31849 31850 31851 31852 31853 31854 31855 31856 31857 31858 31859 31860 31861 31862 31863 31864 31865 31866 31867 31868 31869 31870 31871 31872 31873 31874 31875 31876 31877 31878 31879 31880 31881 31882 31883 31884 31885 31886 31887 31888 31889
pub fn deser_structure_crate_model_connection_notification(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ConnectionNotification, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ConnectionNotification::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("connectionNotificationId") /* ConnectionNotificationId com.amazonaws.ec2#ConnectionNotification$ConnectionNotificationId */ => {
let var_1414 =
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_connection_notification_id(var_1414);
}
,
s if s.matches("serviceId") /* ServiceId com.amazonaws.ec2#ConnectionNotification$ServiceId */ => {
let var_1415 =
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_service_id(var_1415);
}
,
s if s.matches("vpcEndpointId") /* VpcEndpointId com.amazonaws.ec2#ConnectionNotification$VpcEndpointId */ => {
let var_1416 =
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_endpoint_id(var_1416);
}
,
s if s.matches("connectionNotificationType") /* ConnectionNotificationType com.amazonaws.ec2#ConnectionNotification$ConnectionNotificationType */ => {
let var_1417 =
Some(
Result::<crate::model::ConnectionNotificationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ConnectionNotificationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_connection_notification_type(var_1417);
}
,
s if s.matches("connectionNotificationArn") /* ConnectionNotificationArn com.amazonaws.ec2#ConnectionNotification$ConnectionNotificationArn */ => {
let var_1418 =
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_connection_notification_arn(var_1418);
}
,
s if s.matches("connectionEvents") /* ConnectionEvents com.amazonaws.ec2#ConnectionNotification$ConnectionEvents */ => {
let var_1419 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_connection_events(var_1419);
}
,
s if s.matches("connectionNotificationState") /* ConnectionNotificationState com.amazonaws.ec2#ConnectionNotification$ConnectionNotificationState */ => {
let var_1420 =
Some(
Result::<crate::model::ConnectionNotificationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ConnectionNotificationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_connection_notification_state(var_1420);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ConnectionNotification
impl Clone for ConnectionNotification
source§fn clone(&self) -> ConnectionNotification
fn clone(&self) -> ConnectionNotification
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