Skip to content

Conversation

ghorondo
Copy link
Contributor

@ghorondo ghorondo commented Oct 8, 2025

This PR adds Config support for SNS topics, allowing users to list, track, and query topic configurations. This enhancement implements the necessary backend methods for config integration, including list_config_service_resources, get_config_resource, and select_resource_config.

@ghorondo ghorondo changed the title adding Config support for topics [SNS] Adding config support for SNS topics Oct 8, 2025
Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ghorondo!

Can the tests be rewritten using the Config client? (boto3.client("config"))

Having end-to-end tests would be a much better way to ensure that this implementation works correctly.

Comment on lines +1258 to +1262
start = int(next_token) if next_token else 0
end = start + limit
topics_page = topics[start:end]

new_next_token = str(end) if end < len(topics) else None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the builtin pagination utility here, @paginate? That way we can avoid having to paginate manually here

Example implementation:

@paginate(pagination_model=PAGINATION_MODEL)

And the docs: https://docs.getmoto.org/en/latest/docs/contributing/development_tips/utilities.html#paginator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants