{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-update-connector-request-schema.json",
  "title": "UpdateConnectorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-updateconnector-api-openapi.yml#/components/schemas/UpdateConnectorRequest",
  "type": "object",
  "properties": {
    "ConnectorId": {
      "type": "string",
      "description": "The unique identifier for the connector."
    },
    "Url": {
      "type": "string",
      "description": "The URL of the partner's AS2 or SFTP endpoint. When creating AS2 connectors or service-managed SFTP connectors (connectors without egress configuration), you must provide a URL to specify the remote server endpoint. For VPC Lattice type connectors, the URL must be null."
    },
    "As2Config": {
      "$ref": "#/$defs/As2ConnectorConfig"
    },
    "AccessRole": {
      "type": "string",
      "description": "Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use. For AS2 connectors With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths. We use the file’s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containin"
    },
    "LoggingRole": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs."
    },
    "SftpConfig": {
      "$ref": "#/$defs/SftpConnectorConfig"
    },
    "SecurityPolicyName": {
      "type": "string",
      "description": "Specifies the name of the security policy for the connector."
    },
    "EgressConfig": {
      "$ref": "#/$defs/UpdateConnectorEgressConfig"
    },
    "IpAddressType": {
      "type": "string",
      "enum": [
        "IPV4",
        "DUALSTACK"
      ],
      "description": "Specifies the IP address type for the connector's network connections. When set to IPV4, the connector uses IPv4 addresses only. When set to DUALSTACK, the connector supports both IPv4 and IPv6 addresses, with IPv6 preferred when available."
    }
  },
  "required": [
    "ConnectorId"
  ],
  "$defs": {
    "As2AsyncMdnConnectorConfig": {
      "type": "object",
      "properties": {
        "Url": {
          "type": "string",
          "description": "The URL endpoint where asynchronous MDN responses should be sent."
        },
        "ServerIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of server identifiers that can handle asynchronous MDN responses. You can specify between 1 and 10 server IDs."
        }
      }
    },
    "As2ConnectorConfig": {
      "type": "object",
      "properties": {
        "LocalProfileId": {
          "type": "string",
          "description": "A unique identifier for the AS2 local profile."
        },
        "PartnerProfileId": {
          "type": "string",
          "description": "A unique identifier for the partner profile for the connector."
        },
        "MessageSubject": {
          "type": "string",
          "description": "Used as the Subject HTTP header attribute in AS2 messages that are being sent with the connector."
        },
        "Compression": {
          "type": "string",
          "enum": [
            "ZLIB",
            "DISABLED"
          ],
          "description": "Specifies whether the AS2 file is compressed."
        },
        "EncryptionAlgorithm": {
          "type": "string",
          "enum": [
            "AES128_CBC",
            "AES192_CBC",
            "AES256_CBC",
            "DES_EDE3_CBC",
            "NONE"
          ],
          "description": "The algorithm that is used to encrypt the file. Note the following: Do not use the DES_EDE3_CBC algorithm unless you must support a legacy client that requires it, as it is a weak encryption algorithm. You can only specify NONE if the URL for your connector uses HTTPS. Using HTTPS ensures that no traffic is sent in clear text."
        },
        "SigningAlgorithm": {
          "type": "string",
          "enum": [
            "SHA256",
            "SHA384",
            "SHA512",
            "SHA1",
            "NONE"
          ],
          "description": "The algorithm that is used to sign the AS2 messages sent with the connector."
        },
        "MdnSigningAlgorithm": {
          "type": "string",
          "enum": [
            "SHA256",
            "SHA384",
            "SHA512",
            "SHA1",
            "NONE",
            "DEFAULT"
          ],
          "description": "The signing algorithm for the MDN response. If set to DEFAULT (or not set at all), the value for SigningAlgorithm is used."
        },
        "MdnResponse": {
          "type": "string",
          "enum": [
            "SYNC",
            "NONE",
            "ASYNC"
          ],
          "description": "Used for outbound requests (from an Transfer Family connector to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous. Specify either of the following values: ASYNC: The system expects an asynchronous MDN response, confirming that the file was transferred successfully (or not). SYNC: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not). NONE: Specifies that no MDN response is required."
        },
        "BasicAuthSecretId": {
          "type": "string",
          "description": "Provides Basic authentication support to the AS2 Connectors API. To use Basic authentication, you must provide the name or Amazon Resource Name (ARN) of a secret in Secrets Manager. The default value for this parameter is null, which indicates that Basic authentication is not enabled for the connector. If the connector should use Basic authentication, the secret needs to be in the following format: { \"Username\": \"user-name\", \"Password\": \"user-password\" } Replace user-name and user-password with the credentials for the actual user that is being authenticated. Note the following: You are storing"
        },
        "PreserveContentType": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Allows you to use the Amazon S3 Content-Type that is associated with objects in S3 instead of having the content type mapped based on the file extension. This parameter is enabled by default when you create an AS2 connector from the console, but disabled by default when you create an AS2 connector by calling the API directly."
        },
        "AsyncMdnConfig": {
          "$ref": "#/$defs/As2AsyncMdnConnectorConfig"
        }
      }
    },
    "SftpConnectorConfig": {
      "type": "object",
      "properties": {
        "UserSecretId": {
          "type": "string",
          "description": "The identifier for the secret (in Amazon Web Services Secrets Manager) that contains the SFTP user's private key, password, or both. The identifier must be the Amazon Resource Name (ARN) of the secret. Required when creating an SFTP connector Optional when updating an existing SFTP connector"
        },
        "TrustedHostKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The public portion of the host key, or keys, that are used to identify the external server to which you are connecting. You can use the ssh-keyscan command against the SFTP server to retrieve the necessary key. TrustedHostKeys is optional for CreateConnector. If not provided, you can use TestConnection to retrieve the server host key during the initial connection attempt, and subsequently update the connector with the observed host key. When creating connectors with egress config (VPC_LATTICE type connectors), since host name is not something we can verify, the only accepted trusted host key f"
        },
        "MaxConcurrentConnections": {
          "type": "integer",
          "description": "Specify the number of concurrent connections that your connector creates to the remote server. The default value is 1. The maximum values is 5. If you are using the Amazon Web Services Management Console, the default value is 5. This parameter specifies the number of active connections that your connector can establish with the remote server at the same time. Increasing this value can enhance connector performance when transferring large file batches by enabling parallel operations."
        },
        "OrderedUserSecretVersionStages": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An ordered list of Amazon Web Services Secrets Manager version stages (staging labels, such as AWSCURRENT and AWSPREVIOUS) for the secret identified by UserSecretId. When establishing a connection, the connector attempts to retrieve the SFTP user's credentials from each version stage in the order listed, and uses the first version it can successfully retrieve. This lets you rotate the user secret without interrupting connector operations."
        }
      }
    },
    "UpdateConnectorEgressConfig": {
      "type": "object",
      "properties": {
        "VpcLattice": {
          "$ref": "#/$defs/UpdateConnectorVpcLatticeEgressConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "UpdateConnectorVpcLatticeEgressConfig": {
      "type": "object",
      "properties": {
        "ResourceConfigurationArn": {
          "type": "string",
          "description": "Updated ARN of the VPC_LATTICE Resource Configuration. Use this to change the target SFTP server location or modify the network path through the customer's VPC infrastructure."
        },
        "PortNumber": {
          "type": "integer",
          "description": "Updated port number for SFTP connections through VPC_LATTICE. Change this if the target SFTP server port has been modified or if connecting to a different server endpoint."
        }
      }
    }
  }
}