Class UpdateFunctionConfigurationRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.lambda.model.UpdateFunctionConfigurationRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class UpdateFunctionConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UpdateFunctionConfigurationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateFunctionConfigurationRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDescription()
A short user-defined function description.String
getFunctionName()
The name of the Lambda function.String
getHandler()
The function that Lambda calls to begin executing your function.Integer
getMemorySize()
The amount of memory, in MB, your Lambda function is given.String
getRole()
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.String
getRuntime()
Integer
getTimeout()
The function execution time at which AWS Lambda should terminate the function.VpcConfig
getVpcConfig()
int
hashCode()
void
setDescription(String description)
A short user-defined function description.void
setFunctionName(String functionName)
The name of the Lambda function.void
setHandler(String handler)
The function that Lambda calls to begin executing your function.void
setMemorySize(Integer memorySize)
The amount of memory, in MB, your Lambda function is given.void
setRole(String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.void
setRuntime(Runtime runtime)
void
setRuntime(String runtime)
void
setTimeout(Integer timeout)
The function execution time at which AWS Lambda should terminate the function.void
setVpcConfig(VpcConfig vpcConfig)
String
toString()
Returns a string representation of this object; useful for testing and debugging.UpdateFunctionConfigurationRequest
withDescription(String description)
A short user-defined function description.UpdateFunctionConfigurationRequest
withFunctionName(String functionName)
The name of the Lambda function.UpdateFunctionConfigurationRequest
withHandler(String handler)
The function that Lambda calls to begin executing your function.UpdateFunctionConfigurationRequest
withMemorySize(Integer memorySize)
The amount of memory, in MB, your Lambda function is given.UpdateFunctionConfigurationRequest
withRole(String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.UpdateFunctionConfigurationRequest
withRuntime(Runtime runtime)
UpdateFunctionConfigurationRequest
withRuntime(String runtime)
UpdateFunctionConfigurationRequest
withTimeout(Integer timeout)
The function execution time at which AWS Lambda should terminate the function.UpdateFunctionConfigurationRequest
withVpcConfig(VpcConfig vpcConfig)
-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setFunctionName
public void setFunctionName(String functionName)
The name of the Lambda function.
You can specify a function name (for example,
Thumbnail
) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail
). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.- Parameters:
functionName
- The name of the Lambda function.You can specify a function name (for example,
Thumbnail
) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail
). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.
-
getFunctionName
public String getFunctionName()
The name of the Lambda function.
You can specify a function name (for example,
Thumbnail
) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail
). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.- Returns:
- The name of the Lambda function.
You can specify a function name (for example,
Thumbnail
) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail
). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.
-
withFunctionName
public UpdateFunctionConfigurationRequest withFunctionName(String functionName)
The name of the Lambda function.
You can specify a function name (for example,
Thumbnail
) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail
). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.- Parameters:
functionName
- The name of the Lambda function.You can specify a function name (for example,
Thumbnail
) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail
). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRole
public void setRole(String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
- Parameters:
role
- The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
-
getRole
public String getRole()
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
- Returns:
- The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
-
withRole
public UpdateFunctionConfigurationRequest withRole(String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
- Parameters:
role
- The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHandler
public void setHandler(String handler)
The function that Lambda calls to begin executing your function. For Node.js, it is the
module-name.export
value in your function.- Parameters:
handler
- The function that Lambda calls to begin executing your function. For Node.js, it is themodule-name.export
value in your function.
-
getHandler
public String getHandler()
The function that Lambda calls to begin executing your function. For Node.js, it is the
module-name.export
value in your function.- Returns:
- The function that Lambda calls to begin executing your function.
For Node.js, it is the
module-name.export
value in your function.
-
withHandler
public UpdateFunctionConfigurationRequest withHandler(String handler)
The function that Lambda calls to begin executing your function. For Node.js, it is the
module-name.export
value in your function.- Parameters:
handler
- The function that Lambda calls to begin executing your function. For Node.js, it is themodule-name.export
value in your function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
- Parameters:
description
- A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
-
getDescription
public String getDescription()
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
- Returns:
- A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
-
withDescription
public UpdateFunctionConfigurationRequest withDescription(String description)
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
- Parameters:
description
- A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.- 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 AWS 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 AWS 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 AWS 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 AWS 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 UpdateFunctionConfigurationRequest withTimeout(Integer timeout)
The function execution time at which AWS 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 AWS 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 amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.
- Parameters:
memorySize
- The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.
-
getMemorySize
public Integer getMemorySize()
The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.
- Returns:
- The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.
-
withMemorySize
public UpdateFunctionConfigurationRequest withMemorySize(Integer memorySize)
The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.
- Parameters:
memorySize
- The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcConfig
public void setVpcConfig(VpcConfig vpcConfig)
- Parameters:
vpcConfig
-
-
getVpcConfig
public VpcConfig getVpcConfig()
- Returns:
-
withVpcConfig
public UpdateFunctionConfigurationRequest withVpcConfig(VpcConfig vpcConfig)
- Parameters:
vpcConfig
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRuntime
public UpdateFunctionConfigurationRequest withRuntime(String runtime)
- Parameters:
runtime
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Runtime
-
withRuntime
public UpdateFunctionConfigurationRequest withRuntime(Runtime runtime)
- Parameters:
runtime
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Runtime
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateFunctionConfigurationRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-