Class: AWSCDK::CloudFront::CfnContinuousDeploymentPolicy::SessionStickinessConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnContinuousDeploymentPolicy::SessionStickinessConfigProperty
- Defined in:
- cloud_front/cfn_continuous_deployment_policy.rb
Overview
Session stickiness provides the ability to define multiple requests from a single viewer as a single session.
This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
Instance Attribute Summary collapse
-
#idle_ttl ⇒ Numeric
readonly
The amount of time after which you want sessions to cease if no requests are received.
-
#maximum_ttl ⇒ Numeric
readonly
The maximum amount of time to consider requests from the viewer as being part of the same session.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(idle_ttl:, maximum_ttl:) ⇒ SessionStickinessConfigProperty
constructor
A new instance of SessionStickinessConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(idle_ttl:, maximum_ttl:) ⇒ SessionStickinessConfigProperty
Returns a new instance of SessionStickinessConfigProperty.
612 613 614 615 616 617 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 612 def initialize(idle_ttl:, maximum_ttl:) @idle_ttl = idle_ttl Jsii::Type.check_type(@idle_ttl, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "idleTtl") @maximum_ttl = maximum_ttl Jsii::Type.check_type(@maximum_ttl, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumTtl") end |
Instance Attribute Details
#idle_ttl ⇒ Numeric (readonly)
The amount of time after which you want sessions to cease if no requests are received.
Allowed values are 300–3600 seconds (5–60 minutes).
625 626 627 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 625 def idle_ttl @idle_ttl end |
#maximum_ttl ⇒ Numeric (readonly)
The maximum amount of time to consider requests from the viewer as being part of the same session.
Allowed values are 300–3600 seconds (5–60 minutes).
632 633 634 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 632 def maximum_ttl @maximum_ttl end |
Class Method Details
.jsii_properties ⇒ Object
634 635 636 637 638 639 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 634 def self.jsii_properties { :idle_ttl => "idleTtl", :maximum_ttl => "maximumTtl", } end |
Instance Method Details
#to_jsii ⇒ Object
641 642 643 644 645 646 647 648 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 641 def to_jsii result = {} result.merge!({ "idleTtl" => @idle_ttl, "maximumTtl" => @maximum_ttl, }) result.compact end |