Enum Class ParamsAndSecretsVersions

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

@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)", date="2023-11-02T10:21:19.853Z") @Stability(Stable) public enum ParamsAndSecretsVersions extends Enum<ParamsAndSecretsVersions>
Parameters and Secrets Extension versions.

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

    • V1_0_103

      @Stability(Stable) public static final ParamsAndSecretsVersions V1_0_103
      Version 1.0.103.

      Note: This is the latest version

  • Method Details

    • values

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

      public static ParamsAndSecretsVersions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null