Class: AWSCDK::AppMesh::CfnRoute::GrpcTimeoutProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_route.rb

Overview

An object that represents types of timeouts.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(idle: nil, per_request: nil) ⇒ GrpcTimeoutProperty

Returns a new instance of GrpcTimeoutProperty.

Parameters:



1062
1063
1064
1065
1066
1067
# File 'app_mesh/cfn_route.rb', line 1062

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

#idleAWSCDK::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.



1075
1076
1077
# File 'app_mesh/cfn_route.rb', line 1075

def idle
  @idle
end

#per_requestAWSCDK::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.



1082
1083
1084
# File 'app_mesh/cfn_route.rb', line 1082

def per_request
  @per_request
end

Class Method Details

.jsii_propertiesObject



1084
1085
1086
1087
1088
1089
# File 'app_mesh/cfn_route.rb', line 1084

def self.jsii_properties
  {
    :idle => "idle",
    :per_request => "perRequest",
  }
end

Instance Method Details

#to_jsiiObject



1091
1092
1093
1094
1095
1096
1097
1098
# File 'app_mesh/cfn_route.rb', line 1091

def to_jsii
  result = {}
  result.merge!({
    "idle" => @idle,
    "perRequest" => @per_request,
  })
  result.compact
end