func (d *AWSParameterStore) Deref(ref string) (string, error) {
	m := awsParamStoreARN.FindStringSubmatch(ref)
	if m == nil {
		return "", errors.New("invalid AWS param store key " + ref)
	}
	region, name := m[1], m[2]
	svc := ssm.New(d.sess, aws.NewConfig().WithRegion(region))
	ssmParam, err := svc.GetParameter(&ssm.GetParameterInput{
		Name:           aws.String(name),
		WithDecryption: aws.Bool(!d.Plaintext),
	})
	if err != nil {
		return "", errors.New("cannot load AWS param '" + name + "' in region '" + region + "': " + err.Error())
	}
	return *ssmParam.Parameter.Value, nil
}
// Deref returns the value of the parameter ref which is the ARN of the
// resource in the form:
//   arn:aws:ssm:<region>:<account-number>:parameter/...
Deref returns the value of the parameter ref which is the ARN of the
resource in the form:
arn:aws:ssm:::parameter/
// Deref returns the value of the parameter ref which is the ARN of the // resource in the form : // arn : aws : ssm : <region > : <account - number > : parameter / ...
func (d *AWSParameterStore) Deref(ref string) (string, error) {
	m := awsParamStoreARN.FindStringSubmatch(ref)
	if m == nil {
		return "", errors.New("invalid AWS param store key " + ref)
	}
	region, name := m[1], m[2]
	svc := ssm.New(d.sess, aws.NewConfig().WithRegion(region))
	ssmParam, err := svc.GetParameter(&ssm.GetParameterInput{
		Name:           aws.String(name),
		WithDecryption: aws.Bool(!d.Plaintext),
	})
	if err != nil {
		return "", errors.New("cannot load AWS param '" + name + "' in region '" + region + "': " + err.Error())
	}
	return *ssmParam.Parameter.Value, nil
}
func ( d * AWSParameterStore ) Deref ( ref string ) ( string , error ) { m := awsParamStoreARN . FindStringSubmatch ( ref ) if m == nil { return " " , errors . New ( " " + ref ) } region , name := m [ 1 ] , m [ 2 ] svc := ssm . New ( d . sess , aws . NewConfig ( ) . WithRegion ( region ) ) ssmParam , err := svc . GetParameter ( & ssm . GetParameterInput { Name : aws . String ( name ) , WithDecryption : aws . Bool ( ! d . Plaintext ) , } ) if err != nil { return " " , errors . New ( " " + name + " " + region + " " + err . Error ( ) ) } return * ssmParam . Parameter . Value , nil }
Deref returns the value of the parameter ref which is the ARN of the
resource in the form:
arn:aws:ssm:::parameter
Deref returns the value of the parameter ref which is the ARN of the resource in the form : arn : aws : ssm ::: parameter