Module Values.CreateAliasRequestSource

Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version. You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.

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

    The name or ARN of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. Partial ARN - 123456789012:function:MyFunction. 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. name : Alias.t;
    (*

    The name of the alias.

    *)
  3. functionVersion : VersionWithLatestPublished.t;
    (*

    The function version that the alias invokes.

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

    A description of the alias.

    *)
  5. routingConfig : AliasRoutingConfiguration.t option;
    (*

    The routing configuration of the alias.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?routingConfig:??? -> functionName:FunctionName.t -> name:Alias.t -> functionVersion:VersionWithLatestPublished.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of FunctionName.t | `Structure of (string * [> `Map of ([> `String of AdditionalVersion.t ] * [> `Double of Weight.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