@aws-sdk/client-inspector 3.405.0 → 3.409.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-cjs/endpoint/ruleset.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-types/commands/AddAttributesToFindingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAssessmentRunsCommand.d.ts +5 -5
- package/dist-types/commands/DescribeAssessmentTargetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAssessmentTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExclusionsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeFindingsCommand.d.ts +4 -4
- package/dist-types/commands/DescribeResourceGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRulesPackagesCommand.d.ts +2 -2
- package/dist-types/commands/GetAssessmentReportCommand.d.ts +3 -3
- package/dist-types/commands/GetExclusionsPreviewCommand.d.ts +3 -3
- package/dist-types/commands/ListAssessmentRunAgentsCommand.d.ts +4 -4
- package/dist-types/commands/ListAssessmentRunsCommand.d.ts +1 -1
- package/dist-types/commands/ListEventSubscriptionsCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingsCommand.d.ts +1 -1
- package/dist-types/commands/PreviewAgentsCommand.d.ts +1 -1
- package/dist-types/commands/RemoveAttributesFromFindingsCommand.d.ts +1 -1
- package/dist-types/commands/StopAssessmentRunCommand.d.ts +1 -1
- package/dist-types/commands/SubscribeToEventCommand.d.ts +1 -1
- package/dist-types/commands/UnsubscribeFromEventCommand.d.ts +1 -1
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://inspector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://inspector-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://inspector.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://inspector.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://inspector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://inspector-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://inspector.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://inspector.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -47,7 +47,7 @@ export interface AddAttributesToFindingsCommandOutput extends AddAttributesToFin
|
|
|
47
47
|
* // { // AddAttributesToFindingsResponse
|
|
48
48
|
* // failedItems: { // FailedItems // required
|
|
49
49
|
* // "<keys>": { // FailedItemDetails
|
|
50
|
-
* // failureCode: "
|
|
50
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
51
51
|
* // retryable: true || false, // required
|
|
52
52
|
* // },
|
|
53
53
|
* // },
|
|
@@ -44,7 +44,7 @@ export interface DescribeAssessmentRunsCommandOutput extends DescribeAssessmentR
|
|
|
44
44
|
* // arn: "STRING_VALUE", // required
|
|
45
45
|
* // name: "STRING_VALUE", // required
|
|
46
46
|
* // assessmentTemplateArn: "STRING_VALUE", // required
|
|
47
|
-
* // state: "
|
|
47
|
+
* // state: "CREATED" || "START_DATA_COLLECTION_PENDING" || "START_DATA_COLLECTION_IN_PROGRESS" || "COLLECTING_DATA" || "STOP_DATA_COLLECTION_PENDING" || "DATA_COLLECTED" || "START_EVALUATING_RULES_PENDING" || "EVALUATING_RULES" || "FAILED" || "ERROR" || "COMPLETED" || "COMPLETED_WITH_ERRORS" || "CANCELED", // required
|
|
48
48
|
* // durationInSeconds: Number("int"), // required
|
|
49
49
|
* // rulesPackageArns: [ // AssessmentRulesPackageArnList // required
|
|
50
50
|
* // "STRING_VALUE",
|
|
@@ -63,17 +63,17 @@ export interface DescribeAssessmentRunsCommandOutput extends DescribeAssessmentR
|
|
|
63
63
|
* // stateChanges: [ // AssessmentRunStateChangeList // required
|
|
64
64
|
* // { // AssessmentRunStateChange
|
|
65
65
|
* // stateChangedAt: new Date("TIMESTAMP"), // required
|
|
66
|
-
* // state: "
|
|
66
|
+
* // state: "CREATED" || "START_DATA_COLLECTION_PENDING" || "START_DATA_COLLECTION_IN_PROGRESS" || "COLLECTING_DATA" || "STOP_DATA_COLLECTION_PENDING" || "DATA_COLLECTED" || "START_EVALUATING_RULES_PENDING" || "EVALUATING_RULES" || "FAILED" || "ERROR" || "COMPLETED" || "COMPLETED_WITH_ERRORS" || "CANCELED", // required
|
|
67
67
|
* // },
|
|
68
68
|
* // ],
|
|
69
69
|
* // notifications: [ // AssessmentRunNotificationList // required
|
|
70
70
|
* // { // AssessmentRunNotification
|
|
71
71
|
* // date: new Date("TIMESTAMP"), // required
|
|
72
|
-
* // event: "
|
|
72
|
+
* // event: "ASSESSMENT_RUN_STARTED" || "ASSESSMENT_RUN_COMPLETED" || "ASSESSMENT_RUN_STATE_CHANGED" || "FINDING_REPORTED" || "OTHER", // required
|
|
73
73
|
* // message: "STRING_VALUE",
|
|
74
74
|
* // error: true || false, // required
|
|
75
75
|
* // snsTopicArn: "STRING_VALUE",
|
|
76
|
-
* // snsPublishStatusCode: "
|
|
76
|
+
* // snsPublishStatusCode: "SUCCESS" || "TOPIC_DOES_NOT_EXIST" || "ACCESS_DENIED" || "INTERNAL_ERROR",
|
|
77
77
|
* // },
|
|
78
78
|
* // ],
|
|
79
79
|
* // findingCounts: { // AssessmentRunFindingCounts // required
|
|
@@ -83,7 +83,7 @@ export interface DescribeAssessmentRunsCommandOutput extends DescribeAssessmentR
|
|
|
83
83
|
* // ],
|
|
84
84
|
* // failedItems: { // FailedItems // required
|
|
85
85
|
* // "<keys>": { // FailedItemDetails
|
|
86
|
-
* // failureCode: "
|
|
86
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
87
87
|
* // retryable: true || false, // required
|
|
88
88
|
* // },
|
|
89
89
|
* // },
|
|
@@ -50,7 +50,7 @@ export interface DescribeAssessmentTargetsCommandOutput extends DescribeAssessme
|
|
|
50
50
|
* // ],
|
|
51
51
|
* // failedItems: { // FailedItems // required
|
|
52
52
|
* // "<keys>": { // FailedItemDetails
|
|
53
|
-
* // failureCode: "
|
|
53
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
54
54
|
* // retryable: true || false, // required
|
|
55
55
|
* // },
|
|
56
56
|
* // },
|
|
@@ -61,7 +61,7 @@ export interface DescribeAssessmentTemplatesCommandOutput extends DescribeAssess
|
|
|
61
61
|
* // ],
|
|
62
62
|
* // failedItems: { // FailedItems // required
|
|
63
63
|
* // "<keys>": { // FailedItemDetails
|
|
64
|
-
* // failureCode: "
|
|
64
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
65
65
|
* // retryable: true || false, // required
|
|
66
66
|
* // },
|
|
67
67
|
* // },
|
|
@@ -34,7 +34,7 @@ export interface DescribeExclusionsCommandOutput extends DescribeExclusionsRespo
|
|
|
34
34
|
* exclusionArns: [ // BatchDescribeExclusionsArnList // required
|
|
35
35
|
* "STRING_VALUE",
|
|
36
36
|
* ],
|
|
37
|
-
* locale: "
|
|
37
|
+
* locale: "EN_US",
|
|
38
38
|
* };
|
|
39
39
|
* const command = new DescribeExclusionsCommand(input);
|
|
40
40
|
* const response = await client.send(command);
|
|
@@ -47,7 +47,7 @@ export interface DescribeExclusionsCommandOutput extends DescribeExclusionsRespo
|
|
|
47
47
|
* // recommendation: "STRING_VALUE", // required
|
|
48
48
|
* // scopes: [ // ScopeList // required
|
|
49
49
|
* // { // Scope
|
|
50
|
-
* // key: "
|
|
50
|
+
* // key: "INSTANCE_ID" || "RULES_PACKAGE_ARN",
|
|
51
51
|
* // value: "STRING_VALUE",
|
|
52
52
|
* // },
|
|
53
53
|
* // ],
|
|
@@ -61,7 +61,7 @@ export interface DescribeExclusionsCommandOutput extends DescribeExclusionsRespo
|
|
|
61
61
|
* // },
|
|
62
62
|
* // failedItems: { // FailedItems // required
|
|
63
63
|
* // "<keys>": { // FailedItemDetails
|
|
64
|
-
* // failureCode: "
|
|
64
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
65
65
|
* // retryable: true || false, // required
|
|
66
66
|
* // },
|
|
67
67
|
* // },
|
|
@@ -34,7 +34,7 @@ export interface DescribeFindingsCommandOutput extends DescribeFindingsResponse,
|
|
|
34
34
|
* findingArns: [ // BatchDescribeArnList // required
|
|
35
35
|
* "STRING_VALUE",
|
|
36
36
|
* ],
|
|
37
|
-
* locale: "
|
|
37
|
+
* locale: "EN_US",
|
|
38
38
|
* };
|
|
39
39
|
* const command = new DescribeFindingsCommand(input);
|
|
40
40
|
* const response = await client.send(command);
|
|
@@ -49,7 +49,7 @@ export interface DescribeFindingsCommandOutput extends DescribeFindingsResponse,
|
|
|
49
49
|
* // assessmentRunArn: "STRING_VALUE",
|
|
50
50
|
* // rulesPackageArn: "STRING_VALUE",
|
|
51
51
|
* // },
|
|
52
|
-
* // assetType: "
|
|
52
|
+
* // assetType: "ec2-instance",
|
|
53
53
|
* // assetAttributes: { // AssetAttributes
|
|
54
54
|
* // schemaVersion: Number("int"), // required
|
|
55
55
|
* // agentId: "STRING_VALUE",
|
|
@@ -96,7 +96,7 @@ export interface DescribeFindingsCommandOutput extends DescribeFindingsResponse,
|
|
|
96
96
|
* // title: "STRING_VALUE",
|
|
97
97
|
* // description: "STRING_VALUE",
|
|
98
98
|
* // recommendation: "STRING_VALUE",
|
|
99
|
-
* // severity: "
|
|
99
|
+
* // severity: "Low" || "Medium" || "High" || "Informational" || "Undefined",
|
|
100
100
|
* // numericSeverity: Number("double"),
|
|
101
101
|
* // confidence: Number("int"),
|
|
102
102
|
* // indicatorOfCompromise: true || false,
|
|
@@ -118,7 +118,7 @@ export interface DescribeFindingsCommandOutput extends DescribeFindingsResponse,
|
|
|
118
118
|
* // ],
|
|
119
119
|
* // failedItems: { // FailedItems // required
|
|
120
120
|
* // "<keys>": { // FailedItemDetails
|
|
121
|
-
* // failureCode: "
|
|
121
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
122
122
|
* // retryable: true || false, // required
|
|
123
123
|
* // },
|
|
124
124
|
* // },
|
|
@@ -53,7 +53,7 @@ export interface DescribeResourceGroupsCommandOutput extends DescribeResourceGro
|
|
|
53
53
|
* // ],
|
|
54
54
|
* // failedItems: { // FailedItems // required
|
|
55
55
|
* // "<keys>": { // FailedItemDetails
|
|
56
|
-
* // failureCode: "
|
|
56
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
57
57
|
* // retryable: true || false, // required
|
|
58
58
|
* // },
|
|
59
59
|
* // },
|
|
@@ -35,7 +35,7 @@ export interface DescribeRulesPackagesCommandOutput extends DescribeRulesPackage
|
|
|
35
35
|
* rulesPackageArns: [ // BatchDescribeArnList // required
|
|
36
36
|
* "STRING_VALUE",
|
|
37
37
|
* ],
|
|
38
|
-
* locale: "
|
|
38
|
+
* locale: "EN_US",
|
|
39
39
|
* };
|
|
40
40
|
* const command = new DescribeRulesPackagesCommand(input);
|
|
41
41
|
* const response = await client.send(command);
|
|
@@ -51,7 +51,7 @@ export interface DescribeRulesPackagesCommandOutput extends DescribeRulesPackage
|
|
|
51
51
|
* // ],
|
|
52
52
|
* // failedItems: { // FailedItems // required
|
|
53
53
|
* // "<keys>": { // FailedItemDetails
|
|
54
|
-
* // failureCode: "
|
|
54
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
55
55
|
* // retryable: true || false, // required
|
|
56
56
|
* // },
|
|
57
57
|
* // },
|
|
@@ -33,13 +33,13 @@ export interface GetAssessmentReportCommandOutput extends GetAssessmentReportRes
|
|
|
33
33
|
* const client = new InspectorClient(config);
|
|
34
34
|
* const input = { // GetAssessmentReportRequest
|
|
35
35
|
* assessmentRunArn: "STRING_VALUE", // required
|
|
36
|
-
* reportFileFormat: "
|
|
37
|
-
* reportType: "
|
|
36
|
+
* reportFileFormat: "HTML" || "PDF", // required
|
|
37
|
+
* reportType: "FINDING" || "FULL", // required
|
|
38
38
|
* };
|
|
39
39
|
* const command = new GetAssessmentReportCommand(input);
|
|
40
40
|
* const response = await client.send(command);
|
|
41
41
|
* // { // GetAssessmentReportResponse
|
|
42
|
-
* // status: "
|
|
42
|
+
* // status: "WORK_IN_PROGRESS" || "FAILED" || "COMPLETED", // required
|
|
43
43
|
* // url: "STRING_VALUE",
|
|
44
44
|
* // };
|
|
45
45
|
*
|
|
@@ -37,12 +37,12 @@ export interface GetExclusionsPreviewCommandOutput extends GetExclusionsPreviewR
|
|
|
37
37
|
* previewToken: "STRING_VALUE", // required
|
|
38
38
|
* nextToken: "STRING_VALUE",
|
|
39
39
|
* maxResults: Number("int"),
|
|
40
|
-
* locale: "
|
|
40
|
+
* locale: "EN_US",
|
|
41
41
|
* };
|
|
42
42
|
* const command = new GetExclusionsPreviewCommand(input);
|
|
43
43
|
* const response = await client.send(command);
|
|
44
44
|
* // { // GetExclusionsPreviewResponse
|
|
45
|
-
* // previewStatus: "
|
|
45
|
+
* // previewStatus: "WORK_IN_PROGRESS" || "COMPLETED", // required
|
|
46
46
|
* // exclusionPreviews: [ // ExclusionPreviewList
|
|
47
47
|
* // { // ExclusionPreview
|
|
48
48
|
* // title: "STRING_VALUE", // required
|
|
@@ -50,7 +50,7 @@ export interface GetExclusionsPreviewCommandOutput extends GetExclusionsPreviewR
|
|
|
50
50
|
* // recommendation: "STRING_VALUE", // required
|
|
51
51
|
* // scopes: [ // ScopeList // required
|
|
52
52
|
* // { // Scope
|
|
53
|
-
* // key: "
|
|
53
|
+
* // key: "INSTANCE_ID" || "RULES_PACKAGE_ARN",
|
|
54
54
|
* // value: "STRING_VALUE",
|
|
55
55
|
* // },
|
|
56
56
|
* // ],
|
|
@@ -35,10 +35,10 @@ export interface ListAssessmentRunAgentsCommandOutput extends ListAssessmentRunA
|
|
|
35
35
|
* assessmentRunArn: "STRING_VALUE", // required
|
|
36
36
|
* filter: { // AgentFilter
|
|
37
37
|
* agentHealths: [ // AgentHealthList // required
|
|
38
|
-
* "
|
|
38
|
+
* "HEALTHY" || "UNHEALTHY" || "UNKNOWN",
|
|
39
39
|
* ],
|
|
40
40
|
* agentHealthCodes: [ // AgentHealthCodeList // required
|
|
41
|
-
* "
|
|
41
|
+
* "IDLE" || "RUNNING" || "SHUTDOWN" || "UNHEALTHY" || "THROTTLED" || "UNKNOWN",
|
|
42
42
|
* ],
|
|
43
43
|
* },
|
|
44
44
|
* nextToken: "STRING_VALUE",
|
|
@@ -51,8 +51,8 @@ export interface ListAssessmentRunAgentsCommandOutput extends ListAssessmentRunA
|
|
|
51
51
|
* // { // AssessmentRunAgent
|
|
52
52
|
* // agentId: "STRING_VALUE", // required
|
|
53
53
|
* // assessmentRunArn: "STRING_VALUE", // required
|
|
54
|
-
* // agentHealth: "
|
|
55
|
-
* // agentHealthCode: "
|
|
54
|
+
* // agentHealth: "HEALTHY" || "UNHEALTHY" || "UNKNOWN", // required
|
|
55
|
+
* // agentHealthCode: "IDLE" || "RUNNING" || "SHUTDOWN" || "UNHEALTHY" || "THROTTLED" || "UNKNOWN", // required
|
|
56
56
|
* // agentHealthDetails: "STRING_VALUE",
|
|
57
57
|
* // autoScalingGroup: "STRING_VALUE",
|
|
58
58
|
* // telemetryMetadata: [ // TelemetryMetadataList // required
|
|
@@ -38,7 +38,7 @@ export interface ListAssessmentRunsCommandOutput extends ListAssessmentRunsRespo
|
|
|
38
38
|
* filter: { // AssessmentRunFilter
|
|
39
39
|
* namePattern: "STRING_VALUE",
|
|
40
40
|
* states: [ // AssessmentRunStateList
|
|
41
|
-
* "
|
|
41
|
+
* "CREATED" || "START_DATA_COLLECTION_PENDING" || "START_DATA_COLLECTION_IN_PROGRESS" || "COLLECTING_DATA" || "STOP_DATA_COLLECTION_PENDING" || "DATA_COLLECTED" || "START_EVALUATING_RULES_PENDING" || "EVALUATING_RULES" || "FAILED" || "ERROR" || "COMPLETED" || "COMPLETED_WITH_ERRORS" || "CANCELED",
|
|
42
42
|
* ],
|
|
43
43
|
* durationRange: { // DurationRange
|
|
44
44
|
* minSeconds: Number("int"),
|
|
@@ -45,7 +45,7 @@ export interface ListEventSubscriptionsCommandOutput extends ListEventSubscripti
|
|
|
45
45
|
* // topicArn: "STRING_VALUE", // required
|
|
46
46
|
* // eventSubscriptions: [ // EventSubscriptionList // required
|
|
47
47
|
* // { // EventSubscription
|
|
48
|
-
* // event: "
|
|
48
|
+
* // event: "ASSESSMENT_RUN_STARTED" || "ASSESSMENT_RUN_COMPLETED" || "ASSESSMENT_RUN_STATE_CHANGED" || "FINDING_REPORTED" || "OTHER", // required
|
|
49
49
|
* // subscribedAt: new Date("TIMESTAMP"), // required
|
|
50
50
|
* // },
|
|
51
51
|
* // ],
|
|
@@ -46,7 +46,7 @@ export interface ListFindingsCommandOutput extends ListFindingsResponse, __Metad
|
|
|
46
46
|
* "STRING_VALUE",
|
|
47
47
|
* ],
|
|
48
48
|
* severities: [ // SeverityList
|
|
49
|
-
* "
|
|
49
|
+
* "Low" || "Medium" || "High" || "Informational" || "Undefined",
|
|
50
50
|
* ],
|
|
51
51
|
* rulesPackageArns: [ // FilterRulesPackageArnList
|
|
52
52
|
* "STRING_VALUE",
|
|
@@ -44,7 +44,7 @@ export interface PreviewAgentsCommandOutput extends PreviewAgentsResponse, __Met
|
|
|
44
44
|
* // hostname: "STRING_VALUE",
|
|
45
45
|
* // agentId: "STRING_VALUE", // required
|
|
46
46
|
* // autoScalingGroup: "STRING_VALUE",
|
|
47
|
-
* // agentHealth: "
|
|
47
|
+
* // agentHealth: "HEALTHY" || "UNHEALTHY" || "UNKNOWN",
|
|
48
48
|
* // agentVersion: "STRING_VALUE",
|
|
49
49
|
* // operatingSystem: "STRING_VALUE",
|
|
50
50
|
* // kernelVersion: "STRING_VALUE",
|
|
@@ -44,7 +44,7 @@ export interface RemoveAttributesFromFindingsCommandOutput extends RemoveAttribu
|
|
|
44
44
|
* // { // RemoveAttributesFromFindingsResponse
|
|
45
45
|
* // failedItems: { // FailedItems // required
|
|
46
46
|
* // "<keys>": { // FailedItemDetails
|
|
47
|
-
* // failureCode: "
|
|
47
|
+
* // failureCode: "INVALID_ARN" || "DUPLICATE_ARN" || "ITEM_DOES_NOT_EXIST" || "ACCESS_DENIED" || "LIMIT_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
48
48
|
* // retryable: true || false, // required
|
|
49
49
|
* // },
|
|
50
50
|
* // },
|
|
@@ -33,7 +33,7 @@ export interface StopAssessmentRunCommandOutput extends __MetadataBearer {
|
|
|
33
33
|
* const client = new InspectorClient(config);
|
|
34
34
|
* const input = { // StopAssessmentRunRequest
|
|
35
35
|
* assessmentRunArn: "STRING_VALUE", // required
|
|
36
|
-
* stopAction: "
|
|
36
|
+
* stopAction: "START_EVALUATION" || "SKIP_EVALUATION",
|
|
37
37
|
* };
|
|
38
38
|
* const command = new StopAssessmentRunCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
@@ -33,7 +33,7 @@ export interface SubscribeToEventCommandOutput extends __MetadataBearer {
|
|
|
33
33
|
* const client = new InspectorClient(config);
|
|
34
34
|
* const input = { // SubscribeToEventRequest
|
|
35
35
|
* resourceArn: "STRING_VALUE", // required
|
|
36
|
-
* event: "
|
|
36
|
+
* event: "ASSESSMENT_RUN_STARTED" || "ASSESSMENT_RUN_COMPLETED" || "ASSESSMENT_RUN_STATE_CHANGED" || "FINDING_REPORTED" || "OTHER", // required
|
|
37
37
|
* topicArn: "STRING_VALUE", // required
|
|
38
38
|
* };
|
|
39
39
|
* const command = new SubscribeToEventCommand(input);
|
|
@@ -33,7 +33,7 @@ export interface UnsubscribeFromEventCommandOutput extends __MetadataBearer {
|
|
|
33
33
|
* const client = new InspectorClient(config);
|
|
34
34
|
* const input = { // UnsubscribeFromEventRequest
|
|
35
35
|
* resourceArn: "STRING_VALUE", // required
|
|
36
|
-
* event: "
|
|
36
|
+
* event: "ASSESSMENT_RUN_STARTED" || "ASSESSMENT_RUN_COMPLETED" || "ASSESSMENT_RUN_STATE_CHANGED" || "FINDING_REPORTED" || "OTHER", // required
|
|
37
37
|
* topicArn: "STRING_VALUE", // required
|
|
38
38
|
* };
|
|
39
39
|
* const command = new UnsubscribeFromEventCommand(input);
|
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.409.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,17 +21,17 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.409.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.409.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.408.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.408.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.408.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.408.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.408.0",
|
|
31
|
+
"@aws-sdk/types": "3.408.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.408.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.408.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.408.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.0.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^2.0.5",
|
|
37
37
|
"@smithy/hash-node": "^2.0.5",
|