Class: AWSCDK::IVSChat::CfnRoom::MessageReviewHandlerProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ivs_chat/cfn_room.rb

Overview

The MessageReviewHandler property type specifies configuration information for optional message review.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fallback_result: nil, uri: nil) ⇒ MessageReviewHandlerProperty

Returns a new instance of MessageReviewHandlerProperty.

Parameters:

  • fallback_result (String, nil) (defaults to: nil)

    Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out.

  • uri (String, nil) (defaults to: nil)

    Identifier of the message review handler.



598
599
600
601
602
603
# File 'ivs_chat/cfn_room.rb', line 598

def initialize(fallback_result: nil, uri: nil)
  @fallback_result = fallback_result
  Jsii::Type.check_type(@fallback_result, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fallbackResult") unless @fallback_result.nil?
  @uri = uri
  Jsii::Type.check_type(@uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "uri") unless @uri.nil?
end

Instance Attribute Details

#fallback_resultString? (readonly)

Note:

Default: - "ALLOW"

Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out.

(For the timeout period, see Service Quotas .) If allowed, the message is delivered with returned content to all users connected to the room. If denied, the message is not delivered to any user.

Default : ALLOW



614
615
616
# File 'ivs_chat/cfn_room.rb', line 614

def fallback_result
  @fallback_result
end

#uriString? (readonly)

Identifier of the message review handler.

Currently this must be an ARN of a lambda function.



621
622
623
# File 'ivs_chat/cfn_room.rb', line 621

def uri
  @uri
end

Class Method Details

.jsii_propertiesObject



623
624
625
626
627
628
# File 'ivs_chat/cfn_room.rb', line 623

def self.jsii_properties
  {
    :fallback_result => "fallbackResult",
    :uri => "uri",
  }
end

Instance Method Details

#to_jsiiObject



630
631
632
633
634
635
636
637
# File 'ivs_chat/cfn_room.rb', line 630

def to_jsii
  result = {}
  result.merge!({
    "fallbackResult" => @fallback_result,
    "uri" => @uri,
  })
  result.compact
end