Struct aws_sdk_lexmodelsv2::input::CreateSlotTypeInput
source · #[non_exhaustive]pub struct CreateSlotTypeInput { /* private fields */ }Implementations§
source§impl CreateSlotTypeInput
impl CreateSlotTypeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSlotType, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSlotType, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateSlotType>
Examples found in repository?
2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateSlotType,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateSlotTypeError>,
> {
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::CreateSlotTypeOutput,
aws_smithy_http::result::SdkError<crate::error::CreateSlotTypeError>,
> {
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 CreateSlotTypeInput.
source§impl CreateSlotTypeInput
impl CreateSlotTypeInput
sourcepub fn slot_type_name(&self) -> Option<&str>
pub fn slot_type_name(&self) -> Option<&str>
The name for the slot. A slot type name must be unique within the account.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the slot type. Use the description to help identify the slot type in lists.
sourcepub fn slot_type_values(&self) -> Option<&[SlotTypeValue]>
pub fn slot_type_values(&self) -> Option<&[SlotTypeValue]>
A list of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.
sourcepub fn value_selection_setting(&self) -> Option<&SlotValueSelectionSetting>
pub fn value_selection_setting(&self) -> Option<&SlotValueSelectionSetting>
Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
-
OriginalValue- Returns the value entered by the user, if the user value is similar to the slot value. -
TopResolution- If there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null.
If you don't specify the valueSelectionSetting parameter, the default is OriginalValue.
sourcepub fn parent_slot_type_signature(&self) -> Option<&str>
pub fn parent_slot_type_signature(&self) -> Option<&str>
The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type.
Only AMAZON.AlphaNumeric is supported.
sourcepub fn bot_version(&self) -> Option<&str>
pub fn bot_version(&self) -> Option<&str>
The identifier of the bot version associated with this slot type.
sourcepub fn locale_id(&self) -> Option<&str>
pub fn locale_id(&self) -> Option<&str>
The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see Supported languages.
sourcepub fn external_source_setting(&self) -> Option<&ExternalSourceSetting>
pub fn external_source_setting(&self) -> Option<&ExternalSourceSetting>
Sets the type of external information used to create the slot type.
sourcepub fn composite_slot_type_setting(&self) -> Option<&CompositeSlotTypeSetting>
pub fn composite_slot_type_setting(&self) -> Option<&CompositeSlotTypeSetting>
Specifications for a composite slot type.
Trait Implementations§
source§impl Clone for CreateSlotTypeInput
impl Clone for CreateSlotTypeInput
source§fn clone(&self) -> CreateSlotTypeInput
fn clone(&self) -> CreateSlotTypeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more