Struct aws_sdk_chimesdkidentity::types::InvokedBy
source · #[non_exhaustive]pub struct InvokedBy {
pub standard_messages: StandardMessages,
pub targeted_messages: TargetedMessages,
}Expand description
Specifies the type of message that triggers a bot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.standard_messages: StandardMessagesSets standard messages as the bot trigger. For standard messages:
-
ALL: The bot processes all standard messages. -
AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member. -
MENTIONS: The bot processes all standard messages that have a message attribute withCHIME.mentionsand a value of the bot ARN. -
NONE: The bot processes no standard messages.
targeted_messages: TargetedMessagesSets targeted messages as the bot trigger. For targeted messages:
-
ALL: The bot processes allTargetedMessagessent to it. The bot then responds with a targeted message back to the sender. -
NONE: The bot processes no targeted messages.
Implementations§
source§impl InvokedBy
impl InvokedBy
sourcepub fn standard_messages(&self) -> &StandardMessages
pub fn standard_messages(&self) -> &StandardMessages
Sets standard messages as the bot trigger. For standard messages:
-
ALL: The bot processes all standard messages. -
AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member. -
MENTIONS: The bot processes all standard messages that have a message attribute withCHIME.mentionsand a value of the bot ARN. -
NONE: The bot processes no standard messages.
sourcepub fn targeted_messages(&self) -> &TargetedMessages
pub fn targeted_messages(&self) -> &TargetedMessages
Sets targeted messages as the bot trigger. For targeted messages:
-
ALL: The bot processes allTargetedMessagessent to it. The bot then responds with a targeted message back to the sender. -
NONE: The bot processes no targeted messages.