Skip to content

Incorrect response from list-enabled-controls #9616

@danblacklist

Description

@danblacklist

Describe the bug

The response of aws controltower list-enabled-controls returns NextToken while the documentation states it returns nextToken.

Not sure if we need to rectify the documentation or the CLI.

$ aws --version
aws-cli/2.24.26 Python/3.12.9 Darwin/24.5.0 source/arm64

$ aws controltower list-enabled-controls --target-identifier "arn:aws:organizations::XXXXXXXXXXXX:ou/o-9zthyzigwo/ou-fsb8-khyiv2is" --max-items 5 --query "nextToken"
null

$ aws controltower list-enabled-controls --target-identifier "arn:aws:organizations::XXXXXXXXXXXX:ou/o-9zthyzigwo/ou-fsb8-khyiv2is" --max-items 5 --query "NextToken"
"eyJuZXh0VG9rZW4iOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiA1fQ=="

Regression Issue

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

Expected Behavior

It should ideally return nextToken as that would comply with the camelCase being followed in the rest of the response.

Current Behavior

It currently returns NextToken (Notice the capitalized "N")

Reproduction Steps

Run the following command:

aws controltower list-enabled-controls --target-identifier "<OU_ID>"

Possible Solution

We need to fix this in CLI code for list-enabled-controls

Additional Information/Context

NA

CLI version used

aws-cli/2.24.26 Python/3.12.9 Darwin/24.5.0 source/arm64

Environment details (OS name and version, etc.)

macOS 15.5 (24F74)

Metadata

Metadata

Labels

bugThis issue is a bug.controltowerinvestigatingThis issue is being investigated and/or work is in progress to resolve the issue.p3This is a minor priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions