Example 1
PS C:\>Get-AWSCmdletName -ApiOperation describeinstances
CmdletName ServiceOperation ServiceName CmdletNounPrefix
---------- ---------------- ----------- ----------------
Get-EC2Instance DescribeInstances Amazon Elastic Compute Cloud EC2
Get-OPSInstances DescribeInstances AWS OpsWorks OPS
Returns the names of the all cmdlets that invoke an API matching the term 'describeinstances' across all services. In this example, 'Get-EC2Instance' from Amazon EC2 and Get-OPSInstances from Amazon OpsWorks are output.
Example 2
PS C:\>Get-AWSCmdletName -ApiOperation describeinstances -Service ec2
CmdletName ServiceOperation ServiceName CmdletNounPrefix
---------- ---------------- ----------- ----------------
Get-EC2Instance DescribeInstances Amazon Elastic Compute Cloud EC2
Returns the names of the all cmdlets that invoke an API matching the term 'describeinstances' for the Amazon EC2 service.In this example, 'Get-EC2Instance' is output.
Example 3
PS C:\>Get-AWSCmdletName -ApiOperation describeinstances -Service "compute cloud"
CmdletName ServiceOperation ServiceName CmdletNounPrefix
---------- ---------------- ----------- ----------------
Get-EC2Instance DescribeInstances Amazon Elastic Compute Cloud EC2
Returns the names of the all cmdlets that invoke an API matching the term 'describeinstances' for the Amazon EC2 service.In this example, 'Get-EC2Instance' is output.
Example 4
PS C:\>Get-AWSCmdletName -ApiOperation securitygroup -MatchWithRegex
CmdletName ServiceOperation ServiceName CmdletNounPrefix
---------- ---------------- ----------- ----------------
Approve-ECCacheSecurityGroupIngress AuthorizeCacheSecurityGroupIngress Amazon ElastiCache EC
Get-ECCacheSecurityGroup DescribeCacheSecurityGroups Amazon ElastiCache EC
...
Get-EC2SecurityGroup DescribeSecurityGroups Amazon Elastic Compute Cloud EC2
Grant-EC2SecurityGroupEgress AuthorizeSecurityGroupEgress Amazon Elastic Compute Cloud EC2
Grant-EC2SecurityGroupIngress AuthorizeSecurityGroupIngress Amazon Elastic Compute Cloud EC2
...
New-RDSDBSecurityGroup CreateDBSecurityGroup Amazon Relational Database Service RDS
Remove-RDSDBSecurityGroup DeleteDBSecurityGroup Amazon Relational Database Service RDS
Revoke-RDSDBSecurityGroupIngress RevokeDBSecurityGroupIngress Amazon Relational Database Service RDS
...
Approve-RSClusterSecurityGroupIngress AuthorizeClusterSecurityGroupIngress Amazon Redshift RS
Get-RSClusterSecurityGroups DescribeClusterSecurityGroups Amazon Redshift RS
Returns the names of the all cmdlets that contain the term 'securitygroup' in the operation they invoke, across all services.
Example 5
PS C:\>Get-AWSCmdletName -ApiOperation securitygroup -MatchWithRegex -Service ec2
CmdletName ServiceOperation ServiceName CmdletNounPrefix
---------- ---------------- ----------- ----------------
Get-EC2SecurityGroup DescribeSecurityGroups Amazon Elastic Compute Cloud EC2
Grant-EC2SecurityGroupEgress AuthorizeSecurityGroupEgress Amazon Elastic Compute Cloud EC2
Grant-EC2SecurityGroupIngress AuthorizeSecurityGroupIngress Amazon Elastic Compute Cloud EC2
...
Returns the names of the all Amazon EC2 cmdlets that contain the term 'securitygroup' in the operation they invoke.
Example 6
PS C:\>Get-AWSCmdletName -ApiOperation listmetrics -Service cloudwatch
CmdletName ServiceOperation ServiceName CmdletNounPrefix
---------- ---------------- ----------- ----------------
Get-CWMetrics ListMetrics Amazon CloudWatch CW
Returns the name of the cmdlet that invokes the Amazon CloudWatch 'ListMetrics' operation. In this example, 'Get-CWMetrics' is output. The same result can be obtained by using the service prefix, 'cw' as the value for the -Service parameter.
Example 7
PS C:\>Get-AWSCmdletName -AwsCliCommand "aws ec2 describe-images"
CmdletName ServiceOperation ServiceName CmdletNounPrefix
---------- ---------------- ----------- ----------------
Get-EC2Image DescribeImages Amazon Elastic Compute Cloud EC2
Returns the name of the cmdlet that performs the same operation as the specified AWS CLI command. In this example, 'Get-EC2Image' is output. Any options (prefixed by --) in the AWS CLI command are ignored. The initial 'aws' can also be omitted. This format is useful when transcoding an AWS CLI sample to AWS PowerShell.
Example 8
PS C:\> Get-AWSCmdletName -Service ec2
CmdletName ServiceOperation ServiceName
---------- ---------------- -----------
Add-EC2ClassicLinkVpc AttachClassicLinkVpc Amazon Elastic Compute Cloud
Add-EC2InternetGateway AttachInternetGateway Amazon Elastic Compute Cloud
Add-EC2NetworkInterface AttachNetworkInterface Amazon Elastic Compute Cloud
...
Get-ECSClusterDetail DescribeClusters Amazon EC2 Container Service
Get-ECSClusters ListClusters Amazon EC2 Container Service
Get-ECSClusterService ListServices Amazon EC2 Container Service
...
Performs a search to list all cmdlets that have 'ec2' in either the service name or the cmdlet noun prefix. In this example this matches Amazon Elastic Compute Cloud (search term matches noun prefix) and Amazon EC2 Container Service (search term found in the name).
Example 9
PS C:\> Get-AWSCmdletName -Service compute
CmdletName ServiceOperation ServiceName
---------- ---------------- -----------
Add-EC2ClassicLinkVpc AttachClassicLinkVpc Amazon Elastic Compute Cloud
Add-EC2InternetGateway AttachInternetGateway Amazon Elastic Compute Cloud
Add-EC2NetworkInterface AttachNetworkInterface Amazon Elastic Compute Cloud
...
Unregister-EC2Image DeregisterImage Amazon Elastic Compute Cloud
Unregister-EC2PrivateIpAddress UnassignPrivateIpAddresses Amazon Elastic Compute Cloud
Unregister-EC2RouteTable DisassociateRouteTable Amazon Elastic Compute Cloud
Performs a search to list all cmdlets that have 'compute' in either the service name or the cmdlet noun prefix. In this example the match is for Amazon Elastic Compute Cloud only (search term found in the name).