Skip to content

list_archives does not honor State argument #4437

@hb2638

Description

@hb2638

Describe the bug

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/events/client/list_archives.html

Calling list_archives with State as ENABLED or DISABLED will return the same list of archives... It's as if AWS is ignoring the argument.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Return archives in the requested state, when specified by the caller

Current Behavior

Returns archives in any state, regardless of the state specified by the caller.

Reproduction Steps

Call list_archives with the State as ENABLED and make the same call with State set to DISABLED

import boto3

client = boto3.client("events")
print(client.list_archives(State="DISABLED"))
print(client.list_archives(State="ENABLED"))
print(client.list_archives(State="UPDATING"))

I'm using
boto3==1.35.98
botocore==1.35.99

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.35.98

Environment details (OS name and version, etc.)

Windows 11

Metadata

Metadata

Labels

bugThis issue is a confirmed bug.eventbridgeA low-level client representing Amazon EventBridgep3This is a minor priority issueservice-apiThis issue is caused by the service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions