Cmdlets for Amazon Athena

Build 20.0.7654

Invoke-AmazonAthena Cmdlet

Parameters   Output Objects  

Searches and updates Amazon Athena data.


Invoke-AmazonAthena [parameters]


The Invoke-AmazonAthena cmdlet allows you to use SQL statements to execute any SQL statement directly. Below is the syntax for a parameterized query:

$query = Invoke-AmazonAthena -Connection $connection -Query 'SELECT * FROM Customers WHERE CustomerId=@CustomerId' -Params @{'@CustomerId'='12345'}
This cmdlet is also useful for executing stored procedures. Use the EXEC keyword to call a stored procedure:
$query = Invoke-AmazonAthena -Connection $connection -Query 'EXEC SelectEntries ObjectName = @ObjectName' -Params @{"Account"}

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7654