21 lines
498 B
PowerShell
21 lines
498 B
PowerShell
function Get-CachePathDesignations {
|
|
<#
|
|
.SYNOPSIS
|
|
Get the path for the cached designation data
|
|
|
|
.PARAMETER ProfileName
|
|
A valid ProfileName
|
|
#>
|
|
[CmdletBinding()]
|
|
[OutputType([string])]
|
|
param(
|
|
[Parameter(Mandatory = $true)]
|
|
[string]$ProfileName
|
|
)
|
|
|
|
Assert-ValidAWSProfileName -ProfileName $ProfileName
|
|
|
|
$ProfileName = $ProfileName.Replace("temp-","").ToLower()
|
|
$cacheFile = Get-CacheFile -Name "Designations.$ProfileName.json"
|
|
return $cacheFile
|
|
} |