Enum ParamsAndSecretsLogLevel

java.lang.Object
java.lang.Enum<ParamsAndSecretsLogLevel>
software.amazon.awscdk.services.lambda.ParamsAndSecretsLogLevel
All Implemented Interfaces:
Serializable, Comparable<ParamsAndSecretsLogLevel>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-06T22:15:56.807Z") @Stability(Stable) public enum ParamsAndSecretsLogLevel extends Enum<ParamsAndSecretsLogLevel>
Logging levels for the Parametes and Secrets Extension.

Example:

 import software.amazon.awscdk.services.secretsmanager.*;
 import software.amazon.awscdk.services.ssm.*;
 Secret secret = new Secret(this, "Secret");
 StringParameter parameter = StringParameter.Builder.create(this, "Parameter")
         .parameterName("mySsmParameterName")
         .stringValue("mySsmParameterValue")
         .build();
 ParamsAndSecretsLayerVersion paramsAndSecrets = ParamsAndSecretsLayerVersion.fromVersion(ParamsAndSecretsVersions.V1_0_103, ParamsAndSecretsOptions.builder()
         .cacheSize(500)
         .logLevel(ParamsAndSecretsLogLevel.DEBUG)
         .build());
 Function lambdaFunction = Function.Builder.create(this, "MyFunction")
         .runtime(Runtime.NODEJS_18_X)
         .handler("index.handler")
         .architecture(Architecture.ARM_64)
         .code(Code.fromAsset(join(__dirname, "lambda-handler")))
         .paramsAndSecrets(paramsAndSecrets)
         .build();
 secret.grantRead(lambdaFunction);
 parameter.grantRead(lambdaFunction);
 
  • Enum Constant Details

  • Method Details

    • values

      public static ParamsAndSecretsLogLevel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ParamsAndSecretsLogLevel valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null