{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-clean-rooms/json-schema/amazon-clean-rooms-create-id-namespace-association-input-schema.json",
  "title": "CreateIdNamespaceAssociationInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-clean-rooms-idnamespaceassociations-api-openapi.yml#/components/schemas/CreateIdNamespaceAssociationInput",
  "type": "object",
  "properties": {
    "membershipIdentifier": {
      "type": "string",
      "description": "The unique identifier of the membership that contains the ID namespace association."
    },
    "inputReferenceConfig": {
      "$ref": "#/$defs/IdNamespaceAssociationInputReferenceConfig"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource."
    },
    "name": {
      "type": "string",
      "description": "The name for the ID namespace association."
    },
    "description": {
      "type": "string",
      "description": "The description of the ID namespace association."
    },
    "idMappingConfig": {
      "$ref": "#/$defs/IdMappingConfig"
    }
  },
  "required": [
    "membershipIdentifier",
    "inputReferenceConfig",
    "name"
  ],
  "$defs": {
    "IdMappingConfig": {
      "type": "object",
      "properties": {
        "allowUseAsDimensionColumn": {
          "type": "boolean",
          "description": "An indicator as to whether you can use your column as a dimension column in the ID mapping table (TRUE) or not (FALSE). Default is FALSE."
        }
      },
      "required": [
        "allowUseAsDimensionColumn"
      ]
    },
    "IdNamespaceAssociationInputReferenceConfig": {
      "type": "object",
      "properties": {
        "inputReferenceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Entity Resolution resource that is being associated to the collaboration. Valid resource ARNs are from the ID namespaces that you own."
        },
        "manageResourcePolicies": {
          "type": "boolean",
          "description": "When TRUE, Clean Rooms manages permissions for the ID namespace association resource. When FALSE, the resource owner manages permissions for the ID namespace association resource."
        }
      },
      "required": [
        "inputReferenceArn",
        "manageResourcePolicies"
      ]
    }
  }
}