Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save krymtkts/0e4e267d1b895cb245e6be516a075990 to your computer and use it in GitHub Desktop.
Save krymtkts/0e4e267d1b895cb245e6be516a075990 to your computer and use it in GitHub Desktop.
# AWS.Tools.* modules must be imported first to get all property information.
Get-Module -Name *AWS* | Import-Module
Get-Command *Tag* | Where-Object -Property Source -Like '*aws*' | ForEach-Object {
[pscustomobject]@{
Name = $_.Name
TagParameterType = $_.Parameters.Values | Where-Object -Property Name -Like '*tag*' | Select-Object -ExpandProperty ParameterType
}
} | Where-Object -Property TagParameterType -NE $Null | Group-Object TagParameterType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment