Class: AWSCDK::SAM::CfnHttpAPI::RouteSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sam/cfn_http_api.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_trace_enabled: nil, detailed_metrics_enabled: nil, logging_level: nil, throttling_burst_limit: nil, throttling_rate_limit: nil) ⇒ RouteSettingsProperty

Returns a new instance of RouteSettingsProperty.

Parameters:

  • data_trace_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)
  • detailed_metrics_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)
  • logging_level (String, nil) (defaults to: nil)
  • throttling_burst_limit (Numeric, nil) (defaults to: nil)
  • throttling_rate_limit (Numeric, nil) (defaults to: nil)


976
977
978
979
980
981
982
983
984
985
986
987
# File 'sam/cfn_http_api.rb', line 976

def initialize(data_trace_enabled: nil, detailed_metrics_enabled: nil, logging_level: nil, throttling_burst_limit: nil, throttling_rate_limit: nil)
  @data_trace_enabled = data_trace_enabled
  Jsii::Type.check_type(@data_trace_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "dataTraceEnabled") unless @data_trace_enabled.nil?
  @detailed_metrics_enabled = detailed_metrics_enabled
  Jsii::Type.check_type(@detailed_metrics_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "detailedMetricsEnabled") unless @detailed_metrics_enabled.nil?
  @logging_level = logging_level
  Jsii::Type.check_type(@logging_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "loggingLevel") unless @logging_level.nil?
  @throttling_burst_limit = throttling_burst_limit
  Jsii::Type.check_type(@throttling_burst_limit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "throttlingBurstLimit") unless @throttling_burst_limit.nil?
  @throttling_rate_limit = throttling_rate_limit
  Jsii::Type.check_type(@throttling_rate_limit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "throttlingRateLimit") unless @throttling_rate_limit.nil?
end

Instance Attribute Details

#data_trace_enabledBoolean, ... (readonly)



991
992
993
# File 'sam/cfn_http_api.rb', line 991

def data_trace_enabled
  @data_trace_enabled
end

#detailed_metrics_enabledBoolean, ... (readonly)



994
995
996
# File 'sam/cfn_http_api.rb', line 994

def detailed_metrics_enabled
  @detailed_metrics_enabled
end

#logging_levelString? (readonly)



997
998
999
# File 'sam/cfn_http_api.rb', line 997

def logging_level
  @logging_level
end

#throttling_burst_limitNumeric? (readonly)



1000
1001
1002
# File 'sam/cfn_http_api.rb', line 1000

def throttling_burst_limit
  @throttling_burst_limit
end

#throttling_rate_limitNumeric? (readonly)



1003
1004
1005
# File 'sam/cfn_http_api.rb', line 1003

def throttling_rate_limit
  @throttling_rate_limit
end

Class Method Details

.jsii_propertiesObject



1005
1006
1007
1008
1009
1010
1011
1012
1013
# File 'sam/cfn_http_api.rb', line 1005

def self.jsii_properties
  {
    :data_trace_enabled => "dataTraceEnabled",
    :detailed_metrics_enabled => "detailedMetricsEnabled",
    :logging_level => "loggingLevel",
    :throttling_burst_limit => "throttlingBurstLimit",
    :throttling_rate_limit => "throttlingRateLimit",
  }
end

Instance Method Details

#to_jsiiObject



1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
# File 'sam/cfn_http_api.rb', line 1015

def to_jsii
  result = {}
  result.merge!({
    "dataTraceEnabled" => @data_trace_enabled,
    "detailedMetricsEnabled" => @detailed_metrics_enabled,
    "loggingLevel" => @logging_level,
    "throttlingBurstLimit" => @throttling_burst_limit,
    "throttlingRateLimit" => @throttling_rate_limit,
  })
  result.compact
end