Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.lambda.model;
 
 
Container for the parameters to the UpdateFunctionConfiguration operation.

Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.

This operation requires permission for the lambda:UpdateFunctionConfiguration action.

 
 public class UpdateFunctionConfigurationRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The name of the Lambda function.

You can specify an unqualified 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 only the account ID qualifier (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.

Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)

 
     private String functionName;

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

Constraints:
Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+

 
     private String role;

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

Constraints:
Length: 0 - 128
Pattern: [a-zA-Z0-9./\-_]+

 
     private String handler;

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

Constraints:
Length: 0 - 256

 
     private String description;

    
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.

Constraints:
Range: 1 - 60

 
     private Integer timeout;

    
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.

Constraints:
Range: 128 - 1024

    private Integer memorySize;

    
The name of the Lambda function.

You can specify an unqualified 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 only the account ID qualifier (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.

Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)

Returns:
The name of the Lambda function.

You can specify an unqualified 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 only the account ID qualifier (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.

    public String getFunctionName() {
        return ;
    }
    
    
The name of the Lambda function.

You can specify an unqualified 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 only the account ID qualifier (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.

Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)

Parameters:
functionName The name of the Lambda function.

You can specify an unqualified 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 only the account ID qualifier (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.

    public void setFunctionName(String functionName) {
        this. = functionName;
    }
    
    
The name of the Lambda function.

You can specify an unqualified 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 only the account ID qualifier (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 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-_]+)

Parameters:
functionName The name of the Lambda function.

You can specify an unqualified 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 only the account ID qualifier (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:
A reference to this updated object so that method calls can be chained together.
        this. = functionName;
        return this;
    }

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

Constraints:
Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+

Returns:
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
    public String getRole() {
        return ;
    }
    
    
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

Constraints:
Pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+

Parameters:
role The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
    public void setRole(String role) {
        this. = role;
    }
    
    
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

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+=,.@\-_/]+

Parameters:
role The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = role;
        return this;
    }

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

Constraints:
Length: 0 - 128
Pattern: [a-zA-Z0-9./\-_]+

Returns:
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() {
        return ;
    }
    
    
The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.

Constraints:
Length: 0 - 128
Pattern: [a-zA-Z0-9./\-_]+

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.
    public void setHandler(String handler) {
        this. = 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 a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 128
Pattern: [a-zA-Z0-9./\-_]+

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:
A reference to this updated object so that method calls can be chained together.
        this. = handler;
        return this;
    }

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

Constraints:
Length: 0 - 256

Returns:
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
    public String getDescription() {
        return ;
    }
    
    
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.

Constraints:
Length: 0 - 256

Parameters:
description A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
    public void setDescription(String description) {
        this. = description;
    }
    
    
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.

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

Constraints:
Length: 0 - 256

Parameters:
description A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = description;
        return this;
    }

    
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.

Constraints:
Range: 1 - 60

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.
    public Integer getTimeout() {
        return ;
    }
    
    
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.

Constraints:
Range: 1 - 60

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.
    public void setTimeout(Integer timeout) {
        this. = 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 a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 - 60

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:
A reference to this updated object so that method calls can be chained together.
        this. = timeout;
        return this;
    }

    
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.

Constraints:
Range: 128 - 1024

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.
    public Integer getMemorySize() {
        return ;
    }
    
    
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.

Constraints:
Range: 128 - 1024

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.
    public void setMemorySize(Integer memorySize) {
        this. = 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 a reference to this object so that method calls can be chained together.

Constraints:
Range: 128 - 1024

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:
A reference to this updated object so that method calls can be chained together.
        this. = memorySize;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getFunctionName() != nullsb.append("FunctionName: " + getFunctionName() + ",");
        if (getRole() != nullsb.append("Role: " + getRole() + ",");
        if (getHandler() != nullsb.append("Handler: " + getHandler() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (getTimeout() != nullsb.append("Timeout: " + getTimeout() + ",");
        if (getMemorySize() != nullsb.append("MemorySize: " + getMemorySize() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getFunctionName() == null) ? 0 : getFunctionName().hashCode()); 
        hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode()); 
        hashCode = prime * hashCode + ((getHandler() == null) ? 0 : getHandler().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        hashCode = prime * hashCode + ((getTimeout() == null) ? 0 : getTimeout().hashCode()); 
        hashCode = prime * hashCode + ((getMemorySize() == null) ? 0 : getMemorySize().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof UpdateFunctionConfigurationRequest == falsereturn false;
        
        if (other.getFunctionName() == null ^ this.getFunctionName() == nullreturn false;
        if (other.getFunctionName() != null && other.getFunctionName().equals(this.getFunctionName()) == falsereturn false
        if (other.getRole() == null ^ this.getRole() == nullreturn false;
        if (other.getRole() != null && other.getRole().equals(this.getRole()) == falsereturn false
        if (other.getHandler() == null ^ this.getHandler() == nullreturn false;
        if (other.getHandler() != null && other.getHandler().equals(this.getHandler()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.getTimeout() == null ^ this.getTimeout() == nullreturn false;
        if (other.getTimeout() != null && other.getTimeout().equals(this.getTimeout()) == falsereturn false
        if (other.getMemorySize() == null ^ this.getMemorySize() == nullreturn false;
        if (other.getMemorySize() != null && other.getMemorySize().equals(this.getMemorySize()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (UpdateFunctionConfigurationRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X