OpenVariable constructs a *runtimevar.Variable backed by the variable name in AWS Systems Manager Parameter Store, using AWS SDK V2. Parameter Store returns raw bytes; provide a decoder to decode the raw bytes into the appropriate type for runtimevar.Snapshot.Value. See the runtimevar package docume
(client *ssm.Client, name string, decoder *runtimevar.Decoder, opts *Options)
| 144 | // into the appropriate type for runtimevar.Snapshot.Value. |
| 145 | // See the runtimevar package documentation for examples of decoders. |
| 146 | func OpenVariable(client *ssm.Client, name string, decoder *runtimevar.Decoder, opts *Options) (*runtimevar.Variable, error) { |
| 147 | return runtimevar.New(newWatcher(client, name, decoder, opts)), nil |
| 148 | } |
| 149 | |
| 150 | var OpenVariableV2 = OpenVariable |
| 151 |