{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-create-profile-request-schema.json",
  "title": "CreateProfileRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-createprofile-api-openapi.yml#/components/schemas/CreateProfileRequest",
  "type": "object",
  "properties": {
    "As2Id": {
      "type": "string",
      "description": "The As2Id is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the AS2-From header for the AS2 messages sent from the partner. For outbound connectors, this is the AS2-To header for the AS2 messages sent to the partner using the StartFileTransfer API operation. This ID cannot include spaces."
    },
    "ProfileType": {
      "type": "string",
      "enum": [
        "LOCAL",
        "PARTNER"
      ],
      "description": "Determines the type of profile to create: Specify LOCAL to create a local profile. A local profile represents the AS2-enabled Transfer Family server organization or party. Specify PARTNER to create a partner profile. A partner profile represents a remote organization, external to Transfer Family."
    },
    "CertificateIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Key-value pairs that can be used to group and search for AS2 profiles."
    }
  },
  "required": [
    "As2Id",
    "ProfileType"
  ],
  "$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"
      ]
    }
  }
}