@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FunctionConfigurationEnvironment extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
FunctionConfigurationEnvironment() |
Modifier and Type | Method and Description |
---|---|
FunctionConfigurationEnvironment |
addVariablesEntry(String key,
String value)
Add a single Variables entry
|
FunctionConfigurationEnvironment |
clearVariablesEntries()
Removes all the entries added into Variables.
|
FunctionConfigurationEnvironment |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAccessSysfs()
If true, the Lambda function is allowed to access the host's /sys folder.
|
FunctionExecutionConfig |
getExecution()
Configuration related to executing the Lambda function
|
List<ResourceAccessPolicy> |
getResourceAccessPolicies()
A list of the resources, with their permissions, to which the Lambda function will be granted access.
|
Map<String,String> |
getVariables()
Environment variables for the Lambda function's configuration.
|
int |
hashCode() |
Boolean |
isAccessSysfs()
If true, the Lambda function is allowed to access the host's /sys folder.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessSysfs(Boolean accessSysfs)
If true, the Lambda function is allowed to access the host's /sys folder.
|
void |
setExecution(FunctionExecutionConfig execution)
Configuration related to executing the Lambda function
|
void |
setResourceAccessPolicies(Collection<ResourceAccessPolicy> resourceAccessPolicies)
A list of the resources, with their permissions, to which the Lambda function will be granted access.
|
void |
setVariables(Map<String,String> variables)
Environment variables for the Lambda function's configuration.
|
String |
toString()
Returns a string representation of this object.
|
FunctionConfigurationEnvironment |
withAccessSysfs(Boolean accessSysfs)
If true, the Lambda function is allowed to access the host's /sys folder.
|
FunctionConfigurationEnvironment |
withExecution(FunctionExecutionConfig execution)
Configuration related to executing the Lambda function
|
FunctionConfigurationEnvironment |
withResourceAccessPolicies(Collection<ResourceAccessPolicy> resourceAccessPolicies)
A list of the resources, with their permissions, to which the Lambda function will be granted access.
|
FunctionConfigurationEnvironment |
withResourceAccessPolicies(ResourceAccessPolicy... resourceAccessPolicies)
A list of the resources, with their permissions, to which the Lambda function will be granted access.
|
FunctionConfigurationEnvironment |
withVariables(Map<String,String> variables)
Environment variables for the Lambda function's configuration.
|
public void setAccessSysfs(Boolean accessSysfs)
accessSysfs
- If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda
function needs to read device information from /sys. This setting applies only when you run the Lambda
function in a Greengrass container.public Boolean getAccessSysfs()
public FunctionConfigurationEnvironment withAccessSysfs(Boolean accessSysfs)
accessSysfs
- If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda
function needs to read device information from /sys. This setting applies only when you run the Lambda
function in a Greengrass container.public Boolean isAccessSysfs()
public void setExecution(FunctionExecutionConfig execution)
execution
- Configuration related to executing the Lambda functionpublic FunctionExecutionConfig getExecution()
public FunctionConfigurationEnvironment withExecution(FunctionExecutionConfig execution)
execution
- Configuration related to executing the Lambda functionpublic List<ResourceAccessPolicy> getResourceAccessPolicies()
public void setResourceAccessPolicies(Collection<ResourceAccessPolicy> resourceAccessPolicies)
resourceAccessPolicies
- A list of the resources, with their permissions, to which the Lambda function will be granted access. A
Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda
function in a Greengrass container.public FunctionConfigurationEnvironment withResourceAccessPolicies(ResourceAccessPolicy... resourceAccessPolicies)
NOTE: This method appends the values to the existing list (if any). Use
setResourceAccessPolicies(java.util.Collection)
or
withResourceAccessPolicies(java.util.Collection)
if you want to override the existing values.
resourceAccessPolicies
- A list of the resources, with their permissions, to which the Lambda function will be granted access. A
Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda
function in a Greengrass container.public FunctionConfigurationEnvironment withResourceAccessPolicies(Collection<ResourceAccessPolicy> resourceAccessPolicies)
resourceAccessPolicies
- A list of the resources, with their permissions, to which the Lambda function will be granted access. A
Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda
function in a Greengrass container.public Map<String,String> getVariables()
public void setVariables(Map<String,String> variables)
variables
- Environment variables for the Lambda function's configuration.public FunctionConfigurationEnvironment withVariables(Map<String,String> variables)
variables
- Environment variables for the Lambda function's configuration.public FunctionConfigurationEnvironment addVariablesEntry(String key, String value)
public FunctionConfigurationEnvironment clearVariablesEntries()
public String toString()
toString
in class Object
Object.toString()
public FunctionConfigurationEnvironment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.