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.StartImport

Contents

Description

Starts a job to import a resource to Amazon Lex.

Synopsis

Creating a Request

startImport Source #

Creates a value of StartImport with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • siPayload - A zip archive in binary format. The archive should contain one file, a JSON file containing the resource to import. The resource should match the type specified in the resourceType field.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.
  • siResourceType - Specifies the type of resource to export. Each resource also exports any resources that it depends on. * A bot exports dependent intents. * An intent exports dependent slot types.
  • siMergeStrategy - Specifies the action that the StartImport operation should take when there is an existing resource with the same name. * FAIL_ON_CONFLICT - The import operation is stopped on the first conflict between a resource in the import file and an existing resource. The name of the resource causing the conflict is in the failureReason field of the response to the GetImport operation. OVERWRITE_LATEST - The import operation proceeds even if there is a conflict with an existing resource. The $LASTEST version of the existing resource is overwritten with the data from the import file.

data StartImport Source #

See: startImport smart constructor.

Instances
Eq StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Data StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Methods

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

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

toConstr :: StartImport -> Constr #

dataTypeOf :: StartImport -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Show StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Generic StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Associated Types

type Rep StartImport :: Type -> Type #

Hashable StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

ToJSON StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

AWSRequest StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Associated Types

type Rs StartImport :: Type #

ToHeaders StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Methods

toHeaders :: StartImport -> [Header] #

ToPath StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

ToQuery StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

NFData StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Methods

rnf :: StartImport -> () #

type Rep StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

type Rep StartImport = D1 (MetaData "StartImport" "Network.AWS.LexModels.StartImport" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "StartImport'" PrefixI True) (S1 (MetaSel (Just "_siPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Base64) :*: (S1 (MetaSel (Just "_siResourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceType) :*: S1 (MetaSel (Just "_siMergeStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MergeStrategy))))
type Rs StartImport Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Request Lenses

siPayload :: Lens' StartImport ByteString Source #

A zip archive in binary format. The archive should contain one file, a JSON file containing the resource to import. The resource should match the type specified in the resourceType field.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.

siResourceType :: Lens' StartImport ResourceType Source #

Specifies the type of resource to export. Each resource also exports any resources that it depends on. * A bot exports dependent intents. * An intent exports dependent slot types.

siMergeStrategy :: Lens' StartImport MergeStrategy Source #

Specifies the action that the StartImport operation should take when there is an existing resource with the same name. * FAIL_ON_CONFLICT - The import operation is stopped on the first conflict between a resource in the import file and an existing resource. The name of the resource causing the conflict is in the failureReason field of the response to the GetImport operation. OVERWRITE_LATEST - The import operation proceeds even if there is a conflict with an existing resource. The $LASTEST version of the existing resource is overwritten with the data from the import file.

Destructuring the Response

startImportResponse Source #

Creates a value of StartImportResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data StartImportResponse Source #

See: startImportResponse smart constructor.

Instances
Eq StartImportResponse Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Data StartImportResponse Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Methods

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

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

toConstr :: StartImportResponse -> Constr #

dataTypeOf :: StartImportResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartImportResponse Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Show StartImportResponse Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Generic StartImportResponse Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Associated Types

type Rep StartImportResponse :: Type -> Type #

NFData StartImportResponse Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

Methods

rnf :: StartImportResponse -> () #

type Rep StartImportResponse Source # 
Instance details

Defined in Network.AWS.LexModels.StartImport

type Rep StartImportResponse = D1 (MetaData "StartImportResponse" "Network.AWS.LexModels.StartImport" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "StartImportResponse'" PrefixI True) ((S1 (MetaSel (Just "_sirsResourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ResourceType)) :*: (S1 (MetaSel (Just "_sirsImportId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sirsCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 (MetaSel (Just "_sirsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sirsMergeStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MergeStrategy))) :*: (S1 (MetaSel (Just "_sirsImportStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ImportStatus)) :*: S1 (MetaSel (Just "_sirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

sirsImportId :: Lens' StartImportResponse (Maybe Text) Source #

The identifier for the specific import job.

sirsCreatedDate :: Lens' StartImportResponse (Maybe UTCTime) Source #

A timestamp for the date and time that the import job was requested.

sirsName :: Lens' StartImportResponse (Maybe Text) Source #

The name given to the import job.

sirsMergeStrategy :: Lens' StartImportResponse (Maybe MergeStrategy) Source #

The action to take when there is a merge conflict.

sirsImportStatus :: Lens' StartImportResponse (Maybe ImportStatus) Source #

The status of the import job. If the status is FAILED , you can get the reason for the failure using the GetImport operation.

sirsResponseStatus :: Lens' StartImportResponse Int Source #

  • - | The response status code.