Struct aws_sdk_lexmodelsv2::input::CreateSlotTypeInput
source · [−]#[non_exhaustive]pub struct CreateSlotTypeInput {
pub slot_type_name: Option<String>,
pub description: Option<String>,
pub slot_type_values: Option<Vec<SlotTypeValue>>,
pub value_selection_setting: Option<SlotValueSelectionSetting>,
pub parent_slot_type_signature: Option<String>,
pub bot_id: Option<String>,
pub bot_version: Option<String>,
pub locale_id: Option<String>,
pub external_source_setting: Option<ExternalSourceSetting>,
}Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.slot_type_name: Option<String>The name for the slot. A slot type name must be unique within the account.
description: Option<String>A description of the slot type. Use the description to help identify the slot type in lists.
slot_type_values: Option<Vec<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.
value_selection_setting: 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.
parent_slot_type_signature: Option<String>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.
bot_id: Option<String>The identifier of the bot associated with this slot type.
bot_version: Option<String>The identifier of the bot version associated with this slot type.
locale_id: Option<String>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.
external_source_setting: Option<ExternalSourceSetting>Sets the type of external information used to create the slot type.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSlotType, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSlotType, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateSlotType>
Creates a new builder-style object to manufacture CreateSlotTypeInput
The name for the slot. A slot type name must be unique within the account.
A description of the slot type. Use the description to help identify the slot type in lists.
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.
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.
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.
The identifier of the bot version associated with this slot type.
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.
Sets the type of external information used to create the slot type.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for CreateSlotTypeInput
impl Send for CreateSlotTypeInput
impl Sync for CreateSlotTypeInput
impl Unpin for CreateSlotTypeInput
impl UnwindSafe for CreateSlotTypeInput
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