pub struct Builder { /* private fields */ }
Expand description

Implementations§

Information about the access log configuration for the load balancer.

If the access log is enabled, the load balancer captures detailed information about all requests. It delivers the information to a specified S3 bucket.

Information about the access log configuration for the load balancer.

If the access log is enabled, the load balancer captures detailed information about all requests. It delivers the information to a specified S3 bucket.

Examples found in repository?
src/json_deser.rs (lines 27444-27446)
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
pub(crate) fn deser_structure_crate_model_aws_elb_load_balancer_attributes<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::AwsElbLoadBalancerAttributes>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::aws_elb_load_balancer_attributes::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "AccessLog" => {
                                builder = builder.set_access_log(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_access_log(tokens)?
                                );
                            }
                            "ConnectionDraining" => {
                                builder = builder.set_connection_draining(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_draining(tokens)?
                                );
                            }
                            "ConnectionSettings" => {
                                builder = builder.set_connection_settings(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_settings(tokens)?
                                );
                            }
                            "CrossZoneLoadBalancing" => {
                                builder = builder.set_cross_zone_load_balancing(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_cross_zone_load_balancing(tokens)?
                                );
                            }
                            "AdditionalAttributes" => {
                                builder = builder.set_additional_attributes(
                                    crate::json_deser::deser_list_com_amazonaws_securityhub_aws_elb_load_balancer_additional_attribute_list(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Information about the connection draining configuration for the load balancer.

If connection draining is enabled, the load balancer allows existing requests to complete before it shifts traffic away from a deregistered or unhealthy instance.

Information about the connection draining configuration for the load balancer.

If connection draining is enabled, the load balancer allows existing requests to complete before it shifts traffic away from a deregistered or unhealthy instance.

Examples found in repository?
src/json_deser.rs (lines 27449-27451)
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
pub(crate) fn deser_structure_crate_model_aws_elb_load_balancer_attributes<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::AwsElbLoadBalancerAttributes>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::aws_elb_load_balancer_attributes::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "AccessLog" => {
                                builder = builder.set_access_log(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_access_log(tokens)?
                                );
                            }
                            "ConnectionDraining" => {
                                builder = builder.set_connection_draining(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_draining(tokens)?
                                );
                            }
                            "ConnectionSettings" => {
                                builder = builder.set_connection_settings(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_settings(tokens)?
                                );
                            }
                            "CrossZoneLoadBalancing" => {
                                builder = builder.set_cross_zone_load_balancing(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_cross_zone_load_balancing(tokens)?
                                );
                            }
                            "AdditionalAttributes" => {
                                builder = builder.set_additional_attributes(
                                    crate::json_deser::deser_list_com_amazonaws_securityhub_aws_elb_load_balancer_additional_attribute_list(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Connection settings for the load balancer.

If an idle timeout is configured, the load balancer allows connections to remain idle for the specified duration. When a connection is idle, no data is sent over the connection.

Connection settings for the load balancer.

If an idle timeout is configured, the load balancer allows connections to remain idle for the specified duration. When a connection is idle, no data is sent over the connection.

Examples found in repository?
src/json_deser.rs (lines 27454-27456)
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
pub(crate) fn deser_structure_crate_model_aws_elb_load_balancer_attributes<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::AwsElbLoadBalancerAttributes>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::aws_elb_load_balancer_attributes::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "AccessLog" => {
                                builder = builder.set_access_log(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_access_log(tokens)?
                                );
                            }
                            "ConnectionDraining" => {
                                builder = builder.set_connection_draining(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_draining(tokens)?
                                );
                            }
                            "ConnectionSettings" => {
                                builder = builder.set_connection_settings(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_settings(tokens)?
                                );
                            }
                            "CrossZoneLoadBalancing" => {
                                builder = builder.set_cross_zone_load_balancing(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_cross_zone_load_balancing(tokens)?
                                );
                            }
                            "AdditionalAttributes" => {
                                builder = builder.set_additional_attributes(
                                    crate::json_deser::deser_list_com_amazonaws_securityhub_aws_elb_load_balancer_additional_attribute_list(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Cross-zone load balancing settings for the load balancer.

If cross-zone load balancing is enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.

Cross-zone load balancing settings for the load balancer.

If cross-zone load balancing is enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.

Examples found in repository?
src/json_deser.rs (lines 27459-27461)
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
pub(crate) fn deser_structure_crate_model_aws_elb_load_balancer_attributes<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::AwsElbLoadBalancerAttributes>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::aws_elb_load_balancer_attributes::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "AccessLog" => {
                                builder = builder.set_access_log(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_access_log(tokens)?
                                );
                            }
                            "ConnectionDraining" => {
                                builder = builder.set_connection_draining(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_draining(tokens)?
                                );
                            }
                            "ConnectionSettings" => {
                                builder = builder.set_connection_settings(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_settings(tokens)?
                                );
                            }
                            "CrossZoneLoadBalancing" => {
                                builder = builder.set_cross_zone_load_balancing(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_cross_zone_load_balancing(tokens)?
                                );
                            }
                            "AdditionalAttributes" => {
                                builder = builder.set_additional_attributes(
                                    crate::json_deser::deser_list_com_amazonaws_securityhub_aws_elb_load_balancer_additional_attribute_list(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Appends an item to additional_attributes.

To override the contents of this collection use set_additional_attributes.

Any additional attributes for a load balancer.

Any additional attributes for a load balancer.

Examples found in repository?
src/json_deser.rs (lines 27464-27466)
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
pub(crate) fn deser_structure_crate_model_aws_elb_load_balancer_attributes<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::AwsElbLoadBalancerAttributes>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::aws_elb_load_balancer_attributes::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "AccessLog" => {
                                builder = builder.set_access_log(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_access_log(tokens)?
                                );
                            }
                            "ConnectionDraining" => {
                                builder = builder.set_connection_draining(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_draining(tokens)?
                                );
                            }
                            "ConnectionSettings" => {
                                builder = builder.set_connection_settings(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_settings(tokens)?
                                );
                            }
                            "CrossZoneLoadBalancing" => {
                                builder = builder.set_cross_zone_load_balancing(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_cross_zone_load_balancing(tokens)?
                                );
                            }
                            "AdditionalAttributes" => {
                                builder = builder.set_additional_attributes(
                                    crate::json_deser::deser_list_com_amazonaws_securityhub_aws_elb_load_balancer_additional_attribute_list(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Consumes the builder and constructs a AwsElbLoadBalancerAttributes.

Examples found in repository?
src/json_deser.rs (line 27481)
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
pub(crate) fn deser_structure_crate_model_aws_elb_load_balancer_attributes<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::AwsElbLoadBalancerAttributes>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::aws_elb_load_balancer_attributes::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "AccessLog" => {
                                builder = builder.set_access_log(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_access_log(tokens)?
                                );
                            }
                            "ConnectionDraining" => {
                                builder = builder.set_connection_draining(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_draining(tokens)?
                                );
                            }
                            "ConnectionSettings" => {
                                builder = builder.set_connection_settings(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_connection_settings(tokens)?
                                );
                            }
                            "CrossZoneLoadBalancing" => {
                                builder = builder.set_cross_zone_load_balancing(
                                    crate::json_deser::deser_structure_crate_model_aws_elb_load_balancer_cross_zone_load_balancing(tokens)?
                                );
                            }
                            "AdditionalAttributes" => {
                                builder = builder.set_additional_attributes(
                                    crate::json_deser::deser_list_com_amazonaws_securityhub_aws_elb_load_balancer_additional_attribute_list(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more