You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scenarios/basics/inspector/SPECIFICATION.md
+34-20Lines changed: 34 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,19 @@ This Basics scenario does not require any additional AWS resources.
24
24
25
25
## Hello Amazon Inspector
26
26
27
-
The Hello example is intended for users not familiar with this service to easily get up and running. It sets up the Inspector service client, checks the current account status for Inspector and displays available scan types.
27
+
The Hello Inspector example is designed to help new users quickly become familiar with the Amazon Inspector service and the AWS SDK. This introductory sample demonstrates how to:
28
+
29
+
1. Initialize the Amazon Inspector2 client
30
+
Sets up the service client.
31
+
32
+
2. Check the current Inspector account status
33
+
Retrieves and displays the resource scan status for supported scan types such as EC2, ECR, Lambda, and Lambda Code.
34
+
35
+
3. List recent Inspector findings
36
+
Queries the most recent security findings and prints key details including title, severity, status, and timestamp.
37
+
38
+
4. Display Inspector usage totals
39
+
Uses a paginator to retrieve and show usage metrics and estimated monthly costs for the past 30 days.
28
40
29
41
## Scenario
30
42
@@ -34,35 +46,35 @@ This scenario demonstrates the basic usage of **Amazon Inspector** using a Java
34
46
35
47
### Setup
36
48
37
-
* Check Amazon Inspector account status
38
-
* Enable Inspector for available resource types (if not already enabled)
39
-
* Display account status summary
49
+
Check Amazon Inspector account status
40
50
41
-
---
51
+
Enable Inspector for all available resource types (if not already enabled)
42
52
43
-
### Coverage Assessment
53
+
Display a summary of the current scan status
44
54
45
-
* List coverage details for scanned resources
46
-
* Display overall coverage statistics
47
-
* Review scan status for resources (general overview)
55
+
### Findings & Filters
48
56
49
-
---
57
+
List recent security findings across all supported resource types
50
58
51
-
### Findings Management
59
+
Create a sample filter to suppress low-severity findings
52
60
53
-
* List security findings across all resource types
54
-
* Create an example filter to suppress low-severity findings
55
-
* List existing filters
61
+
List all existing Inspector filters
56
62
57
-
---
63
+
### Coverage Assessment
64
+
65
+
List scan coverage for EC2, ECR, Lambda, and Lambda Code
66
+
67
+
Display overall coverage statistics
58
68
59
69
### Usage and Costs
60
70
61
-
* Check usage totals and metrics for Inspector
62
-
* Review coverage statistics
71
+
Retrieve usage totals for the last 30 days using paginated results
63
72
64
-
---
73
+
Display usage metrics and estimated monthly costs
74
+
75
+
### Cleanup
65
76
77
+
Delete the example filter created during the scenario
66
78
67
79
### Outcome
68
80
@@ -74,10 +86,11 @@ By following this scenario, users learn how to:
74
86
* Monitor scan coverage
75
87
* Create and manage filters
76
88
* Track usage and coverage statistics
89
+
* Delete the AWS resources.
77
90
78
91
## Errors
79
92
80
-
The SDK examples include basic exception handling for each Inspector action. The table below describes the exceptions actually handled in the program for each action.
93
+
The table below describes the exceptions handled in the program for each action.
0 commit comments