@aws-sdk/client-inspector 3.321.1 → 3.326.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 +11 -0
- package/dist-types/commands/CreateAssessmentTargetCommand.d.ts +6 -0
- package/dist-types/commands/CreateAssessmentTemplateCommand.d.ts +6 -0
- package/dist-types/commands/CreateExclusionsPreviewCommand.d.ts +6 -0
- package/dist-types/commands/CreateResourceGroupCommand.d.ts +6 -0
- package/dist-types/commands/DeleteAssessmentRunCommand.d.ts +4 -0
- package/dist-types/commands/DeleteAssessmentTargetCommand.d.ts +4 -0
- package/dist-types/commands/DeleteAssessmentTemplateCommand.d.ts +4 -0
- package/dist-types/commands/DescribeAssessmentRunsCommand.d.ts +53 -0
- package/dist-types/commands/DescribeAssessmentTargetsCommand.d.ts +20 -0
- package/dist-types/commands/DescribeAssessmentTemplatesCommand.d.ts +31 -0
- package/dist-types/commands/DescribeCrossAccountAccessRoleCommand.d.ts +8 -0
- package/dist-types/commands/DescribeExclusionsCommand.d.ts +31 -0
- package/dist-types/commands/DescribeFindingsCommand.d.ts +88 -0
- package/dist-types/commands/DescribeResourceGroupsCommand.d.ts +23 -0
- package/dist-types/commands/DescribeRulesPackagesCommand.d.ts +20 -0
- package/dist-types/commands/GetAssessmentReportCommand.d.ts +7 -0
- package/dist-types/commands/GetExclusionsPreviewCommand.d.ts +26 -0
- package/dist-types/commands/GetTelemetryMetadataCommand.d.ts +12 -0
- package/dist-types/commands/ListAssessmentRunAgentsCommand.d.ts +23 -0
- package/dist-types/commands/ListAssessmentRunsCommand.d.ts +9 -0
- package/dist-types/commands/ListAssessmentTargetsCommand.d.ts +9 -0
- package/dist-types/commands/ListAssessmentTemplatesCommand.d.ts +9 -0
- package/dist-types/commands/ListEventSubscriptionsCommand.d.ts +18 -0
- package/dist-types/commands/ListExclusionsCommand.d.ts +9 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +9 -0
- package/dist-types/commands/ListRulesPackagesCommand.d.ts +9 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -0
- package/dist-types/commands/PreviewAgentsCommand.d.ts +18 -0
- package/dist-types/commands/RegisterCrossAccountAccessRoleCommand.d.ts +4 -0
- package/dist-types/commands/RemoveAttributesFromFindingsCommand.d.ts +11 -0
- package/dist-types/commands/SetTagsForResourceCommand.d.ts +4 -0
- package/dist-types/commands/StartAssessmentRunCommand.d.ts +6 -0
- package/dist-types/commands/StopAssessmentRunCommand.d.ts +4 -0
- package/dist-types/commands/SubscribeToEventCommand.d.ts +4 -0
- package/dist-types/commands/UnsubscribeFromEventCommand.d.ts +4 -0
- package/dist-types/commands/UpdateAssessmentTargetCommand.d.ts +4 -0
- package/package.json +16 -16
|
@@ -40,6 +40,15 @@ export interface AddAttributesToFindingsCommandOutput extends AddAttributesToFin
|
|
|
40
40
|
* };
|
|
41
41
|
* const command = new AddAttributesToFindingsCommand(input);
|
|
42
42
|
* const response = await client.send(command);
|
|
43
|
+
* // { // AddAttributesToFindingsResponse
|
|
44
|
+
* // failedItems: { // FailedItems // required
|
|
45
|
+
* // "<keys>": { // FailedItemDetails
|
|
46
|
+
* // failureCode: "STRING_VALUE", // required
|
|
47
|
+
* // retryable: true || false, // required
|
|
48
|
+
* // },
|
|
49
|
+
* // },
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
43
52
|
* ```
|
|
44
53
|
*
|
|
45
54
|
* @param AddAttributesToFindingsCommandInput - {@link AddAttributesToFindingsCommandInput}
|
|
@@ -65,6 +74,8 @@ export interface AddAttributesToFindingsCommandOutput extends AddAttributesToFin
|
|
|
65
74
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
66
75
|
* <p>The serice is temporary unavailable.</p>
|
|
67
76
|
*
|
|
77
|
+
* @throws {@link InspectorServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
68
79
|
*
|
|
69
80
|
* @example Add attributes to findings
|
|
70
81
|
* ```javascript
|
|
@@ -39,6 +39,10 @@ export interface CreateAssessmentTargetCommandOutput extends CreateAssessmentTar
|
|
|
39
39
|
* };
|
|
40
40
|
* const command = new CreateAssessmentTargetCommand(input);
|
|
41
41
|
* const response = await client.send(command);
|
|
42
|
+
* // { // CreateAssessmentTargetResponse
|
|
43
|
+
* // assessmentTargetArn: "STRING_VALUE", // required
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
42
46
|
* ```
|
|
43
47
|
*
|
|
44
48
|
* @param CreateAssessmentTargetCommandInput - {@link CreateAssessmentTargetCommandInput}
|
|
@@ -72,6 +76,8 @@ export interface CreateAssessmentTargetCommandOutput extends CreateAssessmentTar
|
|
|
72
76
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
73
77
|
* <p>The serice is temporary unavailable.</p>
|
|
74
78
|
*
|
|
79
|
+
* @throws {@link InspectorServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
75
81
|
*
|
|
76
82
|
* @example Create assessment target
|
|
77
83
|
* ```javascript
|
|
@@ -45,6 +45,10 @@ export interface CreateAssessmentTemplateCommandOutput extends CreateAssessmentT
|
|
|
45
45
|
* };
|
|
46
46
|
* const command = new CreateAssessmentTemplateCommand(input);
|
|
47
47
|
* const response = await client.send(command);
|
|
48
|
+
* // { // CreateAssessmentTemplateResponse
|
|
49
|
+
* // assessmentTemplateArn: "STRING_VALUE", // required
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
48
52
|
* ```
|
|
49
53
|
*
|
|
50
54
|
* @param CreateAssessmentTemplateCommandInput - {@link CreateAssessmentTemplateCommandInput}
|
|
@@ -74,6 +78,8 @@ export interface CreateAssessmentTemplateCommandOutput extends CreateAssessmentT
|
|
|
74
78
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
75
79
|
* <p>The serice is temporary unavailable.</p>
|
|
76
80
|
*
|
|
81
|
+
* @throws {@link InspectorServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
77
83
|
*
|
|
78
84
|
* @example Create assessment template
|
|
79
85
|
* ```javascript
|
|
@@ -33,6 +33,10 @@ export interface CreateExclusionsPreviewCommandOutput extends CreateExclusionsPr
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new CreateExclusionsPreviewCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // { // CreateExclusionsPreviewResponse
|
|
37
|
+
* // previewToken: "STRING_VALUE", // required
|
|
38
|
+
* // };
|
|
39
|
+
*
|
|
36
40
|
* ```
|
|
37
41
|
*
|
|
38
42
|
* @param CreateExclusionsPreviewCommandInput - {@link CreateExclusionsPreviewCommandInput}
|
|
@@ -62,6 +66,8 @@ export interface CreateExclusionsPreviewCommandOutput extends CreateExclusionsPr
|
|
|
62
66
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
63
67
|
* <p>The serice is temporary unavailable.</p>
|
|
64
68
|
*
|
|
69
|
+
* @throws {@link InspectorServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
65
71
|
*
|
|
66
72
|
*/
|
|
67
73
|
export declare class CreateExclusionsPreviewCommand extends $Command<CreateExclusionsPreviewCommandInput, CreateExclusionsPreviewCommandOutput, InspectorClientResolvedConfig> {
|
|
@@ -39,6 +39,10 @@ export interface CreateResourceGroupCommandOutput extends CreateResourceGroupRes
|
|
|
39
39
|
* };
|
|
40
40
|
* const command = new CreateResourceGroupCommand(input);
|
|
41
41
|
* const response = await client.send(command);
|
|
42
|
+
* // { // CreateResourceGroupResponse
|
|
43
|
+
* // resourceGroupArn: "STRING_VALUE", // required
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
42
46
|
* ```
|
|
43
47
|
*
|
|
44
48
|
* @param CreateResourceGroupCommandInput - {@link CreateResourceGroupCommandInput}
|
|
@@ -64,6 +68,8 @@ export interface CreateResourceGroupCommandOutput extends CreateResourceGroupRes
|
|
|
64
68
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
65
69
|
* <p>The serice is temporary unavailable.</p>
|
|
66
70
|
*
|
|
71
|
+
* @throws {@link InspectorServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
67
73
|
*
|
|
68
74
|
* @example Create resource group
|
|
69
75
|
* ```javascript
|
|
@@ -32,6 +32,8 @@ export interface DeleteAssessmentRunCommandOutput extends __MetadataBearer {
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new DeleteAssessmentRunCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // {};
|
|
36
|
+
*
|
|
35
37
|
* ```
|
|
36
38
|
*
|
|
37
39
|
* @param DeleteAssessmentRunCommandInput - {@link DeleteAssessmentRunCommandInput}
|
|
@@ -61,6 +63,8 @@ export interface DeleteAssessmentRunCommandOutput extends __MetadataBearer {
|
|
|
61
63
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
62
64
|
* <p>The serice is temporary unavailable.</p>
|
|
63
65
|
*
|
|
66
|
+
* @throws {@link InspectorServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
64
68
|
*
|
|
65
69
|
* @example Delete assessment run
|
|
66
70
|
* ```javascript
|
|
@@ -32,6 +32,8 @@ export interface DeleteAssessmentTargetCommandOutput extends __MetadataBearer {
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new DeleteAssessmentTargetCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // {};
|
|
36
|
+
*
|
|
35
37
|
* ```
|
|
36
38
|
*
|
|
37
39
|
* @param DeleteAssessmentTargetCommandInput - {@link DeleteAssessmentTargetCommandInput}
|
|
@@ -61,6 +63,8 @@ export interface DeleteAssessmentTargetCommandOutput extends __MetadataBearer {
|
|
|
61
63
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
62
64
|
* <p>The serice is temporary unavailable.</p>
|
|
63
65
|
*
|
|
66
|
+
* @throws {@link InspectorServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
64
68
|
*
|
|
65
69
|
* @example Delete assessment target
|
|
66
70
|
* ```javascript
|
|
@@ -32,6 +32,8 @@ export interface DeleteAssessmentTemplateCommandOutput extends __MetadataBearer
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new DeleteAssessmentTemplateCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // {};
|
|
36
|
+
*
|
|
35
37
|
* ```
|
|
36
38
|
*
|
|
37
39
|
* @param DeleteAssessmentTemplateCommandInput - {@link DeleteAssessmentTemplateCommandInput}
|
|
@@ -61,6 +63,8 @@ export interface DeleteAssessmentTemplateCommandOutput extends __MetadataBearer
|
|
|
61
63
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
62
64
|
* <p>The serice is temporary unavailable.</p>
|
|
63
65
|
*
|
|
66
|
+
* @throws {@link InspectorServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
64
68
|
*
|
|
65
69
|
* @example Delete assessment template
|
|
66
70
|
* ```javascript
|
|
@@ -34,6 +34,57 @@ export interface DescribeAssessmentRunsCommandOutput extends DescribeAssessmentR
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DescribeAssessmentRunsCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DescribeAssessmentRunsResponse
|
|
38
|
+
* // assessmentRuns: [ // AssessmentRunList // required
|
|
39
|
+
* // { // AssessmentRun
|
|
40
|
+
* // arn: "STRING_VALUE", // required
|
|
41
|
+
* // name: "STRING_VALUE", // required
|
|
42
|
+
* // assessmentTemplateArn: "STRING_VALUE", // required
|
|
43
|
+
* // state: "STRING_VALUE", // required
|
|
44
|
+
* // durationInSeconds: Number("int"), // required
|
|
45
|
+
* // rulesPackageArns: [ // AssessmentRulesPackageArnList // required
|
|
46
|
+
* // "STRING_VALUE",
|
|
47
|
+
* // ],
|
|
48
|
+
* // userAttributesForFindings: [ // UserAttributeList // required
|
|
49
|
+
* // { // Attribute
|
|
50
|
+
* // key: "STRING_VALUE", // required
|
|
51
|
+
* // value: "STRING_VALUE",
|
|
52
|
+
* // },
|
|
53
|
+
* // ],
|
|
54
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
55
|
+
* // startedAt: new Date("TIMESTAMP"),
|
|
56
|
+
* // completedAt: new Date("TIMESTAMP"),
|
|
57
|
+
* // stateChangedAt: new Date("TIMESTAMP"), // required
|
|
58
|
+
* // dataCollected: true || false, // required
|
|
59
|
+
* // stateChanges: [ // AssessmentRunStateChangeList // required
|
|
60
|
+
* // { // AssessmentRunStateChange
|
|
61
|
+
* // stateChangedAt: new Date("TIMESTAMP"), // required
|
|
62
|
+
* // state: "STRING_VALUE", // required
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // notifications: [ // AssessmentRunNotificationList // required
|
|
66
|
+
* // { // AssessmentRunNotification
|
|
67
|
+
* // date: new Date("TIMESTAMP"), // required
|
|
68
|
+
* // event: "STRING_VALUE", // required
|
|
69
|
+
* // message: "STRING_VALUE",
|
|
70
|
+
* // error: true || false, // required
|
|
71
|
+
* // snsTopicArn: "STRING_VALUE",
|
|
72
|
+
* // snsPublishStatusCode: "STRING_VALUE",
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // findingCounts: { // AssessmentRunFindingCounts // required
|
|
76
|
+
* // "<keys>": Number("int"),
|
|
77
|
+
* // },
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // failedItems: { // FailedItems // required
|
|
81
|
+
* // "<keys>": { // FailedItemDetails
|
|
82
|
+
* // failureCode: "STRING_VALUE", // required
|
|
83
|
+
* // retryable: true || false, // required
|
|
84
|
+
* // },
|
|
85
|
+
* // },
|
|
86
|
+
* // };
|
|
87
|
+
*
|
|
37
88
|
* ```
|
|
38
89
|
*
|
|
39
90
|
* @param DescribeAssessmentRunsCommandInput - {@link DescribeAssessmentRunsCommandInput}
|
|
@@ -49,6 +100,8 @@ export interface DescribeAssessmentRunsCommandOutput extends DescribeAssessmentR
|
|
|
49
100
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
50
101
|
* input parameter.</p>
|
|
51
102
|
*
|
|
103
|
+
* @throws {@link InspectorServiceException}
|
|
104
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
52
105
|
*
|
|
53
106
|
* @example Describte assessment runs
|
|
54
107
|
* ```javascript
|
|
@@ -34,6 +34,24 @@ export interface DescribeAssessmentTargetsCommandOutput extends DescribeAssessme
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DescribeAssessmentTargetsCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DescribeAssessmentTargetsResponse
|
|
38
|
+
* // assessmentTargets: [ // AssessmentTargetList // required
|
|
39
|
+
* // { // AssessmentTarget
|
|
40
|
+
* // arn: "STRING_VALUE", // required
|
|
41
|
+
* // name: "STRING_VALUE", // required
|
|
42
|
+
* // resourceGroupArn: "STRING_VALUE",
|
|
43
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
44
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
45
|
+
* // },
|
|
46
|
+
* // ],
|
|
47
|
+
* // failedItems: { // FailedItems // required
|
|
48
|
+
* // "<keys>": { // FailedItemDetails
|
|
49
|
+
* // failureCode: "STRING_VALUE", // required
|
|
50
|
+
* // retryable: true || false, // required
|
|
51
|
+
* // },
|
|
52
|
+
* // },
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
37
55
|
* ```
|
|
38
56
|
*
|
|
39
57
|
* @param DescribeAssessmentTargetsCommandInput - {@link DescribeAssessmentTargetsCommandInput}
|
|
@@ -49,6 +67,8 @@ export interface DescribeAssessmentTargetsCommandOutput extends DescribeAssessme
|
|
|
49
67
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
50
68
|
* input parameter.</p>
|
|
51
69
|
*
|
|
70
|
+
* @throws {@link InspectorServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
52
72
|
*
|
|
53
73
|
* @example Describte assessment targets
|
|
54
74
|
* ```javascript
|
|
@@ -34,6 +34,35 @@ export interface DescribeAssessmentTemplatesCommandOutput extends DescribeAssess
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DescribeAssessmentTemplatesCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DescribeAssessmentTemplatesResponse
|
|
38
|
+
* // assessmentTemplates: [ // AssessmentTemplateList // required
|
|
39
|
+
* // { // AssessmentTemplate
|
|
40
|
+
* // arn: "STRING_VALUE", // required
|
|
41
|
+
* // name: "STRING_VALUE", // required
|
|
42
|
+
* // assessmentTargetArn: "STRING_VALUE", // required
|
|
43
|
+
* // durationInSeconds: Number("int"), // required
|
|
44
|
+
* // rulesPackageArns: [ // AssessmentTemplateRulesPackageArnList // required
|
|
45
|
+
* // "STRING_VALUE",
|
|
46
|
+
* // ],
|
|
47
|
+
* // userAttributesForFindings: [ // UserAttributeList // required
|
|
48
|
+
* // { // Attribute
|
|
49
|
+
* // key: "STRING_VALUE", // required
|
|
50
|
+
* // value: "STRING_VALUE",
|
|
51
|
+
* // },
|
|
52
|
+
* // ],
|
|
53
|
+
* // lastAssessmentRunArn: "STRING_VALUE",
|
|
54
|
+
* // assessmentRunCount: Number("int"), // required
|
|
55
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // failedItems: { // FailedItems // required
|
|
59
|
+
* // "<keys>": { // FailedItemDetails
|
|
60
|
+
* // failureCode: "STRING_VALUE", // required
|
|
61
|
+
* // retryable: true || false, // required
|
|
62
|
+
* // },
|
|
63
|
+
* // },
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
37
66
|
* ```
|
|
38
67
|
*
|
|
39
68
|
* @param DescribeAssessmentTemplatesCommandInput - {@link DescribeAssessmentTemplatesCommandInput}
|
|
@@ -49,6 +78,8 @@ export interface DescribeAssessmentTemplatesCommandOutput extends DescribeAssess
|
|
|
49
78
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
50
79
|
* input parameter.</p>
|
|
51
80
|
*
|
|
81
|
+
* @throws {@link InspectorServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
52
83
|
*
|
|
53
84
|
* @example Describte assessment templates
|
|
54
85
|
* ```javascript
|
|
@@ -30,6 +30,12 @@ export interface DescribeCrossAccountAccessRoleCommandOutput extends DescribeCro
|
|
|
30
30
|
* const input = {};
|
|
31
31
|
* const command = new DescribeCrossAccountAccessRoleCommand(input);
|
|
32
32
|
* const response = await client.send(command);
|
|
33
|
+
* // { // DescribeCrossAccountAccessRoleResponse
|
|
34
|
+
* // roleArn: "STRING_VALUE", // required
|
|
35
|
+
* // valid: true || false, // required
|
|
36
|
+
* // registeredAt: new Date("TIMESTAMP"), // required
|
|
37
|
+
* // };
|
|
38
|
+
*
|
|
33
39
|
* ```
|
|
34
40
|
*
|
|
35
41
|
* @param DescribeCrossAccountAccessRoleCommandInput - {@link DescribeCrossAccountAccessRoleCommandInput}
|
|
@@ -41,6 +47,8 @@ export interface DescribeCrossAccountAccessRoleCommandOutput extends DescribeCro
|
|
|
41
47
|
* @throws {@link InternalException} (server fault)
|
|
42
48
|
* <p>Internal server error.</p>
|
|
43
49
|
*
|
|
50
|
+
* @throws {@link InspectorServiceException}
|
|
51
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
44
52
|
*
|
|
45
53
|
* @example Describte cross account access role
|
|
46
54
|
* ```javascript
|
|
@@ -34,6 +34,35 @@ export interface DescribeExclusionsCommandOutput extends DescribeExclusionsRespo
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DescribeExclusionsCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DescribeExclusionsResponse
|
|
38
|
+
* // exclusions: { // ExclusionMap // required
|
|
39
|
+
* // "<keys>": { // Exclusion
|
|
40
|
+
* // arn: "STRING_VALUE", // required
|
|
41
|
+
* // title: "STRING_VALUE", // required
|
|
42
|
+
* // description: "STRING_VALUE", // required
|
|
43
|
+
* // recommendation: "STRING_VALUE", // required
|
|
44
|
+
* // scopes: [ // ScopeList // required
|
|
45
|
+
* // { // Scope
|
|
46
|
+
* // key: "STRING_VALUE",
|
|
47
|
+
* // value: "STRING_VALUE",
|
|
48
|
+
* // },
|
|
49
|
+
* // ],
|
|
50
|
+
* // attributes: [ // AttributeList
|
|
51
|
+
* // { // Attribute
|
|
52
|
+
* // key: "STRING_VALUE", // required
|
|
53
|
+
* // value: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // },
|
|
57
|
+
* // },
|
|
58
|
+
* // failedItems: { // FailedItems // required
|
|
59
|
+
* // "<keys>": { // FailedItemDetails
|
|
60
|
+
* // failureCode: "STRING_VALUE", // required
|
|
61
|
+
* // retryable: true || false, // required
|
|
62
|
+
* // },
|
|
63
|
+
* // },
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
37
66
|
* ```
|
|
38
67
|
*
|
|
39
68
|
* @param DescribeExclusionsCommandInput - {@link DescribeExclusionsCommandInput}
|
|
@@ -49,6 +78,8 @@ export interface DescribeExclusionsCommandOutput extends DescribeExclusionsRespo
|
|
|
49
78
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
50
79
|
* input parameter.</p>
|
|
51
80
|
*
|
|
81
|
+
* @throws {@link InspectorServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
52
83
|
*
|
|
53
84
|
*/
|
|
54
85
|
export declare class DescribeExclusionsCommand extends $Command<DescribeExclusionsCommandInput, DescribeExclusionsCommandOutput, InspectorClientResolvedConfig> {
|
|
@@ -34,6 +34,92 @@ export interface DescribeFindingsCommandOutput extends DescribeFindingsResponse,
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DescribeFindingsCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DescribeFindingsResponse
|
|
38
|
+
* // findings: [ // FindingList // required
|
|
39
|
+
* // { // Finding
|
|
40
|
+
* // arn: "STRING_VALUE", // required
|
|
41
|
+
* // schemaVersion: Number("int"),
|
|
42
|
+
* // service: "STRING_VALUE",
|
|
43
|
+
* // serviceAttributes: { // InspectorServiceAttributes
|
|
44
|
+
* // schemaVersion: Number("int"), // required
|
|
45
|
+
* // assessmentRunArn: "STRING_VALUE",
|
|
46
|
+
* // rulesPackageArn: "STRING_VALUE",
|
|
47
|
+
* // },
|
|
48
|
+
* // assetType: "STRING_VALUE",
|
|
49
|
+
* // assetAttributes: { // AssetAttributes
|
|
50
|
+
* // schemaVersion: Number("int"), // required
|
|
51
|
+
* // agentId: "STRING_VALUE",
|
|
52
|
+
* // autoScalingGroup: "STRING_VALUE",
|
|
53
|
+
* // amiId: "STRING_VALUE",
|
|
54
|
+
* // hostname: "STRING_VALUE",
|
|
55
|
+
* // ipv4Addresses: [ // Ipv4AddressList
|
|
56
|
+
* // "STRING_VALUE",
|
|
57
|
+
* // ],
|
|
58
|
+
* // tags: [ // Tags
|
|
59
|
+
* // { // Tag
|
|
60
|
+
* // key: "STRING_VALUE", // required
|
|
61
|
+
* // value: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // networkInterfaces: [ // NetworkInterfaces
|
|
65
|
+
* // { // NetworkInterface
|
|
66
|
+
* // networkInterfaceId: "STRING_VALUE",
|
|
67
|
+
* // subnetId: "STRING_VALUE",
|
|
68
|
+
* // vpcId: "STRING_VALUE",
|
|
69
|
+
* // privateDnsName: "STRING_VALUE",
|
|
70
|
+
* // privateIpAddress: "STRING_VALUE",
|
|
71
|
+
* // privateIpAddresses: [ // PrivateIpAddresses
|
|
72
|
+
* // { // PrivateIp
|
|
73
|
+
* // privateDnsName: "STRING_VALUE",
|
|
74
|
+
* // privateIpAddress: "STRING_VALUE",
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // publicDnsName: "STRING_VALUE",
|
|
78
|
+
* // publicIp: "STRING_VALUE",
|
|
79
|
+
* // ipv6Addresses: [ // Ipv6Addresses
|
|
80
|
+
* // "STRING_VALUE",
|
|
81
|
+
* // ],
|
|
82
|
+
* // securityGroups: [ // SecurityGroups
|
|
83
|
+
* // { // SecurityGroup
|
|
84
|
+
* // groupName: "STRING_VALUE",
|
|
85
|
+
* // groupId: "STRING_VALUE",
|
|
86
|
+
* // },
|
|
87
|
+
* // ],
|
|
88
|
+
* // },
|
|
89
|
+
* // ],
|
|
90
|
+
* // },
|
|
91
|
+
* // id: "STRING_VALUE",
|
|
92
|
+
* // title: "STRING_VALUE",
|
|
93
|
+
* // description: "STRING_VALUE",
|
|
94
|
+
* // recommendation: "STRING_VALUE",
|
|
95
|
+
* // severity: "STRING_VALUE",
|
|
96
|
+
* // numericSeverity: Number("double"),
|
|
97
|
+
* // confidence: Number("int"),
|
|
98
|
+
* // indicatorOfCompromise: true || false,
|
|
99
|
+
* // attributes: [ // AttributeList // required
|
|
100
|
+
* // { // Attribute
|
|
101
|
+
* // key: "STRING_VALUE", // required
|
|
102
|
+
* // value: "STRING_VALUE",
|
|
103
|
+
* // },
|
|
104
|
+
* // ],
|
|
105
|
+
* // userAttributes: [ // UserAttributeList // required
|
|
106
|
+
* // {
|
|
107
|
+
* // key: "STRING_VALUE", // required
|
|
108
|
+
* // value: "STRING_VALUE",
|
|
109
|
+
* // },
|
|
110
|
+
* // ],
|
|
111
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
112
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
113
|
+
* // },
|
|
114
|
+
* // ],
|
|
115
|
+
* // failedItems: { // FailedItems // required
|
|
116
|
+
* // "<keys>": { // FailedItemDetails
|
|
117
|
+
* // failureCode: "STRING_VALUE", // required
|
|
118
|
+
* // retryable: true || false, // required
|
|
119
|
+
* // },
|
|
120
|
+
* // },
|
|
121
|
+
* // };
|
|
122
|
+
*
|
|
37
123
|
* ```
|
|
38
124
|
*
|
|
39
125
|
* @param DescribeFindingsCommandInput - {@link DescribeFindingsCommandInput}
|
|
@@ -49,6 +135,8 @@ export interface DescribeFindingsCommandOutput extends DescribeFindingsResponse,
|
|
|
49
135
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
50
136
|
* input parameter.</p>
|
|
51
137
|
*
|
|
138
|
+
* @throws {@link InspectorServiceException}
|
|
139
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
52
140
|
*
|
|
53
141
|
* @example Describe findings
|
|
54
142
|
* ```javascript
|
|
@@ -34,6 +34,27 @@ export interface DescribeResourceGroupsCommandOutput extends DescribeResourceGro
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DescribeResourceGroupsCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DescribeResourceGroupsResponse
|
|
38
|
+
* // resourceGroups: [ // ResourceGroupList // required
|
|
39
|
+
* // { // ResourceGroup
|
|
40
|
+
* // arn: "STRING_VALUE", // required
|
|
41
|
+
* // tags: [ // ResourceGroupTags // required
|
|
42
|
+
* // { // ResourceGroupTag
|
|
43
|
+
* // key: "STRING_VALUE", // required
|
|
44
|
+
* // value: "STRING_VALUE",
|
|
45
|
+
* // },
|
|
46
|
+
* // ],
|
|
47
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
48
|
+
* // },
|
|
49
|
+
* // ],
|
|
50
|
+
* // failedItems: { // FailedItems // required
|
|
51
|
+
* // "<keys>": { // FailedItemDetails
|
|
52
|
+
* // failureCode: "STRING_VALUE", // required
|
|
53
|
+
* // retryable: true || false, // required
|
|
54
|
+
* // },
|
|
55
|
+
* // },
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
37
58
|
* ```
|
|
38
59
|
*
|
|
39
60
|
* @param DescribeResourceGroupsCommandInput - {@link DescribeResourceGroupsCommandInput}
|
|
@@ -49,6 +70,8 @@ export interface DescribeResourceGroupsCommandOutput extends DescribeResourceGro
|
|
|
49
70
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
50
71
|
* input parameter.</p>
|
|
51
72
|
*
|
|
73
|
+
* @throws {@link InspectorServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
52
75
|
*
|
|
53
76
|
* @example Describe resource groups
|
|
54
77
|
* ```javascript
|
|
@@ -35,6 +35,24 @@ export interface DescribeRulesPackagesCommandOutput extends DescribeRulesPackage
|
|
|
35
35
|
* };
|
|
36
36
|
* const command = new DescribeRulesPackagesCommand(input);
|
|
37
37
|
* const response = await client.send(command);
|
|
38
|
+
* // { // DescribeRulesPackagesResponse
|
|
39
|
+
* // rulesPackages: [ // RulesPackageList // required
|
|
40
|
+
* // { // RulesPackage
|
|
41
|
+
* // arn: "STRING_VALUE", // required
|
|
42
|
+
* // name: "STRING_VALUE", // required
|
|
43
|
+
* // version: "STRING_VALUE", // required
|
|
44
|
+
* // provider: "STRING_VALUE", // required
|
|
45
|
+
* // description: "STRING_VALUE",
|
|
46
|
+
* // },
|
|
47
|
+
* // ],
|
|
48
|
+
* // failedItems: { // FailedItems // required
|
|
49
|
+
* // "<keys>": { // FailedItemDetails
|
|
50
|
+
* // failureCode: "STRING_VALUE", // required
|
|
51
|
+
* // retryable: true || false, // required
|
|
52
|
+
* // },
|
|
53
|
+
* // },
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
38
56
|
* ```
|
|
39
57
|
*
|
|
40
58
|
* @param DescribeRulesPackagesCommandInput - {@link DescribeRulesPackagesCommandInput}
|
|
@@ -50,6 +68,8 @@ export interface DescribeRulesPackagesCommandOutput extends DescribeRulesPackage
|
|
|
50
68
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
51
69
|
* input parameter.</p>
|
|
52
70
|
*
|
|
71
|
+
* @throws {@link InspectorServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
53
73
|
*
|
|
54
74
|
* @example Describe rules packages
|
|
55
75
|
* ```javascript
|
|
@@ -34,6 +34,11 @@ export interface GetAssessmentReportCommandOutput extends GetAssessmentReportRes
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new GetAssessmentReportCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // GetAssessmentReportResponse
|
|
38
|
+
* // status: "STRING_VALUE", // required
|
|
39
|
+
* // url: "STRING_VALUE",
|
|
40
|
+
* // };
|
|
41
|
+
*
|
|
37
42
|
* ```
|
|
38
43
|
*
|
|
39
44
|
* @param GetAssessmentReportCommandInput - {@link GetAssessmentReportCommandInput}
|
|
@@ -70,6 +75,8 @@ export interface GetAssessmentReportCommandOutput extends GetAssessmentReportRes
|
|
|
70
75
|
* took place or will take place after generating reports in Amazon Inspector became
|
|
71
76
|
* available.</p>
|
|
72
77
|
*
|
|
78
|
+
* @throws {@link InspectorServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
73
80
|
*
|
|
74
81
|
*/
|
|
75
82
|
export declare class GetAssessmentReportCommand extends $Command<GetAssessmentReportCommandInput, GetAssessmentReportCommandOutput, InspectorClientResolvedConfig> {
|
|
@@ -37,6 +37,30 @@ export interface GetExclusionsPreviewCommandOutput extends GetExclusionsPreviewR
|
|
|
37
37
|
* };
|
|
38
38
|
* const command = new GetExclusionsPreviewCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // { // GetExclusionsPreviewResponse
|
|
41
|
+
* // previewStatus: "STRING_VALUE", // required
|
|
42
|
+
* // exclusionPreviews: [ // ExclusionPreviewList
|
|
43
|
+
* // { // ExclusionPreview
|
|
44
|
+
* // title: "STRING_VALUE", // required
|
|
45
|
+
* // description: "STRING_VALUE", // required
|
|
46
|
+
* // recommendation: "STRING_VALUE", // required
|
|
47
|
+
* // scopes: [ // ScopeList // required
|
|
48
|
+
* // { // Scope
|
|
49
|
+
* // key: "STRING_VALUE",
|
|
50
|
+
* // value: "STRING_VALUE",
|
|
51
|
+
* // },
|
|
52
|
+
* // ],
|
|
53
|
+
* // attributes: [ // AttributeList
|
|
54
|
+
* // { // Attribute
|
|
55
|
+
* // key: "STRING_VALUE", // required
|
|
56
|
+
* // value: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // nextToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
40
64
|
* ```
|
|
41
65
|
*
|
|
42
66
|
* @param GetExclusionsPreviewCommandInput - {@link GetExclusionsPreviewCommandInput}
|
|
@@ -59,6 +83,8 @@ export interface GetExclusionsPreviewCommandOutput extends GetExclusionsPreviewR
|
|
|
59
83
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
60
84
|
* error code describes the entity.</p>
|
|
61
85
|
*
|
|
86
|
+
* @throws {@link InspectorServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
62
88
|
*
|
|
63
89
|
*/
|
|
64
90
|
export declare class GetExclusionsPreviewCommand extends $Command<GetExclusionsPreviewCommandInput, GetExclusionsPreviewCommandOutput, InspectorClientResolvedConfig> {
|
|
@@ -32,6 +32,16 @@ export interface GetTelemetryMetadataCommandOutput extends GetTelemetryMetadataR
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new GetTelemetryMetadataCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // { // GetTelemetryMetadataResponse
|
|
36
|
+
* // telemetryMetadata: [ // TelemetryMetadataList // required
|
|
37
|
+
* // { // TelemetryMetadata
|
|
38
|
+
* // messageType: "STRING_VALUE", // required
|
|
39
|
+
* // count: Number("long"), // required
|
|
40
|
+
* // dataSize: Number("long"),
|
|
41
|
+
* // },
|
|
42
|
+
* // ],
|
|
43
|
+
* // };
|
|
44
|
+
*
|
|
35
45
|
* ```
|
|
36
46
|
*
|
|
37
47
|
* @param GetTelemetryMetadataCommandInput - {@link GetTelemetryMetadataCommandInput}
|
|
@@ -54,6 +64,8 @@ export interface GetTelemetryMetadataCommandOutput extends GetTelemetryMetadataR
|
|
|
54
64
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
55
65
|
* error code describes the entity.</p>
|
|
56
66
|
*
|
|
67
|
+
* @throws {@link InspectorServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
57
69
|
*
|
|
58
70
|
* @example Get telemetry metadata
|
|
59
71
|
* ```javascript
|
|
@@ -42,6 +42,27 @@ export interface ListAssessmentRunAgentsCommandOutput extends ListAssessmentRunA
|
|
|
42
42
|
* };
|
|
43
43
|
* const command = new ListAssessmentRunAgentsCommand(input);
|
|
44
44
|
* const response = await client.send(command);
|
|
45
|
+
* // { // ListAssessmentRunAgentsResponse
|
|
46
|
+
* // assessmentRunAgents: [ // AssessmentRunAgentList // required
|
|
47
|
+
* // { // AssessmentRunAgent
|
|
48
|
+
* // agentId: "STRING_VALUE", // required
|
|
49
|
+
* // assessmentRunArn: "STRING_VALUE", // required
|
|
50
|
+
* // agentHealth: "STRING_VALUE", // required
|
|
51
|
+
* // agentHealthCode: "STRING_VALUE", // required
|
|
52
|
+
* // agentHealthDetails: "STRING_VALUE",
|
|
53
|
+
* // autoScalingGroup: "STRING_VALUE",
|
|
54
|
+
* // telemetryMetadata: [ // TelemetryMetadataList // required
|
|
55
|
+
* // { // TelemetryMetadata
|
|
56
|
+
* // messageType: "STRING_VALUE", // required
|
|
57
|
+
* // count: Number("long"), // required
|
|
58
|
+
* // dataSize: Number("long"),
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // nextToken: "STRING_VALUE",
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
45
66
|
* ```
|
|
46
67
|
*
|
|
47
68
|
* @param ListAssessmentRunAgentsCommandInput - {@link ListAssessmentRunAgentsCommandInput}
|
|
@@ -64,6 +85,8 @@ export interface ListAssessmentRunAgentsCommandOutput extends ListAssessmentRunA
|
|
|
64
85
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
65
86
|
* error code describes the entity.</p>
|
|
66
87
|
*
|
|
88
|
+
* @throws {@link InspectorServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
67
90
|
*
|
|
68
91
|
* @example List assessment run agents
|
|
69
92
|
* ```javascript
|
|
@@ -61,6 +61,13 @@ export interface ListAssessmentRunsCommandOutput extends ListAssessmentRunsRespo
|
|
|
61
61
|
* };
|
|
62
62
|
* const command = new ListAssessmentRunsCommand(input);
|
|
63
63
|
* const response = await client.send(command);
|
|
64
|
+
* // { // ListAssessmentRunsResponse
|
|
65
|
+
* // assessmentRunArns: [ // ListReturnedArnList // required
|
|
66
|
+
* // "STRING_VALUE",
|
|
67
|
+
* // ],
|
|
68
|
+
* // nextToken: "STRING_VALUE",
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
64
71
|
* ```
|
|
65
72
|
*
|
|
66
73
|
* @param ListAssessmentRunsCommandInput - {@link ListAssessmentRunsCommandInput}
|
|
@@ -83,6 +90,8 @@ export interface ListAssessmentRunsCommandOutput extends ListAssessmentRunsRespo
|
|
|
83
90
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
84
91
|
* error code describes the entity.</p>
|
|
85
92
|
*
|
|
93
|
+
* @throws {@link InspectorServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
86
95
|
*
|
|
87
96
|
* @example List assessment runs
|
|
88
97
|
* ```javascript
|
|
@@ -37,6 +37,13 @@ export interface ListAssessmentTargetsCommandOutput extends ListAssessmentTarget
|
|
|
37
37
|
* };
|
|
38
38
|
* const command = new ListAssessmentTargetsCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // { // ListAssessmentTargetsResponse
|
|
41
|
+
* // assessmentTargetArns: [ // ListReturnedArnList // required
|
|
42
|
+
* // "STRING_VALUE",
|
|
43
|
+
* // ],
|
|
44
|
+
* // nextToken: "STRING_VALUE",
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
40
47
|
* ```
|
|
41
48
|
*
|
|
42
49
|
* @param ListAssessmentTargetsCommandInput - {@link ListAssessmentTargetsCommandInput}
|
|
@@ -55,6 +62,8 @@ export interface ListAssessmentTargetsCommandOutput extends ListAssessmentTarget
|
|
|
55
62
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
56
63
|
* input parameter.</p>
|
|
57
64
|
*
|
|
65
|
+
* @throws {@link InspectorServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
58
67
|
*
|
|
59
68
|
* @example List assessment targets
|
|
60
69
|
* ```javascript
|
|
@@ -46,6 +46,13 @@ export interface ListAssessmentTemplatesCommandOutput extends ListAssessmentTemp
|
|
|
46
46
|
* };
|
|
47
47
|
* const command = new ListAssessmentTemplatesCommand(input);
|
|
48
48
|
* const response = await client.send(command);
|
|
49
|
+
* // { // ListAssessmentTemplatesResponse
|
|
50
|
+
* // assessmentTemplateArns: [ // ListReturnedArnList // required
|
|
51
|
+
* // "STRING_VALUE",
|
|
52
|
+
* // ],
|
|
53
|
+
* // nextToken: "STRING_VALUE",
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
49
56
|
* ```
|
|
50
57
|
*
|
|
51
58
|
* @param ListAssessmentTemplatesCommandInput - {@link ListAssessmentTemplatesCommandInput}
|
|
@@ -68,6 +75,8 @@ export interface ListAssessmentTemplatesCommandOutput extends ListAssessmentTemp
|
|
|
68
75
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
69
76
|
* error code describes the entity.</p>
|
|
70
77
|
*
|
|
78
|
+
* @throws {@link InspectorServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
71
80
|
*
|
|
72
81
|
* @example List assessment templates
|
|
73
82
|
* ```javascript
|
|
@@ -34,6 +34,22 @@ export interface ListEventSubscriptionsCommandOutput extends ListEventSubscripti
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new ListEventSubscriptionsCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // ListEventSubscriptionsResponse
|
|
38
|
+
* // subscriptions: [ // SubscriptionList // required
|
|
39
|
+
* // { // Subscription
|
|
40
|
+
* // resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* // topicArn: "STRING_VALUE", // required
|
|
42
|
+
* // eventSubscriptions: [ // EventSubscriptionList // required
|
|
43
|
+
* // { // EventSubscription
|
|
44
|
+
* // event: "STRING_VALUE", // required
|
|
45
|
+
* // subscribedAt: new Date("TIMESTAMP"), // required
|
|
46
|
+
* // },
|
|
47
|
+
* // ],
|
|
48
|
+
* // },
|
|
49
|
+
* // ],
|
|
50
|
+
* // nextToken: "STRING_VALUE",
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
37
53
|
* ```
|
|
38
54
|
*
|
|
39
55
|
* @param ListEventSubscriptionsCommandInput - {@link ListEventSubscriptionsCommandInput}
|
|
@@ -56,6 +72,8 @@ export interface ListEventSubscriptionsCommandOutput extends ListEventSubscripti
|
|
|
56
72
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
57
73
|
* error code describes the entity.</p>
|
|
58
74
|
*
|
|
75
|
+
* @throws {@link InspectorServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
59
77
|
*
|
|
60
78
|
* @example List event subscriptions
|
|
61
79
|
* ```javascript
|
|
@@ -33,6 +33,13 @@ export interface ListExclusionsCommandOutput extends ListExclusionsResponse, __M
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new ListExclusionsCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // { // ListExclusionsResponse
|
|
37
|
+
* // exclusionArns: [ // ListReturnedArnList // required
|
|
38
|
+
* // "STRING_VALUE",
|
|
39
|
+
* // ],
|
|
40
|
+
* // nextToken: "STRING_VALUE",
|
|
41
|
+
* // };
|
|
42
|
+
*
|
|
36
43
|
* ```
|
|
37
44
|
*
|
|
38
45
|
* @param ListExclusionsCommandInput - {@link ListExclusionsCommandInput}
|
|
@@ -55,6 +62,8 @@ export interface ListExclusionsCommandOutput extends ListExclusionsResponse, __M
|
|
|
55
62
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
56
63
|
* error code describes the entity.</p>
|
|
57
64
|
*
|
|
65
|
+
* @throws {@link InspectorServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
58
67
|
*
|
|
59
68
|
*/
|
|
60
69
|
export declare class ListExclusionsCommand extends $Command<ListExclusionsCommandInput, ListExclusionsCommandOutput, InspectorClientResolvedConfig> {
|
|
@@ -69,6 +69,13 @@ export interface ListFindingsCommandOutput extends ListFindingsResponse, __Metad
|
|
|
69
69
|
* };
|
|
70
70
|
* const command = new ListFindingsCommand(input);
|
|
71
71
|
* const response = await client.send(command);
|
|
72
|
+
* // { // ListFindingsResponse
|
|
73
|
+
* // findingArns: [ // ListReturnedArnList // required
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
76
|
+
* // nextToken: "STRING_VALUE",
|
|
77
|
+
* // };
|
|
78
|
+
*
|
|
72
79
|
* ```
|
|
73
80
|
*
|
|
74
81
|
* @param ListFindingsCommandInput - {@link ListFindingsCommandInput}
|
|
@@ -91,6 +98,8 @@ export interface ListFindingsCommandOutput extends ListFindingsResponse, __Metad
|
|
|
91
98
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
92
99
|
* error code describes the entity.</p>
|
|
93
100
|
*
|
|
101
|
+
* @throws {@link InspectorServiceException}
|
|
102
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
94
103
|
*
|
|
95
104
|
* @example List findings
|
|
96
105
|
* ```javascript
|
|
@@ -32,6 +32,13 @@ export interface ListRulesPackagesCommandOutput extends ListRulesPackagesRespons
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new ListRulesPackagesCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // { // ListRulesPackagesResponse
|
|
36
|
+
* // rulesPackageArns: [ // ListReturnedArnList // required
|
|
37
|
+
* // "STRING_VALUE",
|
|
38
|
+
* // ],
|
|
39
|
+
* // nextToken: "STRING_VALUE",
|
|
40
|
+
* // };
|
|
41
|
+
*
|
|
35
42
|
* ```
|
|
36
43
|
*
|
|
37
44
|
* @param ListRulesPackagesCommandInput - {@link ListRulesPackagesCommandInput}
|
|
@@ -50,6 +57,8 @@ export interface ListRulesPackagesCommandOutput extends ListRulesPackagesRespons
|
|
|
50
57
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
51
58
|
* input parameter.</p>
|
|
52
59
|
*
|
|
60
|
+
* @throws {@link InspectorServiceException}
|
|
61
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
53
62
|
*
|
|
54
63
|
* @example List rules packages
|
|
55
64
|
* ```javascript
|
|
@@ -31,6 +31,15 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
31
31
|
* };
|
|
32
32
|
* const command = new ListTagsForResourceCommand(input);
|
|
33
33
|
* const response = await client.send(command);
|
|
34
|
+
* // { // ListTagsForResourceResponse
|
|
35
|
+
* // tags: [ // TagList // required
|
|
36
|
+
* // { // Tag
|
|
37
|
+
* // key: "STRING_VALUE", // required
|
|
38
|
+
* // value: "STRING_VALUE",
|
|
39
|
+
* // },
|
|
40
|
+
* // ],
|
|
41
|
+
* // };
|
|
42
|
+
*
|
|
34
43
|
* ```
|
|
35
44
|
*
|
|
36
45
|
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
|
|
@@ -53,6 +62,8 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
53
62
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
54
63
|
* error code describes the entity.</p>
|
|
55
64
|
*
|
|
65
|
+
* @throws {@link InspectorServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
56
67
|
*
|
|
57
68
|
* @example List tags for resource
|
|
58
69
|
* ```javascript
|
|
@@ -34,6 +34,22 @@ export interface PreviewAgentsCommandOutput extends PreviewAgentsResponse, __Met
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new PreviewAgentsCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // PreviewAgentsResponse
|
|
38
|
+
* // agentPreviews: [ // AgentPreviewList // required
|
|
39
|
+
* // { // AgentPreview
|
|
40
|
+
* // hostname: "STRING_VALUE",
|
|
41
|
+
* // agentId: "STRING_VALUE", // required
|
|
42
|
+
* // autoScalingGroup: "STRING_VALUE",
|
|
43
|
+
* // agentHealth: "STRING_VALUE",
|
|
44
|
+
* // agentVersion: "STRING_VALUE",
|
|
45
|
+
* // operatingSystem: "STRING_VALUE",
|
|
46
|
+
* // kernelVersion: "STRING_VALUE",
|
|
47
|
+
* // ipv4Address: "STRING_VALUE",
|
|
48
|
+
* // },
|
|
49
|
+
* // ],
|
|
50
|
+
* // nextToken: "STRING_VALUE",
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
37
53
|
* ```
|
|
38
54
|
*
|
|
39
55
|
* @param PreviewAgentsCommandInput - {@link PreviewAgentsCommandInput}
|
|
@@ -60,6 +76,8 @@ export interface PreviewAgentsCommandOutput extends PreviewAgentsResponse, __Met
|
|
|
60
76
|
* <p>The request was rejected because it referenced an entity that does not exist. The
|
|
61
77
|
* error code describes the entity.</p>
|
|
62
78
|
*
|
|
79
|
+
* @throws {@link InspectorServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
63
81
|
*
|
|
64
82
|
* @example Preview agents
|
|
65
83
|
* ```javascript
|
|
@@ -32,6 +32,8 @@ export interface RegisterCrossAccountAccessRoleCommandOutput extends __MetadataB
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new RegisterCrossAccountAccessRoleCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // {};
|
|
36
|
+
*
|
|
35
37
|
* ```
|
|
36
38
|
*
|
|
37
39
|
* @param RegisterCrossAccountAccessRoleCommandInput - {@link RegisterCrossAccountAccessRoleCommandInput}
|
|
@@ -57,6 +59,8 @@ export interface RegisterCrossAccountAccessRoleCommandOutput extends __MetadataB
|
|
|
57
59
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
58
60
|
* <p>The serice is temporary unavailable.</p>
|
|
59
61
|
*
|
|
62
|
+
* @throws {@link InspectorServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
60
64
|
*
|
|
61
65
|
* @example Register cross account access role
|
|
62
66
|
* ```javascript
|
|
@@ -37,6 +37,15 @@ export interface RemoveAttributesFromFindingsCommandOutput extends RemoveAttribu
|
|
|
37
37
|
* };
|
|
38
38
|
* const command = new RemoveAttributesFromFindingsCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // { // RemoveAttributesFromFindingsResponse
|
|
41
|
+
* // failedItems: { // FailedItems // required
|
|
42
|
+
* // "<keys>": { // FailedItemDetails
|
|
43
|
+
* // failureCode: "STRING_VALUE", // required
|
|
44
|
+
* // retryable: true || false, // required
|
|
45
|
+
* // },
|
|
46
|
+
* // },
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
40
49
|
* ```
|
|
41
50
|
*
|
|
42
51
|
* @param RemoveAttributesFromFindingsCommandInput - {@link RemoveAttributesFromFindingsCommandInput}
|
|
@@ -62,6 +71,8 @@ export interface RemoveAttributesFromFindingsCommandOutput extends RemoveAttribu
|
|
|
62
71
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
63
72
|
* <p>The serice is temporary unavailable.</p>
|
|
64
73
|
*
|
|
74
|
+
* @throws {@link InspectorServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
65
76
|
*
|
|
66
77
|
* @example Remove attributes from findings
|
|
67
78
|
* ```javascript
|
|
@@ -38,6 +38,8 @@ export interface SetTagsForResourceCommandOutput extends __MetadataBearer {
|
|
|
38
38
|
* };
|
|
39
39
|
* const command = new SetTagsForResourceCommand(input);
|
|
40
40
|
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
41
43
|
* ```
|
|
42
44
|
*
|
|
43
45
|
* @param SetTagsForResourceCommandInput - {@link SetTagsForResourceCommandInput}
|
|
@@ -63,6 +65,8 @@ export interface SetTagsForResourceCommandOutput extends __MetadataBearer {
|
|
|
63
65
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
64
66
|
* <p>The serice is temporary unavailable.</p>
|
|
65
67
|
*
|
|
68
|
+
* @throws {@link InspectorServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
66
70
|
*
|
|
67
71
|
* @example Set tags for resource
|
|
68
72
|
* ```javascript
|
|
@@ -34,6 +34,10 @@ export interface StartAssessmentRunCommandOutput extends StartAssessmentRunRespo
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new StartAssessmentRunCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // StartAssessmentRunResponse
|
|
38
|
+
* // assessmentRunArn: "STRING_VALUE", // required
|
|
39
|
+
* // };
|
|
40
|
+
*
|
|
37
41
|
* ```
|
|
38
42
|
*
|
|
39
43
|
* @param StartAssessmentRunCommandInput - {@link StartAssessmentRunCommandInput}
|
|
@@ -71,6 +75,8 @@ export interface StartAssessmentRunCommandOutput extends StartAssessmentRunRespo
|
|
|
71
75
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
72
76
|
* <p>The serice is temporary unavailable.</p>
|
|
73
77
|
*
|
|
78
|
+
* @throws {@link InspectorServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
74
80
|
*
|
|
75
81
|
* @example Start assessment run
|
|
76
82
|
* ```javascript
|
|
@@ -33,6 +33,8 @@ export interface StopAssessmentRunCommandOutput extends __MetadataBearer {
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new StopAssessmentRunCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // {};
|
|
37
|
+
*
|
|
36
38
|
* ```
|
|
37
39
|
*
|
|
38
40
|
* @param StopAssessmentRunCommandInput - {@link StopAssessmentRunCommandInput}
|
|
@@ -58,6 +60,8 @@ export interface StopAssessmentRunCommandOutput extends __MetadataBearer {
|
|
|
58
60
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
59
61
|
* <p>The serice is temporary unavailable.</p>
|
|
60
62
|
*
|
|
63
|
+
* @throws {@link InspectorServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
61
65
|
*
|
|
62
66
|
* @example Stop assessment run
|
|
63
67
|
* ```javascript
|
|
@@ -34,6 +34,8 @@ export interface SubscribeToEventCommandOutput extends __MetadataBearer {
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new SubscribeToEventCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // {};
|
|
38
|
+
*
|
|
37
39
|
* ```
|
|
38
40
|
*
|
|
39
41
|
* @param SubscribeToEventCommandInput - {@link SubscribeToEventCommandInput}
|
|
@@ -63,6 +65,8 @@ export interface SubscribeToEventCommandOutput extends __MetadataBearer {
|
|
|
63
65
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
64
66
|
* <p>The serice is temporary unavailable.</p>
|
|
65
67
|
*
|
|
68
|
+
* @throws {@link InspectorServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
66
70
|
*
|
|
67
71
|
* @example Subscribe to event
|
|
68
72
|
* ```javascript
|
|
@@ -34,6 +34,8 @@ export interface UnsubscribeFromEventCommandOutput extends __MetadataBearer {
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new UnsubscribeFromEventCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // {};
|
|
38
|
+
*
|
|
37
39
|
* ```
|
|
38
40
|
*
|
|
39
41
|
* @param UnsubscribeFromEventCommandInput - {@link UnsubscribeFromEventCommandInput}
|
|
@@ -59,6 +61,8 @@ export interface UnsubscribeFromEventCommandOutput extends __MetadataBearer {
|
|
|
59
61
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
60
62
|
* <p>The serice is temporary unavailable.</p>
|
|
61
63
|
*
|
|
64
|
+
* @throws {@link InspectorServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
62
66
|
*
|
|
63
67
|
* @example Unsubscribe from event
|
|
64
68
|
* ```javascript
|
|
@@ -36,6 +36,8 @@ export interface UpdateAssessmentTargetCommandOutput extends __MetadataBearer {
|
|
|
36
36
|
* };
|
|
37
37
|
* const command = new UpdateAssessmentTargetCommand(input);
|
|
38
38
|
* const response = await client.send(command);
|
|
39
|
+
* // {};
|
|
40
|
+
*
|
|
39
41
|
* ```
|
|
40
42
|
*
|
|
41
43
|
* @param UpdateAssessmentTargetCommandInput - {@link UpdateAssessmentTargetCommandInput}
|
|
@@ -61,6 +63,8 @@ export interface UpdateAssessmentTargetCommandOutput extends __MetadataBearer {
|
|
|
61
63
|
* @throws {@link ServiceTemporarilyUnavailableException} (server fault)
|
|
62
64
|
* <p>The serice is temporary unavailable.</p>
|
|
63
65
|
*
|
|
66
|
+
* @throws {@link InspectorServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
64
68
|
*
|
|
65
69
|
* @example Update assessment target
|
|
66
70
|
* ```javascript
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector",
|
|
3
3
|
"description": "AWS SDK for JavaScript Inspector Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.326.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.326.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.326.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.325.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.325.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.325.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.325.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.325.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.325.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.325.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.325.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.325.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.325.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.321.1",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.325.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.325.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.325.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|