Module Values.CreateKeyGroupResultSource

Creates a key group that you can use with CloudFront signed URLs and signed cookies. To create a key group, you must specify at least one public key for the key group. After you create a key group, you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.

Sourcetype nonrec t = {
  1. keyGroup : KeyGroup.t option;
    (*

    The key group that was just created.

    *)
  2. location : String_.t option;
    (*

    The URL of the key group.

    *)
  3. eTag : String_.t option;
    (*

    The identifier for this version of the key group.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidArgument of InvalidArgument.t
  2. | `KeyGroupAlreadyExists of KeyGroupAlreadyExists.t
  3. | `TooManyKeyGroups of TooManyKeyGroups.t
  4. | `TooManyPublicKeysInKeyGroup of TooManyPublicKeysInKeyGroup.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?keyGroup:??? -> ?location:??? -> ?eTag:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidArgument of InvalidArgument.t | `KeyGroupAlreadyExists of KeyGroupAlreadyExists.t | `TooManyKeyGroups of TooManyKeyGroups.t | `TooManyPublicKeysInKeyGroup of TooManyPublicKeysInKeyGroup.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidArgument of InvalidArgument.t | `KeyGroupAlreadyExists of KeyGroupAlreadyExists.t | `TooManyKeyGroups of TooManyKeyGroups.t | `TooManyPublicKeysInKeyGroup of TooManyPublicKeysInKeyGroup.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval of_header_and_body : ((string, String_.t) Awso.Import.List.Assoc.t * KeyGroup.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `String of String_.t | `Structure of (string * [> `List of [> `String of String_.t ] list | `String of String_.t ]) list | `Timestamp of Timestamp.t ]) 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