aws_sdk_chatbot/client/
update_custom_action.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateCustomAction`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`custom_action_arn(impl Into<String>)`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::custom_action_arn) / [`set_custom_action_arn(Option<String>)`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::set_custom_action_arn):<br>required: **true**<br><p>The fully defined Amazon Resource Name (ARN) of the custom action.</p><br>
7    ///   - [`definition(CustomActionDefinition)`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::definition) / [`set_definition(Option<CustomActionDefinition>)`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::set_definition):<br>required: **true**<br><p>The definition of the command to run when invoked as an alias or as an action button.</p><br>
8    ///   - [`alias_name(impl Into<String>)`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::alias_name) / [`set_alias_name(Option<String>)`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::set_alias_name):<br>required: **false**<br><p>The name used to invoke this action in the chat channel. For example, <code>@aws run my-alias</code>.</p><br>
9    ///   - [`attachments(CustomActionAttachment)`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::attachments) / [`set_attachments(Option<Vec::<CustomActionAttachment>>)`](crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::set_attachments):<br>required: **false**<br><p>Defines when this custom action button should be attached to a notification.</p><br>
10    /// - On success, responds with [`UpdateCustomActionOutput`](crate::operation::update_custom_action::UpdateCustomActionOutput) with field(s):
11    ///   - [`custom_action_arn(String)`](crate::operation::update_custom_action::UpdateCustomActionOutput::custom_action_arn): <p>The fully defined ARN of the custom action.</p>
12    /// - On failure, responds with [`SdkError<UpdateCustomActionError>`](crate::operation::update_custom_action::UpdateCustomActionError)
13    pub fn update_custom_action(&self) -> crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder {
14        crate::operation::update_custom_action::builders::UpdateCustomActionFluentBuilder::new(self.handle.clone())
15    }
16}