Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmdlet to invoke arbitrary API action #347

Closed
2 tasks
dbaileyut opened this issue Apr 16, 2024 · 3 comments
Closed
2 tasks

Cmdlet to invoke arbitrary API action #347

dbaileyut opened this issue Apr 16, 2024 · 3 comments
Labels

Comments

@dbaileyut
Copy link

Describe the feature

A cmdlet that allows invoking arbitrary AWS API action and handles authentication, signing etc.

Use Case

I'm frustrated when certain APIs calls are not available as their own cmdlet yet. Or, I want to do something lower level. For example, Find-IDSUserList cmdlet's -Filter parameter is deprecated and we are told to use GetUserId. However, as far as I can tell there's no cmdlet for that.

Proposed Solution

Something like "Invoke-AWSApiAction" which would be similar to Invoke-AzRestMethod or Invoke-RestMethod with all the authentication and standard AWS parameters provided.

Parameters would be something like

  • ApiAction where I could specify something like "GetUserId"
  • RequestParameter - a hash table of the request parameters that would get converted to JSON in the API call
  • Profile, Region, etc. - all the standard parameters

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Tools for PowerShell version used

AWS.Tools.Common 4.1.539

PowerShell version used

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Operating System and version

Windows 11

@dbaileyut dbaileyut added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Apr 16, 2024
@ashishdhingra
Copy link
Contributor

Unsure if implementing arbitrary API action CmdLet would be feasible since service APIs have varying model definitions. Needs review with the team.

@ashishdhingra ashishdhingra added needs-review and removed needs-triage This issue or PR still needs to be triaged. labels Apr 17, 2024
@ashishdhingra
Copy link
Contributor

Closing this since we have the required Identity Store CmdLets as mentioned in #349 and #348. We are generating CmdLets for all service APIs.

@ashishdhingra ashishdhingra closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants