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
+83-48Lines changed: 83 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
3
3
This SDK Basics scenario demonstrates how to interact with Amazon Inspector, a basics scenario that showcases AWS services and SDKs. It is primarily intended for the AWS code examples team to use while developing this example in additional languages.
4
4
5
+
## Resources
6
+
This Basics scenario does not require any additional AWS resources.
7
+
5
8
### Relevant documentation
6
9
7
10
*[Getting started with Amazon Inspector](https://docs.aws.amazon.com/inspector/latest/user/getting_started.html)
@@ -11,79 +14,111 @@ This SDK Basics scenario demonstrates how to interact with Amazon Inspector, a b
The output below demonstrates how this example would run for the customer. It includes a Hello service example (included for all services), and the scenario description. The scenario code would also be presented as Action snippets, with a code snippet for each SDK action.
24
38
25
-
###Hello
39
+
## Hello Amazon Inspector
26
40
27
-
The Hello example is a separate runnable example. - Set up the Inspector service client - Check the current account status for Inspector - Display available scan types and regions
41
+
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.
28
42
29
43
## Scenario
30
44
31
-
#### Setup
45
+
This scenario demonstrates the basic usage of **Amazon Inspector** using a Java program. It focuses on checking account status, enabling Inspector, listing findings, reviewing coverage, and managing filters.
32
46
33
-
* Enable Amazon Inspector for the account
34
-
* Verify Inspector is successfully activated
35
-
* Display account status and enabled scan types
47
+
---
36
48
37
-
#### Coverage Assessment
49
+
###Setup
38
50
39
-
*List coverage statistics for EC2 instances, ECR repositories, and Lambda functions
40
-
*Display resource coverage details
41
-
*Show scanning status for different resource types
51
+
*Check Amazon Inspector account status
52
+
*Enable Inspector for available resource types (if not already enabled)
53
+
*Display account status summary
42
54
43
-
#### Findings Management
55
+
---
56
+
57
+
### Coverage Assessment
58
+
59
+
* List coverage details for scanned resources
60
+
* Display overall coverage statistics
61
+
* Review scan status for resources (general overview)
62
+
63
+
---
64
+
65
+
### Findings Management
44
66
45
67
* List security findings across all resource types
46
-
* Filter findings by severity level (CRITICAL, HIGH, MEDIUM, LOW)
47
-
* Retrieve detailed information for specific findings
68
+
* Create an example filter to suppress low-severity findings
69
+
* List existing filters
70
+
71
+
---
48
72
49
-
#### Vulnerability Analysis
73
+
###Usage and Costs
50
74
51
-
* Display vulnerability details including CVE information
52
-
* Show affected resources and remediation guidance
53
-
* Filter findings by resource type (EC2, ECR, Lambda)
75
+
* Check usage totals and metrics for Inspector
76
+
* Review coverage statistics
54
77
55
-
#### Cleanup
78
+
---
56
79
57
-
* Optionally disable Inspector scanning (with user confirmation)
58
-
* Display final account status
80
+
### Outcome
81
+
82
+
By following this scenario, users learn how to:
83
+
84
+
* Check Inspector account status and configuration
85
+
* Enable Inspector for different resource types
86
+
* List and analyze security findings
87
+
* Monitor scan coverage
88
+
* Create and manage filters
89
+
* Track usage and coverage statistics
59
90
60
91
## Errors
61
92
62
-
SDK Code examples include basic exception handling for each action used. The table below describes an appropriate exception which will be handled in the code for each service action.
63
-
64
-
|Action |Error |Handling |
65
-
|--- |--- |--- |
66
-
|`Enable`|ValidationException |Validate resource types and account permissions. |
67
-
|`Enable`|AccessDeniedException |Notify user of insufficient permissions and exit. |
0 commit comments