Class: AWSCDK::AppMesh::CfnVirtualNode::GrpcTimeoutProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualNode::GrpcTimeoutProperty
- 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) ⇒ GrpcTimeoutProperty
constructor
A new instance of GrpcTimeoutProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(idle: nil, per_request: nil) ⇒ GrpcTimeoutProperty
Returns a new instance of GrpcTimeoutProperty.
1138 1139 1140 1141 1142 1143 |
# File 'app_mesh/cfn_virtual_node.rb', line 1138 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.
1151 1152 1153 |
# File 'app_mesh/cfn_virtual_node.rb', line 1151 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.
1158 1159 1160 |
# File 'app_mesh/cfn_virtual_node.rb', line 1158 def per_request @per_request end |
Class Method Details
.jsii_properties ⇒ Object
1160 1161 1162 1163 1164 1165 |
# File 'app_mesh/cfn_virtual_node.rb', line 1160 def self.jsii_properties { :idle => "idle", :per_request => "perRequest", } end |
Instance Method Details
#to_jsii ⇒ Object
1167 1168 1169 1170 1171 1172 1173 1174 |
# File 'app_mesh/cfn_virtual_node.rb', line 1167 def to_jsii result = {} result.merge!({ "idle" => @idle, "perRequest" => @per_request, }) result.compact end |