@aws-sdk/client-inspector 3.775.0 → 3.782.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/AddAttributesToFindingsCommand.d.ts +8 -8
- package/dist-types/commands/CreateAssessmentTargetCommand.d.ts +6 -6
- package/dist-types/commands/CreateAssessmentTemplateCommand.d.ts +11 -11
- package/dist-types/commands/CreateExclusionsPreviewCommand.d.ts +1 -0
- package/dist-types/commands/CreateResourceGroupCommand.d.ts +7 -7
- package/dist-types/commands/DeleteAssessmentRunCommand.d.ts +7 -4
- package/dist-types/commands/DeleteAssessmentTargetCommand.d.ts +7 -4
- package/dist-types/commands/DeleteAssessmentTemplateCommand.d.ts +7 -4
- package/dist-types/commands/DescribeAssessmentRunsCommand.d.ts +1 -78
- package/dist-types/commands/DescribeAssessmentTargetsCommand.d.ts +1 -27
- package/dist-types/commands/DescribeAssessmentTemplatesCommand.d.ts +1 -32
- package/dist-types/commands/DescribeCrossAccountAccessRoleCommand.d.ts +1 -16
- package/dist-types/commands/DescribeExclusionsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeFindingsCommand.d.ts +1 -46
- package/dist-types/commands/DescribeResourceGroupsCommand.d.ts +1 -30
- package/dist-types/commands/DescribeRulesPackagesCommand.d.ts +11 -11
- package/dist-types/commands/GetAssessmentReportCommand.d.ts +1 -0
- package/dist-types/commands/GetExclusionsPreviewCommand.d.ts +1 -0
- package/dist-types/commands/GetTelemetryMetadataCommand.d.ts +92 -92
- package/dist-types/commands/ListAssessmentRunAgentsCommand.d.ts +99 -99
- package/dist-types/commands/ListAssessmentRunsCommand.d.ts +7 -7
- package/dist-types/commands/ListAssessmentTargetsCommand.d.ts +6 -6
- package/dist-types/commands/ListAssessmentTemplatesCommand.d.ts +7 -7
- package/dist-types/commands/ListEventSubscriptionsCommand.d.ts +1 -29
- package/dist-types/commands/ListExclusionsCommand.d.ts +1 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +7 -7
- package/dist-types/commands/ListRulesPackagesCommand.d.ts +6 -6
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +7 -7
- package/dist-types/commands/PreviewAgentsCommand.d.ts +8 -8
- package/dist-types/commands/RegisterCrossAccountAccessRoleCommand.d.ts +7 -4
- package/dist-types/commands/RemoveAttributesFromFindingsCommand.d.ts +6 -6
- package/dist-types/commands/SetTagsForResourceCommand.d.ts +10 -7
- package/dist-types/commands/StartAssessmentRunCommand.d.ts +6 -6
- package/dist-types/commands/StopAssessmentRunCommand.d.ts +7 -4
- package/dist-types/commands/SubscribeToEventCommand.d.ts +9 -6
- package/dist-types/commands/UnsubscribeFromEventCommand.d.ts +9 -6
- package/dist-types/commands/UpdateAssessmentTargetCommand.d.ts +9 -6
- package/package.json +5 -5
|
@@ -85,31 +85,31 @@ declare const AddAttributesToFindingsCommand_base: {
|
|
|
85
85
|
* @throws {@link InspectorServiceException}
|
|
86
86
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
87
87
|
*
|
|
88
|
-
*
|
|
88
|
+
*
|
|
89
89
|
* @example Add attributes to findings
|
|
90
90
|
* ```javascript
|
|
91
91
|
* // Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
|
|
92
92
|
* const input = {
|
|
93
|
-
*
|
|
93
|
+
* attributes: [
|
|
94
94
|
* {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
95
|
+
* key: "Example",
|
|
96
|
+
* value: "example"
|
|
97
97
|
* }
|
|
98
98
|
* ],
|
|
99
|
-
*
|
|
99
|
+
* findingArns: [
|
|
100
100
|
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU"
|
|
101
101
|
* ]
|
|
102
102
|
* };
|
|
103
103
|
* const command = new AddAttributesToFindingsCommand(input);
|
|
104
104
|
* const response = await client.send(command);
|
|
105
|
-
* /* response
|
|
105
|
+
* /* response is
|
|
106
106
|
* {
|
|
107
|
-
*
|
|
107
|
+
* failedItems: { /* empty *\/ }
|
|
108
108
|
* }
|
|
109
109
|
* *\/
|
|
110
|
-
* // example id: add-attributes-to-findings-1481063856401
|
|
111
110
|
* ```
|
|
112
111
|
*
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
114
|
export declare class AddAttributesToFindingsCommand extends AddAttributesToFindingsCommand_base {
|
|
115
115
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -87,24 +87,24 @@ declare const CreateAssessmentTargetCommand_base: {
|
|
|
87
87
|
* @throws {@link InspectorServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
89
89
|
*
|
|
90
|
-
*
|
|
90
|
+
*
|
|
91
91
|
* @example Create assessment target
|
|
92
92
|
* ```javascript
|
|
93
93
|
* // Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account.
|
|
94
94
|
* const input = {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
95
|
+
* assessmentTargetName: "ExampleAssessmentTarget",
|
|
96
|
+
* resourceGroupArn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv"
|
|
97
97
|
* };
|
|
98
98
|
* const command = new CreateAssessmentTargetCommand(input);
|
|
99
99
|
* const response = await client.send(command);
|
|
100
|
-
* /* response
|
|
100
|
+
* /* response is
|
|
101
101
|
* {
|
|
102
|
-
*
|
|
102
|
+
* assessmentTargetArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX"
|
|
103
103
|
* }
|
|
104
104
|
* *\/
|
|
105
|
-
* // example id: create-assessment-target-1481063953657
|
|
106
105
|
* ```
|
|
107
106
|
*
|
|
107
|
+
* @public
|
|
108
108
|
*/
|
|
109
109
|
export declare class CreateAssessmentTargetCommand extends CreateAssessmentTargetCommand_base {
|
|
110
110
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -89,34 +89,34 @@ declare const CreateAssessmentTemplateCommand_base: {
|
|
|
89
89
|
* @throws {@link InspectorServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
91
91
|
*
|
|
92
|
-
*
|
|
92
|
+
*
|
|
93
93
|
* @example Create assessment template
|
|
94
94
|
* ```javascript
|
|
95
95
|
* // Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
|
|
96
96
|
* const input = {
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
97
|
+
* assessmentTargetArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX",
|
|
98
|
+
* assessmentTemplateName: "ExampleAssessmentTemplate",
|
|
99
|
+
* durationInSeconds: 180,
|
|
100
|
+
* rulesPackageArns: [
|
|
101
101
|
* "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp"
|
|
102
102
|
* ],
|
|
103
|
-
*
|
|
103
|
+
* userAttributesForFindings: [
|
|
104
104
|
* {
|
|
105
|
-
*
|
|
106
|
-
*
|
|
105
|
+
* key: "Example",
|
|
106
|
+
* value: "example"
|
|
107
107
|
* }
|
|
108
108
|
* ]
|
|
109
109
|
* };
|
|
110
110
|
* const command = new CreateAssessmentTemplateCommand(input);
|
|
111
111
|
* const response = await client.send(command);
|
|
112
|
-
* /* response
|
|
112
|
+
* /* response is
|
|
113
113
|
* {
|
|
114
|
-
*
|
|
114
|
+
* assessmentTemplateArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"
|
|
115
115
|
* }
|
|
116
116
|
* *\/
|
|
117
|
-
* // example id: create-assessment-template-1481064046719
|
|
118
117
|
* ```
|
|
119
118
|
*
|
|
119
|
+
* @public
|
|
120
120
|
*/
|
|
121
121
|
export declare class CreateAssessmentTemplateCommand extends CreateAssessmentTemplateCommand_base {
|
|
122
122
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -77,6 +77,7 @@ declare const CreateExclusionsPreviewCommand_base: {
|
|
|
77
77
|
* @throws {@link InspectorServiceException}
|
|
78
78
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
79
79
|
*
|
|
80
|
+
*
|
|
80
81
|
* @public
|
|
81
82
|
*/
|
|
82
83
|
export declare class CreateExclusionsPreviewCommand extends CreateExclusionsPreviewCommand_base {
|
|
@@ -79,28 +79,28 @@ declare const CreateResourceGroupCommand_base: {
|
|
|
79
79
|
* @throws {@link InspectorServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
81
81
|
*
|
|
82
|
-
*
|
|
82
|
+
*
|
|
83
83
|
* @example Create resource group
|
|
84
84
|
* ```javascript
|
|
85
85
|
* // Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target.
|
|
86
86
|
* const input = {
|
|
87
|
-
*
|
|
87
|
+
* resourceGroupTags: [
|
|
88
88
|
* {
|
|
89
|
-
*
|
|
90
|
-
*
|
|
89
|
+
* key: "Name",
|
|
90
|
+
* value: "example"
|
|
91
91
|
* }
|
|
92
92
|
* ]
|
|
93
93
|
* };
|
|
94
94
|
* const command = new CreateResourceGroupCommand(input);
|
|
95
95
|
* const response = await client.send(command);
|
|
96
|
-
* /* response
|
|
96
|
+
* /* response is
|
|
97
97
|
* {
|
|
98
|
-
*
|
|
98
|
+
* resourceGroupArn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv"
|
|
99
99
|
* }
|
|
100
100
|
* *\/
|
|
101
|
-
* // example id: create-resource-group-1481064169037
|
|
102
101
|
* ```
|
|
103
102
|
*
|
|
103
|
+
* @public
|
|
104
104
|
*/
|
|
105
105
|
export declare class CreateResourceGroupCommand extends CreateResourceGroupCommand_base {
|
|
106
106
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -74,18 +74,21 @@ declare const DeleteAssessmentRunCommand_base: {
|
|
|
74
74
|
* @throws {@link InspectorServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
*
|
|
78
78
|
* @example Delete assessment run
|
|
79
79
|
* ```javascript
|
|
80
80
|
* // Deletes the assessment run that is specified by the ARN of the assessment run.
|
|
81
81
|
* const input = {
|
|
82
|
-
*
|
|
82
|
+
* assessmentRunArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe"
|
|
83
83
|
* };
|
|
84
84
|
* const command = new DeleteAssessmentRunCommand(input);
|
|
85
|
-
* await client.send(command);
|
|
86
|
-
*
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* { /* metadata only *\/ }
|
|
88
|
+
* *\/
|
|
87
89
|
* ```
|
|
88
90
|
*
|
|
91
|
+
* @public
|
|
89
92
|
*/
|
|
90
93
|
export declare class DeleteAssessmentRunCommand extends DeleteAssessmentRunCommand_base {
|
|
91
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -74,18 +74,21 @@ declare const DeleteAssessmentTargetCommand_base: {
|
|
|
74
74
|
* @throws {@link InspectorServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
*
|
|
78
78
|
* @example Delete assessment target
|
|
79
79
|
* ```javascript
|
|
80
80
|
* // Deletes the assessment target that is specified by the ARN of the assessment target.
|
|
81
81
|
* const input = {
|
|
82
|
-
*
|
|
82
|
+
* assessmentTargetArn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"
|
|
83
83
|
* };
|
|
84
84
|
* const command = new DeleteAssessmentTargetCommand(input);
|
|
85
|
-
* await client.send(command);
|
|
86
|
-
*
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* { /* metadata only *\/ }
|
|
88
|
+
* *\/
|
|
87
89
|
* ```
|
|
88
90
|
*
|
|
91
|
+
* @public
|
|
89
92
|
*/
|
|
90
93
|
export declare class DeleteAssessmentTargetCommand extends DeleteAssessmentTargetCommand_base {
|
|
91
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -74,18 +74,21 @@ declare const DeleteAssessmentTemplateCommand_base: {
|
|
|
74
74
|
* @throws {@link InspectorServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
*
|
|
78
78
|
* @example Delete assessment template
|
|
79
79
|
* ```javascript
|
|
80
80
|
* // Deletes the assessment template that is specified by the ARN of the assessment template.
|
|
81
81
|
* const input = {
|
|
82
|
-
*
|
|
82
|
+
* assessmentTemplateArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"
|
|
83
83
|
* };
|
|
84
84
|
* const command = new DeleteAssessmentTemplateCommand(input);
|
|
85
|
-
* await client.send(command);
|
|
86
|
-
*
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* { /* metadata only *\/ }
|
|
88
|
+
* *\/
|
|
87
89
|
* ```
|
|
88
90
|
*
|
|
91
|
+
* @public
|
|
89
92
|
*/
|
|
90
93
|
export declare class DeleteAssessmentTemplateCommand extends DeleteAssessmentTemplateCommand_base {
|
|
91
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -111,85 +111,8 @@ declare const DescribeAssessmentRunsCommand_base: {
|
|
|
111
111
|
* @throws {@link InspectorServiceException}
|
|
112
112
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
113
113
|
*
|
|
114
|
-
* @public
|
|
115
|
-
* @example Describte assessment runs
|
|
116
|
-
* ```javascript
|
|
117
|
-
* // Describes the assessment runs that are specified by the ARNs of the assessment runs.
|
|
118
|
-
* const input = {
|
|
119
|
-
* "assessmentRunArns": [
|
|
120
|
-
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE"
|
|
121
|
-
* ]
|
|
122
|
-
* };
|
|
123
|
-
* const command = new DescribeAssessmentRunsCommand(input);
|
|
124
|
-
* const response = await client.send(command);
|
|
125
|
-
* /* response ==
|
|
126
|
-
* {
|
|
127
|
-
* "assessmentRuns": [
|
|
128
|
-
* {
|
|
129
|
-
* "name": "Run 1 for ExampleAssessmentTemplate",
|
|
130
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
|
131
|
-
* "assessmentTemplateArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
|
132
|
-
* "completedAt": "1458680301.4",
|
|
133
|
-
* "createdAt": "1458680170.035",
|
|
134
|
-
* "dataCollected": true,
|
|
135
|
-
* "durationInSeconds": 3600,
|
|
136
|
-
* "findingCounts": {
|
|
137
|
-
* "High": 14,
|
|
138
|
-
* "Informational": 0,
|
|
139
|
-
* "Low": 0,
|
|
140
|
-
* "Medium": 2,
|
|
141
|
-
* "Undefined": 0
|
|
142
|
-
* },
|
|
143
|
-
* "notifications": [],
|
|
144
|
-
* "rulesPackageArns": [
|
|
145
|
-
* "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP"
|
|
146
|
-
* ],
|
|
147
|
-
* "startedAt": "1458680170.161",
|
|
148
|
-
* "state": "COMPLETED",
|
|
149
|
-
* "stateChangedAt": "1458680301.4",
|
|
150
|
-
* "stateChanges": [
|
|
151
|
-
* {
|
|
152
|
-
* "state": "CREATED",
|
|
153
|
-
* "stateChangedAt": "1458680170.035"
|
|
154
|
-
* },
|
|
155
|
-
* {
|
|
156
|
-
* "state": "START_DATA_COLLECTION_PENDING",
|
|
157
|
-
* "stateChangedAt": "1458680170.065"
|
|
158
|
-
* },
|
|
159
|
-
* {
|
|
160
|
-
* "state": "START_DATA_COLLECTION_IN_PROGRESS",
|
|
161
|
-
* "stateChangedAt": "1458680170.096"
|
|
162
|
-
* },
|
|
163
|
-
* {
|
|
164
|
-
* "state": "COLLECTING_DATA",
|
|
165
|
-
* "stateChangedAt": "1458680170.161"
|
|
166
|
-
* },
|
|
167
|
-
* {
|
|
168
|
-
* "state": "STOP_DATA_COLLECTION_PENDING",
|
|
169
|
-
* "stateChangedAt": "1458680239.883"
|
|
170
|
-
* },
|
|
171
|
-
* {
|
|
172
|
-
* "state": "DATA_COLLECTED",
|
|
173
|
-
* "stateChangedAt": "1458680299.847"
|
|
174
|
-
* },
|
|
175
|
-
* {
|
|
176
|
-
* "state": "EVALUATING_RULES",
|
|
177
|
-
* "stateChangedAt": "1458680300.099"
|
|
178
|
-
* },
|
|
179
|
-
* {
|
|
180
|
-
* "state": "COMPLETED",
|
|
181
|
-
* "stateChangedAt": "1458680301.4"
|
|
182
|
-
* }
|
|
183
|
-
* ],
|
|
184
|
-
* "userAttributesForFindings": []
|
|
185
|
-
* }
|
|
186
|
-
* ],
|
|
187
|
-
* "failedItems": {}
|
|
188
|
-
* }
|
|
189
|
-
* *\/
|
|
190
|
-
* // example id: describte-assessment-runs-1481064424352
|
|
191
|
-
* ```
|
|
192
114
|
*
|
|
115
|
+
* @public
|
|
193
116
|
*/
|
|
194
117
|
export declare class DescribeAssessmentRunsCommand extends DescribeAssessmentRunsCommand_base {
|
|
195
118
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -78,34 +78,8 @@ declare const DescribeAssessmentTargetsCommand_base: {
|
|
|
78
78
|
* @throws {@link InspectorServiceException}
|
|
79
79
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
80
80
|
*
|
|
81
|
-
* @public
|
|
82
|
-
* @example Describte assessment targets
|
|
83
|
-
* ```javascript
|
|
84
|
-
* // Describes the assessment targets that are specified by the ARNs of the assessment targets.
|
|
85
|
-
* const input = {
|
|
86
|
-
* "assessmentTargetArns": [
|
|
87
|
-
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"
|
|
88
|
-
* ]
|
|
89
|
-
* };
|
|
90
|
-
* const command = new DescribeAssessmentTargetsCommand(input);
|
|
91
|
-
* const response = await client.send(command);
|
|
92
|
-
* /* response ==
|
|
93
|
-
* {
|
|
94
|
-
* "assessmentTargets": [
|
|
95
|
-
* {
|
|
96
|
-
* "name": "ExampleAssessmentTarget",
|
|
97
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
|
98
|
-
* "createdAt": "1458074191.459",
|
|
99
|
-
* "resourceGroupArn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI",
|
|
100
|
-
* "updatedAt": "1458074191.459"
|
|
101
|
-
* }
|
|
102
|
-
* ],
|
|
103
|
-
* "failedItems": {}
|
|
104
|
-
* }
|
|
105
|
-
* *\/
|
|
106
|
-
* // example id: describte-assessment-targets-1481064527735
|
|
107
|
-
* ```
|
|
108
81
|
*
|
|
82
|
+
* @public
|
|
109
83
|
*/
|
|
110
84
|
export declare class DescribeAssessmentTargetsCommand extends DescribeAssessmentTargetsCommand_base {
|
|
111
85
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -89,39 +89,8 @@ declare const DescribeAssessmentTemplatesCommand_base: {
|
|
|
89
89
|
* @throws {@link InspectorServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
91
91
|
*
|
|
92
|
-
* @public
|
|
93
|
-
* @example Describte assessment templates
|
|
94
|
-
* ```javascript
|
|
95
|
-
* // Describes the assessment templates that are specified by the ARNs of the assessment templates.
|
|
96
|
-
* const input = {
|
|
97
|
-
* "assessmentTemplateArns": [
|
|
98
|
-
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw"
|
|
99
|
-
* ]
|
|
100
|
-
* };
|
|
101
|
-
* const command = new DescribeAssessmentTemplatesCommand(input);
|
|
102
|
-
* const response = await client.send(command);
|
|
103
|
-
* /* response ==
|
|
104
|
-
* {
|
|
105
|
-
* "assessmentTemplates": [
|
|
106
|
-
* {
|
|
107
|
-
* "name": "ExampleAssessmentTemplate",
|
|
108
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
|
109
|
-
* "assessmentRunCount": 0,
|
|
110
|
-
* "assessmentTargetArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
|
111
|
-
* "createdAt": "1458074191.844",
|
|
112
|
-
* "durationInSeconds": 3600,
|
|
113
|
-
* "rulesPackageArns": [
|
|
114
|
-
* "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP"
|
|
115
|
-
* ],
|
|
116
|
-
* "userAttributesForFindings": []
|
|
117
|
-
* }
|
|
118
|
-
* ],
|
|
119
|
-
* "failedItems": {}
|
|
120
|
-
* }
|
|
121
|
-
* *\/
|
|
122
|
-
* // example id: describte-assessment-templates-1481064606829
|
|
123
|
-
* ```
|
|
124
92
|
*
|
|
93
|
+
* @public
|
|
125
94
|
*/
|
|
126
95
|
export declare class DescribeAssessmentTemplatesCommand extends DescribeAssessmentTemplatesCommand_base {
|
|
127
96
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -58,23 +58,8 @@ declare const DescribeCrossAccountAccessRoleCommand_base: {
|
|
|
58
58
|
* @throws {@link InspectorServiceException}
|
|
59
59
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
60
60
|
*
|
|
61
|
-
* @public
|
|
62
|
-
* @example Describte cross account access role
|
|
63
|
-
* ```javascript
|
|
64
|
-
* // Describes the IAM role that enables Amazon Inspector to access your AWS account.
|
|
65
|
-
* const input = {};
|
|
66
|
-
* const command = new DescribeCrossAccountAccessRoleCommand(input);
|
|
67
|
-
* const response = await client.send(command);
|
|
68
|
-
* /* response ==
|
|
69
|
-
* {
|
|
70
|
-
* "registeredAt": "1458069182.826",
|
|
71
|
-
* "roleArn": "arn:aws:iam::123456789012:role/inspector",
|
|
72
|
-
* "valid": true
|
|
73
|
-
* }
|
|
74
|
-
* *\/
|
|
75
|
-
* // example id: describte-cross-account-access-role-1481064682267
|
|
76
|
-
* ```
|
|
77
61
|
*
|
|
62
|
+
* @public
|
|
78
63
|
*/
|
|
79
64
|
export declare class DescribeCrossAccountAccessRoleCommand extends DescribeCrossAccountAccessRoleCommand_base {
|
|
80
65
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -89,6 +89,7 @@ declare const DescribeExclusionsCommand_base: {
|
|
|
89
89
|
* @throws {@link InspectorServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
91
91
|
*
|
|
92
|
+
*
|
|
92
93
|
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class DescribeExclusionsCommand extends DescribeExclusionsCommand_base {
|
|
@@ -146,53 +146,8 @@ declare const DescribeFindingsCommand_base: {
|
|
|
146
146
|
* @throws {@link InspectorServiceException}
|
|
147
147
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
148
148
|
*
|
|
149
|
-
* @public
|
|
150
|
-
* @example Describe findings
|
|
151
|
-
* ```javascript
|
|
152
|
-
* // Describes the findings that are specified by the ARNs of the findings.
|
|
153
|
-
* const input = {
|
|
154
|
-
* "findingArns": [
|
|
155
|
-
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4"
|
|
156
|
-
* ]
|
|
157
|
-
* };
|
|
158
|
-
* const command = new DescribeFindingsCommand(input);
|
|
159
|
-
* const response = await client.send(command);
|
|
160
|
-
* /* response ==
|
|
161
|
-
* {
|
|
162
|
-
* "failedItems": {},
|
|
163
|
-
* "findings": [
|
|
164
|
-
* {
|
|
165
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4",
|
|
166
|
-
* "assetAttributes": {
|
|
167
|
-
* "ipv4Addresses": [],
|
|
168
|
-
* "schemaVersion": 1
|
|
169
|
-
* },
|
|
170
|
-
* "assetType": "ec2-instance",
|
|
171
|
-
* "attributes": [],
|
|
172
|
-
* "confidence": 10,
|
|
173
|
-
* "createdAt": "1458680301.37",
|
|
174
|
-
* "description": "Amazon Inspector did not find any potential security issues during this assessment.",
|
|
175
|
-
* "indicatorOfCompromise": false,
|
|
176
|
-
* "numericSeverity": 0,
|
|
177
|
-
* "recommendation": "No remediation needed.",
|
|
178
|
-
* "schemaVersion": 1,
|
|
179
|
-
* "service": "Inspector",
|
|
180
|
-
* "serviceAttributes": {
|
|
181
|
-
* "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
|
182
|
-
* "rulesPackageArn": "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP",
|
|
183
|
-
* "schemaVersion": 1
|
|
184
|
-
* },
|
|
185
|
-
* "severity": "Informational",
|
|
186
|
-
* "title": "No potential security issues found",
|
|
187
|
-
* "updatedAt": "1458680301.37",
|
|
188
|
-
* "userAttributes": []
|
|
189
|
-
* }
|
|
190
|
-
* ]
|
|
191
|
-
* }
|
|
192
|
-
* *\/
|
|
193
|
-
* // example id: describte-findings-1481064771803
|
|
194
|
-
* ```
|
|
195
149
|
*
|
|
150
|
+
* @public
|
|
196
151
|
*/
|
|
197
152
|
export declare class DescribeFindingsCommand extends DescribeFindingsCommand_base {
|
|
198
153
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -81,37 +81,8 @@ declare const DescribeResourceGroupsCommand_base: {
|
|
|
81
81
|
* @throws {@link InspectorServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
83
83
|
*
|
|
84
|
-
* @public
|
|
85
|
-
* @example Describe resource groups
|
|
86
|
-
* ```javascript
|
|
87
|
-
* // Describes the resource groups that are specified by the ARNs of the resource groups.
|
|
88
|
-
* const input = {
|
|
89
|
-
* "resourceGroupArns": [
|
|
90
|
-
* "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI"
|
|
91
|
-
* ]
|
|
92
|
-
* };
|
|
93
|
-
* const command = new DescribeResourceGroupsCommand(input);
|
|
94
|
-
* const response = await client.send(command);
|
|
95
|
-
* /* response ==
|
|
96
|
-
* {
|
|
97
|
-
* "failedItems": {},
|
|
98
|
-
* "resourceGroups": [
|
|
99
|
-
* {
|
|
100
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI",
|
|
101
|
-
* "createdAt": "1458074191.098",
|
|
102
|
-
* "tags": [
|
|
103
|
-
* {
|
|
104
|
-
* "key": "Name",
|
|
105
|
-
* "value": "example"
|
|
106
|
-
* }
|
|
107
|
-
* ]
|
|
108
|
-
* }
|
|
109
|
-
* ]
|
|
110
|
-
* }
|
|
111
|
-
* *\/
|
|
112
|
-
* // example id: describe-resource-groups-1481065787743
|
|
113
|
-
* ```
|
|
114
84
|
*
|
|
85
|
+
* @public
|
|
115
86
|
*/
|
|
116
87
|
export declare class DescribeResourceGroupsCommand extends DescribeResourceGroupsCommand_base {
|
|
117
88
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -79,34 +79,34 @@ declare const DescribeRulesPackagesCommand_base: {
|
|
|
79
79
|
* @throws {@link InspectorServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
81
81
|
*
|
|
82
|
-
*
|
|
82
|
+
*
|
|
83
83
|
* @example Describe rules packages
|
|
84
84
|
* ```javascript
|
|
85
85
|
* // Describes the rules packages that are specified by the ARNs of the rules packages.
|
|
86
86
|
* const input = {
|
|
87
|
-
*
|
|
87
|
+
* rulesPackageArns: [
|
|
88
88
|
* "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ"
|
|
89
89
|
* ]
|
|
90
90
|
* };
|
|
91
91
|
* const command = new DescribeRulesPackagesCommand(input);
|
|
92
92
|
* const response = await client.send(command);
|
|
93
|
-
* /* response
|
|
93
|
+
* /* response is
|
|
94
94
|
* {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
95
|
+
* failedItems: { /* empty *\/ },
|
|
96
|
+
* rulesPackages: [
|
|
97
97
|
* {
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
98
|
+
* arn: "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ",
|
|
99
|
+
* description: "The rules in this package help determine whether your systems are configured securely.",
|
|
100
|
+
* name: "Security Best Practices",
|
|
101
|
+
* provider: "Amazon Web Services, Inc.",
|
|
102
|
+
* version: "1.1"
|
|
103
103
|
* }
|
|
104
104
|
* ]
|
|
105
105
|
* }
|
|
106
106
|
* *\/
|
|
107
|
-
* // example id: describe-rules-packages-1481069641979
|
|
108
107
|
* ```
|
|
109
108
|
*
|
|
109
|
+
* @public
|
|
110
110
|
*/
|
|
111
111
|
export declare class DescribeRulesPackagesCommand extends DescribeRulesPackagesCommand_base {
|
|
112
112
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -86,6 +86,7 @@ declare const GetAssessmentReportCommand_base: {
|
|
|
86
86
|
* @throws {@link InspectorServiceException}
|
|
87
87
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
88
88
|
*
|
|
89
|
+
*
|
|
89
90
|
* @public
|
|
90
91
|
*/
|
|
91
92
|
export declare class GetAssessmentReportCommand extends GetAssessmentReportCommand_base {
|
|
@@ -94,6 +94,7 @@ declare const GetExclusionsPreviewCommand_base: {
|
|
|
94
94
|
* @throws {@link InspectorServiceException}
|
|
95
95
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
96
96
|
*
|
|
97
|
+
*
|
|
97
98
|
* @public
|
|
98
99
|
*/
|
|
99
100
|
export declare class GetExclusionsPreviewCommand extends GetExclusionsPreviewCommand_base {
|