Copyright | (c) 2013-2021 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 |
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' {
- parentSlotTypeSignature :: Maybe Text
- slotTypeConfigurations :: Maybe [SlotTypeConfiguration]
- checksum :: Maybe Text
- valueSelectionStrategy :: Maybe SlotValueSelectionStrategy
- createdDate :: Maybe POSIX
- name :: Maybe Text
- version :: Maybe Text
- lastUpdatedDate :: Maybe POSIX
- description :: Maybe Text
- enumerationValues :: Maybe [EnumerationValue]
- httpStatus :: Int
- newCreateSlotTypeVersionResponse :: Int -> CreateSlotTypeVersionResponse
- createSlotTypeVersionResponse_parentSlotTypeSignature :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- createSlotTypeVersionResponse_slotTypeConfigurations :: Lens' CreateSlotTypeVersionResponse (Maybe [SlotTypeConfiguration])
- createSlotTypeVersionResponse_checksum :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- createSlotTypeVersionResponse_valueSelectionStrategy :: Lens' CreateSlotTypeVersionResponse (Maybe SlotValueSelectionStrategy)
- createSlotTypeVersionResponse_createdDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime)
- createSlotTypeVersionResponse_name :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- createSlotTypeVersionResponse_version :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- createSlotTypeVersionResponse_lastUpdatedDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime)
- createSlotTypeVersionResponse_description :: Lens' CreateSlotTypeVersionResponse (Maybe Text)
- createSlotTypeVersionResponse_enumerationValues :: Lens' CreateSlotTypeVersionResponse (Maybe [EnumerationValue])
- createSlotTypeVersionResponse_httpStatus :: Lens' CreateSlotTypeVersionResponse Int
Creating a Request
data CreateSlotTypeVersion Source #
See: newCreateSlotTypeVersion
smart constructor.
CreateSlotTypeVersion' | |
|
Instances
newCreateSlotTypeVersion Source #
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:
$sel:checksum: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.
$sel:name: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.
CreateSlotTypeVersionResponse' | |
|
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:
$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:checksum:CreateSlotTypeVersion'
, createSlotTypeVersionResponse_checksum
- Checksum of the $LATEST
version of the 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.
$sel:createdDate:CreateSlotTypeVersionResponse'
, createSlotTypeVersionResponse_createdDate
- The date that the slot type was created.
$sel:name:CreateSlotTypeVersion'
, createSlotTypeVersionResponse_name
- The name of the slot type.
$sel:version:CreateSlotTypeVersionResponse'
, createSlotTypeVersionResponse_version
- The version assigned to the new slot type version.
$sel:lastUpdatedDate: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.
$sel:description: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.
$sel:httpStatus:CreateSlotTypeVersionResponse'
, createSlotTypeVersionResponse_httpStatus
- The response's http status code.
Response Lenses
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_checksum :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
Checksum of the $LATEST
version of the 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_createdDate :: Lens' CreateSlotTypeVersionResponse (Maybe UTCTime) Source #
The date that the slot type was created.
createSlotTypeVersionResponse_name :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
The name of the slot type.
createSlotTypeVersionResponse_version :: Lens' CreateSlotTypeVersionResponse (Maybe Text) Source #
The version assigned to the new slot type version.
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_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_httpStatus :: Lens' CreateSlotTypeVersionResponse Int Source #
The response's http status code.