Struct aws_sdk_lexmodelsv2::client::fluent_builders::CreateBotVersion [−][src]
pub struct CreateBotVersion<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to CreateBotVersion.
Creates a new version of the bot based on the DRAFT version. If the DRAFT version of this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version, it returns the last created version.
When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.
Implementations
impl<C, M, R> CreateBotVersion<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateBotVersion<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateBotVersionOutput, SdkError<CreateBotVersionError>> where
R::Policy: SmithyRetryPolicy<CreateBotVersionInputOperationOutputAlias, CreateBotVersionOutput, CreateBotVersionError, CreateBotVersionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateBotVersionOutput, SdkError<CreateBotVersionError>> where
R::Policy: SmithyRetryPolicy<CreateBotVersionInputOperationOutputAlias, CreateBotVersionOutput, CreateBotVersionError, CreateBotVersionInputOperationRetryAlias>,
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, which can be set when configuring the client.
The identifier of the bot to create the version for.
The identifier of the bot to create the version for.
A description of the version. Use the description to help identify the version in lists.
A description of the version. Use the description to help identify the version in lists.
pub fn bot_version_locale_specification(
self,
k: impl Into<String>,
v: BotVersionLocaleDetails
) -> Self
pub fn bot_version_locale_specification(
self,
k: impl Into<String>,
v: BotVersionLocaleDetails
) -> Self
Adds a key-value pair to botVersionLocaleSpecification.
To override the contents of this collection use set_bot_version_locale_specification.
Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
pub fn set_bot_version_locale_specification(
self,
input: Option<HashMap<String, BotVersionLocaleDetails>>
) -> Self
pub fn set_bot_version_locale_specification(
self,
input: Option<HashMap<String, BotVersionLocaleDetails>>
) -> Self
Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateBotVersion<C, M, R>
impl<C, M, R> Send for CreateBotVersion<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateBotVersion<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateBotVersion<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateBotVersion<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
