Module Values.CreateKeyRequestSource

Creates an API key resource in your Amazon Web Services account, which lets you grant actions for Amazon Location resources to the API key bearer. For more information, see Use API keys to authenticate in the Amazon Location Service Developer Guide.

Sourcetype nonrec t = {
  1. keyName : ResourceName.t;
    (*

    A custom name for the API key resource. Requirements: Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). Must be a unique API key name. No spaces allowed. For example, ExampleAPIKey.

    *)
  2. restrictions : ApiKeyRestrictions.t;
    (*

    The API key restrictions for the API key resource.

    *)
  3. description : ResourceDescription.t option;
    (*

    An optional description for the API key resource.

    *)
  4. expireTime : Timestamp.t option;
    (*

    The optional timestamp for when the API key resource will expire in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. One of NoExpiry or ExpireTime must be set.

    *)
  5. noExpiry : Boolean.t option;
    (*

    Optionally set to true to set no expiration time for the API key. One of NoExpiry or ExpireTime must be set.

    *)
  6. tags : TagMap.t option;
    (*

    Applies one or more tags to the map resource. A tag is a key-value pair that helps manage, identify, search, and filter your resources by labelling them. Format: "key" : "value" Restrictions: Maximum 50 tags per resource Each resource tag must be unique with a maximum of one value. Maximum key length: 128 Unicode characters in UTF-8 Maximum value length: 256 Unicode characters in UTF-8 Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. Cannot use "aws:" as a prefix for a key.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?expireTime:??? -> ?noExpiry:??? -> ?tags:??? -> keyName:ResourceName.t -> restrictions:ApiKeyRestrictions.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of ResourceName.t | `Structure of (string * [> `List of [> `String of ApiKeyAction.t | `Structure of (string * [> `String of AndroidPackageName.t ]) list ] list ]) list | `Timestamp of Timestamp.t ]) 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