Class: AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverrides::RouteSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverrides::RouteSettingsProperty
- Defined in:
- api_gatewayv2/cfn_api_gateway_managed_overrides.rb
Overview
The RouteSettings property overrides the route settings for an API Gateway-managed route.
Instance Attribute Summary collapse
-
#data_trace_enabled ⇒ Boolean, ...
readonly
Specifies whether (
true) or not (false) data trace logging is enabled for this route. -
#detailed_metrics_enabled ⇒ Boolean, ...
readonly
Specifies whether detailed metrics are enabled.
-
#logging_level ⇒ String?
readonly
Specifies the logging level for this route:
INFO,ERROR, orOFF. -
#throttling_burst_limit ⇒ Numeric?
readonly
Specifies the throttling burst limit.
-
#throttling_rate_limit ⇒ Numeric?
readonly
Specifies the throttling rate limit.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_trace_enabled: nil, detailed_metrics_enabled: nil, logging_level: nil, throttling_burst_limit: nil, throttling_rate_limit: nil) ⇒ RouteSettingsProperty
constructor
A new instance of RouteSettingsProperty.
- #to_jsii ⇒ Object
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.
745 746 747 748 749 750 751 752 753 754 755 756 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 745 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_enabled ⇒ Boolean, ... (readonly)
Specifies whether ( true ) or not ( false ) data trace logging is enabled for this route.
This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.
764 765 766 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 764 def data_trace_enabled @data_trace_enabled end |
#detailed_metrics_enabled ⇒ Boolean, ... (readonly)
Specifies whether detailed metrics are enabled.
769 770 771 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 769 def detailed_metrics_enabled @detailed_metrics_enabled end |
#logging_level ⇒ String? (readonly)
Specifies the logging level for this route: INFO , ERROR , or OFF .
This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.
776 777 778 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 776 def logging_level @logging_level end |
#throttling_burst_limit ⇒ Numeric? (readonly)
Specifies the throttling burst limit.
781 782 783 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 781 def throttling_burst_limit @throttling_burst_limit end |
#throttling_rate_limit ⇒ Numeric? (readonly)
Specifies the throttling rate limit.
786 787 788 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 786 def throttling_rate_limit @throttling_rate_limit end |
Class Method Details
.jsii_properties ⇒ Object
788 789 790 791 792 793 794 795 796 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 788 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_jsii ⇒ Object
798 799 800 801 802 803 804 805 806 807 808 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 798 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 |