Class: AWSCDK::IVSChat::CfnRoom::MessageReviewHandlerProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IVSChat::CfnRoom::MessageReviewHandlerProperty
- Defined in:
- ivs_chat/cfn_room.rb
Overview
The MessageReviewHandler property type specifies configuration information for optional message review.
Instance Attribute Summary collapse
-
#fallback_result ⇒ String?
readonly
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?
readonly
Identifier of the message review handler.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(fallback_result: nil, uri: nil) ⇒ MessageReviewHandlerProperty
constructor
A new instance of MessageReviewHandlerProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(fallback_result: nil, uri: nil) ⇒ MessageReviewHandlerProperty
Returns a new instance of MessageReviewHandlerProperty.
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_result ⇒ String? (readonly)
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 |
#uri ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |