{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-import-host-key-request-schema.json",
  "title": "ImportHostKeyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-importhostkey-api-openapi.yml#/components/schemas/ImportHostKeyRequest",
  "type": "object",
  "properties": {
    "ServerId": {
      "type": "string",
      "description": "The identifier of the server that contains the host key that you are importing."
    },
    "HostKeyBody": {
      "type": "string",
      "description": "The private key portion of an SSH key pair. Transfer Family accepts RSA, ECDSA, and ED25519 keys."
    },
    "Description": {
      "type": "string",
      "description": "The text description that identifies this host key."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Key-value pairs that can be used to group and search for host keys."
    },
    "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",
    "HostKeyBody"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name assigned to the tag that you create."
        },
        "Value": {
          "type": "string",
          "description": "Contains one or more values that you assigned to the key name you create."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}