Struct aws_sdk_ec2::model::VpcEndpoint
source · #[non_exhaustive]pub struct VpcEndpoint { /* private fields */ }
Expand description
Describes a VPC endpoint.
Implementations§
source§impl VpcEndpoint
impl VpcEndpoint
sourcepub fn vpc_endpoint_id(&self) -> Option<&str>
pub fn vpc_endpoint_id(&self) -> Option<&str>
The ID of the endpoint.
sourcepub fn vpc_endpoint_type(&self) -> Option<&VpcEndpointType>
pub fn vpc_endpoint_type(&self) -> Option<&VpcEndpointType>
The type of endpoint.
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service to which the endpoint is associated.
sourcepub fn policy_document(&self) -> Option<&str>
pub fn policy_document(&self) -> Option<&str>
The policy document associated with the endpoint, if applicable.
sourcepub fn route_table_ids(&self) -> Option<&[String]>
pub fn route_table_ids(&self) -> Option<&[String]>
(Gateway endpoint) One or more route tables associated with the endpoint.
sourcepub fn subnet_ids(&self) -> Option<&[String]>
pub fn subnet_ids(&self) -> Option<&[String]>
(Interface endpoint) The subnets for the endpoint.
sourcepub fn groups(&self) -> Option<&[SecurityGroupIdentifier]>
pub fn groups(&self) -> Option<&[SecurityGroupIdentifier]>
(Interface endpoint) Information about the security groups that are associated with the network interface.
sourcepub fn ip_address_type(&self) -> Option<&IpAddressType>
pub fn ip_address_type(&self) -> Option<&IpAddressType>
The IP address type for the endpoint.
sourcepub fn dns_options(&self) -> Option<&DnsOptions>
pub fn dns_options(&self) -> Option<&DnsOptions>
The DNS options for the endpoint.
sourcepub fn private_dns_enabled(&self) -> Option<bool>
pub fn private_dns_enabled(&self) -> Option<bool>
(Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
sourcepub fn requester_managed(&self) -> Option<bool>
pub fn requester_managed(&self) -> Option<bool>
Indicates whether the endpoint is being managed by its service.
sourcepub fn network_interface_ids(&self) -> Option<&[String]>
pub fn network_interface_ids(&self) -> Option<&[String]>
(Interface endpoint) One or more network interfaces for the endpoint.
sourcepub fn dns_entries(&self) -> Option<&[DnsEntry]>
pub fn dns_entries(&self) -> Option<&[DnsEntry]>
(Interface endpoint) The DNS entries for the endpoint.
sourcepub fn creation_timestamp(&self) -> Option<&DateTime>
pub fn creation_timestamp(&self) -> Option<&DateTime>
The date and time that the endpoint was created.
Any tags assigned to the endpoint.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the endpoint.
sourcepub fn last_error(&self) -> Option<&LastError>
pub fn last_error(&self) -> Option<&LastError>
The last error that occurred for endpoint.
source§impl VpcEndpoint
impl VpcEndpoint
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VpcEndpoint
.
Examples found in repository?
31544 31545 31546 31547 31548 31549 31550 31551 31552 31553 31554 31555 31556 31557 31558 31559 31560 31561 31562 31563 31564 31565 31566 31567 31568 31569 31570 31571 31572 31573 31574 31575 31576 31577 31578 31579 31580 31581 31582 31583 31584 31585 31586 31587 31588 31589 31590 31591 31592 31593 31594 31595 31596 31597 31598 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608 31609 31610 31611 31612 31613 31614 31615 31616 31617 31618 31619 31620 31621 31622 31623 31624 31625 31626 31627 31628 31629 31630 31631 31632 31633 31634 31635 31636 31637 31638 31639 31640 31641 31642 31643 31644 31645 31646 31647 31648 31649 31650 31651 31652 31653 31654 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 31665 31666 31667 31668 31669 31670 31671 31672 31673 31674 31675 31676 31677 31678 31679 31680 31681 31682 31683 31684 31685 31686 31687 31688 31689 31690 31691 31692 31693 31694 31695 31696 31697 31698 31699 31700 31701 31702 31703 31704 31705 31706 31707 31708 31709 31710 31711 31712 31713 31714 31715 31716 31717 31718 31719 31720 31721 31722 31723 31724 31725 31726 31727 31728 31729 31730 31731 31732 31733 31734 31735 31736 31737 31738 31739 31740 31741 31742 31743 31744 31745 31746 31747 31748 31749 31750 31751 31752 31753 31754 31755 31756 31757 31758 31759 31760 31761 31762 31763 31764 31765 31766 31767 31768 31769 31770 31771 31772 31773 31774 31775 31776 31777 31778 31779 31780 31781 31782 31783 31784 31785 31786
pub fn deser_structure_crate_model_vpc_endpoint(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpcEndpoint, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpcEndpoint::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("vpcEndpointId") /* VpcEndpointId com.amazonaws.ec2#VpcEndpoint$VpcEndpointId */ => {
let var_1395 =
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_1395);
}
,
s if s.matches("vpcEndpointType") /* VpcEndpointType com.amazonaws.ec2#VpcEndpoint$VpcEndpointType */ => {
let var_1396 =
Some(
Result::<crate::model::VpcEndpointType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpcEndpointType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_vpc_endpoint_type(var_1396);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#VpcEndpoint$VpcId */ => {
let var_1397 =
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_1397);
}
,
s if s.matches("serviceName") /* ServiceName com.amazonaws.ec2#VpcEndpoint$ServiceName */ => {
let var_1398 =
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_name(var_1398);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpcEndpoint$State */ => {
let var_1399 =
Some(
Result::<crate::model::State, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::State::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1399);
}
,
s if s.matches("policyDocument") /* PolicyDocument com.amazonaws.ec2#VpcEndpoint$PolicyDocument */ => {
let var_1400 =
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_policy_document(var_1400);
}
,
s if s.matches("routeTableIdSet") /* RouteTableIds com.amazonaws.ec2#VpcEndpoint$RouteTableIds */ => {
let var_1401 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_route_table_ids(var_1401);
}
,
s if s.matches("subnetIdSet") /* SubnetIds com.amazonaws.ec2#VpcEndpoint$SubnetIds */ => {
let var_1402 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_subnet_ids(var_1402);
}
,
s if s.matches("groupSet") /* Groups com.amazonaws.ec2#VpcEndpoint$Groups */ => {
let var_1403 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_set(&mut tag)
?
)
;
builder = builder.set_groups(var_1403);
}
,
s if s.matches("ipAddressType") /* IpAddressType com.amazonaws.ec2#VpcEndpoint$IpAddressType */ => {
let var_1404 =
Some(
Result::<crate::model::IpAddressType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpAddressType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ip_address_type(var_1404);
}
,
s if s.matches("dnsOptions") /* DnsOptions com.amazonaws.ec2#VpcEndpoint$DnsOptions */ => {
let var_1405 =
Some(
crate::xml_deser::deser_structure_crate_model_dns_options(&mut tag)
?
)
;
builder = builder.set_dns_options(var_1405);
}
,
s if s.matches("privateDnsEnabled") /* PrivateDnsEnabled com.amazonaws.ec2#VpcEndpoint$PrivateDnsEnabled */ => {
let var_1406 =
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_private_dns_enabled(var_1406);
}
,
s if s.matches("requesterManaged") /* RequesterManaged com.amazonaws.ec2#VpcEndpoint$RequesterManaged */ => {
let var_1407 =
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_requester_managed(var_1407);
}
,
s if s.matches("networkInterfaceIdSet") /* NetworkInterfaceIds com.amazonaws.ec2#VpcEndpoint$NetworkInterfaceIds */ => {
let var_1408 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_network_interface_ids(var_1408);
}
,
s if s.matches("dnsEntrySet") /* DnsEntries com.amazonaws.ec2#VpcEndpoint$DnsEntries */ => {
let var_1409 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_dns_entry_set(&mut tag)
?
)
;
builder = builder.set_dns_entries(var_1409);
}
,
s if s.matches("creationTimestamp") /* CreationTimestamp com.amazonaws.ec2#VpcEndpoint$CreationTimestamp */ => {
let var_1410 =
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#MillisecondDateTime`)"))
?
)
;
builder = builder.set_creation_timestamp(var_1410);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpcEndpoint$Tags */ => {
let var_1411 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1411);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#VpcEndpoint$OwnerId */ => {
let var_1412 =
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_1412);
}
,
s if s.matches("lastError") /* LastError com.amazonaws.ec2#VpcEndpoint$LastError */ => {
let var_1413 =
Some(
crate::xml_deser::deser_structure_crate_model_last_error(&mut tag)
?
)
;
builder = builder.set_last_error(var_1413);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for VpcEndpoint
impl Clone for VpcEndpoint
source§fn clone(&self) -> VpcEndpoint
fn clone(&self) -> VpcEndpoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more