{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-create-consent-portal-response-schema.json",
  "title": "CreateConsentPortalResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-identities-api-openapi.yml#/components/schemas/CreateConsentPortalResponse",
  "type": "object",
  "properties": {
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConsentPortalSource"
      },
      "description": "The resources served by the consent portal."
    },
    "consentPortalArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the consent portal."
    },
    "consentPortalId": {
      "type": "string",
      "description": "The unique identifier of the consent portal."
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp for when the consent portal was created."
    },
    "description": {
      "type": "string",
      "description": "The description of the consent portal."
    },
    "executionRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that the consent portal assumes to access the resources defined in its sources."
    },
    "idpConfig": {
      "$ref": "#/$defs/ConsentPortalIdpConfig"
    },
    "name": {
      "type": "string",
      "description": "The name of the consent portal."
    },
    "portalUrl": {
      "type": "string",
      "description": "The URL used to access the consent portal."
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATING",
        "ACTIVE",
        "UPDATING",
        "UPDATE_FAILED",
        "DELETING",
        "FAILED"
      ],
      "description": "The current status of the consent portal."
    },
    "statusReason": {
      "type": "string",
      "description": "A message that provides additional information about the current status of the consent portal."
    },
    "updatedAt": {
      "type": "string",
      "description": "The timestamp for when the consent portal was last updated."
    }
  },
  "required": [
    "sources",
    "consentPortalArn",
    "consentPortalId",
    "createdAt",
    "executionRoleArn",
    "idpConfig",
    "name",
    "status",
    "updatedAt"
  ],
  "$defs": {
    "ConsentPortalIdpConfig": {
      "type": "object",
      "properties": {
        "credentialProviderArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the OAuth2 credential provider used to authenticate end users to the consent portal."
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The OAuth2 scopes that the consent portal requests when authenticating end users."
        },
        "audience": {
          "type": "string",
          "description": "The audience value that the consent portal includes when requesting tokens from the identity provider."
        }
      },
      "required": [
        "credentialProviderArn",
        "scopes"
      ]
    },
    "ConsentPortalSource": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string",
          "description": "The identifier of the source resource. For an agentcore-gateway source, this is the gateway ID or its Amazon Resource Name (ARN)."
        },
        "type": {
          "type": "string",
          "enum": [
            "agentcore-gateway"
          ],
          "description": "The type of the source resource."
        }
      },
      "required": [
        "identifier",
        "type"
      ]
    }
  }
}