Struct aws_sdk_lexmodelsv2::input::UpdateBotInput
source · #[non_exhaustive]pub struct UpdateBotInput { /* private fields */ }Implementations§
source§impl UpdateBotInput
impl UpdateBotInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateBot, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateBot, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateBot>
Examples found in repository?
8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateBot,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateBotError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateBotOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateBotError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateBotInput.
source§impl UpdateBotInput
impl UpdateBotInput
sourcepub fn bot_id(&self) -> Option<&str>
pub fn bot_id(&self) -> Option<&str>
The unique identifier of the bot to update. This identifier is returned by the CreateBot operation.
sourcepub fn bot_name(&self) -> Option<&str>
pub fn bot_name(&self) -> Option<&str>
The new name of the bot. The name must be unique in the account that creates the bot.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the bot.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot.
sourcepub fn data_privacy(&self) -> Option<&DataPrivacy>
pub fn data_privacy(&self) -> Option<&DataPrivacy>
Provides information on additional privacy protections Amazon Lex should use with the bot's data.
sourcepub fn idle_session_ttl_in_seconds(&self) -> Option<i32>
pub fn idle_session_ttl_in_seconds(&self) -> Option<i32>
The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.
You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
Trait Implementations§
source§impl Clone for UpdateBotInput
impl Clone for UpdateBotInput
source§fn clone(&self) -> UpdateBotInput
fn clone(&self) -> UpdateBotInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more