public class UpdateFunctionConfigurationRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
A short user-defined function description.
|
private java.lang.String |
functionName
The name of the Lambda function.
|
private java.lang.String |
handler
The function that Lambda calls to begin executing your function.
|
private java.lang.Integer |
memorySize
The amount of memory, in MB, your Lambda function is given.
|
private java.lang.String |
role
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume
when it executes your function.
|
private java.lang.String |
runtime |
private java.lang.Integer |
timeout
The function execution time at which AWS Lambda should terminate the
function.
|
private VpcConfig |
vpcConfig |
NOOP
Constructor and Description |
---|
UpdateFunctionConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFunctionConfigurationRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A short user-defined function description.
|
java.lang.String |
getFunctionName()
The name of the Lambda function.
|
java.lang.String |
getHandler()
The function that Lambda calls to begin executing your function.
|
java.lang.Integer |
getMemorySize()
The amount of memory, in MB, your Lambda function is given.
|
java.lang.String |
getRole()
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume
when it executes your function.
|
java.lang.String |
getRuntime() |
java.lang.Integer |
getTimeout()
The function execution time at which AWS Lambda should terminate the
function.
|
VpcConfig |
getVpcConfig() |
int |
hashCode() |
void |
setDescription(java.lang.String description)
A short user-defined function description.
|
void |
setFunctionName(java.lang.String functionName)
The name of the Lambda function.
|
void |
setHandler(java.lang.String handler)
The function that Lambda calls to begin executing your function.
|
void |
setMemorySize(java.lang.Integer memorySize)
The amount of memory, in MB, your Lambda function is given.
|
void |
setRole(java.lang.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(java.lang.String runtime) |
void |
setTimeout(java.lang.Integer timeout)
The function execution time at which AWS Lambda should terminate the
function.
|
void |
setVpcConfig(VpcConfig vpcConfig) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateFunctionConfigurationRequest |
withDescription(java.lang.String description)
A short user-defined function description.
|
UpdateFunctionConfigurationRequest |
withFunctionName(java.lang.String functionName)
The name of the Lambda function.
|
UpdateFunctionConfigurationRequest |
withHandler(java.lang.String handler)
The function that Lambda calls to begin executing your function.
|
UpdateFunctionConfigurationRequest |
withMemorySize(java.lang.Integer memorySize)
The amount of memory, in MB, your Lambda function is given.
|
UpdateFunctionConfigurationRequest |
withRole(java.lang.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(java.lang.String runtime) |
UpdateFunctionConfigurationRequest |
withTimeout(java.lang.Integer timeout)
The function execution time at which AWS Lambda should terminate the
function.
|
UpdateFunctionConfigurationRequest |
withVpcConfig(VpcConfig vpcConfig) |
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
private java.lang.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.
private java.lang.String role
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
private java.lang.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.
private java.lang.String description
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
private java.lang.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.
private java.lang.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.
private VpcConfig vpcConfig
private java.lang.String runtime
public void setFunctionName(java.lang.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.
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.
public java.lang.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.
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.
public UpdateFunctionConfigurationRequest withFunctionName(java.lang.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.
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.
public void setRole(java.lang.String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
role
- The Amazon Resource Name (ARN) of the IAM role that Lambda will
assume when it executes your function.public java.lang.String getRole()
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
public UpdateFunctionConfigurationRequest withRole(java.lang.String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
role
- The Amazon Resource Name (ARN) of the IAM role that Lambda will
assume when it executes your function.public void setHandler(java.lang.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.
handler
- The function that Lambda calls to begin executing your function.
For Node.js, it is the module-name.export
value in
your function.public java.lang.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.
module-name.export
value in
your function.public UpdateFunctionConfigurationRequest withHandler(java.lang.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.
handler
- The function that Lambda calls to begin executing your function.
For Node.js, it is the module-name.export
value in
your function.public void setDescription(java.lang.String description)
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
description
- A short user-defined function description. AWS Lambda does not use
this value. Assign a meaningful description as you see fit.public java.lang.String getDescription()
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
public UpdateFunctionConfigurationRequest withDescription(java.lang.String description)
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
description
- A short user-defined function description. AWS Lambda does not use
this value. Assign a meaningful description as you see fit.public void setTimeout(java.lang.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.
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.public java.lang.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.
public UpdateFunctionConfigurationRequest withTimeout(java.lang.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.
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.public void setMemorySize(java.lang.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.
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.public java.lang.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.
public UpdateFunctionConfigurationRequest withMemorySize(java.lang.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.
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.public void setVpcConfig(VpcConfig vpcConfig)
vpcConfig
- public VpcConfig getVpcConfig()
public UpdateFunctionConfigurationRequest withVpcConfig(VpcConfig vpcConfig)
vpcConfig
- public void setRuntime(java.lang.String runtime)
runtime
- Runtime
public java.lang.String getRuntime()
Runtime
public UpdateFunctionConfigurationRequest withRuntime(java.lang.String runtime)
runtime
- Runtime
public UpdateFunctionConfigurationRequest withRuntime(Runtime runtime)
runtime
- Runtime
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UpdateFunctionConfigurationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()