Skip to content

aws codecommit list-branches --cli-input-json nextToken doesn't work #2207

@hugoprudente

Description

@hugoprudente

I'm studying this CLI, and has a part that simply doesn't work.

Looking into --generate-cli-skeleton I should be able to use nextToken.

aws codecommit list-branches --generate-cli-skeleton 
{
    "repositoryName": "", 
    "nextToken": ""
}

So I retrieve a next-token limiting the output.

aws codecommit list-branches --repository-name study-101.01 --max-items 2 --region us-east-1                                                                                                                                           master
{
    "NextToken": "eyJuZXh0VG9rZW4iOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAyfQ==", 
    "branches": [
        "master", 
        "cli-dev-json"
    ]
}

And try to use into the --cli-input-json and the output is not limited.

aws codecommit list-branches --cli-input-json '{"repositoryName":"study-101.01","nextToken":"eyJuZXh0VG9rZW4iOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAyfQ=="}' --region us-east-1                                                    master
{
    "branches": [
        "master", 
        "cli-dev-json", 
        "dev", 
        "cli-dev"
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    closing-soonThis issue will automatically close in 4 days unless further comments are made.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions