Class UpdateFunctionConfigurationRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.lambda.model.UpdateFunctionConfigurationRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class UpdateFunctionConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • UpdateFunctionConfigurationRequest

      public UpdateFunctionConfigurationRequest()
  • Method Details

    • setFunctionName

      public void setFunctionName(String functionName)

      The name of the Lambda function.

      You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

      Parameters:
      functionName - The name of the Lambda function.

      You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail ). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    • getFunctionName

      public String getFunctionName()

      The name of the Lambda function.

      You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

      Returns:
      The name of the Lambda function.

      You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail ). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    • withFunctionName

      public UpdateFunctionConfigurationRequest withFunctionName(String functionName)

      The name of the Lambda function.

      You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

      Parameters:
      functionName - The name of the Lambda function.

      You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail ). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRole

      public void setRole(String role)

      The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

      Parameters:
      role - The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
    • getRole

      public String getRole()

      The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

      Returns:
      The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
    • withRole

      The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

      Parameters:
      role - The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setHandler

      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.

      Parameters:
      handler - The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.
    • getHandler

      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.

      Returns:
      The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.
    • withHandler

      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.

      Parameters:
      handler - The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDescription

      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.

      Parameters:
      description - A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
    • getDescription

      public String getDescription()

      A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.

      Returns:
      A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
    • withDescription

      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.

      Parameters:
      description - A short user-defined function description. AWS 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

      public void setTimeout(Integer timeout)

      The function execution time at which AWS 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 AWS 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

      public Integer getTimeout()

      The function execution time at which AWS 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 AWS 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

      public UpdateFunctionConfigurationRequest withTimeout(Integer timeout)

      The function execution time at which AWS 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 AWS 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

      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.

      Parameters:
      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.
    • getMemorySize

      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.

      Returns:
      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.
    • withMemorySize

      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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVpcConfig

      public void setVpcConfig(VpcConfig vpcConfig)
      Parameters:
      vpcConfig -
    • getVpcConfig

      public VpcConfig getVpcConfig()
      Returns:
    • withVpcConfig

      public UpdateFunctionConfigurationRequest withVpcConfig(VpcConfig vpcConfig)
      Parameters:
      vpcConfig -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRuntime

      public void setRuntime(String runtime)
      Parameters:
      runtime -
      See Also:
    • getRuntime

      public String getRuntime()
      Returns:
      See Also:
    • withRuntime

      public UpdateFunctionConfigurationRequest withRuntime(String runtime)
      Parameters:
      runtime -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setRuntime

      public void setRuntime(Runtime runtime)
      Parameters:
      runtime -
      See Also:
    • withRuntime

      public UpdateFunctionConfigurationRequest withRuntime(Runtime runtime)
      Parameters:
      runtime -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: