Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data CreateAppCookieStickinessPolicy = CreateAppCookieStickinessPolicy' {
- loadBalancerName :: Text
- policyName :: Text
- cookieName :: Text
- newCreateAppCookieStickinessPolicy :: Text -> Text -> Text -> CreateAppCookieStickinessPolicy
- createAppCookieStickinessPolicy_loadBalancerName :: Lens' CreateAppCookieStickinessPolicy Text
- createAppCookieStickinessPolicy_policyName :: Lens' CreateAppCookieStickinessPolicy Text
- createAppCookieStickinessPolicy_cookieName :: Lens' CreateAppCookieStickinessPolicy Text
- data CreateAppCookieStickinessPolicyResponse = CreateAppCookieStickinessPolicyResponse' {
- httpStatus :: Int
- newCreateAppCookieStickinessPolicyResponse :: Int -> CreateAppCookieStickinessPolicyResponse
- createAppCookieStickinessPolicyResponse_httpStatus :: Lens' CreateAppCookieStickinessPolicyResponse Int
Creating a Request
data CreateAppCookieStickinessPolicy Source #
Contains the parameters for CreateAppCookieStickinessPolicy.
See: newCreateAppCookieStickinessPolicy
smart constructor.
CreateAppCookieStickinessPolicy' | |
|
Instances
newCreateAppCookieStickinessPolicy Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateAppCookieStickinessPolicy |
Create a value of CreateAppCookieStickinessPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateAppCookieStickinessPolicy
, createAppCookieStickinessPolicy_loadBalancerName
- The name of the load balancer.
CreateAppCookieStickinessPolicy
, createAppCookieStickinessPolicy_policyName
- 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.
CreateAppCookieStickinessPolicy
, createAppCookieStickinessPolicy_cookieName
- The name of the application cookie used for stickiness.
Request Lenses
createAppCookieStickinessPolicy_loadBalancerName :: Lens' CreateAppCookieStickinessPolicy Text Source #
The name of the load balancer.
createAppCookieStickinessPolicy_policyName :: Lens' CreateAppCookieStickinessPolicy Text Source #
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.
createAppCookieStickinessPolicy_cookieName :: Lens' CreateAppCookieStickinessPolicy Text Source #
The name of the application cookie used for stickiness.
Destructuring the Response
data CreateAppCookieStickinessPolicyResponse Source #
Contains the output for CreateAppCookieStickinessPolicy.
See: newCreateAppCookieStickinessPolicyResponse
smart constructor.
CreateAppCookieStickinessPolicyResponse' | |
|
Instances
newCreateAppCookieStickinessPolicyResponse Source #
Create a value of CreateAppCookieStickinessPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateAppCookieStickinessPolicyResponse'
, createAppCookieStickinessPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
createAppCookieStickinessPolicyResponse_httpStatus :: Lens' CreateAppCookieStickinessPolicyResponse Int Source #
The response's http status code.