amazonka-pinpoint-2.0: Amazon Pinpoint 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.Pinpoint.Types.ImportJobRequest

Description

 
Synopsis

Documentation

data ImportJobRequest Source #

Specifies the settings for a job that imports endpoint definitions from an Amazon Simple Storage Service (Amazon S3) bucket.

See: newImportJobRequest smart constructor.

Constructors

ImportJobRequest' 

Fields

  • defineSegment :: Maybe Bool

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

  • externalId :: Maybe Text

    (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.

  • registerEndpoints :: Maybe Bool

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

  • segmentId :: Maybe Text

    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.

  • segmentName :: Maybe Text

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

  • format :: DefinitionFormat

    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.

  • s3Url :: Text

    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.

  • roleArn :: Text

    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.

Instances

Instances details
ToJSON ImportJobRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.ImportJobRequest

Generic ImportJobRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.ImportJobRequest

Associated Types

type Rep ImportJobRequest :: Type -> Type #

Read ImportJobRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.ImportJobRequest

Show ImportJobRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.ImportJobRequest

NFData ImportJobRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.ImportJobRequest

Methods

rnf :: ImportJobRequest -> () #

Eq ImportJobRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.ImportJobRequest

Hashable ImportJobRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.ImportJobRequest

type Rep ImportJobRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.ImportJobRequest

newImportJobRequest Source #

Create a value of ImportJobRequest 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:defineSegment:ImportJobRequest', importJobRequest_defineSegment - Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.

$sel:externalId:ImportJobRequest', importJobRequest_externalId - (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.

$sel:registerEndpoints:ImportJobRequest', importJobRequest_registerEndpoints - Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.

$sel:segmentId:ImportJobRequest', importJobRequest_segmentId - 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.

$sel:segmentName:ImportJobRequest', importJobRequest_segmentName - A custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.

$sel:format:ImportJobRequest', importJobRequest_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.

$sel:s3Url:ImportJobRequest', importJobRequest_s3Url - 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.

$sel:roleArn:ImportJobRequest', importJobRequest_roleArn - 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.

importJobRequest_defineSegment :: Lens' ImportJobRequest (Maybe Bool) Source #

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

importJobRequest_externalId :: Lens' ImportJobRequest (Maybe Text) Source #

(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.

importJobRequest_registerEndpoints :: Lens' ImportJobRequest (Maybe Bool) Source #

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

importJobRequest_segmentId :: Lens' ImportJobRequest (Maybe Text) Source #

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.

importJobRequest_segmentName :: Lens' ImportJobRequest (Maybe Text) Source #

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

importJobRequest_format :: Lens' ImportJobRequest DefinitionFormat Source #

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.

importJobRequest_s3Url :: Lens' ImportJobRequest Text Source #

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.

importJobRequest_roleArn :: Lens' ImportJobRequest Text Source #

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.