pub struct ChatbotState {
pub slack_configs: HashMap<String, SlackConfig>,
pub chime_configs: HashMap<String, ChimeConfig>,
pub teams_configs: HashMap<String, TeamsConfig>,
}Fields§
§slack_configs: HashMap<String, SlackConfig>§chime_configs: HashMap<String, ChimeConfig>§teams_configs: HashMap<String, TeamsConfig>Implementations§
Source§impl ChatbotState
impl ChatbotState
pub fn create_slack_channel_configuration( &mut self, account_id: &str, region: &str, configuration_name: &str, slack_team_id: &str, slack_channel_id: &str, slack_channel_name: Option<String>, iam_role_arn: &str, sns_topic_arns: Vec<String>, logging_level: Option<String>, guardrail_policy_arns: Vec<String>, user_authorization_required: Option<bool>, tags: HashMap<String, String>, ) -> Result<SlackConfig, ChatbotError>
pub fn describe_slack_channel_configurations( &self, filter_arn: Option<&str>, ) -> Vec<&SlackConfig>
pub fn update_slack_channel_configuration( &mut self, chat_configuration_arn: &str, slack_channel_id: &str, slack_channel_name: Option<String>, iam_role_arn: Option<String>, sns_topic_arns: Option<Vec<String>>, logging_level: Option<String>, guardrail_policy_arns: Option<Vec<String>>, user_authorization_required: Option<bool>, ) -> Result<SlackConfig, ChatbotError>
pub fn delete_slack_channel_configuration( &mut self, chat_configuration_arn: &str, ) -> Result<(), ChatbotError>
pub fn create_chime_webhook_configuration( &mut self, account_id: &str, region: &str, configuration_name: &str, webhook_url: &str, webhook_description: &str, iam_role_arn: &str, sns_topic_arns: Vec<String>, logging_level: Option<String>, tags: HashMap<String, String>, ) -> Result<ChimeConfig, ChatbotError>
pub fn describe_chime_webhook_configurations( &self, filter_arn: Option<&str>, ) -> Vec<&ChimeConfig>
pub fn delete_chime_webhook_configuration( &mut self, chat_configuration_arn: &str, ) -> Result<(), ChatbotError>
pub fn create_microsoft_teams_channel_configuration( &mut self, account_id: &str, region: &str, configuration_name: &str, team_id: &str, team_name: Option<String>, tenant_id: &str, channel_id: &str, channel_name: Option<String>, iam_role_arn: &str, sns_topic_arns: Vec<String>, logging_level: Option<String>, guardrail_policy_arns: Vec<String>, user_authorization_required: Option<bool>, tags: HashMap<String, String>, ) -> Result<TeamsConfig, ChatbotError>
pub fn list_microsoft_teams_channel_configurations( &self, filter_arn: Option<&str>, ) -> Vec<&TeamsConfig>
pub fn delete_microsoft_teams_channel_configuration( &mut self, chat_configuration_arn: &str, ) -> Result<(), ChatbotError>
pub fn get_microsoft_teams_channel_configuration( &self, chat_configuration_arn: &str, ) -> Result<&TeamsConfig, ChatbotError>
pub fn update_microsoft_teams_channel_configuration( &mut self, chat_configuration_arn: &str, channel_id: &str, channel_name: Option<String>, iam_role_arn: Option<String>, sns_topic_arns: Option<Vec<String>>, logging_level: Option<String>, guardrail_policy_arns: Option<Vec<String>>, user_authorization_required: Option<bool>, ) -> Result<TeamsConfig, ChatbotError>
pub fn tag_resource( &mut self, resource_arn: &str, tags: HashMap<String, String>, ) -> Result<(), ChatbotError>
pub fn untag_resource( &mut self, resource_arn: &str, tag_keys: &[String], ) -> Result<(), ChatbotError>
Trait Implementations§
Source§impl Debug for ChatbotState
impl Debug for ChatbotState
Source§impl Default for ChatbotState
impl Default for ChatbotState
Source§fn default() -> ChatbotState
fn default() -> ChatbotState
Returns the “default value” for a type. Read more
Source§impl From<&ChatbotState> for ChatbotStateView
impl From<&ChatbotState> for ChatbotStateView
Source§fn from(state: &ChatbotState) -> Self
fn from(state: &ChatbotState) -> Self
Converts to this type from the input type.
Source§impl From<ChatbotStateView> for ChatbotState
impl From<ChatbotStateView> for ChatbotState
Source§fn from(view: ChatbotStateView) -> Self
fn from(view: ChatbotStateView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChatbotState
impl RefUnwindSafe for ChatbotState
impl Send for ChatbotState
impl Sync for ChatbotState
impl Unpin for ChatbotState
impl UnsafeUnpin for ChatbotState
impl UnwindSafe for ChatbotState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.