amazonka-discovery-2.0: Amazon Application Discovery Service 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.Discovery.Types.ImportTask

Description

 
Synopsis

Documentation

data ImportTask Source #

An array of information related to the import task request that includes status information, times, IDs, the Amazon S3 Object URL for the import file, and more.

See: newImportTask smart constructor.

Constructors

ImportTask' 

Fields

  • applicationImportFailure :: Maybe Int

    The total number of application records in the import file that failed to be imported.

  • applicationImportSuccess :: Maybe Int

    The total number of application records in the import file that were successfully imported.

  • clientRequestToken :: Maybe Text

    A unique token used to prevent the same import request from occurring more than once. If you didn't provide a token, a token was automatically generated when the import task request was sent.

  • errorsAndFailedEntriesZip :: Maybe Text

    A link to a compressed archive folder (in the ZIP format) that contains an error log and a file of failed records. You can use these two files to quickly identify records that failed, why they failed, and correct those records. Afterward, you can upload the corrected file to your Amazon S3 bucket and create another import task request.

    This field also includes authorization information so you can confirm the authenticity of the compressed archive before you download it.

    If some records failed to be imported we recommend that you correct the records in the failed entries file and then imports that failed entries file. This prevents you from having to correct and update the larger original file and attempt importing it again.

  • importCompletionTime :: Maybe POSIX

    The time that the import task request finished, presented in the Unix time stamp format.

  • importDeletedTime :: Maybe POSIX

    The time that the import task request was deleted, presented in the Unix time stamp format.

  • importRequestTime :: Maybe POSIX

    The time that the import task request was made, presented in the Unix time stamp format.

  • importTaskId :: Maybe Text

    The unique ID for a specific import task. These IDs aren't globally unique, but they are unique within an Amazon Web Services account.

  • importUrl :: Maybe Text

    The URL for your import file that you've uploaded to Amazon S3.

  • name :: Maybe Text

    A descriptive name for an import task. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.

  • serverImportFailure :: Maybe Int

    The total number of server records in the import file that failed to be imported.

  • serverImportSuccess :: Maybe Int

    The total number of server records in the import file that were successfully imported.

  • status :: Maybe ImportStatus

    The status of the import task. An import can have the status of IMPORT_COMPLETE and still have some records fail to import from the overall request. More information can be found in the downloadable archive defined in the errorsAndFailedEntriesZip field, or in the Migration Hub management console.

Instances

Instances details
FromJSON ImportTask Source # 
Instance details

Defined in Amazonka.Discovery.Types.ImportTask

Generic ImportTask Source # 
Instance details

Defined in Amazonka.Discovery.Types.ImportTask

Associated Types

type Rep ImportTask :: Type -> Type #

Read ImportTask Source # 
Instance details

Defined in Amazonka.Discovery.Types.ImportTask

Show ImportTask Source # 
Instance details

Defined in Amazonka.Discovery.Types.ImportTask

NFData ImportTask Source # 
Instance details

Defined in Amazonka.Discovery.Types.ImportTask

Methods

rnf :: ImportTask -> () #

Eq ImportTask Source # 
Instance details

Defined in Amazonka.Discovery.Types.ImportTask

Hashable ImportTask Source # 
Instance details

Defined in Amazonka.Discovery.Types.ImportTask

type Rep ImportTask Source # 
Instance details

Defined in Amazonka.Discovery.Types.ImportTask

type Rep ImportTask = D1 ('MetaData "ImportTask" "Amazonka.Discovery.Types.ImportTask" "amazonka-discovery-2.0-FHPaShbhCtL10K1sBxZHs" 'False) (C1 ('MetaCons "ImportTask'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "applicationImportFailure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "applicationImportSuccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "errorsAndFailedEntriesZip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "importCompletionTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "importDeletedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "importRequestTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "importTaskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "importUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "serverImportFailure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "serverImportSuccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImportStatus)))))))

newImportTask :: ImportTask Source #

Create a value of ImportTask 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:applicationImportFailure:ImportTask', importTask_applicationImportFailure - The total number of application records in the import file that failed to be imported.

$sel:applicationImportSuccess:ImportTask', importTask_applicationImportSuccess - The total number of application records in the import file that were successfully imported.

$sel:clientRequestToken:ImportTask', importTask_clientRequestToken - A unique token used to prevent the same import request from occurring more than once. If you didn't provide a token, a token was automatically generated when the import task request was sent.

$sel:errorsAndFailedEntriesZip:ImportTask', importTask_errorsAndFailedEntriesZip - A link to a compressed archive folder (in the ZIP format) that contains an error log and a file of failed records. You can use these two files to quickly identify records that failed, why they failed, and correct those records. Afterward, you can upload the corrected file to your Amazon S3 bucket and create another import task request.

This field also includes authorization information so you can confirm the authenticity of the compressed archive before you download it.

If some records failed to be imported we recommend that you correct the records in the failed entries file and then imports that failed entries file. This prevents you from having to correct and update the larger original file and attempt importing it again.

$sel:importCompletionTime:ImportTask', importTask_importCompletionTime - The time that the import task request finished, presented in the Unix time stamp format.

$sel:importDeletedTime:ImportTask', importTask_importDeletedTime - The time that the import task request was deleted, presented in the Unix time stamp format.

$sel:importRequestTime:ImportTask', importTask_importRequestTime - The time that the import task request was made, presented in the Unix time stamp format.

$sel:importTaskId:ImportTask', importTask_importTaskId - The unique ID for a specific import task. These IDs aren't globally unique, but they are unique within an Amazon Web Services account.

$sel:importUrl:ImportTask', importTask_importUrl - The URL for your import file that you've uploaded to Amazon S3.

$sel:name:ImportTask', importTask_name - A descriptive name for an import task. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.

$sel:serverImportFailure:ImportTask', importTask_serverImportFailure - The total number of server records in the import file that failed to be imported.

$sel:serverImportSuccess:ImportTask', importTask_serverImportSuccess - The total number of server records in the import file that were successfully imported.

$sel:status:ImportTask', importTask_status - The status of the import task. An import can have the status of IMPORT_COMPLETE and still have some records fail to import from the overall request. More information can be found in the downloadable archive defined in the errorsAndFailedEntriesZip field, or in the Migration Hub management console.

importTask_applicationImportFailure :: Lens' ImportTask (Maybe Int) Source #

The total number of application records in the import file that failed to be imported.

importTask_applicationImportSuccess :: Lens' ImportTask (Maybe Int) Source #

The total number of application records in the import file that were successfully imported.

importTask_clientRequestToken :: Lens' ImportTask (Maybe Text) Source #

A unique token used to prevent the same import request from occurring more than once. If you didn't provide a token, a token was automatically generated when the import task request was sent.

importTask_errorsAndFailedEntriesZip :: Lens' ImportTask (Maybe Text) Source #

A link to a compressed archive folder (in the ZIP format) that contains an error log and a file of failed records. You can use these two files to quickly identify records that failed, why they failed, and correct those records. Afterward, you can upload the corrected file to your Amazon S3 bucket and create another import task request.

This field also includes authorization information so you can confirm the authenticity of the compressed archive before you download it.

If some records failed to be imported we recommend that you correct the records in the failed entries file and then imports that failed entries file. This prevents you from having to correct and update the larger original file and attempt importing it again.

importTask_importCompletionTime :: Lens' ImportTask (Maybe UTCTime) Source #

The time that the import task request finished, presented in the Unix time stamp format.

importTask_importDeletedTime :: Lens' ImportTask (Maybe UTCTime) Source #

The time that the import task request was deleted, presented in the Unix time stamp format.

importTask_importRequestTime :: Lens' ImportTask (Maybe UTCTime) Source #

The time that the import task request was made, presented in the Unix time stamp format.

importTask_importTaskId :: Lens' ImportTask (Maybe Text) Source #

The unique ID for a specific import task. These IDs aren't globally unique, but they are unique within an Amazon Web Services account.

importTask_importUrl :: Lens' ImportTask (Maybe Text) Source #

The URL for your import file that you've uploaded to Amazon S3.

importTask_name :: Lens' ImportTask (Maybe Text) Source #

A descriptive name for an import task. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.

importTask_serverImportFailure :: Lens' ImportTask (Maybe Int) Source #

The total number of server records in the import file that failed to be imported.

importTask_serverImportSuccess :: Lens' ImportTask (Maybe Int) Source #

The total number of server records in the import file that were successfully imported.

importTask_status :: Lens' ImportTask (Maybe ImportStatus) Source #

The status of the import task. An import can have the status of IMPORT_COMPLETE and still have some records fail to import from the overall request. More information can be found in the downloadable archive defined in the errorsAndFailedEntriesZip field, or in the Migration Hub management console.