Struct aws_sdk_globalaccelerator::input::CreateListenerInput [−][src]
#[non_exhaustive]pub struct CreateListenerInput {
pub accelerator_arn: Option<String>,
pub port_ranges: Option<Vec<PortRange>>,
pub protocol: Option<Protocol>,
pub client_affinity: Option<ClientAffinity>,
pub idempotency_token: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.accelerator_arn: Option<String>
The Amazon Resource Name (ARN) of your accelerator.
port_ranges: Option<Vec<PortRange>>
The list of port ranges to support for connections from clients to your accelerator.
protocol: Option<Protocol>
The protocol for connections from clients to your accelerator.
client_affinity: Option<ClientAffinity>
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client
affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port,
destination IP address, destination port, and protocol—to select the hash value, and then chooses the best
endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not
be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties—
source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.
idempotency_token: Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
Implementations
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateListener, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateListener, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateListener
>
Creates a new builder-style object to manufacture CreateListenerInput
The Amazon Resource Name (ARN) of your accelerator.
The list of port ranges to support for connections from clients to your accelerator.
The protocol for connections from clients to your accelerator.
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client
affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port,
destination IP address, destination port, and protocol—to select the hash value, and then chooses the best
endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not
be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties—
source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreateListenerInput
impl Send for CreateListenerInput
impl Sync for CreateListenerInput
impl Unpin for CreateListenerInput
impl UnwindSafe for CreateListenerInput
Blanket Implementations
Mutably borrows from an owned value. Read more
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