{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datasync/json-schema/amazon-datasync-update-location-hdfs-request-schema.json",
  "title": "UpdateLocationHdfsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datasync-location-hdf-api-openapi.yml#/components/schemas/UpdateLocationHdfsRequest",
  "type": "object",
  "properties": {
    "LocationArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the source HDFS cluster location."
    },
    "Subdirectory": {
      "type": "string",
      "description": "A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster."
    },
    "NameNodes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HdfsNameNode"
      },
      "description": "The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. The number of NameNodes you can specify depends on the task mode: Enhanced mode – You can specify multiple NameNodes for HDFS High Availability (HA) configurations. Basic mode – You can specify only one NameNode."
    },
    "BlockSize": {
      "type": "integer",
      "description": "The size of the data blocks to write into the HDFS cluster."
    },
    "ReplicationFactor": {
      "type": "integer",
      "description": "The number of DataNodes to replicate the data to when writing to the HDFS cluster."
    },
    "KmsKeyProviderUri": {
      "type": "string",
      "description": "The URI of the HDFS cluster's Key Management Server (KMS)."
    },
    "QopConfiguration": {
      "$ref": "#/$defs/QopConfiguration"
    },
    "AuthenticationType": {
      "type": "string",
      "enum": [
        "SIMPLE",
        "KERBEROS"
      ],
      "description": "The type of authentication used to determine the identity of the user."
    },
    "SimpleUser": {
      "type": "string",
      "description": "The user name used to identify the client on the host operating system."
    },
    "KerberosPrincipal": {
      "type": "string",
      "description": "The Kerberos principal with access to the files and folders on the HDFS cluster."
    },
    "KerberosKeytab": {
      "type": "string",
      "format": "byte",
      "description": "The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file's address."
    },
    "KerberosKrb5Conf": {
      "type": "string",
      "format": "byte",
      "description": "The krb5.conf file that contains the Kerberos configuration information. You can load the krb5.conf file by providing the file's address. If you're using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text."
    },
    "AgentArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster."
    },
    "CmkSecretConfig": {
      "$ref": "#/$defs/CmkSecretConfig"
    },
    "CustomSecretConfig": {
      "$ref": "#/$defs/CustomSecretConfig"
    }
  },
  "required": [
    "LocationArn"
  ],
  "$defs": {
    "CmkSecretConfig": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "Specifies the ARN for the DataSync-managed Secrets Manager secret that that is used to access a specific storage location. This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify for KmsKeyArn."
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "Specifies the ARN for the customer-managed KMS key that DataSync uses to encrypt the DataSync-managed secret stored for SecretArn. DataSync provides this key to Secrets Manager."
        }
      }
    },
    "CustomSecretConfig": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "Specifies the ARN for an Secrets Manager secret."
        },
        "SecretAccessRoleArn": {
          "type": "string",
          "description": "Specifies the ARN for the Identity and Access Management role that DataSync uses to access the secret specified for SecretArn."
        }
      }
    },
    "HdfsNameNode": {
      "type": "object",
      "properties": {
        "Hostname": {
          "type": "string",
          "description": "The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network."
        },
        "Port": {
          "type": "integer",
          "description": "The port that the NameNode uses to listen to client requests."
        }
      },
      "required": [
        "Hostname",
        "Port"
      ]
    },
    "QopConfiguration": {
      "type": "object",
      "properties": {
        "RpcProtection": {
          "type": "string",
          "enum": [
            "DISABLED",
            "AUTHENTICATION",
            "INTEGRITY",
            "PRIVACY"
          ],
          "description": "The RPC protection setting configured on the HDFS cluster. This setting corresponds to your hadoop.rpc.protection setting in your core-site.xml file on your Hadoop cluster."
        },
        "DataTransferProtection": {
          "type": "string",
          "enum": [
            "DISABLED",
            "AUTHENTICATION",
            "INTEGRITY",
            "PRIVACY"
          ],
          "description": "The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your dfs.data.transfer.protection setting in the hdfs-site.xml file on your Hadoop cluster."
        }
      }
    }
  }
}