Struct aws_sdk_ec2::model::ServiceConfiguration
source · #[non_exhaustive]pub struct ServiceConfiguration { /* private fields */ }
Expand description
Describes a service configuration for a VPC endpoint service.
Implementations§
source§impl ServiceConfiguration
impl ServiceConfiguration
sourcepub fn service_type(&self) -> Option<&[ServiceTypeDetail]>
pub fn service_type(&self) -> Option<&[ServiceTypeDetail]>
The type of service.
sourcepub fn service_id(&self) -> Option<&str>
pub fn service_id(&self) -> Option<&str>
The ID of the service.
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service.
sourcepub fn service_state(&self) -> Option<&ServiceState>
pub fn service_state(&self) -> Option<&ServiceState>
The service state.
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 acceptance_required(&self) -> Option<bool>
pub fn acceptance_required(&self) -> Option<bool>
Indicates whether requests from other Amazon Web Services accounts to create an endpoint to the service must first be accepted.
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 network_load_balancer_arns(&self) -> Option<&[String]>
pub fn network_load_balancer_arns(&self) -> Option<&[String]>
The Amazon Resource Names (ARNs) of the Network Load Balancers for the service.
sourcepub fn gateway_load_balancer_arns(&self) -> Option<&[String]>
pub fn gateway_load_balancer_arns(&self) -> Option<&[String]>
The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service.
sourcepub fn supported_ip_address_types(&self) -> Option<&[ServiceConnectivityType]>
pub fn supported_ip_address_types(&self) -> Option<&[ServiceConnectivityType]>
The supported IP address types.
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_name_configuration(
&self
) -> Option<&PrivateDnsNameConfiguration>
pub fn private_dns_name_configuration(
&self
) -> Option<&PrivateDnsNameConfiguration>
Information about the endpoint service private DNS name configuration.
sourcepub fn payer_responsibility(&self) -> Option<&PayerResponsibility>
pub fn payer_responsibility(&self) -> Option<&PayerResponsibility>
The payer responsibility.
Any tags assigned to the service.
source§impl ServiceConfiguration
impl ServiceConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ServiceConfiguration
.
Examples found in repository?
31891 31892 31893 31894 31895 31896 31897 31898 31899 31900 31901 31902 31903 31904 31905 31906 31907 31908 31909 31910 31911 31912 31913 31914 31915 31916 31917 31918 31919 31920 31921 31922 31923 31924 31925 31926 31927 31928 31929 31930 31931 31932 31933 31934 31935 31936 31937 31938 31939 31940 31941 31942 31943 31944 31945 31946 31947 31948 31949 31950 31951 31952 31953 31954 31955 31956 31957 31958 31959 31960 31961 31962 31963 31964 31965 31966 31967 31968 31969 31970 31971 31972 31973 31974 31975 31976 31977 31978 31979 31980 31981 31982 31983 31984 31985 31986 31987 31988 31989 31990 31991 31992 31993 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 32023 32024 32025 32026 32027 32028 32029 32030 32031 32032 32033 32034 32035 32036 32037 32038 32039 32040 32041 32042 32043 32044 32045 32046 32047 32048 32049 32050 32051 32052 32053 32054 32055 32056 32057 32058 32059 32060 32061 32062 32063 32064 32065 32066 32067 32068 32069 32070 32071 32072 32073 32074 32075 32076 32077 32078 32079
pub fn deser_structure_crate_model_service_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ServiceConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ServiceConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("serviceType") /* ServiceType com.amazonaws.ec2#ServiceConfiguration$ServiceType */ => {
let var_1421 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_service_type_detail_set(&mut tag)
?
)
;
builder = builder.set_service_type(var_1421);
}
,
s if s.matches("serviceId") /* ServiceId com.amazonaws.ec2#ServiceConfiguration$ServiceId */ => {
let var_1422 =
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_1422);
}
,
s if s.matches("serviceName") /* ServiceName com.amazonaws.ec2#ServiceConfiguration$ServiceName */ => {
let var_1423 =
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_1423);
}
,
s if s.matches("serviceState") /* ServiceState com.amazonaws.ec2#ServiceConfiguration$ServiceState */ => {
let var_1424 =
Some(
Result::<crate::model::ServiceState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ServiceState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_service_state(var_1424);
}
,
s if s.matches("availabilityZoneSet") /* AvailabilityZones com.amazonaws.ec2#ServiceConfiguration$AvailabilityZones */ => {
let var_1425 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_availability_zones(var_1425);
}
,
s if s.matches("acceptanceRequired") /* AcceptanceRequired com.amazonaws.ec2#ServiceConfiguration$AcceptanceRequired */ => {
let var_1426 =
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_1426);
}
,
s if s.matches("managesVpcEndpoints") /* ManagesVpcEndpoints com.amazonaws.ec2#ServiceConfiguration$ManagesVpcEndpoints */ => {
let var_1427 =
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_1427);
}
,
s if s.matches("networkLoadBalancerArnSet") /* NetworkLoadBalancerArns com.amazonaws.ec2#ServiceConfiguration$NetworkLoadBalancerArns */ => {
let var_1428 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_network_load_balancer_arns(var_1428);
}
,
s if s.matches("gatewayLoadBalancerArnSet") /* GatewayLoadBalancerArns com.amazonaws.ec2#ServiceConfiguration$GatewayLoadBalancerArns */ => {
let var_1429 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_gateway_load_balancer_arns(var_1429);
}
,
s if s.matches("supportedIpAddressTypeSet") /* SupportedIpAddressTypes com.amazonaws.ec2#ServiceConfiguration$SupportedIpAddressTypes */ => {
let var_1430 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_supported_ip_address_types(&mut tag)
?
)
;
builder = builder.set_supported_ip_address_types(var_1430);
}
,
s if s.matches("baseEndpointDnsNameSet") /* BaseEndpointDnsNames com.amazonaws.ec2#ServiceConfiguration$BaseEndpointDnsNames */ => {
let var_1431 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_base_endpoint_dns_names(var_1431);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#ServiceConfiguration$PrivateDnsName */ => {
let var_1432 =
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_1432);
}
,
s if s.matches("privateDnsNameConfiguration") /* PrivateDnsNameConfiguration com.amazonaws.ec2#ServiceConfiguration$PrivateDnsNameConfiguration */ => {
let var_1433 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_configuration(&mut tag)
?
)
;
builder = builder.set_private_dns_name_configuration(var_1433);
}
,
s if s.matches("payerResponsibility") /* PayerResponsibility com.amazonaws.ec2#ServiceConfiguration$PayerResponsibility */ => {
let var_1434 =
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_1434);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ServiceConfiguration$Tags */ => {
let var_1435 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1435);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ServiceConfiguration
impl Clone for ServiceConfiguration
source§fn clone(&self) -> ServiceConfiguration
fn clone(&self) -> ServiceConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more