Checkboxes for prior research
Describe the bug
In the context of AWS Inspector "Classic".
When fetching agents linked to an assessment using a ListAssessmentRunAgentsRequest, an AgentFilter can be used to only fetch agents with certain values of AgentHealth and AgentHealthCode.
The AgentHealthCode enum is defined in
|
export const AgentHealthCode = { |
, but it is missing the "HEALTHY" value, which the SDK can return when an instance belongs to an ASG in my latest tests.
Regression Issue
SDK version number
@aws-sdk/client-inspector@3.777.0 (but also latest)
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node v22.14.0
Reproduction Steps
const assesmentRunArn = ....
const agentsWithoutFilters = [];
const listAssessmentRunAgentsWithoutFilterPaginator = paginateListAssessmentRunAgents({
client: inspector,
pageSize: 50,
},
{ assessmentRunArn }
);
for await (const page of listAssessmentRunAgentsWithoutFilterPaginator) {
if (page.assessmentRunAgents != null) {
agentsWithoutFilters.push(...page.assessmentRunAgents.map(a => a.agentId));
}
}
assert( agentsWithoutFilters.filter(agent=>agent.agentHealthCode === "HEALTHY").length > 0 )
Observed Behavior
If a filter is used that contains all possible values of AgentHealthCode, the response will not have the "HEALTHY" agents.
Expected Behavior
The AgentHealthCode enum should contain the "HEALTHY" value since it is a possible return type of the call.
Possible Solution
Add "HEALTHY" to the AgentHealthCode enum
Additional Information/Context
No response
Checkboxes for prior research
Describe the bug
In the context of AWS Inspector "Classic".
When fetching agents linked to an assessment using a
ListAssessmentRunAgentsRequest, anAgentFiltercan be used to only fetch agents with certain values ofAgentHealthandAgentHealthCode.The AgentHealthCode enum is defined in
aws-sdk-js-v3/clients/client-inspector/src/models/models_0.ts
Line 380 in ec6810a
Regression Issue
SDK version number
@aws-sdk/client-inspector@3.777.0 (but also latest)
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node v22.14.0
Reproduction Steps
Observed Behavior
If a filter is used that contains all possible values of
AgentHealthCode, the response will not have the"HEALTHY"agents.Expected Behavior
The
AgentHealthCodeenum should contain the"HEALTHY"value since it is a possible return type of the call.Possible Solution
Add
"HEALTHY"to theAgentHealthCodeenumAdditional Information/Context
No response