Struct aws_sdk_ec2::model::VpcPeeringConnection
source · #[non_exhaustive]pub struct VpcPeeringConnection { /* private fields */ }
Expand description
Describes a VPC peering connection.
Implementations§
source§impl VpcPeeringConnection
impl VpcPeeringConnection
sourcepub fn accepter_vpc_info(&self) -> Option<&VpcPeeringConnectionVpcInfo>
pub fn accepter_vpc_info(&self) -> Option<&VpcPeeringConnectionVpcInfo>
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
sourcepub fn expiration_time(&self) -> Option<&DateTime>
pub fn expiration_time(&self) -> Option<&DateTime>
The time that an unaccepted VPC peering connection will expire.
sourcepub fn requester_vpc_info(&self) -> Option<&VpcPeeringConnectionVpcInfo>
pub fn requester_vpc_info(&self) -> Option<&VpcPeeringConnectionVpcInfo>
Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
sourcepub fn status(&self) -> Option<&VpcPeeringConnectionStateReason>
pub fn status(&self) -> Option<&VpcPeeringConnectionStateReason>
The status of the VPC peering connection.
Any tags assigned to the resource.
sourcepub fn vpc_peering_connection_id(&self) -> Option<&str>
pub fn vpc_peering_connection_id(&self) -> Option<&str>
The ID of the VPC peering connection.
source§impl VpcPeeringConnection
impl VpcPeeringConnection
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VpcPeeringConnection
.
Examples found in repository?
src/xml_deser.rs (line 24189)
24185 24186 24187 24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 24237 24238 24239 24240 24241 24242 24243 24244 24245 24246 24247 24248 24249 24250 24251 24252 24253 24254 24255 24256 24257 24258 24259 24260 24261 24262 24263
pub fn deser_structure_crate_model_vpc_peering_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpcPeeringConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpcPeeringConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("accepterVpcInfo") /* AccepterVpcInfo com.amazonaws.ec2#VpcPeeringConnection$AccepterVpcInfo */ => {
let var_919 =
Some(
crate::xml_deser::deser_structure_crate_model_vpc_peering_connection_vpc_info(&mut tag)
?
)
;
builder = builder.set_accepter_vpc_info(var_919);
}
,
s if s.matches("expirationTime") /* ExpirationTime com.amazonaws.ec2#VpcPeeringConnection$ExpirationTime */ => {
let var_920 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_expiration_time(var_920);
}
,
s if s.matches("requesterVpcInfo") /* RequesterVpcInfo com.amazonaws.ec2#VpcPeeringConnection$RequesterVpcInfo */ => {
let var_921 =
Some(
crate::xml_deser::deser_structure_crate_model_vpc_peering_connection_vpc_info(&mut tag)
?
)
;
builder = builder.set_requester_vpc_info(var_921);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#VpcPeeringConnection$Status */ => {
let var_922 =
Some(
crate::xml_deser::deser_structure_crate_model_vpc_peering_connection_state_reason(&mut tag)
?
)
;
builder = builder.set_status(var_922);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpcPeeringConnection$Tags */ => {
let var_923 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_923);
}
,
s if s.matches("vpcPeeringConnectionId") /* VpcPeeringConnectionId com.amazonaws.ec2#VpcPeeringConnection$VpcPeeringConnectionId */ => {
let var_924 =
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_peering_connection_id(var_924);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for VpcPeeringConnection
impl Clone for VpcPeeringConnection
source§fn clone(&self) -> VpcPeeringConnection
fn clone(&self) -> VpcPeeringConnection
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