Search in sources :

Example 21 with PersonalizeClient

use of software.amazon.awssdk.services.personalize.PersonalizeClient in project aws-doc-sdk-examples by awsdocs.

the class DescribeCampaign method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage:\n" + "    DescribeCampaign <campaignArn>\n\n" + "Where:\n" + "    campaignArn - The ARN of the campaign.\n\n";
    if (args.length < 1) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String campaignArn = args[0];
    Region region = Region.US_EAST_1;
    PersonalizeClient personalizeClient = PersonalizeClient.builder().region(region).build();
    describeSpecificCampaign(personalizeClient, campaignArn);
    personalizeClient.close();
}
Also used : PersonalizeClient(software.amazon.awssdk.services.personalize.PersonalizeClient) Region(software.amazon.awssdk.regions.Region)

Example 22 with PersonalizeClient

use of software.amazon.awssdk.services.personalize.PersonalizeClient in project aws-doc-sdk-examples by awsdocs.

the class DeleteSolution method main.

public static void main(String[] args) {
    final String USAGE = "\n" + "Usage:\n" + "    DeleteSolution <solutionArn>\n\n" + "Where:\n" + "    solutionArn - the ARN of the solution to delete.\n\n";
    if (args.length != 1) {
        System.out.println(USAGE);
        System.exit(1);
    }
    String solutionArn = args[0];
    Region region = Region.US_EAST_1;
    PersonalizeClient personalizeClient = PersonalizeClient.builder().region(region).build();
    deleteGivenSolution(personalizeClient, solutionArn);
    personalizeClient.close();
}
Also used : PersonalizeClient(software.amazon.awssdk.services.personalize.PersonalizeClient) Region(software.amazon.awssdk.regions.Region)

Example 23 with PersonalizeClient

use of software.amazon.awssdk.services.personalize.PersonalizeClient in project aws-doc-sdk-examples by awsdocs.

the class ListDatasetGroups method main.

public static void main(String[] args) {
    Region region = Region.US_EAST_1;
    PersonalizeClient personalizeClient = PersonalizeClient.builder().region(region).build();
    listDSGroups(personalizeClient);
    personalizeClient.close();
}
Also used : PersonalizeClient(software.amazon.awssdk.services.personalize.PersonalizeClient) Region(software.amazon.awssdk.regions.Region)

Aggregations

PersonalizeClient (software.amazon.awssdk.services.personalize.PersonalizeClient)23 Region (software.amazon.awssdk.regions.Region)22 DatasetProvider (com.amazonaws.personalize.client.datasets.DatasetProvider)1 MovieLensDatasetProvider (com.amazonaws.personalize.client.datasets.MovieLensDatasetProvider)1 CampaignManager (com.amazonaws.personalize.client.resource.CampaignManager)1 EventTrackerManager (com.amazonaws.personalize.client.resource.EventTrackerManager)1 IamClient (software.amazon.awssdk.services.iam.IamClient)1 IngestionMode (software.amazon.awssdk.services.personalize.model.IngestionMode)1 PersonalizeEventsClient (software.amazon.awssdk.services.personalizeevents.PersonalizeEventsClient)1 PersonalizeRuntimeClient (software.amazon.awssdk.services.personalizeruntime.PersonalizeRuntimeClient)1 S3Client (software.amazon.awssdk.services.s3.S3Client)1