| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.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.
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.
- createSlotTypeVersion :: Text -> CreateSlotTypeVersion
- data CreateSlotTypeVersion
- cstvChecksum :: Lens' CreateSlotTypeVersion (Maybe Text)
- cstvName :: Lens' CreateSlotTypeVersion Text
- createSlotTypeVersionResponse :: Int -> CreateSlotTypeVersionResponse
- data CreateSlotTypeVersionResponse
- cstvrsChecksum :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- cstvrsValueSelectionStrategy :: Lens' CreateSlotTypeVersionResponse (Maybe SlotValueSelectionStrategy)
- cstvrsCreatedDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime)
- cstvrsName :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- cstvrsVersion :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- cstvrsLastUpdatedDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime)
- cstvrsDescription :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- cstvrsEnumerationValues :: Lens' CreateSlotTypeVersionResponse (Maybe (NonEmpty EnumerationValue))
- cstvrsResponseStatus :: Lens' CreateSlotTypeVersionResponse Int
Creating a Request
createSlotTypeVersion Source #
Arguments
| :: Text | |
| -> CreateSlotTypeVersion |
Creates a value of CreateSlotTypeVersion with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cstvChecksum- Checksum for the> LATESTversion of the slot type that you want to publish. If you specify a checksum and the> LATESTversion of the slot type has a different checksum, Amazon Lex returns aPreconditionFailedExceptionexception and doesn't publish the new version. If you don't specify a checksum, Amazon Lex publishes the> LATESTversion.cstvName- The name of the slot type that you want to create a new version for. The name is case sensitive.
data CreateSlotTypeVersion Source #
See: createSlotTypeVersion smart constructor.
Instances
Request Lenses
cstvChecksum :: 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.
cstvName :: 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
createSlotTypeVersionResponse Source #
Arguments
| :: Int | |
| -> CreateSlotTypeVersionResponse |
Creates a value of CreateSlotTypeVersionResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cstvrsChecksum- Checksum of the> LATESTversion of the slot type.cstvrsValueSelectionStrategy- The strategy that Amazon Lex uses to determine the value of the slot. For more information, seePutSlotType.cstvrsCreatedDate- The date that the slot type was created.cstvrsName- The name of the slot type.cstvrsVersion- The version assigned to the new slot type version.cstvrsLastUpdatedDate- The date that the slot type was updated. When you create a resource, the creation date and last update date are the same.cstvrsDescription- A description of the slot type.cstvrsEnumerationValues- A list ofEnumerationValueobjects that defines the values that the slot type can take.cstvrsResponseStatus- -- | The response status code.
data CreateSlotTypeVersionResponse Source #
See: createSlotTypeVersionResponse smart constructor.
Instances
Response Lenses
cstvrsChecksum :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
Checksum of the > LATEST version of the slot type.
cstvrsValueSelectionStrategy :: Lens' CreateSlotTypeVersionResponse (Maybe SlotValueSelectionStrategy) Source #
The strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType .
cstvrsCreatedDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime) Source #
The date that the slot type was created.
cstvrsName :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
The name of the slot type.
cstvrsVersion :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
The version assigned to the new slot type version.
cstvrsLastUpdatedDate :: 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.
cstvrsDescription :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
A description of the slot type.
cstvrsEnumerationValues :: Lens' CreateSlotTypeVersionResponse (Maybe (NonEmpty EnumerationValue)) Source #
A list of EnumerationValue objects that defines the values that the slot type can take.
cstvrsResponseStatus :: Lens' CreateSlotTypeVersionResponse Int Source #
- - | The response status code.