libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data CreateSlotTypeVersion Source #

See: newCreateSlotTypeVersion smart constructor.

Constructors

CreateSlotTypeVersion' 

Fields

  • checksum :: Maybe Text

    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.

  • name :: Text

    The name of the slot type that you want to create a new version for. The name is case sensitive.

Instances

Instances details
Eq CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Read CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Show CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Generic CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Associated Types

type Rep CreateSlotTypeVersion :: Type -> Type #

NFData CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Methods

rnf :: CreateSlotTypeVersion -> () #

Hashable CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

ToJSON CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

AWSRequest CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Associated Types

type AWSResponse CreateSlotTypeVersion #

ToHeaders CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

ToPath CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

ToQuery CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

type Rep CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

type Rep CreateSlotTypeVersion = D1 ('MetaData "CreateSlotTypeVersion" "Amazonka.LexModels.CreateSlotTypeVersion" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "CreateSlotTypeVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "checksum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateSlotTypeVersion Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

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.

Constructors

CreateSlotTypeVersionResponse' 

Fields

Instances

Instances details
Eq CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Read CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Show CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Generic CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

Associated Types

type Rep CreateSlotTypeVersionResponse :: Type -> Type #

NFData CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

type Rep CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Amazonka.LexModels.CreateSlotTypeVersion

type Rep CreateSlotTypeVersionResponse = D1 ('MetaData "CreateSlotTypeVersionResponse" "Amazonka.LexModels.CreateSlotTypeVersion" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "CreateSlotTypeVersionResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "parentSlotTypeSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "slotTypeConfigurations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SlotTypeConfiguration]))) :*: (S1 ('MetaSel ('Just "checksum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "valueSelectionStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SlotValueSelectionStrategy)) :*: S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastUpdatedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "enumerationValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EnumerationValue])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

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_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_enumerationValues :: Lens' CreateSlotTypeVersionResponse (Maybe [EnumerationValue]) Source #

A list of EnumerationValue objects that defines the values that the slot type can take.