public class UpdateFunctionCodeResult extends Object implements Serializable, Cloneable
A complex type that describes function metadata.
Constructor and Description |
---|
UpdateFunctionCodeResult() |
Modifier and Type | Method and Description |
---|---|
UpdateFunctionCodeResult |
clone() |
boolean |
equals(Object obj) |
Long |
getCodeSize()
The size, in bytes, of the function .zip file you uploaded.
|
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 |
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 |
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 |
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.
|
UpdateFunctionCodeResult |
withCodeSize(Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
|
UpdateFunctionCodeResult |
withDescription(String description)
The user-provided description.
|
UpdateFunctionCodeResult |
withFunctionArn(String functionArn)
The Amazon Resource Name (ARN) assigned to the function.
|
UpdateFunctionCodeResult |
withFunctionName(String functionName)
The name of the function.
|
UpdateFunctionCodeResult |
withHandler(String handler)
The function Lambda calls to begin executing your function.
|
UpdateFunctionCodeResult |
withLastModified(String lastModified)
The timestamp of the last time you updated the function.
|
UpdateFunctionCodeResult |
withMemorySize(Integer memorySize)
The memory size, in MB, you configured for the function.
|
UpdateFunctionCodeResult |
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.
|
UpdateFunctionCodeResult |
withRuntime(Runtime runtime)
The runtime environment for the Lambda function.
|
UpdateFunctionCodeResult |
withRuntime(String runtime)
The runtime environment for the Lambda function.
|
UpdateFunctionCodeResult |
withTimeout(Integer timeout)
The function execution time at which Lambda should terminate the
function.
|
public String getFunctionName()
Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)
public void setFunctionName(String functionName)
Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)
functionName
- The name of the function.public UpdateFunctionCodeResult withFunctionName(String functionName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([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 UpdateFunctionCodeResult 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 getRuntime()
Constraints:
Allowed Values: nodejs, jvm, python
Runtime
public void setRuntime(String runtime)
Constraints:
Allowed Values: nodejs, jvm, python
runtime
- The runtime environment for the Lambda function.Runtime
public UpdateFunctionCodeResult withRuntime(String runtime)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: nodejs, jvm, python
runtime
- The runtime environment for the Lambda function.Runtime
public void setRuntime(Runtime runtime)
Constraints:
Allowed Values: nodejs, jvm, python
runtime
- The runtime environment for the Lambda function.Runtime
public UpdateFunctionCodeResult withRuntime(Runtime runtime)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: nodejs, jvm, python
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 UpdateFunctionCodeResult 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:
Length: 0 - 128
Pattern: [a-zA-Z0-9./\-_]+
public void setHandler(String handler)
Constraints:
Length: 0 - 128
Pattern: [a-zA-Z0-9./\-_]+
handler
- The function Lambda calls to begin executing your function.public UpdateFunctionCodeResult withHandler(String handler)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 128
Pattern: [a-zA-Z0-9./\-_]+
handler
- The function Lambda calls to begin executing your function.public Long getCodeSize()
public void setCodeSize(Long codeSize)
codeSize
- The size, in bytes, of the function .zip file you uploaded.public UpdateFunctionCodeResult 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 UpdateFunctionCodeResult 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 UpdateFunctionCodeResult 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 UpdateFunctionCodeResult 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 UpdateFunctionCodeResult 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 UpdateFunctionCodeResult clone()
Copyright © 2015. All rights reserved.