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.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 # 
Data StartImport Source # 

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 # 
Show StartImport Source # 
Generic StartImport Source # 

Associated Types

type Rep StartImport :: * -> * #

Hashable StartImport Source # 
ToJSON StartImport Source # 
NFData StartImport Source # 

Methods

rnf :: StartImport -> () #

AWSRequest StartImport Source # 
ToHeaders StartImport Source # 

Methods

toHeaders :: StartImport -> [Header] #

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

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

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 # 
Show StartImportResponse Source # 
Generic StartImportResponse Source # 
NFData StartImportResponse Source # 

Methods

rnf :: StartImportResponse -> () #

type Rep StartImportResponse Source # 
type Rep StartImportResponse = D1 * (MetaData "StartImportResponse" "Network.AWS.LexModels.StartImport" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "StartImportResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_sirsResourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ResourceType))) ((:*:) * (S1 * (MetaSel (Just Symbol "_sirsImportId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_sirsCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_sirsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_sirsMergeStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe MergeStrategy)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_sirsImportStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ImportStatus))) (S1 * (MetaSel (Just Symbol "_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.