@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 description of the function.
|
Environment |
getEnvironment()
Environment variables that are accessible from function code during execution.
|
EphemeralStorage |
getEphemeralStorage()
The size of the function’s /tmp directory in MB.
|
List<FileSystemConfig> |
getFileSystemConfigs()
Connection settings for an Amazon EFS file system.
|
String |
getFunctionName()
The name of the Lambda function.
|
String |
getHandler()
The name of the method within your code that Lambda calls to execute your function.
|
ImageConfig |
getImageConfig()
Container image configuration values
that override the values in the container image Docker file.
|
String |
getKMSKeyArn()
The ARN of the Amazon Web Services Key Management Service (KMS) key that's 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 available
to the function at runtime.
|
String |
getRevisionId()
Only update the function if the revision ID matches the ID that's specified.
|
String |
getRole()
The Amazon Resource Name (ARN) of the function's execution role.
|
String |
getRuntime()
The identifier of the function's runtime.
|
Integer |
getTimeout()
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
|
TracingConfig |
getTracingConfig()
|
VpcConfig |
getVpcConfig()
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets
in the VPC.
|
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 description of the function.
|
void |
setEnvironment(Environment environment)
Environment variables that are accessible from function code during execution.
|
void |
setEphemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function’s /tmp directory in MB.
|
void |
setFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
void |
setFunctionName(String functionName)
The name of the Lambda function.
|
void |
setHandler(String handler)
The name of the method within your code that Lambda calls to execute your function.
|
void |
setImageConfig(ImageConfig imageConfig)
Container image configuration values
that override the values in the container image Docker file.
|
void |
setKMSKeyArn(String kMSKeyArn)
The ARN of the Amazon Web Services Key Management Service (KMS) key that's 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 available
to the function at runtime.
|
void |
setRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified.
|
void |
setRole(String role)
The Amazon Resource Name (ARN) of the function's execution role.
|
void |
setRuntime(Runtime runtime)
The identifier of the function's runtime.
|
void |
setRuntime(String runtime)
The identifier of the function's runtime.
|
void |
setTimeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
|
void |
setTracingConfig(TracingConfig tracingConfig)
|
void |
setVpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets
in the VPC.
|
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 description of the function.
|
UpdateFunctionConfigurationRequest |
withEnvironment(Environment environment)
Environment variables that are accessible from function code during execution.
|
UpdateFunctionConfigurationRequest |
withEphemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function’s /tmp directory in MB.
|
UpdateFunctionConfigurationRequest |
withFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
UpdateFunctionConfigurationRequest |
withFileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
UpdateFunctionConfigurationRequest |
withFunctionName(String functionName)
The name of the Lambda function.
|
UpdateFunctionConfigurationRequest |
withHandler(String handler)
The name of the method within your code that Lambda calls to execute your function.
|
UpdateFunctionConfigurationRequest |
withImageConfig(ImageConfig imageConfig)
Container image configuration values
that override the values in the container image Docker file.
|
UpdateFunctionConfigurationRequest |
withKMSKeyArn(String kMSKeyArn)
The ARN of the Amazon Web Services Key Management Service (KMS) key that's 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 available
to the function at runtime.
|
UpdateFunctionConfigurationRequest |
withRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified.
|
UpdateFunctionConfigurationRequest |
withRole(String role)
The Amazon Resource Name (ARN) of the function's execution role.
|
UpdateFunctionConfigurationRequest |
withRuntime(Runtime runtime)
The identifier of the function's runtime.
|
UpdateFunctionConfigurationRequest |
withRuntime(String runtime)
The identifier of the function's runtime.
|
UpdateFunctionConfigurationRequest |
withTimeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
|
UpdateFunctionConfigurationRequest |
withTracingConfig(TracingConfig tracingConfig)
|
UpdateFunctionConfigurationRequest |
withVpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets
in the VPC.
|
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 - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
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 - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
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 - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
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 - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
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 - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
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 - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
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 function's execution role.
role
- The Amazon Resource Name (ARN) of the function's execution role.public String getRole()
The Amazon Resource Name (ARN) of the function's execution role.
public UpdateFunctionConfigurationRequest withRole(String role)
The Amazon Resource Name (ARN) of the function's execution role.
role
- The Amazon Resource Name (ARN) of the function's execution role.public void setHandler(String handler)
The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
handler
- The name of the method within your code that Lambda calls to execute your function. Handler is required if
the deployment package is a .zip file archive. The format includes the file name. It can also include
namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.public String getHandler()
The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
public UpdateFunctionConfigurationRequest withHandler(String handler)
The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
handler
- The name of the method within your code that Lambda calls to execute your function. Handler is required if
the deployment package is a .zip file archive. The format includes the file name. It can also include
namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.public void setDescription(String description)
A description of the function.
description
- A description of the function.public String getDescription()
A description of the function.
public UpdateFunctionConfigurationRequest withDescription(String description)
A description of the function.
description
- A description of the function.public void setTimeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.
timeout
- The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3
seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution
environment.public Integer getTimeout()
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.
public UpdateFunctionConfigurationRequest withTimeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.
timeout
- The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3
seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution
environment.public void setMemorySize(Integer memorySize)
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
memorySize
- The amount of memory
available to the function at runtime. Increasing the function memory also increases its CPU
allocation. The default value is 128 MB. The value can be any multiple of 1 MB.public Integer getMemorySize()
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
public UpdateFunctionConfigurationRequest withMemorySize(Integer memorySize)
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
memorySize
- The amount of memory
available to the function at runtime. Increasing the function memory also increases its CPU
allocation. The default value is 128 MB. The value can be any multiple of 1 MB.public void setVpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
vpcConfig
- For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and
subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet
through that VPC. For more information, see VPC Settings.public VpcConfig getVpcConfig()
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
public UpdateFunctionConfigurationRequest withVpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
vpcConfig
- For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and
subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet
through that VPC. For more information, see VPC Settings.public void setEnvironment(Environment environment)
Environment variables that are accessible from function code during execution.
environment
- Environment variables that are accessible from function code during execution.public Environment getEnvironment()
Environment variables that are accessible from function code during execution.
public UpdateFunctionConfigurationRequest withEnvironment(Environment environment)
Environment variables that are accessible from function code during execution.
environment
- Environment variables that are accessible from function code during execution.public void setRuntime(String runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
public String getRuntime()
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
public UpdateFunctionConfigurationRequest withRuntime(String runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
public void setRuntime(Runtime runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
public UpdateFunctionConfigurationRequest withRuntime(Runtime runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
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 ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.
kMSKeyArn
- The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's
environment variables. If it's not provided, Lambda uses a default service key.public String getKMSKeyArn()
The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.
public UpdateFunctionConfigurationRequest withKMSKeyArn(String kMSKeyArn)
The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.
kMSKeyArn
- The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's
environment variables. If it's not provided, Lambda uses a default service key.public void setTracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.public TracingConfig getTracingConfig()
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.public UpdateFunctionConfigurationRequest withTracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.public void setRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
revisionId
- Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
modifying a function that has changed since you last read it.public String getRevisionId()
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
public UpdateFunctionConfigurationRequest withRevisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
revisionId
- Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
modifying a function that has changed since you last read it.public List<String> getLayers()
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
public void setLayers(Collection<String> layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
layers
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including the
version.public UpdateFunctionConfigurationRequest withLayers(String... layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
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. Specify each layer by its ARN, including the
version.public UpdateFunctionConfigurationRequest withLayers(Collection<String> layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
layers
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including the
version.public List<FileSystemConfig> getFileSystemConfigs()
Connection settings for an Amazon EFS file system.
public void setFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.public UpdateFunctionConfigurationRequest withFileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
NOTE: This method appends the values to the existing list (if any). Use
setFileSystemConfigs(java.util.Collection)
or withFileSystemConfigs(java.util.Collection)
if
you want to override the existing values.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.public UpdateFunctionConfigurationRequest withFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.public void setImageConfig(ImageConfig imageConfig)
Container image configuration values that override the values in the container image Docker file.
imageConfig
- Container image configuration
values that override the values in the container image Docker file.public ImageConfig getImageConfig()
Container image configuration values that override the values in the container image Docker file.
public UpdateFunctionConfigurationRequest withImageConfig(ImageConfig imageConfig)
Container image configuration values that override the values in the container image Docker file.
imageConfig
- Container image configuration
values that override the values in the container image Docker file.public void setEphemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
ephemeralStorage
- The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number
between 512 and 10240 MB.public EphemeralStorage getEphemeralStorage()
The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
public UpdateFunctionConfigurationRequest withEphemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
ephemeralStorage
- The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number
between 512 and 10240 MB.public String toString()
toString
in class Object
Object.toString()
public UpdateFunctionConfigurationRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2022. All rights reserved.