| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.LexModels.CreateSlotTypeVersion
Description
Creates a new version of a slot type based on the $LATEST version of
 the specified slot type. If the $LATEST version of this resource has
 not changed since the last version that you created, Amazon Lex doesn't
 create a new version. It returns the last version that you created.
You can update only the $LATEST version of a slot type. You can't
 update the numbered versions that you create with the
 CreateSlotTypeVersion operation.
When you create a version of a slot type, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions for the lex:CreateSlotTypeVersion
 action.
Synopsis
- data CreateSlotTypeVersion = CreateSlotTypeVersion' {}
 - newCreateSlotTypeVersion :: Text -> CreateSlotTypeVersion
 - createSlotTypeVersion_checksum :: Lens' CreateSlotTypeVersion (Maybe Text)
 - createSlotTypeVersion_name :: Lens' CreateSlotTypeVersion Text
 - data CreateSlotTypeVersionResponse = CreateSlotTypeVersionResponse' {
- checksum :: Maybe Text
 - createdDate :: Maybe POSIX
 - description :: Maybe Text
 - enumerationValues :: Maybe [EnumerationValue]
 - lastUpdatedDate :: Maybe POSIX
 - name :: Maybe Text
 - parentSlotTypeSignature :: Maybe Text
 - slotTypeConfigurations :: Maybe [SlotTypeConfiguration]
 - valueSelectionStrategy :: Maybe SlotValueSelectionStrategy
 - version :: Maybe Text
 - httpStatus :: Int
 
 - newCreateSlotTypeVersionResponse :: Int -> CreateSlotTypeVersionResponse
 - createSlotTypeVersionResponse_checksum :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
 - createSlotTypeVersionResponse_createdDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime)
 - createSlotTypeVersionResponse_description :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
 - createSlotTypeVersionResponse_enumerationValues :: Lens' CreateSlotTypeVersionResponse (Maybe [EnumerationValue])
 - createSlotTypeVersionResponse_lastUpdatedDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime)
 - createSlotTypeVersionResponse_name :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
 - createSlotTypeVersionResponse_parentSlotTypeSignature :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
 - createSlotTypeVersionResponse_slotTypeConfigurations :: Lens' CreateSlotTypeVersionResponse (Maybe [SlotTypeConfiguration])
 - createSlotTypeVersionResponse_valueSelectionStrategy :: Lens' CreateSlotTypeVersionResponse (Maybe SlotValueSelectionStrategy)
 - createSlotTypeVersionResponse_version :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
 - createSlotTypeVersionResponse_httpStatus :: Lens' CreateSlotTypeVersionResponse Int
 
Creating a Request
data CreateSlotTypeVersion Source #
See: newCreateSlotTypeVersion smart constructor.
Constructors
| CreateSlotTypeVersion' | |
Fields 
  | |
Instances
newCreateSlotTypeVersion Source #
Arguments
| :: Text | |
| -> CreateSlotTypeVersion | 
Create a value of CreateSlotTypeVersion with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateSlotTypeVersion, createSlotTypeVersion_checksum - Checksum for the $LATEST version of the slot type that you want to
 publish. If you specify a checksum and the $LATEST version of the slot
 type has a different checksum, Amazon Lex returns a
 PreconditionFailedException exception and doesn't publish the new
 version. If you don't specify a checksum, Amazon Lex publishes the
 $LATEST version.
CreateSlotTypeVersion, createSlotTypeVersion_name - The name of the slot type that you want to create a new version for. The
 name is case sensitive.
Request Lenses
createSlotTypeVersion_checksum :: Lens' CreateSlotTypeVersion (Maybe Text) Source #
Checksum for the $LATEST version of the slot type that you want to
 publish. If you specify a checksum and the $LATEST version of the slot
 type has a different checksum, Amazon Lex returns a
 PreconditionFailedException exception and doesn't publish the new
 version. If you don't specify a checksum, Amazon Lex publishes the
 $LATEST version.
createSlotTypeVersion_name :: Lens' CreateSlotTypeVersion Text Source #
The name of the slot type that you want to create a new version for. The name is case sensitive.
Destructuring the Response
data CreateSlotTypeVersionResponse Source #
See: newCreateSlotTypeVersionResponse smart constructor.
Constructors
| CreateSlotTypeVersionResponse' | |
Fields 
  | |
Instances
newCreateSlotTypeVersionResponse Source #
Create a value of CreateSlotTypeVersionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateSlotTypeVersion, createSlotTypeVersionResponse_checksum - Checksum of the $LATEST version of the slot type.
CreateSlotTypeVersionResponse, createSlotTypeVersionResponse_createdDate - The date that the slot type was created.
CreateSlotTypeVersionResponse, createSlotTypeVersionResponse_description - A description of the slot type.
$sel:enumerationValues:CreateSlotTypeVersionResponse', createSlotTypeVersionResponse_enumerationValues - A list of EnumerationValue objects that defines the values that the
 slot type can take.
CreateSlotTypeVersionResponse, createSlotTypeVersionResponse_lastUpdatedDate - The date that the slot type was updated. When you create a resource, the
 creation date and last update date are the same.
CreateSlotTypeVersion, createSlotTypeVersionResponse_name - The name of the slot type.
$sel:parentSlotTypeSignature:CreateSlotTypeVersionResponse', createSlotTypeVersionResponse_parentSlotTypeSignature - The built-in slot type used a the parent of the slot type.
$sel:slotTypeConfigurations:CreateSlotTypeVersionResponse', createSlotTypeVersionResponse_slotTypeConfigurations - Configuration information that extends the parent built-in slot type.
$sel:valueSelectionStrategy:CreateSlotTypeVersionResponse', createSlotTypeVersionResponse_valueSelectionStrategy - The strategy that Amazon Lex uses to determine the value of the slot.
 For more information, see PutSlotType.
CreateSlotTypeVersionResponse, createSlotTypeVersionResponse_version - The version assigned to the new slot type version.
$sel:httpStatus:CreateSlotTypeVersionResponse', createSlotTypeVersionResponse_httpStatus - The response's http status code.
Response Lenses
createSlotTypeVersionResponse_checksum :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
Checksum of the $LATEST version of the slot type.
createSlotTypeVersionResponse_createdDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime) Source #
The date that the slot type was created.
createSlotTypeVersionResponse_description :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
A description of the slot type.
createSlotTypeVersionResponse_enumerationValues :: Lens' CreateSlotTypeVersionResponse (Maybe [EnumerationValue]) Source #
A list of EnumerationValue objects that defines the values that the
 slot type can take.
createSlotTypeVersionResponse_lastUpdatedDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime) Source #
The date that the slot type was updated. When you create a resource, the creation date and last update date are the same.
createSlotTypeVersionResponse_name :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
The name of the slot type.
createSlotTypeVersionResponse_parentSlotTypeSignature :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
The built-in slot type used a the parent of the slot type.
createSlotTypeVersionResponse_slotTypeConfigurations :: Lens' CreateSlotTypeVersionResponse (Maybe [SlotTypeConfiguration]) Source #
Configuration information that extends the parent built-in slot type.
createSlotTypeVersionResponse_valueSelectionStrategy :: Lens' CreateSlotTypeVersionResponse (Maybe SlotValueSelectionStrategy) Source #
The strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.
createSlotTypeVersionResponse_version :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
The version assigned to the new slot type version.
createSlotTypeVersionResponse_httpStatus :: Lens' CreateSlotTypeVersionResponse Int Source #
The response's http status code.