Class: AWSCDK::AppMesh::CfnRoute::HttpTimeoutProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnRoute::HttpTimeoutProperty
- Defined in:
- app_mesh/cfn_route.rb
Overview
An object that represents types of timeouts.
Instance Attribute Summary collapse
-
#idle ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents an idle timeout.
-
#per_request ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents a per request timeout.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(idle: nil, per_request: nil) ⇒ HttpTimeoutProperty
constructor
A new instance of HttpTimeoutProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(idle: nil, per_request: nil) ⇒ HttpTimeoutProperty
Returns a new instance of HttpTimeoutProperty.
1582 1583 1584 1585 1586 1587 |
# File 'app_mesh/cfn_route.rb', line 1582 def initialize(idle: nil, per_request: nil) @idle = idle.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnRoute::DurationProperty.new(**idle.transform_keys(&:to_sym)) : idle Jsii::Type.check_type(@idle, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblJvdXRlLkR1cmF0aW9uUHJvcGVydHkifV19fQ==")), "idle") unless @idle.nil? @per_request = per_request.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnRoute::DurationProperty.new(**per_request.transform_keys(&:to_sym)) : per_request Jsii::Type.check_type(@per_request, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblJvdXRlLkR1cmF0aW9uUHJvcGVydHkifV19fQ==")), "perRequest") unless @per_request.nil? end |
Instance Attribute Details
#idle ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents an idle timeout.
An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
1595 1596 1597 |
# File 'app_mesh/cfn_route.rb', line 1595 def idle @idle end |
#per_request ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents a per request timeout.
The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
1602 1603 1604 |
# File 'app_mesh/cfn_route.rb', line 1602 def per_request @per_request end |
Class Method Details
.jsii_properties ⇒ Object
1604 1605 1606 1607 1608 1609 |
# File 'app_mesh/cfn_route.rb', line 1604 def self.jsii_properties { :idle => "idle", :per_request => "perRequest", } end |
Instance Method Details
#to_jsii ⇒ Object
1611 1612 1613 1614 1615 1616 1617 1618 |
# File 'app_mesh/cfn_route.rb', line 1611 def to_jsii result = {} result.merge!({ "idle" => @idle, "perRequest" => @per_request, }) result.compact end |