Class FunctionConfiguration
- java.lang.Object
-
- com.amazonaws.services.lambda.model.FunctionConfiguration
-
- All Implemented Interfaces:
Serializable,Cloneable
public class FunctionConfiguration extends Object implements Serializable, Cloneable
A complex type that describes function metadata.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionConfigurationclone()booleanequals(Object obj)StringgetCodeSha256()It is the SHA256 hash of your function deployment package.LonggetCodeSize()The size, in bytes, of the function .zip file you uploaded.StringgetDescription()The user-provided description.StringgetFunctionArn()The Amazon Resource Name (ARN) assigned to the function.StringgetFunctionName()The name of the function.StringgetHandler()The function Lambda calls to begin executing your function.StringgetLastModified()The time stamp of the last time you updated the function.IntegergetMemorySize()The memory size, in MB, you configured for the function.StringgetRole()The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.StringgetRuntime()The runtime environment for the Lambda function.IntegergetTimeout()The function execution time at which Lambda should terminate the function.StringgetVersion()The version of the Lambda function.VpcConfigResponsegetVpcConfig()VPC configuration associated with your Lambda function.inthashCode()voidsetCodeSha256(String codeSha256)It is the SHA256 hash of your function deployment package.voidsetCodeSize(Long codeSize)The size, in bytes, of the function .zip file you uploaded.voidsetDescription(String description)The user-provided description.voidsetFunctionArn(String functionArn)The Amazon Resource Name (ARN) assigned to the function.voidsetFunctionName(String functionName)The name of the function.voidsetHandler(String handler)The function Lambda calls to begin executing your function.voidsetLastModified(String lastModified)The time stamp of the last time you updated the function.voidsetMemorySize(Integer memorySize)The memory size, in MB, you configured for the function.voidsetRole(String role)The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.voidsetRuntime(Runtime runtime)The runtime environment for the Lambda function.voidsetRuntime(String runtime)The runtime environment for the Lambda function.voidsetTimeout(Integer timeout)The function execution time at which Lambda should terminate the function.voidsetVersion(String version)The version of the Lambda function.voidsetVpcConfig(VpcConfigResponse vpcConfig)VPC configuration associated with your Lambda function.StringtoString()Returns a string representation of this object; useful for testing and debugging.FunctionConfigurationwithCodeSha256(String codeSha256)It is the SHA256 hash of your function deployment package.FunctionConfigurationwithCodeSize(Long codeSize)The size, in bytes, of the function .zip file you uploaded.FunctionConfigurationwithDescription(String description)The user-provided description.FunctionConfigurationwithFunctionArn(String functionArn)The Amazon Resource Name (ARN) assigned to the function.FunctionConfigurationwithFunctionName(String functionName)The name of the function.FunctionConfigurationwithHandler(String handler)The function Lambda calls to begin executing your function.FunctionConfigurationwithLastModified(String lastModified)The time stamp of the last time you updated the function.FunctionConfigurationwithMemorySize(Integer memorySize)The memory size, in MB, you configured for the function.FunctionConfigurationwithRole(String role)The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.FunctionConfigurationwithRuntime(Runtime runtime)The runtime environment for the Lambda function.FunctionConfigurationwithRuntime(String runtime)The runtime environment for the Lambda function.FunctionConfigurationwithTimeout(Integer timeout)The function execution time at which Lambda should terminate the function.FunctionConfigurationwithVersion(String version)The version of the Lambda function.FunctionConfigurationwithVpcConfig(VpcConfigResponse vpcConfig)VPC configuration associated with your Lambda function.
-
-
-
Method Detail
-
setFunctionName
public void setFunctionName(String functionName)
The name of the function.
- Parameters:
functionName- The name of the function.
-
getFunctionName
public String getFunctionName()
The name of the function.
- Returns:
- The name of the function.
-
withFunctionName
public FunctionConfiguration withFunctionName(String functionName)
The name of the function.
- Parameters:
functionName- The name of the function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFunctionArn
public void setFunctionArn(String functionArn)
The Amazon Resource Name (ARN) assigned to the function.
- Parameters:
functionArn- The Amazon Resource Name (ARN) assigned to the function.
-
getFunctionArn
public String getFunctionArn()
The Amazon Resource Name (ARN) assigned to the function.
- Returns:
- The Amazon Resource Name (ARN) assigned to the function.
-
withFunctionArn
public FunctionConfiguration withFunctionArn(String functionArn)
The Amazon Resource Name (ARN) assigned to the function.
- Parameters:
functionArn- The Amazon Resource Name (ARN) assigned to the function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuntime
public void setRuntime(String runtime)
The runtime environment for the Lambda function.
- Parameters:
runtime- The runtime environment for the Lambda function.- See Also:
Runtime
-
getRuntime
public String getRuntime()
The runtime environment for the Lambda function.
- Returns:
- The runtime environment for the Lambda function.
- See Also:
Runtime
-
withRuntime
public FunctionConfiguration withRuntime(String runtime)
The runtime environment for the Lambda function.
- Parameters:
runtime- The runtime environment for the Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Runtime
-
setRuntime
public void setRuntime(Runtime runtime)
The runtime environment for the Lambda function.
- Parameters:
runtime- The runtime environment for the Lambda function.- See Also:
Runtime
-
withRuntime
public FunctionConfiguration withRuntime(Runtime runtime)
The runtime environment for the Lambda function.
- Parameters:
runtime- The runtime environment for the Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Runtime
-
setRole
public void setRole(String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
- Parameters:
role- The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
-
getRole
public String getRole()
The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
- Returns:
- The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
-
withRole
public FunctionConfiguration withRole(String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
- Parameters:
role- The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHandler
public void setHandler(String handler)
The function Lambda calls to begin executing your function.
- Parameters:
handler- The function Lambda calls to begin executing your function.
-
getHandler
public String getHandler()
The function Lambda calls to begin executing your function.
- Returns:
- The function Lambda calls to begin executing your function.
-
withHandler
public FunctionConfiguration withHandler(String handler)
The function Lambda calls to begin executing your function.
- Parameters:
handler- The function Lambda calls to begin executing your function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCodeSize
public void setCodeSize(Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
- Parameters:
codeSize- The size, in bytes, of the function .zip file you uploaded.
-
getCodeSize
public Long getCodeSize()
The size, in bytes, of the function .zip file you uploaded.
- Returns:
- The size, in bytes, of the function .zip file you uploaded.
-
withCodeSize
public FunctionConfiguration withCodeSize(Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
- Parameters:
codeSize- The size, in bytes, of the function .zip file you uploaded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The user-provided description.
- Parameters:
description- The user-provided description.
-
getDescription
public String getDescription()
The user-provided description.
- Returns:
- The user-provided description.
-
withDescription
public FunctionConfiguration withDescription(String description)
The user-provided description.
- Parameters:
description- The user-provided description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimeout
public void setTimeout(Integer timeout)
The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
- Parameters:
timeout- The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
-
getTimeout
public Integer getTimeout()
The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
- Returns:
- The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
-
withTimeout
public FunctionConfiguration withTimeout(Integer timeout)
The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
- Parameters:
timeout- The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMemorySize
public void setMemorySize(Integer memorySize)
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
- Parameters:
memorySize- The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
-
getMemorySize
public Integer getMemorySize()
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
- Returns:
- The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
-
withMemorySize
public FunctionConfiguration withMemorySize(Integer memorySize)
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
- Parameters:
memorySize- The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastModified
public void setLastModified(String lastModified)
The time stamp of the last time you updated the function.
- Parameters:
lastModified- The time stamp of the last time you updated the function.
-
getLastModified
public String getLastModified()
The time stamp of the last time you updated the function.
- Returns:
- The time stamp of the last time you updated the function.
-
withLastModified
public FunctionConfiguration withLastModified(String lastModified)
The time stamp of the last time you updated the function.
- Parameters:
lastModified- The time stamp of the last time you updated the function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCodeSha256
public void setCodeSha256(String codeSha256)
It is the SHA256 hash of your function deployment package.
- Parameters:
codeSha256- It is the SHA256 hash of your function deployment package.
-
getCodeSha256
public String getCodeSha256()
It is the SHA256 hash of your function deployment package.
- Returns:
- It is the SHA256 hash of your function deployment package.
-
withCodeSha256
public FunctionConfiguration withCodeSha256(String codeSha256)
It is the SHA256 hash of your function deployment package.
- Parameters:
codeSha256- It is the SHA256 hash of your function deployment package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVersion
public void setVersion(String version)
The version of the Lambda function.
- Parameters:
version- The version of the Lambda function.
-
getVersion
public String getVersion()
The version of the Lambda function.
- Returns:
- The version of the Lambda function.
-
withVersion
public FunctionConfiguration withVersion(String version)
The version of the Lambda function.
- Parameters:
version- The version of the Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcConfig
public void setVpcConfig(VpcConfigResponse vpcConfig)
VPC configuration associated with your Lambda function.
- Parameters:
vpcConfig- VPC configuration associated with your Lambda function.
-
getVpcConfig
public VpcConfigResponse getVpcConfig()
VPC configuration associated with your Lambda function.
- Returns:
- VPC configuration associated with your Lambda function.
-
withVpcConfig
public FunctionConfiguration withVpcConfig(VpcConfigResponse vpcConfig)
VPC configuration associated with your Lambda function.
- Parameters:
vpcConfig- VPC configuration associated with your Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public FunctionConfiguration clone()
-
-