aws_sdk_lexmodelbuilding/client/put_bot_alias.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 [`PutBotAlias`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::set_name):<br>required: **true**<br><p>The name of the alias. The name is <i>not</i> case sensitive.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::set_description):<br>required: **false**<br><p>A description of the alias.</p><br>
8 /// - [`bot_version(impl Into<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::bot_version) / [`set_bot_version(Option<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::set_bot_version):<br>required: **true**<br><p>The version of the bot.</p><br>
9 /// - [`bot_name(impl Into<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::bot_name) / [`set_bot_name(Option<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::set_bot_name):<br>required: **true**<br><p>The name of the bot.</p><br>
10 /// - [`checksum(impl Into<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::checksum) / [`set_checksum(Option<String>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::set_checksum):<br>required: **false**<br><p>Identifies a specific revision of the <code>$LATEST</code> version.</p> <p>When you create a new bot alias, leave the <code>checksum</code> field blank. If you specify a checksum you get a <code>BadRequestException</code> exception.</p> <p>When you want to update a bot alias, set the <code>checksum</code> field to the checksum of the most recent revision of the <code>$LATEST</code> version. If you don't specify the <code> checksum</code> field, or if the checksum does not match the <code>$LATEST</code> version, you get a <code>PreconditionFailedException</code> exception.</p><br>
11 /// - [`conversation_logs(ConversationLogsRequest)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::conversation_logs) / [`set_conversation_logs(Option<ConversationLogsRequest>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::set_conversation_logs):<br>required: **false**<br><p>Settings for conversation logs for the alias.</p><br>
12 /// - [`tags(Tag)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags to add to the bot alias. You can only add tags when you create an alias, you can't use the <code>PutBotAlias</code> operation to update the tags on a bot alias. To update tags, use the <code>TagResource</code> operation.</p><br>
13 /// - On success, responds with [`PutBotAliasOutput`](crate::operation::put_bot_alias::PutBotAliasOutput) with field(s):
14 /// - [`name(Option<String>)`](crate::operation::put_bot_alias::PutBotAliasOutput::name): <p>The name of the alias.</p>
15 /// - [`description(Option<String>)`](crate::operation::put_bot_alias::PutBotAliasOutput::description): <p>A description of the alias.</p>
16 /// - [`bot_version(Option<String>)`](crate::operation::put_bot_alias::PutBotAliasOutput::bot_version): <p>The version of the bot that the alias points to.</p>
17 /// - [`bot_name(Option<String>)`](crate::operation::put_bot_alias::PutBotAliasOutput::bot_name): <p>The name of the bot that the alias points to.</p>
18 /// - [`last_updated_date(Option<DateTime>)`](crate::operation::put_bot_alias::PutBotAliasOutput::last_updated_date): <p>The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.</p>
19 /// - [`created_date(Option<DateTime>)`](crate::operation::put_bot_alias::PutBotAliasOutput::created_date): <p>The date that the bot alias was created.</p>
20 /// - [`checksum(Option<String>)`](crate::operation::put_bot_alias::PutBotAliasOutput::checksum): <p>The checksum for the current version of the alias.</p>
21 /// - [`conversation_logs(Option<ConversationLogsResponse>)`](crate::operation::put_bot_alias::PutBotAliasOutput::conversation_logs): <p>The settings that determine how Amazon Lex uses conversation logs for the alias.</p>
22 /// - [`tags(Option<Vec::<Tag>>)`](crate::operation::put_bot_alias::PutBotAliasOutput::tags): <p>A list of tags associated with a bot.</p>
23 /// - On failure, responds with [`SdkError<PutBotAliasError>`](crate::operation::put_bot_alias::PutBotAliasError)
24 pub fn put_bot_alias(&self) -> crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder {
25 crate::operation::put_bot_alias::builders::PutBotAliasFluentBuilder::new(self.handle.clone())
26 }
27}