Conditions | 3 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package ssm |
||
13 | func (svc *SSM) GetParameter(ctx context.Context, r GetParameterRequest) (*GetParameterResult, error) { |
||
14 | out, err := svc.RawGetParameter(ctx, r.ToInput()) |
||
15 | if err == nil { |
||
16 | return NewGetParameterResult(out), err |
||
17 | } |
||
18 | |||
19 | if errors.GetAWSErrorCode(err) == "ParameterNotFound" { |
||
20 | return &GetParameterResult{ |
||
21 | NotFound: true, |
||
22 | }, nil |
||
23 | } |
||
24 | |||
25 | err = svc.errWrap(errors.ErrorData{ |
||
26 | Err: err, |
||
27 | AWSOperation: "GetParameter", |
||
28 | }) |
||
29 | svc.Errorf(err.Error()) |
||
|
|||
30 | return nil, err |
||
31 | } |
||
66 |