Skip to content

UserImportJobType

Source code in docs_src/capo_cognito_identity_provider/types/user_import_job_type.py
class UserImportJobType(TypedDict, closed=True):
    job_name: NotRequired[
        "capo_cognito_identity_provider.types.user_import_job_name_type.UserImportJobNameType"
    ]
    """<p>The friendly name of the user import job.</p>"""
    job_id: NotRequired[
        "capo_cognito_identity_provider.types.user_import_job_id_type.UserImportJobIdType"
    ]
    """<p>The ID of the user import job.</p>"""
    user_pool_id: NotRequired[
        "capo_cognito_identity_provider.types.user_pool_id_type.UserPoolIdType"
    ]
    """<p>The ID of the user pool that the users are being imported into.</p>"""
    pre_signed_url: NotRequired[
        "capo_cognito_identity_provider.types.pre_signed_url_type.PreSignedUrlType"
    ]
    """<p>The pre-signed URL target for uploading the CSV file.</p>"""
    creation_date: NotRequired[
        "capo_cognito_identity_provider.types.date_type.DateType"
    ]
    """<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>"""
    start_date: NotRequired["capo_cognito_identity_provider.types.date_type.DateType"]
    """<p>The date when the user import job was started.</p>"""
    completion_date: NotRequired[
        "capo_cognito_identity_provider.types.date_type.DateType"
    ]
    """<p>The date when the user import job was completed.</p>"""
    status: NotRequired[
        "capo_cognito_identity_provider.types.user_import_job_status_type.UserImportJobStatusType"
    ]
    """<p>The status of the user import job. One of the following:</p> <ul> <li> <p> <code>Created</code> - The job was created but not started.</p> </li> <li> <p> <code>Pending</code> - A transition state. You have started the job, but it has not begun importing users yet.</p> </li> <li> <p> <code>InProgress</code> - The job has started, and users are being imported.</p> </li> <li> <p> <code>Stopping</code> - You have stopped the job, but the job has not stopped importing users yet.</p> </li> <li> <p> <code>Stopped</code> - You have stopped the job, and the job has stopped importing users.</p> </li> <li> <p> <code>Succeeded</code> - The job has completed successfully.</p> </li> <li> <p> <code>Failed</code> - The job has stopped due to an error.</p> </li> <li> <p> <code>Expired</code> - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job can't be started.</p> </li> </ul>"""
    cloud_watch_logs_role_arn: NotRequired[
        "capo_cognito_identity_provider.types.arn_type.ArnType"
    ]
    """<p>The role Amazon Resource Name (ARN) for the Amazon CloudWatch Logging role for the user import job. For more information, see "Creating the CloudWatch Logs IAM Role" in the Amazon Cognito Developer Guide.</p>"""
    imported_users: "capo_cognito_identity_provider.types.long_type.LongType"
    """<p>The number of users that were successfully imported.</p>"""
    skipped_users: "capo_cognito_identity_provider.types.long_type.LongType"
    """<p>The number of users that were skipped.</p>"""
    failed_users: "capo_cognito_identity_provider.types.long_type.LongType"
    """<p>The number of users that couldn't be imported.</p>"""
    completion_message: NotRequired[
        "capo_cognito_identity_provider.types.completion_message_type.CompletionMessageType"
    ]
    """<p>The message returned when the user import job is completed.</p>"""
    password_hashing_algorithm: NotRequired[
        "capo_cognito_identity_provider.types.password_hashing_algorithm_type.PasswordHashingAlgorithmType"
    ]
    """<p>The password hashing algorithm used to generate the hashes in the CSV file for this import job.</p> <p>Valid values: <code>BCRYPT</code> | <code>SCRYPT</code> | <code>ARGON2ID</code> | <code>PBKDF2_SHA256</code> </p>"""

cloud_watch_logs_role_arn instance-attribute

cloud_watch_logs_role_arn: NotRequired[ArnType]

The role Amazon Resource Name (ARN) for the Amazon CloudWatch Logging role for the user import job. For more information, see "Creating the CloudWatch Logs IAM Role" in the Amazon Cognito Developer Guide.

completion_date instance-attribute

completion_date: NotRequired[DateType]

The date when the user import job was completed.

completion_message instance-attribute

completion_message: NotRequired[CompletionMessageType]

The message returned when the user import job is completed.

creation_date instance-attribute

creation_date: NotRequired[DateType]

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

failed_users instance-attribute

failed_users: LongType

The number of users that couldn't be imported.

imported_users instance-attribute

imported_users: LongType

The number of users that were successfully imported.

job_id instance-attribute

job_id: NotRequired[UserImportJobIdType]

The ID of the user import job.

job_name instance-attribute

job_name: NotRequired[UserImportJobNameType]

The friendly name of the user import job.

password_hashing_algorithm instance-attribute

password_hashing_algorithm: NotRequired[PasswordHashingAlgorithmType]

The password hashing algorithm used to generate the hashes in the CSV file for this import job.

Valid values: BCRYPT | SCRYPT | ARGON2ID | PBKDF2_SHA256

pre_signed_url instance-attribute

pre_signed_url: NotRequired[PreSignedUrlType]

The pre-signed URL target for uploading the CSV file.

skipped_users instance-attribute

skipped_users: LongType

The number of users that were skipped.

start_date instance-attribute

start_date: NotRequired[DateType]

The date when the user import job was started.

status instance-attribute

status: NotRequired[UserImportJobStatusType]

The status of the user import job. One of the following:

  • Created - The job was created but not started.

  • Pending - A transition state. You have started the job, but it has not begun importing users yet.

  • InProgress - The job has started, and users are being imported.

  • Stopping - You have stopped the job, but the job has not stopped importing users yet.

  • Stopped - You have stopped the job, and the job has stopped importing users.

  • Succeeded - The job has completed successfully.

  • Failed - The job has stopped due to an error.

  • Expired - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job can't be started.

user_pool_id instance-attribute

user_pool_id: NotRequired[UserPoolIdType]

The ID of the user pool that the users are being imported into.