func validateTokenParameter(tokenInfo string) (valid bool, err error) {

	// Regex to check the pattern of the secure parameter required.
	// pattern must be equal to {{ ssm-secure:parameter-name }}
	var ssmSecureStringPattern = regexp.MustCompile("{{\\s*(" + ssmSecurePrefix + "[\\w-./]+)\\s*}}")
	if ssmSecureStringPattern.Match([]byte(tokenInfo)) {
		return true, nil
	}
	return false, errors.New("Format of specifying ssm parameter used for token-parameter-name is incorrect. " +
		"Please specify parameter as '{{ ssm-secure:parameter-name }}'")
}
// validateTokenParameter validates the format of tokenInfo
validateTokenParameter validates the format of tokenInfo
// validateTokenParameter validates the format of tokenInfo
func validateTokenParameter(tokenInfo string) (valid bool, err error) {
	var ssmSecureStringPattern = regexp.MustCompile("{{\\s*(" + ssmSecurePrefix + "[\\w-./]+)\\s*}}")
	if ssmSecureStringPattern.Match([]byte(tokenInfo)) {
		return true, nil
	}
	return false, errors.New("Format of specifying ssm parameter used for token-parameter-name is incorrect. " +
		"Please specify parameter as '{{ ssm-secure:parameter-name }}'")
}
func validateTokenParameter ( tokenInfo string ) ( valid bool , err error ) { var ssmSecureStringPattern = regexp . MustCompile ( " \\ " + ssmSecurePrefix + " \\ \\ " ) if ssmSecureStringPattern . Match ( [ ] byte ( tokenInfo ) ) { return true , nil } return false , errors . New ( " " + " " ) }
validateTokenParameter validates the format of tokenInfo
validateTokenParameter validates the format of tokenInfo
// Regex to check the pattern of the secure parameter required. // pattern must be equal to {{ ssm-secure:parameter-name }}