Annotation Type SecretsParam


@Retention(RUNTIME) @Target(FIELD) public @interface SecretsParam
Inject a parameter from the Secrets Manager into a field. You can also use SecretsProviderBuilder to obtain Secrets Manager values directly, rather than injecting them implicitly.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Mandatory. key from the secrets manager store.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Transformer>
    Optional. a transfer to apply to the value
  • Element Details

    • key

      String key
      Mandatory. key from the secrets manager store.
      Returns:
    • transformer

      Class<? extends Transformer> transformer
      Optional. a transfer to apply to the value
      Default:
      software.amazon.lambda.powertools.parameters.transform.Transformer.class