use of software.amazon.awssdk.services.pinpoint.model.DeleteAppRequest in project aws-doc-sdk-examples by awsdocs.
the class DeleteApp method deletePinApp.
// snippet-start:[pinpoint.java2.deleteapp.main]
public static void deletePinApp(PinpointClient pinpoint, String appId) {
try {
DeleteAppRequest appRequest = DeleteAppRequest.builder().applicationId(appId).build();
DeleteAppResponse result = pinpoint.deleteApp(appRequest);
String appName = result.applicationResponse().name();
System.out.println("Application " + appName + " has been deleted.");
} catch (PinpointException e) {
System.err.println(e.awsErrorDetails().errorMessage());
System.exit(1);
}
}
Aggregations