Class: AWSCDK::AppMesh::CfnVirtualNode::HttpTimeoutProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualNode::HttpTimeoutProperty
- Defined in:
- app_mesh/cfn_virtual_node.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.
1284 1285 1286 1287 1288 1289 |
# File 'app_mesh/cfn_virtual_node.rb', line 1284 def initialize(idle: nil, per_request: nil) @idle = idle.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::DurationProperty.new(**idle.transform_keys(&:to_sym)) : idle Jsii::Type.check_type(@idle, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLkR1cmF0aW9uUHJvcGVydHkifV19fQ==")), "idle") unless @idle.nil? @per_request = per_request.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::DurationProperty.new(**per_request.transform_keys(&:to_sym)) : per_request Jsii::Type.check_type(@per_request, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLkR1cmF0aW9uUHJvcGVydHkifV19fQ==")), "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.
1297 1298 1299 |
# File 'app_mesh/cfn_virtual_node.rb', line 1297 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.
1304 1305 1306 |
# File 'app_mesh/cfn_virtual_node.rb', line 1304 def per_request @per_request end |
Class Method Details
.jsii_properties ⇒ Object
1306 1307 1308 1309 1310 1311 |
# File 'app_mesh/cfn_virtual_node.rb', line 1306 def self.jsii_properties { :idle => "idle", :per_request => "perRequest", } end |
Instance Method Details
#to_jsii ⇒ Object
1313 1314 1315 1316 1317 1318 1319 1320 |
# File 'app_mesh/cfn_virtual_node.rb', line 1313 def to_jsii result = {} result.merge!({ "idle" => @idle, "perRequest" => @per_request, }) result.compact end |