Struct aws_sdk_ec2::model::ServiceDetail
source · #[non_exhaustive]pub struct ServiceDetail { /* private fields */ }
Expand description
Describes a VPC endpoint service.
Implementations§
source§impl ServiceDetail
impl ServiceDetail
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service.
sourcepub fn service_id(&self) -> Option<&str>
pub fn service_id(&self) -> Option<&str>
The ID of the endpoint service.
sourcepub fn service_type(&self) -> Option<&[ServiceTypeDetail]>
pub fn service_type(&self) -> Option<&[ServiceTypeDetail]>
The type of service.
sourcepub fn availability_zones(&self) -> Option<&[String]>
pub fn availability_zones(&self) -> Option<&[String]>
The Availability Zones in which the service is available.
sourcepub fn base_endpoint_dns_names(&self) -> Option<&[String]>
pub fn base_endpoint_dns_names(&self) -> Option<&[String]>
The DNS names for the service.
sourcepub fn private_dns_name(&self) -> Option<&str>
pub fn private_dns_name(&self) -> Option<&str>
The private DNS name for the service.
sourcepub fn private_dns_names(&self) -> Option<&[PrivateDnsDetails]>
pub fn private_dns_names(&self) -> Option<&[PrivateDnsDetails]>
The private DNS names assigned to the VPC endpoint service.
sourcepub fn vpc_endpoint_policy_supported(&self) -> Option<bool>
pub fn vpc_endpoint_policy_supported(&self) -> Option<bool>
Indicates whether the service supports endpoint policies.
sourcepub fn acceptance_required(&self) -> Option<bool>
pub fn acceptance_required(&self) -> Option<bool>
Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner.
sourcepub fn manages_vpc_endpoints(&self) -> Option<bool>
pub fn manages_vpc_endpoints(&self) -> Option<bool>
Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC endpoint API is restricted.
sourcepub fn payer_responsibility(&self) -> Option<&PayerResponsibility>
pub fn payer_responsibility(&self) -> Option<&PayerResponsibility>
The payer responsibility.
Any tags assigned to the service.
sourcepub fn private_dns_name_verification_state(&self) -> Option<&DnsNameState>
pub fn private_dns_name_verification_state(&self) -> Option<&DnsNameState>
The verification state of the VPC endpoint service.
Consumers of the endpoint service cannot use the private name when the state is not verified
.
sourcepub fn supported_ip_address_types(&self) -> Option<&[ServiceConnectivityType]>
pub fn supported_ip_address_types(&self) -> Option<&[ServiceConnectivityType]>
The supported IP address types.
source§impl ServiceDetail
impl ServiceDetail
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ServiceDetail
.
Examples found in repository?
51440 51441 51442 51443 51444 51445 51446 51447 51448 51449 51450 51451 51452 51453 51454 51455 51456 51457 51458 51459 51460 51461 51462 51463 51464 51465 51466 51467 51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 51478 51479 51480 51481 51482 51483 51484 51485 51486 51487 51488 51489 51490 51491 51492 51493 51494 51495 51496 51497 51498 51499 51500 51501 51502 51503 51504 51505 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 51516 51517 51518 51519 51520 51521 51522 51523 51524 51525 51526 51527 51528 51529 51530 51531 51532 51533 51534 51535 51536 51537 51538 51539 51540 51541 51542 51543 51544 51545 51546 51547 51548 51549 51550 51551 51552 51553 51554 51555 51556 51557 51558 51559 51560 51561 51562 51563 51564 51565 51566 51567 51568 51569 51570 51571 51572 51573 51574 51575 51576 51577 51578 51579 51580 51581 51582 51583 51584 51585 51586 51587 51588 51589 51590 51591 51592 51593 51594 51595 51596 51597 51598 51599 51600 51601 51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 51616 51617 51618 51619 51620 51621 51622 51623 51624 51625 51626 51627 51628 51629 51630 51631 51632 51633 51634 51635 51636
pub fn deser_structure_crate_model_service_detail(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ServiceDetail, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ServiceDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("serviceName") /* ServiceName com.amazonaws.ec2#ServiceDetail$ServiceName */ => {
let var_2438 =
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_2438);
}
,
s if s.matches("serviceId") /* ServiceId com.amazonaws.ec2#ServiceDetail$ServiceId */ => {
let var_2439 =
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_2439);
}
,
s if s.matches("serviceType") /* ServiceType com.amazonaws.ec2#ServiceDetail$ServiceType */ => {
let var_2440 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_service_type_detail_set(&mut tag)
?
)
;
builder = builder.set_service_type(var_2440);
}
,
s if s.matches("availabilityZoneSet") /* AvailabilityZones com.amazonaws.ec2#ServiceDetail$AvailabilityZones */ => {
let var_2441 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_availability_zones(var_2441);
}
,
s if s.matches("owner") /* Owner com.amazonaws.ec2#ServiceDetail$Owner */ => {
let var_2442 =
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(var_2442);
}
,
s if s.matches("baseEndpointDnsNameSet") /* BaseEndpointDnsNames com.amazonaws.ec2#ServiceDetail$BaseEndpointDnsNames */ => {
let var_2443 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_base_endpoint_dns_names(var_2443);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#ServiceDetail$PrivateDnsName */ => {
let var_2444 =
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_private_dns_name(var_2444);
}
,
s if s.matches("privateDnsNameSet") /* PrivateDnsNames com.amazonaws.ec2#ServiceDetail$PrivateDnsNames */ => {
let var_2445 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_private_dns_details_set(&mut tag)
?
)
;
builder = builder.set_private_dns_names(var_2445);
}
,
s if s.matches("vpcEndpointPolicySupported") /* VpcEndpointPolicySupported com.amazonaws.ec2#ServiceDetail$VpcEndpointPolicySupported */ => {
let var_2446 =
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_vpc_endpoint_policy_supported(var_2446);
}
,
s if s.matches("acceptanceRequired") /* AcceptanceRequired com.amazonaws.ec2#ServiceDetail$AcceptanceRequired */ => {
let var_2447 =
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_acceptance_required(var_2447);
}
,
s if s.matches("managesVpcEndpoints") /* ManagesVpcEndpoints com.amazonaws.ec2#ServiceDetail$ManagesVpcEndpoints */ => {
let var_2448 =
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_manages_vpc_endpoints(var_2448);
}
,
s if s.matches("payerResponsibility") /* PayerResponsibility com.amazonaws.ec2#ServiceDetail$PayerResponsibility */ => {
let var_2449 =
Some(
Result::<crate::model::PayerResponsibility, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PayerResponsibility::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_payer_responsibility(var_2449);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ServiceDetail$Tags */ => {
let var_2450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2450);
}
,
s if s.matches("privateDnsNameVerificationState") /* PrivateDnsNameVerificationState com.amazonaws.ec2#ServiceDetail$PrivateDnsNameVerificationState */ => {
let var_2451 =
Some(
Result::<crate::model::DnsNameState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DnsNameState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_private_dns_name_verification_state(var_2451);
}
,
s if s.matches("supportedIpAddressTypeSet") /* SupportedIpAddressTypes com.amazonaws.ec2#ServiceDetail$SupportedIpAddressTypes */ => {
let var_2452 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_supported_ip_address_types(&mut tag)
?
)
;
builder = builder.set_supported_ip_address_types(var_2452);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ServiceDetail
impl Clone for ServiceDetail
source§fn clone(&self) -> ServiceDetail
fn clone(&self) -> ServiceDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more