Skip to content

ImportJobRequest

Source code in docs_src/capo_pinpoint/types/import_job_request.py
class ImportJobRequest(TypedDict, closed=True):
    define_segment: NotRequired["capo_pinpoint.types.__boolean.__boolean"]
    """<p>Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.</p>"""
    external_id: NotRequired["capo_pinpoint.types.__string.__string"]
    """<p>(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.</p>"""
    format: NotRequired["capo_pinpoint.types.format.Format"]
    """<p>The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.</p>"""
    register_endpoints: NotRequired["capo_pinpoint.types.__boolean.__boolean"]
    """<p>Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.</p>"""
    role_arn: NotRequired["capo_pinpoint.types.__string.__string"]
    """<p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.</p>"""
    s3_url: NotRequired["capo_pinpoint.types.__string.__string"]
    """<p>The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.</p> <p>The URL should be in the following format: s3://<replaceable>bucket-name</replaceable>/<replaceable>folder-name</replaceable>/<replaceable>file-name</replaceable>. The location can end with the key for an individual object or a prefix that qualifies multiple objects.</p>"""
    segment_id: NotRequired["capo_pinpoint.types.__string.__string"]
    """<p>The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant to update an existing segment.</p>"""
    segment_name: NotRequired["capo_pinpoint.types.__string.__string"]
    """<p>A custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.</p>"""

define_segment instance-attribute

define_segment: NotRequired[__boolean]

Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.

external_id instance-attribute

external_id: NotRequired[__string]

(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.

format instance-attribute

format: NotRequired[Format]

The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.

register_endpoints instance-attribute

register_endpoints: NotRequired[__boolean]

Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.

role_arn instance-attribute

role_arn: NotRequired[__string]

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.

s3_url instance-attribute

s3_url: NotRequired[__string]

The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.

The URL should be in the following format: s3://bucket-name/folder-name/file-name. The location can end with the key for an individual object or a prefix that qualifies multiple objects.

segment_id instance-attribute

segment_id: NotRequired[__string]

The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant to update an existing segment.

segment_name instance-attribute

segment_name: NotRequired[__string]

A custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.