func (s *SsmSecret) GetSecret() (string, error) {
	if s.isSecretValid() {
		return s.value, nil
	}
	log.Println("Refreshing secret...")
	if err := s.refreshSecret(); err != nil {
		return "", err
	}
	return s.value, nil
}
// GetSecret will return, and if necessary retrieve the secret defined in its SSM parameter store
// key
GetSecret will return, and if necessary retrieve the secret defined in its SSM parameter store
key
// GetSecret will return and if necessary retrieve the secret defined in its SSM parameter store // key
func (s *SsmSecret) GetSecret() (string, error) {
	if s.isSecretValid() {
		return s.value, nil
	}
	log.Println("Refreshing secret...")
	if err := s.refreshSecret(); err != nil {
		return "", err
	}
	return s.value, nil
}
func ( s * SsmSecret ) GetSecret ( ) ( string , error ) { if s . isSecretValid ( ) { return s . value , nil } log . Println ( " " ) if err := s . refreshSecret ( ) ; err != nil { return " " , err } return s . value , nil }
GetSecret will return, and if necessary retrieve the secret defined in its SSM parameter store
key
GetSecret will return and if necessary retrieve the secret defined in its SSM parameter store key