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

Contents

Description

Exports the contents of a Amazon Lex resource in a specified format.

Synopsis

Creating a Request

getExport Source #

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

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

data GetExport Source #

See: getExport smart constructor.

Instances

Eq GetExport Source # 
Data GetExport Source # 

Methods

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

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

toConstr :: GetExport -> Constr #

dataTypeOf :: GetExport -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetExport Source # 
Show GetExport Source # 
Generic GetExport Source # 

Associated Types

type Rep GetExport :: * -> * #

Hashable GetExport Source # 
NFData GetExport Source # 

Methods

rnf :: GetExport -> () #

AWSRequest GetExport Source # 
ToHeaders GetExport Source # 

Methods

toHeaders :: GetExport -> [Header] #

ToPath GetExport Source # 
ToQuery GetExport Source # 
type Rep GetExport Source # 
type Rep GetExport = D1 * (MetaData "GetExport" "Network.AWS.LexModels.GetExport" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "GetExport'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_geName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_geVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_geResourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ResourceType)) (S1 * (MetaSel (Just Symbol "_geExportType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ExportType)))))
type Rs GetExport Source # 

Request Lenses

geName :: Lens' GetExport Text Source #

The name of the bot to export.

geVersion :: Lens' GetExport Text Source #

The version of the bot to export.

geResourceType :: Lens' GetExport ResourceType Source #

The type of resource to export.

geExportType :: Lens' GetExport ExportType Source #

The format of the exported data.

Destructuring the Response

getExportResponse Source #

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

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

  • gersFailureReason - If status is FAILED , Amazon Lex provides the reason that it failed to export the resource.
  • gersResourceType - The type of the exported resource.
  • gersExportStatus - The status of the export. * IN_PROGRESS - The export is in progress. * READY - The export is complete. * FAILED - The export could not be completed.
  • gersUrl - An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive that contains the exported resource in JSON format. The structure of the archive may change. Your code should not rely on the archive structure.
  • gersExportType - The format of the exported data.
  • gersName - The name of the bot being exported.
  • gersVersion - The version of the bot being exported.
  • gersResponseStatus - -- | The response status code.

data GetExportResponse Source #

See: getExportResponse smart constructor.

Instances

Eq GetExportResponse Source # 
Data GetExportResponse Source # 

Methods

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

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

toConstr :: GetExportResponse -> Constr #

dataTypeOf :: GetExportResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetExportResponse Source # 
Show GetExportResponse Source # 
Generic GetExportResponse Source # 
NFData GetExportResponse Source # 

Methods

rnf :: GetExportResponse -> () #

type Rep GetExportResponse Source # 

Response Lenses

gersFailureReason :: Lens' GetExportResponse (Maybe Text) Source #

If status is FAILED , Amazon Lex provides the reason that it failed to export the resource.

gersResourceType :: Lens' GetExportResponse (Maybe ResourceType) Source #

The type of the exported resource.

gersExportStatus :: Lens' GetExportResponse (Maybe ExportStatus) Source #

The status of the export. * IN_PROGRESS - The export is in progress. * READY - The export is complete. * FAILED - The export could not be completed.

gersUrl :: Lens' GetExportResponse (Maybe Text) Source #

An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive that contains the exported resource in JSON format. The structure of the archive may change. Your code should not rely on the archive structure.

gersExportType :: Lens' GetExportResponse (Maybe ExportType) Source #

The format of the exported data.

gersName :: Lens' GetExportResponse (Maybe Text) Source #

The name of the bot being exported.

gersVersion :: Lens' GetExportResponse (Maybe Text) Source #

The version of the bot being exported.

gersResponseStatus :: Lens' GetExportResponse Int Source #

  • - | The response status code.