You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewSetParameterError(`Unable to set parameter with name ${name}`);
380
+
}
381
+
382
+
// biome-ignore lint/style/noNonNullAssertion: The API for PutParameter states that there will always be a value returned when the request was successful.
383
+
returnresult.Version!;
384
+
}
385
+
325
386
/**
326
387
* Retrieve multiple values from AWS Systems Manager.
* const version = await setParameter('/my-parameter', { value: 'my-value' });
29
+
* console.log(Parameter version: ${version});
30
+
* };
31
+
* ```
32
+
*
33
+
* ## Advanced Usage
34
+
*
35
+
* ### Overwriting a parameter
36
+
*
37
+
* By default, the provider will not overwrite a parameter if it already exists. You can force the provider to overwrite the parameter by using the `overwrite` option.
38
+
*
39
+
* @example
40
+
* ```typescript
41
+
* import { setParameter } from '@aws-lambda-powertools/parameters/ssm';
0 commit comments