#[non_exhaustive]pub struct LoadBalancerDescription { /* private fields */ }
Expand description
Information about a load balancer.
Implementations§
source§impl LoadBalancerDescription
impl LoadBalancerDescription
sourcepub fn load_balancer_name(&self) -> Option<&str>
pub fn load_balancer_name(&self) -> Option<&str>
The name of the load balancer.
sourcepub fn canonical_hosted_zone_name(&self) -> Option<&str>
pub fn canonical_hosted_zone_name(&self) -> Option<&str>
The DNS name of the load balancer.
For more information, see Configure a Custom Domain Name in the Classic Load Balancers Guide.
sourcepub fn canonical_hosted_zone_name_id(&self) -> Option<&str>
pub fn canonical_hosted_zone_name_id(&self) -> Option<&str>
The ID of the Amazon Route 53 hosted zone for the load balancer.
sourcepub fn listener_descriptions(&self) -> Option<&[ListenerDescription]>
pub fn listener_descriptions(&self) -> Option<&[ListenerDescription]>
The listeners for the load balancer.
sourcepub fn backend_server_descriptions(&self) -> Option<&[BackendServerDescription]>
pub fn backend_server_descriptions(&self) -> Option<&[BackendServerDescription]>
Information about your EC2 instances.
sourcepub fn availability_zones(&self) -> Option<&[String]>
pub fn availability_zones(&self) -> Option<&[String]>
The Availability Zones for the load balancer.
sourcepub fn health_check(&self) -> Option<&HealthCheck>
pub fn health_check(&self) -> Option<&HealthCheck>
Information about the health checks conducted on the load balancer.
sourcepub fn source_security_group(&self) -> Option<&SourceSecurityGroup>
pub fn source_security_group(&self) -> Option<&SourceSecurityGroup>
The security group for the load balancer, which you can use as part of your inbound rules for your registered instances. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
sourcepub fn security_groups(&self) -> Option<&[String]>
pub fn security_groups(&self) -> Option<&[String]>
The security groups for the load balancer. Valid only for load balancers in a VPC.
sourcepub fn created_time(&self) -> Option<&DateTime>
pub fn created_time(&self) -> Option<&DateTime>
The date and time the load balancer was created.
sourcepub fn scheme(&self) -> Option<&str>
pub fn scheme(&self) -> Option<&str>
The type of load balancer. Valid only for load balancers in a VPC.
If Scheme
is internet-facing
, the load balancer has a public DNS name that resolves to a public IP address.
If Scheme
is internal
, the load balancer has a public DNS name that resolves to a private IP address.
source§impl LoadBalancerDescription
impl LoadBalancerDescription
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LoadBalancerDescription
.
Examples found in repository?
2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638
pub fn deser_structure_crate_model_load_balancer_description(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LoadBalancerDescription, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LoadBalancerDescription::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("LoadBalancerName") /* LoadBalancerName com.amazonaws.elasticloadbalancing#LoadBalancerDescription$LoadBalancerName */ => {
let var_74 =
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_load_balancer_name(var_74);
}
,
s if s.matches("DNSName") /* DNSName com.amazonaws.elasticloadbalancing#LoadBalancerDescription$DNSName */ => {
let var_75 =
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_dns_name(var_75);
}
,
s if s.matches("CanonicalHostedZoneName") /* CanonicalHostedZoneName com.amazonaws.elasticloadbalancing#LoadBalancerDescription$CanonicalHostedZoneName */ => {
let var_76 =
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_canonical_hosted_zone_name(var_76);
}
,
s if s.matches("CanonicalHostedZoneNameID") /* CanonicalHostedZoneNameID com.amazonaws.elasticloadbalancing#LoadBalancerDescription$CanonicalHostedZoneNameID */ => {
let var_77 =
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_canonical_hosted_zone_name_id(var_77);
}
,
s if s.matches("ListenerDescriptions") /* ListenerDescriptions com.amazonaws.elasticloadbalancing#LoadBalancerDescription$ListenerDescriptions */ => {
let var_78 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticloadbalancing_listener_descriptions(&mut tag)
?
)
;
builder = builder.set_listener_descriptions(var_78);
}
,
s if s.matches("Policies") /* Policies com.amazonaws.elasticloadbalancing#LoadBalancerDescription$Policies */ => {
let var_79 =
Some(
crate::xml_deser::deser_structure_crate_model_policies(&mut tag)
?
)
;
builder = builder.set_policies(var_79);
}
,
s if s.matches("BackendServerDescriptions") /* BackendServerDescriptions com.amazonaws.elasticloadbalancing#LoadBalancerDescription$BackendServerDescriptions */ => {
let var_80 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticloadbalancing_backend_server_descriptions(&mut tag)
?
)
;
builder = builder.set_backend_server_descriptions(var_80);
}
,
s if s.matches("AvailabilityZones") /* AvailabilityZones com.amazonaws.elasticloadbalancing#LoadBalancerDescription$AvailabilityZones */ => {
let var_81 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticloadbalancing_availability_zones(&mut tag)
?
)
;
builder = builder.set_availability_zones(var_81);
}
,
s if s.matches("Subnets") /* Subnets com.amazonaws.elasticloadbalancing#LoadBalancerDescription$Subnets */ => {
let var_82 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticloadbalancing_subnets(&mut tag)
?
)
;
builder = builder.set_subnets(var_82);
}
,
s if s.matches("VPCId") /* VPCId com.amazonaws.elasticloadbalancing#LoadBalancerDescription$VPCId */ => {
let var_83 =
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_83);
}
,
s if s.matches("Instances") /* Instances com.amazonaws.elasticloadbalancing#LoadBalancerDescription$Instances */ => {
let var_84 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticloadbalancing_instances(&mut tag)
?
)
;
builder = builder.set_instances(var_84);
}
,
s if s.matches("HealthCheck") /* HealthCheck com.amazonaws.elasticloadbalancing#LoadBalancerDescription$HealthCheck */ => {
let var_85 =
Some(
crate::xml_deser::deser_structure_crate_model_health_check(&mut tag)
?
)
;
builder = builder.set_health_check(var_85);
}
,
s if s.matches("SourceSecurityGroup") /* SourceSecurityGroup com.amazonaws.elasticloadbalancing#LoadBalancerDescription$SourceSecurityGroup */ => {
let var_86 =
Some(
crate::xml_deser::deser_structure_crate_model_source_security_group(&mut tag)
?
)
;
builder = builder.set_source_security_group(var_86);
}
,
s if s.matches("SecurityGroups") /* SecurityGroups com.amazonaws.elasticloadbalancing#LoadBalancerDescription$SecurityGroups */ => {
let var_87 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticloadbalancing_security_groups(&mut tag)
?
)
;
builder = builder.set_security_groups(var_87);
}
,
s if s.matches("CreatedTime") /* CreatedTime com.amazonaws.elasticloadbalancing#LoadBalancerDescription$CreatedTime */ => {
let var_88 =
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.elasticloadbalancing#CreatedTime`)"))
?
)
;
builder = builder.set_created_time(var_88);
}
,
s if s.matches("Scheme") /* Scheme com.amazonaws.elasticloadbalancing#LoadBalancerDescription$Scheme */ => {
let var_89 =
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_scheme(var_89);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for LoadBalancerDescription
impl Clone for LoadBalancerDescription
source§fn clone(&self) -> LoadBalancerDescription
fn clone(&self) -> LoadBalancerDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more