Class: AWSCDK::RTBFabric::CfnLink::ResponderErrorMaskingForHttpCodeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rtb_fabric/cfn_link.rb

Overview

Describes the masking for HTTP error codes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, http_code:, logging_types:, response_logging_percentage: nil) ⇒ ResponderErrorMaskingForHttpCodeProperty

Returns a new instance of ResponderErrorMaskingForHttpCodeProperty.

Parameters:

  • action (String)

    The action for the error..

  • http_code (String)

    The HTTP error code.

  • logging_types (Array<String>)

    The error log type.

  • response_logging_percentage (Numeric, nil) (defaults to: nil)

    The percentage of response logging.



1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
# File 'rtb_fabric/cfn_link.rb', line 1199

def initialize(action:, http_code:, logging_types:, response_logging_percentage: nil)
  @action = action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action")
  @http_code = http_code
  Jsii::Type.check_type(@http_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "httpCode")
  @logging_types = logging_types
  Jsii::Type.check_type(@logging_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "loggingTypes")
  @response_logging_percentage = response_logging_percentage
  Jsii::Type.check_type(@response_logging_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "responseLoggingPercentage") unless @response_logging_percentage.nil?
end

Instance Attribute Details

#actionString (readonly)

The action for the error..



1214
1215
1216
# File 'rtb_fabric/cfn_link.rb', line 1214

def action
  @action
end

#http_codeString (readonly)

The HTTP error code.



1219
1220
1221
# File 'rtb_fabric/cfn_link.rb', line 1219

def http_code
  @http_code
end

#logging_typesArray<String> (readonly)

The error log type.



1224
1225
1226
# File 'rtb_fabric/cfn_link.rb', line 1224

def logging_types
  @logging_types
end

#response_logging_percentageNumeric? (readonly)

The percentage of response logging.



1229
1230
1231
# File 'rtb_fabric/cfn_link.rb', line 1229

def response_logging_percentage
  @response_logging_percentage
end

Class Method Details

.jsii_propertiesObject



1231
1232
1233
1234
1235
1236
1237
1238
# File 'rtb_fabric/cfn_link.rb', line 1231

def self.jsii_properties
  {
    :action => "action",
    :http_code => "httpCode",
    :logging_types => "loggingTypes",
    :response_logging_percentage => "responseLoggingPercentage",
  }
end

Instance Method Details

#to_jsiiObject



1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
# File 'rtb_fabric/cfn_link.rb', line 1240

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "httpCode" => @http_code,
    "loggingTypes" => @logging_types,
    "responseLoggingPercentage" => @response_logging_percentage,
  })
  result.compact
end