ApiKeyRestrictions

data class ApiKeyRestrictions(val allowActions: List<String>, val allowReferers: List<String>? = null, val allowResources: List<String>)

Constructors

Link copied to clipboard
constructor(allowActions: List<String>, allowReferers: List<String>? = null, allowResources: List<String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A list of allowed actions that an API key resource grants permissions to perform. You must have at least one action for each type of resource. For example, if you have a place resource, you must include at least one place action. The following are valid values for the actions.

Link copied to clipboard
val allowReferers: List<String>? = null

An optional list of allowed HTTP referers for which requests must originate from. Requests using this API key from other domains will not be allowed. Requirements:

Link copied to clipboard

A list of allowed resource ARNs that a API key bearer can perform actions on.