Functions/AWS/SSM/Set-DefaultSSMOutput.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
<# .SYNOPSIS Sets the default SSM Output S3 bucket and prefix .DESCRIPTION The cmdlet sets the default S3 bucket and prefix for capturing SSM outputs. .PARAMETER PemFile Mandatory - Path to the PrivateKey file to be used by default .EXAMPLE Set-DefaultSSMOutput #> function Set-DefaultSSMOutput { [CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseShouldProcessForStateChangingFunctions","")] param( [Parameter(Mandatory=$true,Position=0)] [ValidateNotNullOrEmpty()] [string]$BucketName, [Parameter(Position=1)] [ValidateNotNullOrEmpty()] [string]$KeyPrefix ) $Script:DefaultSSMOutputS3BucketName=$BucketName $Script:DefaultSSMOutputS3KeyPrefix=$KeyPrefix } |