Struct aws_sdk_elasticloadbalancing::client::fluent_builders::CreateAppCookieStickinessPolicy [−][src]
pub struct CreateAppCookieStickinessPolicy<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateAppCookieStickinessPolicy
.
Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.
This policy is similar to the policy created by CreateLBCookieStickinessPolicy,
except that the lifetime of the special Elastic Load Balancing cookie, AWSELB
,
follows the lifetime of the application-generated cookie specified in the policy configuration.
The load balancer only inserts a new stickiness cookie when the application response
includes a new application cookie.
If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.
For more information, see Application-Controlled Session Stickiness in the Classic Load Balancers Guide.
Implementations
impl<C, M, R> CreateAppCookieStickinessPolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateAppCookieStickinessPolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateAppCookieStickinessPolicyOutput, SdkError<CreateAppCookieStickinessPolicyError>> where
R::Policy: SmithyRetryPolicy<CreateAppCookieStickinessPolicyInputOperationOutputAlias, CreateAppCookieStickinessPolicyOutput, CreateAppCookieStickinessPolicyError, CreateAppCookieStickinessPolicyInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateAppCookieStickinessPolicyOutput, SdkError<CreateAppCookieStickinessPolicyError>> where
R::Policy: SmithyRetryPolicy<CreateAppCookieStickinessPolicyInputOperationOutputAlias, CreateAppCookieStickinessPolicyOutput, CreateAppCookieStickinessPolicyError, CreateAppCookieStickinessPolicyInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The name of the load balancer.
The name of the load balancer.
The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.
The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.
The name of the application cookie used for stickiness.
The name of the application cookie used for stickiness.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateAppCookieStickinessPolicy<C, M, R>
impl<C, M, R> Send for CreateAppCookieStickinessPolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateAppCookieStickinessPolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateAppCookieStickinessPolicy<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateAppCookieStickinessPolicy<C, M, R>
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