{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-update-host-key-request-schema.json",
  "title": "UpdateHostKeyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-updatehostkey-api-openapi.yml#/components/schemas/UpdateHostKeyRequest",
  "type": "object",
  "properties": {
    "ServerId": {
      "type": "string",
      "description": "The identifier of the server that contains the host key that you are updating."
    },
    "HostKeyId": {
      "type": "string",
      "description": "The identifier of the host key that you are updating."
    },
    "Description": {
      "type": "string",
      "description": "An updated description for the host key."
    },
    "StorageType": {
      "type": "string",
      "enum": [
        "SERVICE_MANAGED",
        "SECRETS_MANAGER"
      ],
      "description": "Specifies whether the host key is stored by Transfer Family (SERVICE_MANAGED) or in Secrets Manager (SECRETS_MANAGER). When you specify SECRETS_MANAGER, Transfer Family stores the private host key material in an Secrets Manager secret."
    },
    "KmsKey": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the KMS key used to encrypt the Secrets Manager secret that stores the host key. If you specify a customer managed key, its key policy must allow the AWSServiceRoleForTransfer service-linked role to decrypt the secret. If you don't specify a value, Transfer Family uses the Amazon Web Services managed key for Secrets Manager."
    }
  },
  "required": [
    "ServerId",
    "HostKeyId"
  ]
}