This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on: https://github.com/aws-samples/aws-secrets-manager-rotation-lambdas/blob/master/SecretsManagerRotationTemplate/lambda_function.py | |
import { SecretsManagerRotationEvent } from 'aws-lambda'; | |
import { DescribeSecretCommandOutput, SecretsManager, ResourceExistsException, GetSecretValueCommandOutput } from "@aws-sdk/client-secrets-manager"; | |
import { inspect } from 'util'; | |
export interface ILogger { | |
info: (...data: any[]) => void; | |
error: (...data: any[]) => void; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# PS C:\pathToScript> Zip.ps1 C:\directory\to\zip C:\zipFileName.zip | |
[CmdletBinding(DefaultParameterSetName = 'None')] | |
param | |
( | |
[String] [Parameter(Mandatory = $true)] | |
$SourceDirectory, | |
[String] [Parameter(Mandatory = $true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\RAS\Bytes Transmitted By Disconnected Clients | |
\RAS\Bytes Received By Disconnected Clients | |
\RAS\Failed Authentications | |
\RAS\Max Clients | |
\RAS\Total Clients | |
\WSMan Quota Statistics(*)\Process ID | |
\WSMan Quota Statistics(*)\Active Users | |
\WSMan Quota Statistics(*)\Active Operations | |
\WSMan Quota Statistics(*)\Active Shells | |
\WSMan Quota Statistics(*)\System Quota Violations/Second |