{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-describe-key-response-schema.json",
  "title": "DescribeKeyResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-location-service-metadata-api-openapi.yml#/components/schemas/DescribeKeyResponse",
  "type": "object",
  "properties": {
    "Key": {
      "type": "string",
      "description": "The key value/string of an API key."
    },
    "KeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services. Format example: arn:aws:geo:region:account-id:key/ExampleKey"
    },
    "KeyName": {
      "type": "string",
      "description": "The name of the API key resource."
    },
    "Restrictions": {
      "$ref": "#/$defs/ApiKeyRestrictions"
    },
    "CreateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp for when the API key resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ."
    },
    "ExpireTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp for when the API key resource will expire in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ."
    },
    "UpdateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp for when the API key resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ."
    },
    "Description": {
      "type": "string",
      "description": "The optional description for the API key resource."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags associated with the API key resource."
    }
  },
  "required": [
    "Key",
    "KeyArn",
    "KeyName",
    "Restrictions",
    "CreateTime",
    "ExpireTime",
    "UpdateTime"
  ],
  "$defs": {
    "AndroidApp": {
      "type": "object",
      "properties": {
        "Package": {
          "type": "string",
          "description": "Unique package name identifier for an Android app. Example: com.mydomain.appname"
        },
        "CertificateFingerprint": {
          "type": "string",
          "description": "20 byte SHA-1 certificate fingerprint associated with the Android app signing certificate. Example: BB:0D:AC:74:D3:21:E1:43:67:71:9B:62:91:AF:A1:66:6E:44:5D:75"
        }
      },
      "required": [
        "Package",
        "CertificateFingerprint"
      ]
    },
    "ApiKeyRestrictions": {
      "type": "object",
      "properties": {
        "AllowActions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "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. Map actions geo:GetMap* - Allows all actions needed for map rendering. geo-maps:GetTile - Allows retrieving map tiles. geo-maps:GetStaticMap - Allows retrieving static map images. geo-maps:* - Allows all actions related to map functionalities. Place actions geo:SearchPlaceIndexForText - Allows geocoding. geo:SearchPlaceI"
        },
        "AllowResources": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of allowed resource ARNs that a API key bearer can perform actions on. The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type. The resources must be in the same partition, region, and account-id as the key that is being created. Other than wildcards, you must include the full ARN, including the arn, partition, service, region, account-id and resource-id delimited by colons (:). No spaces allowed, even with wildcards. For example, arn:aws:geo:region:account-id:map/ExampleMap*. For more info"
        },
        "AllowReferers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "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: Contain only alphanumeric characters (A–Z, a–z, 0–9) or any symbols in this list $\\-._+!*`(),;/?:@=&amp; May contain a percent (%) if followed by 2 hexadecimal digits (A-F, a-f, 0-9); this is used for URL encoding purposes. May contain wildcard characters question mark (?) and asterisk (*). Question mark (?) will replace any single character (including hexadecimal digits). Asterisk (*) will replace any multiple characters (including"
        },
        "AllowAndroidApps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AndroidApp"
          },
          "description": "An optional list of allowed Android applications for which requests must originate from. Requests using this API key from other sources will not be allowed."
        },
        "AllowAppleApps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AppleApp"
          },
          "description": "An optional list of allowed Apple applications for which requests must originate from. Requests using this API key from other sources will not be allowed."
        }
      },
      "required": [
        "AllowActions",
        "AllowResources"
      ]
    },
    "AppleApp": {
      "type": "object",
      "properties": {
        "BundleId": {
          "type": "string",
          "description": "The unique identifier of the app across all Apple platforms (iOS, macOS, tvOS and watchOS). Example: com.mydomain.appname"
        }
      },
      "required": [
        "BundleId"
      ]
    }
  }
}