{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam-identity-center/json-schema/amazon-iam-identity-center-describe-instance-response-schema.json",
  "title": "DescribeInstanceResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-identity-center-instance-api-openapi.yml#/components/schemas/DescribeInstanceResponse",
  "type": "object",
  "properties": {
    "InstanceArn": {
      "type": "string",
      "description": "The ARN of the instance of IAM Identity Center under which the operation will run. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference."
    },
    "IdentityStoreId": {
      "type": "string",
      "description": "The identifier of the identity store that is connected to the instance of IAM Identity Center."
    },
    "IdentityStoreArn": {
      "type": "string",
      "description": "The ARN of the identity store that is connected to the instance of IAM Identity Center."
    },
    "OwnerAccountId": {
      "type": "string",
      "description": "The identifier of the Amazon Web Services account for which the instance was created."
    },
    "Name": {
      "type": "string",
      "description": "Specifies the instance name."
    },
    "CreatedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date the instance was created."
    },
    "Status": {
      "type": "string",
      "enum": [
        "CREATE_IN_PROGRESS",
        "CREATE_FAILED",
        "DELETE_IN_PROGRESS",
        "ACTIVE"
      ],
      "description": "The status of the instance."
    },
    "StatusReason": {
      "type": "string",
      "description": "Provides additional context about the current status of the IAM Identity Center instance. This field is particularly useful when an instance is in a non-ACTIVE state, such as CREATE_FAILED. When an instance fails to create or update, this field contains information about the cause, which may include issues with KMS key configuration, permission problems with the specified KMS key, or service-related errors."
    },
    "PrimaryRegion": {
      "type": "string",
      "description": "The primary Region where the IAM Identity Center instance was originally enabled. The primary Region cannot be removed."
    },
    "Regions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RegionMetadata"
      },
      "description": "The list of Regions enabled in the IAM Identity Center instance, including Regions with ACTIVE, ADDING, or REMOVING status."
    },
    "EncryptionConfigurationDetails": {
      "$ref": "#/$defs/EncryptionConfigurationDetails"
    },
    "PermissionSetsEnabled": {
      "type": "boolean",
      "description": "Indicates whether permission sets are enabled for this Identity Center instance."
    }
  },
  "$defs": {
    "EncryptionConfigurationDetails": {
      "type": "object",
      "properties": {
        "KeyType": {
          "type": "string",
          "enum": [
            "AWS_OWNED_KMS_KEY",
            "CUSTOMER_MANAGED_KEY"
          ],
          "description": "The type of KMS key used for encryption."
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "The ARN of the KMS key currently used to encrypt data in your IAM Identity Center instance."
        },
        "EncryptionStatus": {
          "type": "string",
          "enum": [
            "UPDATING",
            "ENABLED",
            "UPDATE_FAILED"
          ],
          "description": "The current status of encryption configuration."
        },
        "EncryptionStatusReason": {
          "type": "string",
          "description": "Provides additional context about the current encryption status. This field is particularly useful when the encryption status is UPDATE_FAILED. When encryption configuration update fails, this field contains information about the cause, which may include KMS key access issues, key not found errors, invalid key configuration, key in an invalid state, or a disabled key."
        }
      }
    },
    "RegionMetadata": {
      "type": "object",
      "properties": {
        "RegionName": {
          "type": "string",
          "description": "The Amazon Web Services Region name."
        },
        "Status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "ADDING",
            "REMOVING"
          ],
          "description": "The current status of the Region. Valid values are ACTIVE (Region is operational), ADDING (Region extension workflow is in progress), or REMOVING (Region removal workflow is in progress)."
        },
        "AddedDate": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the Region was added to the IAM Identity Center instance. For the primary Region, this is the instance creation time."
        },
        "IsPrimaryRegion": {
          "type": "boolean",
          "description": "Indicates whether this is the primary Region where the IAM Identity Center instance was originally enabled. The primary Region cannot be removed."
        }
      }
    }
  }
}