func (s *SsmSecret) refreshSecret() error {
	sess := session.Must(
		session.NewSessionWithOptions(session.Options{
			SharedConfigState: session.SharedConfigEnable}))

	ssmClient := ssm.New(sess)

	response, err := ssmClient.GetParameter(&ssm.GetParameterInput{
		Name:           aws.String(s.key),
		WithDecryption: aws.Bool(true),
	})
	if err != nil {
		return err
	}
	s.resetExpiry()
	s.value = *response.Parameter.Value
	return nil
}
// refreshSecret will retrieve a secret from SSM parameter store, and reset the expiry for the
// secret
refreshSecret will retrieve a secret from SSM parameter store, and reset the expiry for the
secret
// refreshSecret will retrieve a secret from SSM parameter store and reset the expiry for the // secret
func (s *SsmSecret) refreshSecret() error {
	sess := session.Must(
		session.NewSessionWithOptions(session.Options{
			SharedConfigState: session.SharedConfigEnable}))
	ssmClient := ssm.New(sess)
	response, err := ssmClient.GetParameter(&ssm.GetParameterInput{
		Name:           aws.String(s.key),
		WithDecryption: aws.Bool(true),
	})
	if err != nil {
		return err
	}
	s.resetExpiry()
	s.value = *response.Parameter.Value
	return nil
}
func ( s * SsmSecret ) refreshSecret ( ) error { sess := session . Must ( session . NewSessionWithOptions ( session . Options { SharedConfigState : session . SharedConfigEnable } ) ) ssmClient := ssm . New ( sess ) response , err := ssmClient . GetParameter ( & ssm . GetParameterInput { Name : aws . String ( s . key ) , WithDecryption : aws . Bool ( true ) , } ) if err != nil { return err } s . resetExpiry ( ) s . value = * response . Parameter . Value return nil }
refreshSecret will retrieve a secret from SSM parameter store, and reset the expiry for the
secret
refreshSecret will retrieve a secret from SSM parameter store and reset the expiry for the secret