amazonka-lex-models-1.6.1: Amazon Lex Model Building Service SDK.

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

Network.AWS.LexModels.CreateSlotTypeVersion

Contents

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.

Synopsis

Creating a Request

createSlotTypeVersion Source #

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 > 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 - 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
Eq CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Data CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateSlotTypeVersion -> c CreateSlotTypeVersion #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateSlotTypeVersion #

toConstr :: CreateSlotTypeVersion -> Constr #

dataTypeOf :: CreateSlotTypeVersion -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateSlotTypeVersion) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateSlotTypeVersion) #

gmapT :: (forall b. Data b => b -> b) -> CreateSlotTypeVersion -> CreateSlotTypeVersion #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateSlotTypeVersion -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateSlotTypeVersion -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateSlotTypeVersion -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateSlotTypeVersion -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateSlotTypeVersion -> m CreateSlotTypeVersion #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateSlotTypeVersion -> m CreateSlotTypeVersion #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateSlotTypeVersion -> m CreateSlotTypeVersion #

Read CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Show CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Generic CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Associated Types

type Rep CreateSlotTypeVersion :: Type -> Type #

Hashable CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

ToJSON CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

AWSRequest CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Associated Types

type Rs CreateSlotTypeVersion :: Type #

ToHeaders CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

ToPath CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

ToQuery CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

NFData CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Methods

rnf :: CreateSlotTypeVersion -> () #

type Rep CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

type Rep CreateSlotTypeVersion = D1 (MetaData "CreateSlotTypeVersion" "Network.AWS.LexModels.CreateSlotTypeVersion" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "CreateSlotTypeVersion'" PrefixI True) (S1 (MetaSel (Just "_cstvChecksum") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cstvName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CreateSlotTypeVersion Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

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 #

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:

data CreateSlotTypeVersionResponse Source #

See: createSlotTypeVersionResponse smart constructor.

Instances
Eq CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Data CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateSlotTypeVersionResponse -> c CreateSlotTypeVersionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateSlotTypeVersionResponse #

toConstr :: CreateSlotTypeVersionResponse -> Constr #

dataTypeOf :: CreateSlotTypeVersionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateSlotTypeVersionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateSlotTypeVersionResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateSlotTypeVersionResponse -> CreateSlotTypeVersionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateSlotTypeVersionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateSlotTypeVersionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateSlotTypeVersionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateSlotTypeVersionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateSlotTypeVersionResponse -> m CreateSlotTypeVersionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateSlotTypeVersionResponse -> m CreateSlotTypeVersionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateSlotTypeVersionResponse -> m CreateSlotTypeVersionResponse #

Read CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Show CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Generic CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

Associated Types

type Rep CreateSlotTypeVersionResponse :: Type -> Type #

NFData CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

type Rep CreateSlotTypeVersionResponse Source # 
Instance details

Defined in Network.AWS.LexModels.CreateSlotTypeVersion

type Rep CreateSlotTypeVersionResponse = D1 (MetaData "CreateSlotTypeVersionResponse" "Network.AWS.LexModels.CreateSlotTypeVersion" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "CreateSlotTypeVersionResponse'" PrefixI True) (((S1 (MetaSel (Just "_cstvrsChecksum") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cstvrsValueSelectionStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SlotValueSelectionStrategy))) :*: (S1 (MetaSel (Just "_cstvrsCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 (MetaSel (Just "_cstvrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_cstvrsVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cstvrsLastUpdatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_cstvrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cstvrsEnumerationValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 EnumerationValue))) :*: S1 (MetaSel (Just "_cstvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

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.

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.

cstvrsEnumerationValues :: Lens' CreateSlotTypeVersionResponse (Maybe (NonEmpty EnumerationValue)) Source #

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