Skip to content

Commit f8b4dc9

Browse files
committed
updated Java code to address comments
1 parent 8b5016c commit f8b4dc9

File tree

3 files changed

+126
-283
lines changed

3 files changed

+126
-283
lines changed

javav2/example_code/inspector/src/main/java/com/java/inspector/InspectorActions.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ public CompletableFuture<String> enableInspectorAsync(List<String> accountIds) {
8686
if (exception != null) {
8787

8888
Throwable cause = exception.getCause();
89-
9089
if (cause instanceof ValidationException) {
9190
throw new CompletionException(
9291
"Inspector may already be enabled for this account: " + cause.getMessage(),
@@ -206,7 +205,7 @@ public CompletableFuture<String> listUsageTotalsAsync(
206205
List<String> accountIds,
207206
int maxResults) {
208207

209-
logger.info("[DEBUG] Starting usage totals paginator…");
208+
logger.info("Starting usage totals paginator…");
210209

211210
// ----------------------------------------------------------
212211
// Build request
@@ -510,7 +509,7 @@ private String buildFilterSummary(List<Filter> filters) {
510509
* @throws Inspector2Exception If an error occurs specific to AWS Inspector2, such as invalid parameters or service issues.
511510
* @throws Exception If an unexpected error occurs during the filter creation process.
512511
*/
513-
public CompletableFuture<String> createFilterAsync(
512+
public CompletableFuture<String> createLowSeverityFilterAsync(
514513
String filterName,
515514
String description) {
516515

0 commit comments

Comments
 (0)