~mjorgensen/windows-dotfiles

8d14cea0da08f3627ad87fa7211630c984586c80 — Matthew Jorgensen 17 days ago b44c45b master
Add function to get details about AWS SES Send Statistics
1 files changed, 17 insertions(+), 0 deletions(-)

M functions.ps1
M functions.ps1 => functions.ps1 +17 -0
@@ 73,6 73,23 @@ function Get-AwsSesSendQuota {
    $objReturn
}

function Get-AwsSendStatistics {
    Param(
        [Parameter(Mandatory=$false)]
        [switch]$Sorted
        )

    $resSendStatistics = $($(aws ses get-send-statistics) | ConvertFrom-Json).SendDataPoints

    if ($Sorted) {
        $resSendStatistics | Sort-Object -Property Timestamp | ft
    } else {
        $resSendStatistics
    }


}

function Play-StarWarsTheme {
    [console]::beep(440,500)
    [console]::beep(440,500)