amazonka-lex-models-1.6.0: 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 # 
Data CreateSlotTypeVersion Source # 

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 # 
Show CreateSlotTypeVersion Source # 
Generic CreateSlotTypeVersion Source # 
Hashable CreateSlotTypeVersion Source # 
ToJSON CreateSlotTypeVersion Source # 
NFData CreateSlotTypeVersion Source # 

Methods

rnf :: CreateSlotTypeVersion -> () #

AWSRequest CreateSlotTypeVersion Source # 
ToHeaders CreateSlotTypeVersion Source # 
ToPath CreateSlotTypeVersion Source # 
ToQuery CreateSlotTypeVersion Source # 
type Rep CreateSlotTypeVersion Source # 
type Rep CreateSlotTypeVersion = D1 * (MetaData "CreateSlotTypeVersion" "Network.AWS.LexModels.CreateSlotTypeVersion" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "CreateSlotTypeVersion'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cstvChecksum") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cstvName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs CreateSlotTypeVersion Source # 

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 # 
Data CreateSlotTypeVersionResponse Source # 

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 # 
Show CreateSlotTypeVersionResponse Source # 
Generic CreateSlotTypeVersionResponse Source # 
NFData CreateSlotTypeVersionResponse Source # 
type Rep CreateSlotTypeVersionResponse Source # 
type Rep CreateSlotTypeVersionResponse = D1 * (MetaData "CreateSlotTypeVersionResponse" "Network.AWS.LexModels.CreateSlotTypeVersion" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "CreateSlotTypeVersionResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cstvrsChecksum") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cstvrsValueSelectionStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe SlotValueSelectionStrategy)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cstvrsCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX))) (S1 * (MetaSel (Just Symbol "_cstvrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cstvrsVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cstvrsLastUpdatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cstvrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cstvrsEnumerationValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (List1 EnumerationValue)))) (S1 * (MetaSel (Just Symbol "_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.