@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateFunctionConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateFunctionConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFunctionConfigurationRequest |
clone() |
boolean |
equals(Object obj) |
DeadLetterConfig |
getDeadLetterConfig()
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
they fail processing.
|
String |
getDescription()
A short user-defined function description.
|
Environment |
getEnvironment()
The parent object that contains your environment's configuration settings.
|
String |
getFunctionName()
The name of the Lambda function.
|
String |
getHandler()
The function that Lambda calls to begin executing your function.
|
String |
getKMSKeyArn()
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables.
|
List<String> |
getLayers()
A list of function layers to
add to the function's execution environment.
|
Integer |
getMemorySize()
The amount of memory, in MB, your Lambda function is given.
|
String |
getRevisionId()
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
String |
getRole()
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
|
String |
getRuntime()
The runtime version for the function.
|
Integer |
getTimeout()
The amount of time that Lambda allows a function to run before terminating it.
|
TracingConfig |
getTracingConfig()
Set
Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray. |
VpcConfig |
getVpcConfig()
Specify security groups and subnets in a VPC to which your Lambda function needs access.
|
int |
hashCode() |
void |
setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
they fail processing.
|
void |
setDescription(String description)
A short user-defined function description.
|
void |
setEnvironment(Environment environment)
The parent object that contains your environment's configuration settings.
|
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 |
setKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables.
|
void |
setLayers(Collection<String> layers)
A list of function layers to
add to the function's execution environment.
|
void |
setMemorySize(Integer memorySize)
The amount of memory, in MB, your Lambda function is given.
|
void |
setRevisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
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)
The runtime version for the function.
|
void |
setRuntime(String runtime)
The runtime version for the function.
|
void |
setTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it.
|
void |
setTracingConfig(TracingConfig tracingConfig)
Set
Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray. |
void |
setVpcConfig(VpcConfig vpcConfig)
Specify security groups and subnets in a VPC to which your Lambda function needs access.
|
String |
toString()
Returns a string representation of this object.
|
UpdateFunctionConfigurationRequest |
withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
they fail processing.
|
UpdateFunctionConfigurationRequest |
withDescription(String description)
A short user-defined function description.
|
UpdateFunctionConfigurationRequest |
withEnvironment(Environment environment)
The parent object that contains your environment's configuration settings.
|
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 |
withKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables.
|
UpdateFunctionConfigurationRequest |
withLayers(Collection<String> layers)
A list of function layers to
add to the function's execution environment.
|
UpdateFunctionConfigurationRequest |
withLayers(String... layers)
A list of function layers to
add to the function's execution environment.
|
UpdateFunctionConfigurationRequest |
withMemorySize(Integer memorySize)
The amount of memory, in MB, your Lambda function is given.
|
UpdateFunctionConfigurationRequest |
withRevisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
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)
The runtime version for the function.
|
UpdateFunctionConfigurationRequest |
withRuntime(String runtime)
The runtime version for the function.
|
UpdateFunctionConfigurationRequest |
withTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it.
|
UpdateFunctionConfigurationRequest |
withTracingConfig(TracingConfig tracingConfig)
Set
Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray. |
UpdateFunctionConfigurationRequest |
withVpcConfig(VpcConfig vpcConfig)
Specify security groups and subnets in a VPC to which your Lambda function needs access.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFunctionName(String functionName)
The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public String getFunctionName()
The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public UpdateFunctionConfigurationRequest withFunctionName(String functionName)
The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public void setRole(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 String getRole()
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
public UpdateFunctionConfigurationRequest withRole(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(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 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(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(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 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(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(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds. The maximum allowed value is 900 seconds.
timeout
- The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds.
The maximum allowed value is 900 seconds.public Integer getTimeout()
The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds. The maximum allowed value is 900 seconds.
public UpdateFunctionConfigurationRequest withTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds. The maximum allowed value is 900 seconds.
timeout
- The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds.
The maximum allowed value is 900 seconds.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.
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 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(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)
Specify security groups and subnets in a VPC to which your Lambda function needs access.
vpcConfig
- Specify security groups and subnets in a VPC to which your Lambda function needs access.public VpcConfig getVpcConfig()
Specify security groups and subnets in a VPC to which your Lambda function needs access.
public UpdateFunctionConfigurationRequest withVpcConfig(VpcConfig vpcConfig)
Specify security groups and subnets in a VPC to which your Lambda function needs access.
vpcConfig
- Specify security groups and subnets in a VPC to which your Lambda function needs access.public void setEnvironment(Environment environment)
The parent object that contains your environment's configuration settings.
environment
- The parent object that contains your environment's configuration settings.public Environment getEnvironment()
The parent object that contains your environment's configuration settings.
public UpdateFunctionConfigurationRequest withEnvironment(Environment environment)
The parent object that contains your environment's configuration settings.
environment
- The parent object that contains your environment's configuration settings.public void setRuntime(String runtime)
The runtime version for the function.
runtime
- The runtime version for the function.Runtime
public String getRuntime()
The runtime version for the function.
Runtime
public UpdateFunctionConfigurationRequest withRuntime(String runtime)
The runtime version for the function.
runtime
- The runtime version for the function.Runtime
public void setRuntime(Runtime runtime)
The runtime version for the function.
runtime
- The runtime version for the function.Runtime
public UpdateFunctionConfigurationRequest withRuntime(Runtime runtime)
The runtime version for the function.
runtime
- The runtime version for the function.Runtime
public void setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
deadLetterConfig
- A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing. For more information, see Dead Letter Queues.public DeadLetterConfig getDeadLetterConfig()
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
public UpdateFunctionConfigurationRequest withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
deadLetterConfig
- A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing. For more information, see Dead Letter Queues.public void setKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter.
kMSKeyArn
- The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If
you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter.public String getKMSKeyArn()
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter.
public UpdateFunctionConfigurationRequest withKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter.
kMSKeyArn
- The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If
you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter.public void setTracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with AWS X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with AWS
X-Ray.public TracingConfig getTracingConfig()
Set Mode
to Active
to sample and trace a subset of incoming requests with AWS X-Ray.
Mode
to Active
to sample and trace a subset of incoming requests with AWS
X-Ray.public UpdateFunctionConfigurationRequest withTracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with AWS X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with AWS
X-Ray.public void setRevisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias. If
the RevisionID
you pass doesn't match the latest RevisionId
of the function or alias,
it will fail with an error message, advising you to retrieve the latest function version or alias
RevisionID
using either GetFunction or GetAlias.
revisionId
- An optional value you can use to ensure you are updating the latest update of the function version or
alias. If the RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you to retrieve the latest function
version or alias RevisionID
using either GetFunction or GetAlias.public String getRevisionId()
An optional value you can use to ensure you are updating the latest update of the function version or alias. If
the RevisionID
you pass doesn't match the latest RevisionId
of the function or alias,
it will fail with an error message, advising you to retrieve the latest function version or alias
RevisionID
using either GetFunction or GetAlias.
RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you to retrieve the latest function
version or alias RevisionID
using either GetFunction or GetAlias.public UpdateFunctionConfigurationRequest withRevisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias. If
the RevisionID
you pass doesn't match the latest RevisionId
of the function or alias,
it will fail with an error message, advising you to retrieve the latest function version or alias
RevisionID
using either GetFunction or GetAlias.
revisionId
- An optional value you can use to ensure you are updating the latest update of the function version or
alias. If the RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you to retrieve the latest function
version or alias RevisionID
using either GetFunction or GetAlias.public List<String> getLayers()
A list of function layers to add to the function's execution environment.
public void setLayers(Collection<String> layers)
A list of function layers to add to the function's execution environment.
layers
- A list of function
layers to add to the function's execution environment.public UpdateFunctionConfigurationRequest withLayers(String... layers)
A list of function layers to add to the function's execution environment.
NOTE: This method appends the values to the existing list (if any). Use
setLayers(java.util.Collection)
or withLayers(java.util.Collection)
if you want to override the
existing values.
layers
- A list of function
layers to add to the function's execution environment.public UpdateFunctionConfigurationRequest withLayers(Collection<String> layers)
A list of function layers to add to the function's execution environment.
layers
- A list of function
layers to add to the function's execution environment.public String toString()
toString
in class Object
Object.toString()
public UpdateFunctionConfigurationRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2019. All rights reserved.