LookoutEquipment / Client / import_dataset

import_dataset#

LookoutEquipment.Client.import_dataset(**kwargs)#

Imports a dataset.

See also: AWS API Documentation

Request Syntax

response = client.import_dataset(
    SourceDatasetArn='string',
    DatasetName='string',
    ClientToken='string',
    ServerSideKmsKeyId='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • SourceDatasetArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the dataset to import.

  • DatasetName (string) – The name of the machine learning dataset to be created. If the dataset already exists, Amazon Lookout for Equipment overwrites the existing dataset. If you don’t specify this field, it is filled with the name of the source dataset.

  • ClientToken (string) –

    [REQUIRED]

    A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.

    This field is autopopulated if not provided.

  • ServerSideKmsKeyId (string) – Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment.

  • Tags (list) –

    Any tags associated with the dataset to be created.

    • (dict) –

      A tag is a key-value pair that can be added to a resource as metadata.

      • Key (string) – [REQUIRED]

        The key for the specified tag.

      • Value (string) – [REQUIRED]

        The value for the specified tag.

Return type:

dict

Returns:

Response Syntax

{
    'DatasetName': 'string',
    'DatasetArn': 'string',
    'Status': 'CREATED'|'INGESTION_IN_PROGRESS'|'ACTIVE'|'IMPORT_IN_PROGRESS',
    'JobId': 'string'
}

Response Structure

  • (dict) –

    • DatasetName (string) –

      The name of the created machine learning dataset.

    • DatasetArn (string) –

      The Amazon Resource Name (ARN) of the dataset that was imported.

    • Status (string) –

      The status of the ImportDataset operation.

    • JobId (string) –

      A unique identifier for the job of importing the dataset.

Exceptions

  • LookoutEquipment.Client.exceptions.ConflictException

  • LookoutEquipment.Client.exceptions.ResourceNotFoundException

  • LookoutEquipment.Client.exceptions.ValidationException

  • LookoutEquipment.Client.exceptions.ServiceQuotaExceededException

  • LookoutEquipment.Client.exceptions.ThrottlingException

  • LookoutEquipment.Client.exceptions.AccessDeniedException

  • LookoutEquipment.Client.exceptions.InternalServerException