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();
}
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();
}
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();
}
Aggregations