Class CreateFunctionRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
getCode()
The code for the Lambda function.A short, user-defined function description.The name you want to assign to the function you are uploading.The function within your code that Lambda calls to begin execution.The amount of memory, in MB, your Lambda function is given.This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.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.The runtime environment for the Lambda function you are uploading.The function execution time at which Lambda should terminate the function.If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs.int
hashCode()
This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.void
setCode
(FunctionCode code) The code for the Lambda function.void
setDescription
(String description) A short, user-defined function description.void
setFunctionName
(String functionName) The name you want to assign to the function you are uploading.void
setHandler
(String handler) The function within your code that Lambda calls to begin execution.void
setMemorySize
(Integer memorySize) The amount of memory, in MB, your Lambda function is given.void
setPublish
(Boolean publish) This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.void
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.void
setRuntime
(Runtime runtime) The runtime environment for the Lambda function you are uploading.void
setRuntime
(String runtime) The runtime environment for the Lambda function you are uploading.void
setTimeout
(Integer timeout) The function execution time at which Lambda should terminate the function.void
setVpcConfig
(VpcConfig vpcConfig) If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs.toString()
Returns a string representation of this object; useful for testing and debugging.withCode
(FunctionCode code) The code for the Lambda function.withDescription
(String description) A short, user-defined function description.withFunctionName
(String functionName) The name you want to assign to the function you are uploading.withHandler
(String handler) The function within your code that Lambda calls to begin execution.withMemorySize
(Integer memorySize) The amount of memory, in MB, your Lambda function is given.withPublish
(Boolean publish) This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.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.withRuntime
(Runtime runtime) The runtime environment for the Lambda function you are uploading.withRuntime
(String runtime) The runtime environment for the Lambda function you are uploading.withTimeout
(Integer timeout) The function execution time at which Lambda should terminate the function.withVpcConfig
(VpcConfig vpcConfig) If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs.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
-
Constructor Details
-
CreateFunctionRequest
public CreateFunctionRequest()
-
-
Method Details
-
setFunctionName
The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.
- Parameters:
functionName
- The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.
-
getFunctionName
The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.
- Returns:
- The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.
-
withFunctionName
The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.
- Parameters:
functionName
- The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuntime
The runtime environment for the Lambda function you are uploading.
- Parameters:
runtime
- The runtime environment for the Lambda function you are uploading.- See Also:
-
getRuntime
The runtime environment for the Lambda function you are uploading.
- Returns:
- The runtime environment for the Lambda function you are uploading.
- See Also:
-
withRuntime
The runtime environment for the Lambda function you are uploading.
- Parameters:
runtime
- The runtime environment for the Lambda function you are uploading.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setRuntime
The runtime environment for the Lambda function you are uploading.
- Parameters:
runtime
- The runtime environment for the Lambda function you are uploading.- See Also:
-
withRuntime
The runtime environment for the Lambda function you are uploading.
- Parameters:
runtime
- The runtime environment for the Lambda function you are uploading.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setRole
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. For more information, see AWS Lambda: How it Works.
- 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. For more information, see AWS Lambda: How it Works.
-
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. For more information, see AWS Lambda: How it Works.
- 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. For more information, see AWS Lambda: How it Works.
-
withRole
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. For more information, see AWS Lambda: How it Works.
- 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. For more information, see AWS Lambda: How it Works.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHandler
The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can be
package.class-name::handler
orpackage.class-name
. For more information, see Lambda Function Handler (Java).- Parameters:
handler
- The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can bepackage.class-name::handler
orpackage.class-name
. For more information, see Lambda Function Handler (Java).
-
getHandler
The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can be
package.class-name::handler
orpackage.class-name
. For more information, see Lambda Function Handler (Java).- Returns:
- The function within your code that Lambda calls to begin
execution. For Node.js, it is the
module-name.export value in your function. For
Java, it can be
package.class-name::handler
orpackage.class-name
. For more information, see Lambda Function Handler (Java).
-
withHandler
The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can be
package.class-name::handler
orpackage.class-name
. For more information, see Lambda Function Handler (Java).- Parameters:
handler
- The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can bepackage.class-name::handler
orpackage.class-name
. For more information, see Lambda Function Handler (Java).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCode
The code for the Lambda function.
- Parameters:
code
- The code for the Lambda function.
-
getCode
The code for the Lambda function.
- Returns:
- The code for the Lambda function.
-
withCode
The code for the Lambda function.
- Parameters:
code
- The code for the Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.
- Parameters:
description
- A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.
-
getDescription
A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.
- Returns:
- A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.
-
withDescription
A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.
- Parameters:
description
- A short, user-defined function description. 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
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
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
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
The amount of memory, in MB, your Lambda function is given. Lambda uses this memory size to infer the amount of CPU and memory 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. Lambda uses this memory size to infer the amount of CPU and memory 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
The amount of memory, in MB, your Lambda function is given. Lambda uses this memory size to infer the amount of CPU and memory 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. Lambda uses this memory size to infer the amount of CPU and memory 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
The amount of memory, in MB, your Lambda function is given. Lambda uses this memory size to infer the amount of CPU and memory 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. Lambda uses this memory size to infer the amount of CPU and memory 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.
-
setPublish
This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.
- Parameters:
publish
- This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.
-
getPublish
This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.
- Returns:
- This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.
-
withPublish
This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.
- Parameters:
publish
- This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPublish
This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.
- Returns:
- This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.
-
setVpcConfig
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
- Parameters:
vpcConfig
- If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
-
getVpcConfig
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
- Returns:
- If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
-
withVpcConfig
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
- Parameters:
vpcConfig
- If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-