Class UpdateFunctionConfigurationRequest

    • Constructor Detail

      • UpdateFunctionConfigurationRequest

        public UpdateFunctionConfigurationRequest()
    • Method Detail

      • 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

        public UpdateFunctionConfigurationRequest withRole​(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.
        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:
      • setRuntime

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

        public String getRuntime()
        Returns:
        See Also:
        Runtime
      • setRuntime

        public void setRuntime​(Runtime runtime)
        Parameters:
        runtime -
        See Also:
        Runtime
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object