JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.lambda.model

Class UpdateFunctionConfigurationRequest

    • Constructor Detail

      • UpdateFunctionConfigurationRequest

        public UpdateFunctionConfigurationRequest()
    • Method Detail

      • setFunctionName

        public void setFunctionName(String functionName)

        The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

        Parameters:
        functionName - The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

      • getFunctionName

        public String getFunctionName()

        The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

        Returns:
        The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

      • withFunctionName

        public UpdateFunctionConfigurationRequest withFunctionName(String functionName)

        The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

        Parameters:
        functionName - The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

        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 function's execution role.

        Parameters:
        role - The Amazon Resource Name (ARN) of the function's execution role.
      • getRole

        public String getRole()

        The Amazon Resource Name (ARN) of the function's execution role.

        Returns:
        The Amazon Resource Name (ARN) of the function's execution role.
      • withRole

        public UpdateFunctionConfigurationRequest withRole(String role)

        The Amazon Resource Name (ARN) of the function's execution role.

        Parameters:
        role - The Amazon Resource Name (ARN) of the function's execution role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setHandler

        public void setHandler(String handler)

        The name of the method within your code that Lambda calls to run 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 Lambda programming model.

        Parameters:
        handler - The name of the method within your code that Lambda calls to run 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 Lambda programming model.
      • getHandler

        public String getHandler()

        The name of the method within your code that Lambda calls to run 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 Lambda programming model.

        Returns:
        The name of the method within your code that Lambda calls to run 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 Lambda programming model.
      • withHandler

        public UpdateFunctionConfigurationRequest withHandler(String handler)

        The name of the method within your code that Lambda calls to run 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 Lambda programming model.

        Parameters:
        handler - The name of the method within your code that Lambda calls to run 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 Lambda programming model.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDescription

        public void setDescription(String description)

        A description of the function.

        Parameters:
        description - A description of the function.
      • getDescription

        public String getDescription()

        A description of the function.

        Returns:
        A description of the function.
      • withDescription

        public UpdateFunctionConfigurationRequest withDescription(String description)

        A description of the function.

        Parameters:
        description - A description of the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTimeout

        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 more information, see Lambda execution environment.

        Parameters:
        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 more information, see Lambda execution environment.
      • getTimeout

        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 more information, see Lambda execution environment.

        Returns:
        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 more information, see Lambda execution environment.
      • withTimeout

        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 more information, see Lambda execution environment.

        Parameters:
        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 more information, see Lambda execution environment.
        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 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.

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

        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.

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

        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.

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

        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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.

        Parameters:
        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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
      • getVpcConfig

        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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.

        Returns:
        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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
      • withVpcConfig

        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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.

        Parameters:
        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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEnvironment

        public void setEnvironment(Environment environment)

        Environment variables that are accessible from function code during execution.

        Parameters:
        environment - Environment variables that are accessible from function code during execution.
      • getEnvironment

        public Environment getEnvironment()

        Environment variables that are accessible from function code during execution.

        Returns:
        Environment variables that are accessible from function code during execution.
      • withEnvironment

        public UpdateFunctionConfigurationRequest withEnvironment(Environment environment)

        Environment variables that are accessible from function code during execution.

        Parameters:
        environment - Environment variables that are accessible from function code during execution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRuntime

        public void setRuntime(String runtime)

        The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        Parameters:
        runtime - The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        See Also:
        Runtime
      • getRuntime

        public String getRuntime()

        The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        Returns:
        The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        See Also:
        Runtime
      • withRuntime

        public UpdateFunctionConfigurationRequest withRuntime(String runtime)

        The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        Parameters:
        runtime - The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Runtime
      • setRuntime

        public void setRuntime(Runtime runtime)

        The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        Parameters:
        runtime - The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        See Also:
        Runtime
      • withRuntime

        public UpdateFunctionConfigurationRequest withRuntime(Runtime runtime)

        The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        Parameters:
        runtime - The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

        The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Runtime
      • setDeadLetterConfig

        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.

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

        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.

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

        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.

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

        public void setKMSKeyArn(String kMSKeyArn)

        The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.

        Parameters:
        kMSKeyArn - The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.
      • getKMSKeyArn

        public String getKMSKeyArn()

        The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.

        Returns:
        The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.
      • withKMSKeyArn

        public UpdateFunctionConfigurationRequest withKMSKeyArn(String kMSKeyArn)

        The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.

        Parameters:
        kMSKeyArn - The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTracingConfig

        public void setTracingConfig(TracingConfig tracingConfig)

        Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

        Parameters:
        tracingConfig - Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
      • getTracingConfig

        public TracingConfig getTracingConfig()

        Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

        Returns:
        Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
      • withTracingConfig

        public UpdateFunctionConfigurationRequest withTracingConfig(TracingConfig tracingConfig)

        Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

        Parameters:
        tracingConfig - Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRevisionId

        public void setRevisionId(String revisionId)

        Update the function only 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.

        Parameters:
        revisionId - Update the function only 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.
      • getRevisionId

        public String getRevisionId()

        Update the function only 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.

        Returns:
        Update the function only 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.
      • withRevisionId

        public UpdateFunctionConfigurationRequest withRevisionId(String revisionId)

        Update the function only 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.

        Parameters:
        revisionId - Update the function only 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getLayers

        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.

        Returns:
        A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
      • setLayers

        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.

        Parameters:
        layers - A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
      • withLayers

        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.

        Parameters:
        layers - A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getFileSystemConfigs

        public List<FileSystemConfig> getFileSystemConfigs()

        Connection settings for an Amazon EFS file system.

        Returns:
        Connection settings for an Amazon EFS file system.
      • setFileSystemConfigs

        public void setFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)

        Connection settings for an Amazon EFS file system.

        Parameters:
        fileSystemConfigs - Connection settings for an Amazon EFS file system.
      • withFileSystemConfigs

        public UpdateFunctionConfigurationRequest withFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)

        Connection settings for an Amazon EFS file system.

        Parameters:
        fileSystemConfigs - Connection settings for an Amazon EFS file system.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEphemeralStorage

        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 10,240 MB. For more information, see Configuring ephemeral storage (console).

        Parameters:
        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 10,240 MB. For more information, see Configuring ephemeral storage (console).
      • getEphemeralStorage

        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 10,240 MB. For more information, see Configuring ephemeral storage (console).

        Returns:
        The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
      • setSnapStart

        public void setSnapStart(SnapStart snapStart)

        The function's SnapStart setting.

        Parameters:
        snapStart - The function's SnapStart setting.
      • setLoggingConfig

        public void setLoggingConfig(LoggingConfig loggingConfig)

        The function's Amazon CloudWatch Logs configuration settings.

        Parameters:
        loggingConfig - The function's Amazon CloudWatch Logs configuration settings.
      • getLoggingConfig

        public LoggingConfig getLoggingConfig()

        The function's Amazon CloudWatch Logs configuration settings.

        Returns:
        The function's Amazon CloudWatch Logs configuration settings.
      • withLoggingConfig

        public UpdateFunctionConfigurationRequest withLoggingConfig(LoggingConfig loggingConfig)

        The function's Amazon CloudWatch Logs configuration settings.

        Parameters:
        loggingConfig - The function's Amazon CloudWatch Logs configuration settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /