Module Values.UpdateFunctionConfigurationRequestSource

Modify the version-specific settings of a Lambda function. When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Lambda function states. These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version. To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an Amazon Web Services account or Amazon Web Services service, use AddPermission.

Sourcetype nonrec t = {
  1. functionName : FunctionName.t;
    (*

    The name or ARN 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.

    *)
  2. role : RoleArn.t option;
    (*

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

    *)
  3. handler : Handler.t option;
    (*

    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.

    *)
  4. description : Description.t option;
    (*

    A description of the function.

    *)
  5. timeout : Timeout.t option;
    (*

    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.

    *)
  6. memorySize : MemorySize.t option;
    (*

    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.

    *)
  7. vpcConfig : VpcConfig.t option;
    (*

    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.

    *)
  8. environment : Environment.t option;
    (*

    Environment variables that are accessible from function code during execution.

    *)
  9. runtime : Runtime.t option;
    (*

    The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image. The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation. For a list of all currently supported runtimes, see Supported runtimes.

    *)
  10. deadLetterConfig : DeadLetterConfig.t option;
    (*

    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.

    *)
  11. kMSKeyArn : KMSKeyArn.t option;
    (*

    The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources: The function's environment variables. The function's Lambda SnapStart snapshots. When used with SourceKMSKeyArn, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see Specifying a customer managed key for Lambda. The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see Function lifecycle. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key or an Amazon Web Services managed key.

    *)
  12. tracingConfig : TracingConfig.t option;
    (*

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

    *)
  13. revisionId : String_.t option;
    (*

    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.

    *)
  14. layers : LayerList.t option;
    (*

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

    *)
  15. fileSystemConfigs : FileSystemConfigList.t option;
    (*

    Connection settings for an Amazon EFS file system or an Amazon S3 Files file system.

    *)
  16. imageConfig : ImageConfig.t option;
    (*

    Container image configuration values that override the values in the container image Docker file.

    *)
  17. ephemeralStorage : EphemeralStorage.t option;
    (*

    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).

    *)
  18. snapStart : SnapStart.t option;
    (*

    The function's SnapStart setting.

    *)
  19. loggingConfig : LoggingConfig.t option;
    (*

    The function's Amazon CloudWatch Logs configuration settings.

    *)
  20. capacityProviderConfig : CapacityProviderConfig.t option;
    (*

    Configuration for the capacity provider that manages compute resources for Lambda functions.

    *)
  21. durableConfig : DurableConfig.t option;
    (*

    Configuration settings for durable functions. Allows updating execution timeout and retention period for functions with durability enabled.

    *)
}
Sourceval context_ : string
Sourceval make : ?role:??? -> ?handler:??? -> ?description:??? -> ?timeout:??? -> ?memorySize:??? -> ?vpcConfig:??? -> ?environment:??? -> ?runtime:??? -> ?deadLetterConfig:??? -> ?kMSKeyArn:??? -> ?tracingConfig:??? -> ?revisionId:??? -> ?layers:??? -> ?fileSystemConfigs:??? -> ?imageConfig:??? -> ?ephemeralStorage:??? -> ?snapStart:??? -> ?loggingConfig:??? -> ?capacityProviderConfig:??? -> ?durableConfig:??? -> functionName:FunctionName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Timeout.t | `List of [> `String of LayerVersionArn.t | `Structure of (string * [> `String of FileSystemArn.t ]) list ] list | `String of FunctionName.t | `Structure of (string * [> `Boolean of NullableBoolean.t | `Enum of string | `Integer of EphemeralStorageSize.t | `List of [> `String of SubnetId.t ] list | `Map of ([> `String of EnvironmentVariableName.t ] * [> `String of EnvironmentVariableValue.t ]) list | `String of ResourceArn.t | `Structure of (string * [> `Double of ExecutionEnvironmentMemoryGiBPerVCpu.t | `Integer of PerExecutionEnvironmentMaxConcurrency.t | `String of CapacityProviderArn.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t