JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
  • Detail:
  • Field |
  • Constr |
  • Method
com.amazonaws.services.personalize

Class AmazonPersonalizeClient

    • Method Detail

      • createBatchInferenceJob

        public CreateBatchInferenceJobResult createBatchInferenceJob(CreateBatchInferenceJobRequest request)

        Generates batch recommendations based on a list of items or users stored in Amazon S3 and exports the recommendations to an Amazon S3 bucket.

        To generate batch recommendations, specify the ARN of a solution version and an Amazon S3 URI for the input and output data. For user personalization, popular items, and personalized ranking solutions, the batch inference job generates a list of recommended items for each user ID in the input file. For related items solutions, the job generates a list of recommended items for each item ID in the input file.

        For more information, see Creating a batch inference job .

        If you use the Similar-Items recipe, Amazon Personalize can add descriptive themes to batch recommendations. To generate themes, set the job's mode to THEME_GENERATION and specify the name of the field that contains item names in the input data.

        For more information about generating themes, see Batch recommendations with themes from Content Generator .

        You can't get batch recommendations with the Trending-Now or Next-Best-Action recipes.

        Specified by:
        createBatchInferenceJob in interface AmazonPersonalize
        Parameters:
        createBatchInferenceJobRequest -
        Returns:
        Result of the CreateBatchInferenceJob operation returned by the service.
        Throws:
        InvalidInputException - Provide a valid value for the field or parameter.
        ResourceAlreadyExistsException - The specified resource already exists.
        LimitExceededException - The limit on the number of requests per second has been exceeded.
        ResourceNotFoundException - Could not find the specified resource.
        ResourceInUseException - The specified resource is in use.
        TooManyTagsException - You have exceeded the maximum number of tags you can apply to this resource.
        See Also:
        AWS API Documentation
      • createCampaign

        public CreateCampaignResult createCampaign(CreateCampaignRequest request)

        You incur campaign costs while it is active. To avoid unnecessary costs, make sure to delete the campaign when you are finished. For information about campaign costs, see Amazon Personalize pricing.

        Creates a campaign that deploys a solution version. When a client calls the GetRecommendations and GetPersonalizedRanking APIs, a campaign is specified in the request.

        Minimum Provisioned TPS and Auto-Scaling

        A high minProvisionedTPS will increase your cost. We recommend starting with 1 for minProvisionedTPS (the default). Track your usage using Amazon CloudWatch metrics, and increase the minProvisionedTPS as necessary.

        When you create an Amazon Personalize campaign, you can specify the minimum provisioned transactions per second ( minProvisionedTPS) for the campaign. This is the baseline transaction throughput for the campaign provisioned by Amazon Personalize. It sets the minimum billing charge for the campaign while it is active. A transaction is a single GetRecommendations or GetPersonalizedRanking request. The default minProvisionedTPS is 1.

        If your TPS increases beyond the minProvisionedTPS, Amazon Personalize auto-scales the provisioned capacity up and down, but never below minProvisionedTPS. There's a short time delay while the capacity is increased that might cause loss of transactions. When your traffic reduces, capacity returns to the minProvisionedTPS.

        You are charged for the the minimum provisioned TPS or, if your requests exceed the minProvisionedTPS, the actual TPS. The actual TPS is the total number of recommendation requests you make. We recommend starting with a low minProvisionedTPS, track your usage using Amazon CloudWatch metrics, and then increase the minProvisionedTPS as necessary.

        For more information about campaign costs, see Amazon Personalize pricing.

        Status

        A campaign can be in one of the following states:

        • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

        • DELETE PENDING > DELETE IN_PROGRESS

        To get the campaign status, call DescribeCampaign.

        Wait until the status of the campaign is ACTIVE before asking the campaign for recommendations.

        Related APIs

        Specified by:
        createCampaign in interface AmazonPersonalize
        Parameters:
        createCampaignRequest -
        Returns:
        Result of the CreateCampaign operation returned by the service.
        Throws:
        InvalidInputException - Provide a valid value for the field or parameter.
        ResourceNotFoundException - Could not find the specified resource.
        ResourceAlreadyExistsException - The specified resource already exists.
        LimitExceededException - The limit on the number of requests per second has been exceeded.
        ResourceInUseException - The specified resource is in use.
        TooManyTagsException - You have exceeded the maximum number of tags you can apply to this resource.
        See Also:
        AWS API Documentation
      • createDataDeletionJob

        public CreateDataDeletionJobResult createDataDeletionJob(CreateDataDeletionJobRequest request)

        Creates a batch job that deletes all references to specific users from an Amazon Personalize dataset group in batches. You specify the users to delete in a CSV file of userIds in an Amazon S3 bucket. After a job completes, Amazon Personalize no longer trains on the users’ data and no longer considers the users when generating user segments. For more information about creating a data deletion job, see Deleting users.

        • Your input file must be a CSV file with a single USER_ID column that lists the users IDs. For more information about preparing the CSV file, see Preparing your data deletion file and uploading it to Amazon S3.

        • To give Amazon Personalize permission to access your input CSV file of userIds, you must specify an IAM service role that has permission to read from the data source. This role needs GetObject and ListBucket permissions for the bucket and its content. These permissions are the same as importing data. For information on granting access to your Amazon S3 bucket, see Giving Amazon Personalize Access to Amazon S3 Resources.

        After you create a job, it can take up to a day to delete all references to the users from datasets and models. Until the job completes, Amazon Personalize continues to use the data when training. And if you use a User Segmentation recipe, the users might appear in user segments.

        Status

        A data deletion job can have one of the following statuses:

        • PENDING > IN_PROGRESS > COMPLETED -or- FAILED

        To get the status of the data deletion job, call DescribeDataDeletionJob API operation and specify the Amazon Resource Name (ARN) of the job. If the status is FAILED, the response includes a failureReason key, which describes why the job failed.

        Related APIs

        Specified by:
        createDataDeletionJob in interface AmazonPersonalize
        Parameters:
        createDataDeletionJobRequest -
        Returns:
        Result of the CreateDataDeletionJob operation returned by the service.
        Throws:
        InvalidInputException - Provide a valid value for the field or parameter.
        ResourceNotFoundException - Could not find the specified resource.
        ResourceAlreadyExistsException - The specified resource already exists.
        LimitExceededException - The limit on the number of requests per second has been exceeded.
        ResourceInUseException - The specified resource is in use.
        TooManyTagsException - You have exceeded the maximum number of tags you can apply to this resource.
        See Also:
        AWS API Documentation
      • createDatasetExportJob

        public CreateDatasetExportJobResult createDatasetExportJob(CreateDatasetExportJobRequest request)

        Creates a job that exports data from your dataset to an Amazon S3 bucket. To allow Amazon Personalize to export the training data, you must specify an service-linked IAM role that gives Amazon Personalize PutObject permissions for your Amazon S3 bucket. For information, see Exporting a dataset in the Amazon Personalize developer guide.

        Status

        A dataset export job can be in one of the following states:

        • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

        To get the status of the export job, call DescribeDatasetExportJob, and specify the Amazon Resource Name (ARN) of the dataset export job. The dataset export is complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response includes a failureReason key, which describes why the job failed.

        Specified by:
        createDatasetExportJob in interface AmazonPersonalize
        Parameters:
        createDatasetExportJobRequest -
        Returns:
        Result of the CreateDatasetExportJob operation returned by the service.
        Throws:
        InvalidInputException - Provide a valid value for the field or parameter.
        ResourceNotFoundException - Could not find the specified resource.
        ResourceAlreadyExistsException - The specified resource already exists.
        LimitExceededException - The limit on the number of requests per second has been exceeded.
        ResourceInUseException - The specified resource is in use.
        TooManyTagsException - You have exceeded the maximum number of tags you can apply to this resource.
        See Also:
        AWS API Documentation
      • createDatasetGroup

        public CreateDatasetGroupResult createDatasetGroup(CreateDatasetGroupRequest request)

        Creates an empty dataset group. A dataset group is a container for Amazon Personalize resources. A dataset group can contain at most three datasets, one for each type of dataset:

        • Item interactions

        • Items

        • Users

        • Actions

        • Action interactions

        A dataset group can be a Domain dataset group, where you specify a domain and use pre-configured resources like recommenders, or a Custom dataset group, where you use custom resources, such as a solution with a solution version, that you deploy with a campaign. If you start with a Domain dataset group, you can still add custom resources such as solutions and solution versions trained with recipes for custom use cases and deployed with campaigns.

        A dataset group can be in one of the following states:

        • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

        • DELETE PENDING

        To get the status of the dataset group, call DescribeDatasetGroup. If the status shows as CREATE FAILED, the response includes a failureReason key, which describes why the creation failed.

        You must wait until the status of the dataset group is ACTIVE before adding a dataset to the group.

        You can specify an Key Management Service (KMS) key to encrypt the datasets in the group. If you specify a KMS key, you must also include an Identity and Access Management (IAM) role that has permission to access the key.

        APIs that require a dataset group ARN in the request

        Related APIs

        Specified by:
        createDatasetGroup in interface AmazonPersonalize
        Parameters:
        createDatasetGroupRequest -
        Returns:
        Result of the CreateDatasetGroup operation returned by the service.
        Throws:
        InvalidInputException - Provide a valid value for the field or parameter.
        ResourceAlreadyExistsException - The specified resource already exists.
        LimitExceededException - The limit on the number of requests per second has been exceeded.
        TooManyTagsException - You have exceeded the maximum number of tags you can apply to this resource.
        See Also:
        AWS API Documentation
      • createDatasetImportJob

        public CreateDatasetImportJobResult createDatasetImportJob(CreateDatasetImportJobRequest request)

        Creates a job that imports training data from your data source (an Amazon S3 bucket) to an Amazon Personalize dataset. To allow Amazon Personalize to ACTIVE -or- CREATE FAILED

      To get the status of the import job, call DescribeDatasetImportJob, providing the Amazon Resource Name (ARN) of the dataset import job. The dataset import is complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response includes a failureReason key, which describes why the job failed.

      Importing takes time. You must wait until the status shows as ACTIVE before training a model using the dataset.

      Related APIs

Specified by:
createDatasetImportJob in interface AmazonPersonalize
Parameters:
createDatasetImportJobRequest -
Returns:
Result of the CreateDatasetImportJob operation returned by the service.
Throws:
InvalidInputException - Provide a valid value for the field or parameter.
ResourceNotFoundException - Could not find the specified resource.
ResourceAlreadyExistsException - The specified resource already exists.
LimitExceededException - The limit on the number of requests per second has been exceeded.
ResourceInUseException - The specified resource is in use.
TooManyTagsException - You have exceeded the maximum number of tags you can apply to this resource.
See Also:
AWS API Documentation
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /