Annotation Interface DeploymentContext


@Target(FIELD) @Retention(RUNTIME) public @interface DeploymentContext
Annotation to extract specific values from DeploymentContext.

Example usage:


 @DeploymentContext("region")
 private String region;

 @DeploymentContext("env")
 private String environment;

 @DeploymentContext("wafEnabled")
 private boolean wafEnabled;
 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The property name to extract from DeploymentContext.
  • Element Details

    • value

      String value
      The property name to extract from DeploymentContext. Valid values include: region, env, tier, domain, subdomain, fqdn, networkMode, wafEnabled, cloudfront, lbType, authMode, instanceType, enableMonitoring, enableEncryption, logRetentionDays, cpu, memory, etc.
      Returns:
      the property name to extract
      Default:
      ""