aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 12 forks source link

Codecommit.GetReferencesCommand is missing in @aws-sdk/client-codecommit #684

Closed AllanOricil closed 5 months ago

AllanOricil commented 5 months ago

Describe the feature

Add a command to execute GetReferences codecommit api call.

As you can see in the image bellow, it is available in the service

image

But the package does not have a command to match this resource

image

I noticed that the AWS cli is also missing this command

https://docs.aws.amazon.com/cli/latest/reference/codecommit/

The Web API doc is also missing this resource

https://docs.aws.amazon.com/codecommit/latest/APIReference/Welcome.html

Use Case

I have a codepipeline v1 which is triggered by a lambda. This pipeline has a buildspec.yml with a pre-build step that uses the commit sha to discover if it has a tag or not. If this commit has a tag, then I run additional steps. I can't currently use codepipeline v2 because there is no L2 construct yet. Someone will soon merge this feature: https://github.com/aws/aws-cdk/pull/28538

Proposed Solution

Use this permissions list to discover which commands are missing

https://docs.aws.amazon.com/pt_br/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html

Other Information

I can implement it. But I would need some initial guidance.

Acknowledgements

SDK version used

3.121.0 also tried with 3.496.0 and the same result

Environment details (OS name and version, etc.)

MacOs Sonoma Beta 3

RanVaknin commented 5 months ago

Hi @AllanOricil ,

Thanks for reaching out. If you didn't know, all of the AWS SDKs and the CLI are code generated from the API model of each AWS service.

Since the service does not model this operation in their model, the SDKs cannot generate code and types for them. Even if that operation might have already backend support.

I have created a feature request with the CodeCommit service team on your behalf - P115757716, you will be able to check on the status of it if you cut a support ticket through the AWS console yourself.

I will be closing this ticket since its not actionable by the SDK team, but will update it when we hear back from the service team.

Thanks again, Ran~

github-actions[bot] commented 5 months ago

This issue is now closed.

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.