public class SsmLookup extends org.apache.commons.text.StrLookup<Object>
| Constructor and Description |
|---|
SsmLookup(com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement ssm,
boolean strict)
Constructor.
|
SsmLookup(com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement ssm,
boolean strict,
String namespacePrefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
lookup(String key) |
public SsmLookup(com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement ssm,
boolean strict)
ssm - A configured AWSSimpleSystemsManagement client to use for parameter value requests.strict - true if lookups should throw an UndefinedEnvironmentVariableException when no value is foundpublic SsmLookup(com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement ssm,
boolean strict,
String namespacePrefix)
ssm - A configured AWSSimpleSystemsManagement client to use for parameter value requests.strict - true if lookups should throw an UndefinedEnvironmentVariableException when no value is foundnamespacePrefix - A prefix to prepend to variable names when determining the parameter key.
Example: if this is set to "foobar/" and you look up the variable "buzz/bar", this SsmLookup will look up the value in a parameter named "foobar/buzz/bar".
This is mostly useful for re-using a variable name across multiple environments
Copyright © 2018. All rights reserved.