Class: AWSCDK::RTBFabric::CfnOutboundExternalLink::ResponderErrorMaskingForHttpCodeProperty

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

Overview

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)
  • http_code (String)
  • logging_types (Array<String>)
  • response_logging_percentage (Numeric, nil) (defaults to: nil)


718
719
720
721
722
723
724
725
726
727
# File 'rtb_fabric/cfn_outbound_external_link.rb', line 718

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)



731
732
733
# File 'rtb_fabric/cfn_outbound_external_link.rb', line 731

def action
  @action
end

#http_codeString (readonly)



734
735
736
# File 'rtb_fabric/cfn_outbound_external_link.rb', line 734

def http_code
  @http_code
end

#logging_typesArray<String> (readonly)



737
738
739
# File 'rtb_fabric/cfn_outbound_external_link.rb', line 737

def logging_types
  @logging_types
end

#response_logging_percentageNumeric? (readonly)



740
741
742
# File 'rtb_fabric/cfn_outbound_external_link.rb', line 740

def response_logging_percentage
  @response_logging_percentage
end

Class Method Details

.jsii_propertiesObject



742
743
744
745
746
747
748
749
# File 'rtb_fabric/cfn_outbound_external_link.rb', line 742

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

Instance Method Details

#to_jsiiObject



751
752
753
754
755
756
757
758
759
760
# File 'rtb_fabric/cfn_outbound_external_link.rb', line 751

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