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

Amazonka.LexModels.GetExport

Description

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

Synopsis

Creating a Request

data GetExport Source #

See: newGetExport smart constructor.

Constructors

GetExport' 

Fields

Instances

Instances details
Eq GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Read GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Show GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Generic GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Associated Types

type Rep GetExport :: Type -> Type #

NFData GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Methods

rnf :: GetExport -> () #

Hashable GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

AWSRequest GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Associated Types

type AWSResponse GetExport #

ToHeaders GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Methods

toHeaders :: GetExport -> [Header] #

ToPath GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

ToQuery GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

type Rep GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

type Rep GetExport = D1 ('MetaData "GetExport" "Amazonka.LexModels.GetExport" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetExport'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceType) :*: S1 ('MetaSel ('Just "exportType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ExportType))))
type AWSResponse GetExport Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

newGetExport Source #

Create a value of GetExport with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:name:GetExport', getExport_name - The name of the bot to export.

$sel:version:GetExport', getExport_version - The version of the bot to export.

$sel:resourceType:GetExport', getExport_resourceType - The type of resource to export.

$sel:exportType:GetExport', getExport_exportType - The format of the exported data.

Request Lenses

getExport_name :: Lens' GetExport Text Source #

The name of the bot to export.

getExport_version :: Lens' GetExport Text Source #

The version of the bot to export.

getExport_resourceType :: Lens' GetExport ResourceType Source #

The type of resource to export.

getExport_exportType :: Lens' GetExport ExportType Source #

The format of the exported data.

Destructuring the Response

data GetExportResponse Source #

See: newGetExportResponse smart constructor.

Constructors

GetExportResponse' 

Fields

  • failureReason :: Maybe Text

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

  • resourceType :: Maybe ResourceType

    The type of the exported resource.

  • exportStatus :: Maybe ExportStatus

    The status of the export.

    • IN_PROGRESS - The export is in progress.
    • READY - The export is complete.
    • FAILED - The export could not be completed.
  • url :: Maybe Text

    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.

  • exportType :: Maybe ExportType

    The format of the exported data.

  • name :: Maybe Text

    The name of the bot being exported.

  • version :: Maybe Text

    The version of the bot being exported.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetExportResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Read GetExportResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Show GetExportResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Generic GetExportResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Associated Types

type Rep GetExportResponse :: Type -> Type #

NFData GetExportResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

Methods

rnf :: GetExportResponse -> () #

type Rep GetExportResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetExport

newGetExportResponse Source #

Create a value of GetExportResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:failureReason:GetExportResponse', getExportResponse_failureReason - If status is FAILED, Amazon Lex provides the reason that it failed to export the resource.

$sel:resourceType:GetExport', getExportResponse_resourceType - The type of the exported resource.

$sel:exportStatus:GetExportResponse', getExportResponse_exportStatus - The status of the export.

  • IN_PROGRESS - The export is in progress.
  • READY - The export is complete.
  • FAILED - The export could not be completed.

$sel:url:GetExportResponse', getExportResponse_url - 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.

$sel:exportType:GetExport', getExportResponse_exportType - The format of the exported data.

$sel:name:GetExport', getExportResponse_name - The name of the bot being exported.

$sel:version:GetExport', getExportResponse_version - The version of the bot being exported.

$sel:httpStatus:GetExportResponse', getExportResponse_httpStatus - The response's http status code.

Response Lenses

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

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

getExportResponse_exportStatus :: 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.

getExportResponse_url :: 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.

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

The name of the bot being exported.

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

The version of the bot being exported.

getExportResponse_httpStatus :: Lens' GetExportResponse Int Source #

The response's http status code.