{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-create-security-configuration-request-schema.json",
  "title": "CreateSecurityConfigurationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-emr-security-configuration-api-openapi.yml#/components/schemas/CreateSecurityConfigurationRequest",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "The client idempotency token to use when creating the security configuration."
    },
    "name": {
      "type": "string",
      "description": "The name of the security configuration."
    },
    "containerProvider": {
      "$ref": "#/$defs/ContainerProvider"
    },
    "securityConfigurationData": {
      "$ref": "#/$defs/SecurityConfigurationData"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to add to the security configuration."
    }
  },
  "required": [
    "clientToken",
    "name",
    "securityConfigurationData"
  ],
  "$defs": {
    "AuthenticationConfiguration": {
      "type": "object",
      "properties": {
        "identityCenterConfiguration": {
          "$ref": "#/$defs/IdentityCenterConfiguration"
        },
        "iamConfiguration": {
          "$ref": "#/$defs/IAMConfiguration"
        }
      }
    },
    "AuthorizationConfiguration": {
      "type": "object",
      "properties": {
        "lakeFormationConfiguration": {
          "$ref": "#/$defs/LakeFormationConfiguration"
        },
        "encryptionConfiguration": {
          "$ref": "#/$defs/EncryptionConfiguration"
        }
      }
    },
    "ContainerInfo": {
      "type": "object",
      "properties": {
        "eksInfo": {
          "$ref": "#/$defs/EksInfo"
        }
      },
      "description": "Exactly one member is set."
    },
    "ContainerProvider": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "EKS"
          ],
          "description": "The type of the container provider. Amazon EKS is the only supported type as of now."
        },
        "id": {
          "type": "string",
          "description": "The ID of the container cluster."
        },
        "info": {
          "$ref": "#/$defs/ContainerInfo"
        }
      },
      "required": [
        "type",
        "id"
      ]
    },
    "EksInfo": {
      "type": "object",
      "properties": {
        "namespace": {
          "type": "string",
          "description": "The namespaces of the Amazon EKS cluster."
        },
        "nodeLabel": {
          "type": "string",
          "description": "The nodeLabel of the nodes where the resources of this virtual cluster can get scheduled. It requires relevant scaling and policy engine addons."
        }
      }
    },
    "EncryptionConfiguration": {
      "type": "object",
      "properties": {
        "inTransitEncryptionConfiguration": {
          "$ref": "#/$defs/InTransitEncryptionConfiguration"
        }
      }
    },
    "IAMConfiguration": {
      "type": "object",
      "properties": {
        "systemRole": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the system role used by the security configuration."
        }
      }
    },
    "IdentityCenterConfiguration": {
      "type": "object",
      "properties": {
        "enableIdentityCenter": {
          "type": "boolean",
          "description": "Specifies whether Identity Center is enabled for the security configuration."
        },
        "identityCenterApplicationAssignmentRequired": {
          "type": "boolean",
          "description": "Specifies whether user assignment is required for the Identity Center application."
        },
        "identityCenterInstanceARN": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Identity Center instance."
        },
        "emrIdentityCenterApplicationARN": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon EMR Identity Center application."
        }
      }
    },
    "InTransitEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "tlsCertificateConfiguration": {
          "$ref": "#/$defs/TLSCertificateConfiguration"
        }
      }
    },
    "LakeFormationConfiguration": {
      "type": "object",
      "properties": {
        "authorizedSessionTagValue": {
          "type": "string",
          "description": "The session tag to authorize Amazon EMR on EKS for API calls to Lake Formation."
        },
        "secureNamespaceInfo": {
          "$ref": "#/$defs/SecureNamespaceInfo"
        },
        "queryEngineRoleArn": {
          "type": "string",
          "description": "The query engine IAM role ARN that is tied to the secure Spark job. The QueryEngine role assumes the JobExecutionRole to execute all the Lake Formation calls."
        }
      }
    },
    "SecureNamespaceInfo": {
      "type": "object",
      "properties": {
        "clusterId": {
          "type": "string",
          "description": "The ID of the Amazon EKS cluster where Amazon EMR on EKS jobs run."
        },
        "namespace": {
          "type": "string",
          "description": "The namespace of the Amazon EKS cluster where the system jobs run."
        }
      }
    },
    "SecurityConfigurationData": {
      "type": "object",
      "properties": {
        "authorizationConfiguration": {
          "$ref": "#/$defs/AuthorizationConfiguration"
        },
        "authenticationConfiguration": {
          "$ref": "#/$defs/AuthenticationConfiguration"
        }
      }
    },
    "TLSCertificateConfiguration": {
      "type": "object",
      "properties": {
        "certificateProviderType": {
          "type": "string",
          "enum": [
            "PEM"
          ],
          "description": "The TLS certificate type. Acceptable values: PEM or Custom."
        },
        "publicCertificateSecretArn": {
          "type": "string",
          "description": "Secrets Manager ARN that contains the public TLS certificate contents, used for communication between the user job and the system job."
        },
        "privateCertificateSecretArn": {
          "type": "string",
          "description": "Secrets Manager ARN that contains the private TLS certificate contents, used for communication between the user job and the system job."
        }
      }
    }
  }
}