aws_sdk_chatbot/client/create_custom_action.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateCustomAction`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`definition(CustomActionDefinition)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::definition) / [`set_definition(Option<CustomActionDefinition>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::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>
/// - [`alias_name(impl Into<String>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::alias_name) / [`set_alias_name(Option<String>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::set_alias_name):<br>required: **false**<br><p>The name used to invoke this action in a chat channel. For example, <code>@aws run my-alias</code>.</p><br>
/// - [`attachments(CustomActionAttachment)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::attachments) / [`set_attachments(Option<Vec::<CustomActionAttachment>>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::set_attachments):<br>required: **false**<br><p>Defines when this custom action button should be attached to a notification.</p><br>
/// - [`tags(Tag)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::set_tags):<br>required: **false**<br><p>A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.</p> <p>If you do not specify a client token, one is automatically generated by the SDK.</p><br>
/// - [`action_name(impl Into<String>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::action_name) / [`set_action_name(Option<String>)`](crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::set_action_name):<br>required: **true**<br><p>The name of the custom action. This name is included in the Amazon Resource Name (ARN).</p><br>
/// - On success, responds with [`CreateCustomActionOutput`](crate::operation::create_custom_action::CreateCustomActionOutput) with field(s):
/// - [`custom_action_arn(String)`](crate::operation::create_custom_action::CreateCustomActionOutput::custom_action_arn): <p>The fully defined ARN of the custom action.</p>
/// - On failure, responds with [`SdkError<CreateCustomActionError>`](crate::operation::create_custom_action::CreateCustomActionError)
pub fn create_custom_action(&self) -> crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder {
crate::operation::create_custom_action::builders::CreateCustomActionFluentBuilder::new(self.handle.clone())
}
}