Skip to content

Commit 10f5ede

Browse files
authored
chore(ssm): deprecate valueForSecureStringParameter in favor of SecretValue (#19982)
---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 2ff3143 commit 10f5ede

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@aws-cdk/aws-ssm/lib/parameter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ export class StringParameter extends ParameterBase implements IStringParameter {
430430
* @param scope Some scope within a stack
431431
* @param parameterName The name of the SSM parameter
432432
* @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.
433434
*/
434435
public static valueForSecureStringParameter(scope: Construct, parameterName: string, version: number): string {
435436
const stack = Stack.of(scope);

0 commit comments

Comments
 (0)