Skip to main content

ChatbotState

Struct ChatbotState 

Source
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

Source

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>

Source

pub fn describe_slack_channel_configurations( &self, filter_arn: Option<&str>, ) -> Vec<&SlackConfig>

Source

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>

Source

pub fn delete_slack_channel_configuration( &mut self, chat_configuration_arn: &str, ) -> Result<(), ChatbotError>

Source

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>

Source

pub fn describe_chime_webhook_configurations( &self, filter_arn: Option<&str>, ) -> Vec<&ChimeConfig>

Source

pub fn delete_chime_webhook_configuration( &mut self, chat_configuration_arn: &str, ) -> Result<(), ChatbotError>

Source

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>

Source

pub fn list_microsoft_teams_channel_configurations( &self, filter_arn: Option<&str>, ) -> Vec<&TeamsConfig>

Source

pub fn delete_microsoft_teams_channel_configuration( &mut self, chat_configuration_arn: &str, ) -> Result<(), ChatbotError>

Source

pub fn get_microsoft_teams_channel_configuration( &self, chat_configuration_arn: &str, ) -> Result<&TeamsConfig, ChatbotError>

Source

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>

Source

pub fn list_tags_for_resource( &self, resource_arn: &str, ) -> Result<HashMap<String, String>, ChatbotError>

Source

pub fn tag_resource( &mut self, resource_arn: &str, tags: HashMap<String, String>, ) -> Result<(), ChatbotError>

Source

pub fn untag_resource( &mut self, resource_arn: &str, tag_keys: &[String], ) -> Result<(), ChatbotError>

Trait Implementations§

Source§

impl Debug for ChatbotState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ChatbotState

Source§

fn default() -> ChatbotState

Returns the “default value” for a type. Read more
Source§

impl From<&ChatbotState> for ChatbotStateView

Source§

fn from(state: &ChatbotState) -> Self

Converts to this type from the input type.
Source§

impl From<ChatbotStateView> for ChatbotState

Source§

fn from(view: ChatbotStateView) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more