Skip to content

access-analyzer: configuration is always null. Cannot get the "tracking period" #6407

@OhadR

Description

@OhadR

Describe the bug

i have "unused access-analyzer" and using the SDK i want to get its tracking period. from the docs, i understood that i should get the "configuration" o bject, and then dig in the unused-configurations, and then get the tracking period. but from some reason, the analyzer.configuration() returns null.

Regression Issue

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

Expected Behavior

i would like to get the configuration object, as mentioned in the docs. and then get the tracking period.

Current Behavior

i get null.

Reproduction Steps

        List<AnalyzerSummary> analyzers = listAnalyzers();
        for(AnalyzerSummary analyzer : analyzers) {
            log.info("analyzer name= {} arn= {}", analyzer.name(), analyzer.arn());
            AnalyzerConfiguration configuration = analyzer.configuration();
            log.info("configuration: " + configuration);

...

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

2.33.X (and also tried other versions)

JDK version used

"21.0.6" 2025-01-21 LTS

Operating System and version

MAC

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.service-apiThis issue is due to a problem in a 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