We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
valueForSecureStringParameter
SecretValue
1 parent 2ff3143 commit 10f5edeCopy full SHA for 10f5ede
packages/@aws-cdk/aws-ssm/lib/parameter.ts
@@ -430,6 +430,7 @@ export class StringParameter extends ParameterBase implements IStringParameter {
430
* @param scope Some scope within a stack
431
* @param parameterName The name of the SSM parameter
432
* @param version The parameter version (required for secure strings)
433
+ * @deprecated Use `SecretValue.ssmSecure()` instead, it will correctly type the imported value as a `SecretValue` and allow importing without version.
434
*/
435
public static valueForSecureStringParameter(scope: Construct, parameterName: string, version: number): string {
436
const stack = Stack.of(scope);
0 commit comments