public class StringParameter
extends java.lang.Object
implements java.util.function.Supplier<java.lang.String>
Implements supplier logic to allow repeated reading of potentially changing values
| Modifier and Type | Method and Description |
|---|---|
static StringParameter |
fromEnv(com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement systemsManagementClient,
java.lang.String environmentVariable)
Creates a new reference to a string parameter stored on Amazon SSM
|
static StringParameter |
fromEnv(java.lang.String environmentVariable)
Creates a new reference to a string parameter stored on Amazon SSM
|
java.lang.String |
get() |
public java.lang.String get()
get in interface java.util.function.Supplier<java.lang.String>public static StringParameter fromEnv(java.lang.String environmentVariable)
Uses the default AWS system management client
environmentVariable - The name of an environment variable where the name of the parameter to access is storedpublic static StringParameter fromEnv(com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement systemsManagementClient, java.lang.String environmentVariable)
systemsManagementClient - Client instance to use when reading from SSMenvironmentVariable - The name of an environment variable where the name of the parameter to access is stored