Skip to content

Commit

Permalink
docs(ssm): explain that SecretValue.ssmSecure() lives in core now (#2…
Browse files Browse the repository at this point in the history
…5581)

Closes #22593.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
Zishanwang1992 committed May 17, 2023
1 parent 97a698e commit f48515f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-ssm/lib/parameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ export class StringParameter extends ParameterBase implements IStringParameter {
* @param scope Some scope within a stack
* @param parameterName The name of the SSM parameter
* @param version The parameter version (required for secure strings)
* @deprecated Use `SecretValue.ssmSecure()` instead, it will correctly type the imported value as a `SecretValue` and allow importing without version.
* @deprecated Use `SecretValue.ssmSecure()` instead, it will correctly type the imported value as a `SecretValue` and allow importing without version. `SecretValue` lives in the core `aws-cdk-lib` module.
*/
public static valueForSecureStringParameter(scope: Construct, parameterName: string, version: number): string {
const stack = Stack.of(scope);
Expand Down

0 comments on commit f48515f

Please sign in to comment.