{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-import-certificate-request-schema.json",
  "title": "ImportCertificateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-importcertificate-api-openapi.yml#/components/schemas/ImportCertificateRequest",
  "type": "object",
  "properties": {
    "Usage": {
      "type": "string",
      "enum": [
        "SIGNING",
        "ENCRYPTION",
        "TLS"
      ],
      "description": "Specifies how this certificate is used. It can be used in the following ways: SIGNING: For signing AS2 messages ENCRYPTION: For encrypting AS2 messages TLS: For securing AS2 communications sent over HTTPS"
    },
    "Certificate": {
      "type": "string",
      "description": "For the CLI, provide a file path for a certificate in URI format. For example, --certificate file://encryption-cert.pem. Alternatively, you can provide the raw content. For the SDK, specify the raw content of a certificate file. For example, --certificate \"`cat encryption-cert.pem`\". You can provide both the certificate and its chain in this parameter, without needing to use the CertificateChain parameter. If you use this parameter for both the certificate and its chain, do not use the CertificateChain parameter."
    },
    "CertificateChain": {
      "type": "string",
      "description": "An optional list of certificates that make up the chain for the certificate that's being imported."
    },
    "PrivateKey": {
      "type": "string",
      "description": "For the CLI, provide a file path for a private key in URI format. For example, --private-key file://encryption-key.pem. Alternatively, you can provide the raw content of the private key file. For the SDK, specify the raw content of a private key file. For example, --private-key \"`cat encryption-key.pem`\""
    },
    "ActiveDate": {
      "type": "string",
      "format": "date-time",
      "description": "An optional date that specifies when the certificate becomes active. If you do not specify a value, ActiveDate takes the same value as NotBeforeDate, which is specified by the CA."
    },
    "InactiveDate": {
      "type": "string",
      "format": "date-time",
      "description": "An optional date that specifies when the certificate becomes inactive. If you do not specify a value, InactiveDate takes the same value as NotAfterDate, which is specified by the CA."
    },
    "Description": {
      "type": "string",
      "description": "A short description that helps identify the certificate."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Key-value pairs that can be used to group and search for certificates."
    }
  },
  "required": [
    "Usage",
    "Certificate"
  ],
  "$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"
      ]
    }
  }
}