public class UploadFunctionResult extends Object implements Serializable, Cloneable
A complex type that describes function metadata.
Constructor and Description |
---|
UploadFunctionResult() |
Modifier and Type | Method and Description |
---|---|
UploadFunctionResult |
clone() |
boolean |
equals(Object obj) |
Long |
getCodeSize()
The size, in bytes, of the function .zip file you uploaded.
|
String |
getConfigurationId()
A Lambda-assigned unique identifier for the current function code and
related configuration.
|
String |
getDescription()
The user-provided description.
|
String |
getFunctionARN()
The Amazon Resource Name (ARN) assigned to the function.
|
String |
getFunctionName()
The name of the function.
|
String |
getHandler()
The function Lambda calls to begin executing your function.
|
String |
getLastModified()
The timestamp of the last time you updated the function.
|
Integer |
getMemorySize()
The memory size, in MB, you configured for the function.
|
String |
getMode()
The type of the Lambda function you uploaded.
|
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.
|
String |
getRuntime()
The runtime environment for the Lambda function.
|
Integer |
getTimeout()
The function execution time at which Lambda should terminate the
function.
|
int |
hashCode() |
void |
setCodeSize(Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
|
void |
setConfigurationId(String configurationId)
A Lambda-assigned unique identifier for the current function code and
related configuration.
|
void |
setDescription(String description)
The user-provided description.
|
void |
setFunctionARN(String functionARN)
The Amazon Resource Name (ARN) assigned to the function.
|
void |
setFunctionName(String functionName)
The name of the function.
|
void |
setHandler(String handler)
The function Lambda calls to begin executing your function.
|
void |
setLastModified(String lastModified)
The timestamp of the last time you updated the function.
|
void |
setMemorySize(Integer memorySize)
The memory size, in MB, you configured for the function.
|
void |
setMode(Mode mode)
The type of the Lambda function you uploaded.
|
void |
setMode(String mode)
The type of the Lambda function you uploaded.
|
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.
|
void |
setRuntime(Runtime runtime)
The runtime environment for the Lambda function.
|
void |
setRuntime(String runtime)
The runtime environment for the Lambda function.
|
void |
setTimeout(Integer timeout)
The function execution time at which Lambda should terminate the
function.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UploadFunctionResult |
withCodeSize(Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
|
UploadFunctionResult |
withConfigurationId(String configurationId)
A Lambda-assigned unique identifier for the current function code and
related configuration.
|
UploadFunctionResult |
withDescription(String description)
The user-provided description.
|
UploadFunctionResult |
withFunctionARN(String functionARN)
The Amazon Resource Name (ARN) assigned to the function.
|
UploadFunctionResult |
withFunctionName(String functionName)
The name of the function.
|
UploadFunctionResult |
withHandler(String handler)
The function Lambda calls to begin executing your function.
|
UploadFunctionResult |
withLastModified(String lastModified)
The timestamp of the last time you updated the function.
|
UploadFunctionResult |
withMemorySize(Integer memorySize)
The memory size, in MB, you configured for the function.
|
UploadFunctionResult |
withMode(Mode mode)
The type of the Lambda function you uploaded.
|
UploadFunctionResult |
withMode(String mode)
The type of the Lambda function you uploaded.
|
UploadFunctionResult |
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.
|
UploadFunctionResult |
withRuntime(Runtime runtime)
The runtime environment for the Lambda function.
|
UploadFunctionResult |
withRuntime(String runtime)
The runtime environment for the Lambda function.
|
UploadFunctionResult |
withTimeout(Integer timeout)
The function execution time at which Lambda should terminate the
function.
|
public String getFunctionName()
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9-_]+
public void setFunctionName(String functionName)
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9-_]+
functionName
- The name of the function.public UploadFunctionResult withFunctionName(String functionName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9-_]+
functionName
- The name of the function.public String getFunctionARN()
Constraints:
Pattern: arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?
public void setFunctionARN(String functionARN)
Constraints:
Pattern: arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?
functionARN
- The Amazon Resource Name (ARN) assigned to the function.public UploadFunctionResult withFunctionARN(String functionARN)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?
functionARN
- The Amazon Resource Name (ARN) assigned to the function.public String getConfigurationId()
public void setConfigurationId(String configurationId)
configurationId
- A Lambda-assigned unique identifier for the current function code and
related configuration.public UploadFunctionResult withConfigurationId(String configurationId)
Returns a reference to this object so that method calls can be chained together.
configurationId
- A Lambda-assigned unique identifier for the current function code and
related configuration.public String getRuntime()
Constraints:
Allowed Values: nodejs
Runtime
public void setRuntime(String runtime)
Constraints:
Allowed Values: nodejs
runtime
- The runtime environment for the Lambda function.Runtime
public UploadFunctionResult withRuntime(String runtime)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: nodejs
runtime
- The runtime environment for the Lambda function.Runtime
public void setRuntime(Runtime runtime)
Constraints:
Allowed Values: nodejs
runtime
- The runtime environment for the Lambda function.Runtime
public UploadFunctionResult withRuntime(Runtime runtime)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: nodejs
runtime
- The runtime environment for the Lambda function.Runtime
public String getRole()
Constraints:
Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
public void setRole(String role)
Constraints:
Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
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.public UploadFunctionResult withRole(String role)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
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.public String getHandler()
Constraints:
Pattern: [a-zA-Z0-9./\-_]+
public void setHandler(String handler)
Constraints:
Pattern: [a-zA-Z0-9./\-_]+
handler
- The function Lambda calls to begin executing your function.public UploadFunctionResult withHandler(String handler)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [a-zA-Z0-9./\-_]+
handler
- The function Lambda calls to begin executing your function.public String getMode()
Constraints:
Allowed Values: event
Mode
public void setMode(String mode)
Constraints:
Allowed Values: event
mode
- The type of the Lambda function you uploaded.Mode
public UploadFunctionResult withMode(String mode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: event
mode
- The type of the Lambda function you uploaded.Mode
public void setMode(Mode mode)
Constraints:
Allowed Values: event
mode
- The type of the Lambda function you uploaded.Mode
public UploadFunctionResult withMode(Mode mode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: event
mode
- The type of the Lambda function you uploaded.Mode
public Long getCodeSize()
public void setCodeSize(Long codeSize)
codeSize
- The size, in bytes, of the function .zip file you uploaded.public UploadFunctionResult withCodeSize(Long codeSize)
Returns a reference to this object so that method calls can be chained together.
codeSize
- The size, in bytes, of the function .zip file you uploaded.public String getDescription()
Constraints:
Length: 0 - 256
public void setDescription(String description)
Constraints:
Length: 0 - 256
description
- The user-provided description.public UploadFunctionResult withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
description
- The user-provided description.public Integer getTimeout()
Constraints:
Range: 1 - 60
public void setTimeout(Integer timeout)
Constraints:
Range: 1 - 60
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.public UploadFunctionResult withTimeout(Integer timeout)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 60
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.public Integer getMemorySize()
Constraints:
Range: 128 - 1024
public void setMemorySize(Integer memorySize)
Constraints:
Range: 128 - 1024
memorySize
- The memory size, in MB, you configured for the function. Must be a
multiple of 64 MB.public UploadFunctionResult withMemorySize(Integer memorySize)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 128 - 1024
memorySize
- The memory size, in MB, you configured for the function. Must be a
multiple of 64 MB.public String getLastModified()
public void setLastModified(String lastModified)
lastModified
- The timestamp of the last time you updated the function.public UploadFunctionResult withLastModified(String lastModified)
Returns a reference to this object so that method calls can be chained together.
lastModified
- The timestamp of the last time you updated the function.public String toString()
toString
in class Object
Object.toString()
public UploadFunctionResult clone()
Copyright © 2015. All rights reserved.