amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexV2Models.CreateExport

Description

Creates a zip archive containing the contents of a bot or a bot locale. The archive contains a directory structure that contains JSON files that define the bot.

You can create an archive that contains the complete definition of a bot, or you can specify that the archive contain only the definition of a single bot locale.

For more information about exporting bots, and about the structure of the export archive, see Importing and exporting bots

Synopsis

Creating a Request

data CreateExport Source #

See: newCreateExport smart constructor.

Constructors

CreateExport' 

Fields

Instances

Instances details
ToJSON CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

ToHeaders CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

ToPath CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

ToQuery CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

AWSRequest CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

Associated Types

type AWSResponse CreateExport #

Generic CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

Associated Types

type Rep CreateExport :: Type -> Type #

Show CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

NFData CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

Methods

rnf :: CreateExport -> () #

Eq CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

Hashable CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

type AWSResponse CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

type Rep CreateExport Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

type Rep CreateExport = D1 ('MetaData "CreateExport" "Amazonka.LexV2Models.CreateExport" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "CreateExport'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filePassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "resourceSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ExportResourceSpecification) :*: S1 ('MetaSel ('Just "fileFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ImportExportFileFormat))))

newCreateExport Source #

Create a value of CreateExport 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:filePassword:CreateExport', createExport_filePassword - An password to use to encrypt the exported archive. Using a password is optional, but you should encrypt the archive to protect the data in transit between Amazon Lex and your local computer.

CreateExport, createExport_resourceSpecification - Specifies the type of resource to export, either a bot or a bot locale. You can only specify one type of resource to export.

CreateExport, createExport_fileFormat - The file format of the bot or bot locale definition files.

Request Lenses

createExport_filePassword :: Lens' CreateExport (Maybe Text) Source #

An password to use to encrypt the exported archive. Using a password is optional, but you should encrypt the archive to protect the data in transit between Amazon Lex and your local computer.

createExport_resourceSpecification :: Lens' CreateExport ExportResourceSpecification Source #

Specifies the type of resource to export, either a bot or a bot locale. You can only specify one type of resource to export.

createExport_fileFormat :: Lens' CreateExport ImportExportFileFormat Source #

The file format of the bot or bot locale definition files.

Destructuring the Response

data CreateExportResponse Source #

See: newCreateExportResponse smart constructor.

Constructors

CreateExportResponse' 

Fields

Instances

Instances details
Generic CreateExportResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

Associated Types

type Rep CreateExportResponse :: Type -> Type #

Read CreateExportResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

Show CreateExportResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

NFData CreateExportResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

Methods

rnf :: CreateExportResponse -> () #

Eq CreateExportResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

type Rep CreateExportResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateExport

type Rep CreateExportResponse = D1 ('MetaData "CreateExportResponse" "Amazonka.LexV2Models.CreateExport" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "CreateExportResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "creationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "exportId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "exportStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ExportStatus)))) :*: (S1 ('MetaSel ('Just "fileFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImportExportFileFormat)) :*: (S1 ('MetaSel ('Just "resourceSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ExportResourceSpecification)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateExportResponse Source #

Create a value of CreateExportResponse 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:

CreateExportResponse, createExportResponse_creationDateTime - The date and time that the request to export a bot was created.

CreateExportResponse, createExportResponse_exportId - An identifier for a specific request to create an export.

CreateExportResponse, createExportResponse_exportStatus - The status of the export. When the status is Completed, you can use the DescribeExport operation to get the pre-signed S3 URL link to your exported bot or bot locale.

CreateExport, createExportResponse_fileFormat - The file format used for the bot or bot locale definition files.

CreateExport, createExportResponse_resourceSpecification - A description of the type of resource that was exported, either a bot or a bot locale.

$sel:httpStatus:CreateExportResponse', createExportResponse_httpStatus - The response's http status code.

Response Lenses

createExportResponse_creationDateTime :: Lens' CreateExportResponse (Maybe UTCTime) Source #

The date and time that the request to export a bot was created.

createExportResponse_exportId :: Lens' CreateExportResponse (Maybe Text) Source #

An identifier for a specific request to create an export.

createExportResponse_exportStatus :: Lens' CreateExportResponse (Maybe ExportStatus) Source #

The status of the export. When the status is Completed, you can use the DescribeExport operation to get the pre-signed S3 URL link to your exported bot or bot locale.

createExportResponse_fileFormat :: Lens' CreateExportResponse (Maybe ImportExportFileFormat) Source #

The file format used for the bot or bot locale definition files.

createExportResponse_resourceSpecification :: Lens' CreateExportResponse (Maybe ExportResourceSpecification) Source #

A description of the type of resource that was exported, either a bot or a bot locale.