Amazon Bedrock · Schema

CreateMemoryInput

Artificial IntelligenceAmazon Web ServicesFoundation ModelsGenerative AILLMMachine LearningRAGAgentsResponsible AIModel Serving

Properties

Name Type Description
clientToken string A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an er
name string The name of the memory. The name must be unique within your account.
description string The description of the memory.
encryptionKeyArn string The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data.
memoryExecutionRoleArn string The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services.
eventExpiryDuration integer The number of days after which memory events expire, between 7 and 3650 days.
memoryStrategies array The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.
indexedKeys array Metadata keys to index for filtering. Once declared, indexed keys cannot be removed.
namespaceKeys array The namespace variable key definitions with optional validation rules. Use these namespaceKeys in namespaceTemplates to control namespace hierarchy.
streamDeliveryResources object
tags object A map of tag keys and values to assign to an AgentCore Memory. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
View JSON Schema on GitHub

JSON Schema

amazon-bedrock-create-memory-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-create-memory-input-schema.json",
  "title": "CreateMemoryInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-memories-api-openapi.yml#/components/schemas/CreateMemoryInput",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error."
    },
    "name": {
      "type": "string",
      "description": "The name of the memory. The name must be unique within your account."
    },
    "description": {
      "type": "string",
      "description": "The description of the memory."
    },
    "encryptionKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data."
    },
    "memoryExecutionRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services."
    },
    "eventExpiryDuration": {
      "type": "integer",
      "description": "The number of days after which memory events expire, between 7 and 3650 days."
    },
    "memoryStrategies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MemoryStrategyInput"
      },
      "description": "The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated."
    },
    "indexedKeys": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IndexedKey"
      },
      "description": "Metadata keys to index for filtering. Once declared, indexed keys cannot be removed."
    },
    "namespaceKeys": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NamespaceKeyEntry"
      },
      "description": "The namespace variable key definitions with optional validation rules. Use these namespaceKeys in namespaceTemplates to control namespace hierarchy."
    },
    "streamDeliveryResources": {
      "$ref": "#/$defs/StreamDeliveryResources"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A map of tag keys and values to assign to an AgentCore Memory. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment."
    }
  },
  "required": [
    "name",
    "eventExpiryDuration"
  ],
  "$defs": {
    "BedrockAgentcoreControlExtractionConfig": {
      "type": "object",
      "properties": {
        "llmExtractionConfig": {
          "$ref": "#/$defs/LlmExtractionConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentcoreControlRecordExpirySpecification": {
      "type": "object",
      "properties": {
        "recordExpiryDurationDays": {
          "type": "integer",
          "description": "The duration, in days, after which memory records generated by this strategy expire. The minimum is 31 days."
        },
        "action": {
          "type": "string",
          "enum": [
            "REMOVE"
          ],
          "description": "The action to apply to the existing record expiry (long-term memory time-to-live) configuration. Set to REMOVE to remove a previously configured time-to-live so that newer records no longer expire. This value is not applicable on create paths."
        }
      },
      "description": "Exactly one member is set."
    },
    "ContentConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "MEMORY_RECORDS"
          ],
          "description": "Type of content to stream."
        },
        "level": {
          "type": "string",
          "enum": [
            "METADATA_ONLY",
            "FULL_CONTENT"
          ],
          "description": "Level of detail for streamed content."
        }
      },
      "required": [
        "type"
      ]
    },
    "CustomConfigurationInput": {
      "type": "object",
      "properties": {
        "semanticOverride": {
          "$ref": "#/$defs/SemanticOverrideConfigurationInput"
        },
        "summaryOverride": {
          "$ref": "#/$defs/SummaryOverrideConfigurationInput"
        },
        "userPreferenceOverride": {
          "$ref": "#/$defs/UserPreferenceOverrideConfigurationInput"
        },
        "episodicOverride": {
          "$ref": "#/$defs/EpisodicOverrideConfigurationInput"
        },
        "selfManagedConfiguration": {
          "$ref": "#/$defs/SelfManagedConfigurationInput"
        }
      },
      "description": "Exactly one member is set."
    },
    "CustomMemoryStrategyInput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the custom memory strategy."
        },
        "description": {
          "type": "string",
          "description": "The description of the custom memory strategy."
        },
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "This is a legacy parameter, use namespaceTemplates. The namespaces associated with the custom memory strategy."
        },
        "namespaceTemplates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The namespaceTemplates associated with the custom memory strategy."
        },
        "configuration": {
          "$ref": "#/$defs/CustomConfigurationInput"
        },
        "memoryRecordSchema": {
          "$ref": "#/$defs/MemoryRecordSchema"
        },
        "recordExpirySpecification": {
          "$ref": "#/$defs/BedrockAgentcoreControlRecordExpirySpecification"
        }
      },
      "required": [
        "name"
      ]
    },
    "EpisodicMemoryStrategyInput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the episodic memory strategy."
        },
        "description": {
          "type": "string",
          "description": "The description of the episodic memory strategy."
        },
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "This is a legacy parameter, use namespaceTemplates. The namespaces for which to create episodes."
        },
        "namespaceTemplates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The namespaceTemplates for which to create episodes."
        },
        "reflectionConfiguration": {
          "$ref": "#/$defs/EpisodicReflectionConfigurationInput"
        },
        "memoryRecordSchema": {
          "$ref": "#/$defs/MemoryRecordSchema"
        },
        "recordExpirySpecification": {
          "$ref": "#/$defs/BedrockAgentcoreControlRecordExpirySpecification"
        }
      },
      "required": [
        "name"
      ]
    },
    "EpisodicOverrideConfigurationInput": {
      "type": "object",
      "properties": {
        "extraction": {
          "$ref": "#/$defs/EpisodicOverrideExtractionConfigurationInput"
        },
        "consolidation": {
          "$ref": "#/$defs/EpisodicOverrideConsolidationConfigurationInput"
        },
        "reflection": {
          "$ref": "#/$defs/EpisodicOverrideReflectionConfigurationInput"
        }
      }
    },
    "EpisodicOverrideConsolidationConfigurationInput": {
      "type": "object",
      "properties": {
        "appendToPrompt": {
          "type": "string",
          "description": "The text to append to the prompt for the consolidation step of the episodic memory strategy."
        },
        "modelId": {
          "type": "string",
          "description": "The model ID to use for the consolidation step of the episodic memory strategy."
        }
      },
      "required": [
        "appendToPrompt",
        "modelId"
      ]
    },
    "EpisodicOverrideExtractionConfigurationInput": {
      "type": "object",
      "properties": {
        "appendToPrompt": {
          "type": "string",
          "description": "The text to append to the prompt for the extraction step of the episodic memory strategy."
        },
        "modelId": {
          "type": "string",
          "description": "The model ID to use for the extraction step of the episodic memory strategy."
        }
      },
      "required": [
        "appendToPrompt",
        "modelId"
      ]
    },
    "EpisodicOverrideReflectionConfigurationInput": {
      "type": "object",
      "properties": {
        "appendToPrompt": {
          "type": "string",
          "description": "The text to append to the prompt for reflection step of the episodic memory strategy."
        },
        "modelId": {
          "type": "string",
          "description": "The model ID to use for the reflection step of the episodic memory strategy."
        },
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "This is a legacy parameter, use namespaceTemplates. The namespaces to use for episodic reflection. Can be less nested than the episodic namespaces."
        },
        "namespaceTemplates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The namespaceTemplates to use for episodic reflection. Can be less nested than the episodic namespaces."
        },
        "memoryRecordSchema": {
          "$ref": "#/$defs/MemoryRecordSchema"
        }
      },
      "required": [
        "appendToPrompt",
        "modelId"
      ]
    },
    "EpisodicReflectionConfigurationInput": {
      "type": "object",
      "properties": {
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "This is a legacy parameter, use namespaceTemplates. The namespaces over which to create reflections. Can be less nested than episode namespaces."
        },
        "namespaceTemplates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The namespaceTemplates over which to create reflections. Can be less nested than episode namespaces."
        },
        "memoryRecordSchema": {
          "$ref": "#/$defs/MemoryRecordSchema"
        }
      }
    },
    "IndexedKey": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The metadata key name to index."
        },
        "type": {
          "type": "string",
          "enum": [
            "STRING",
            "STRINGLIST",
            "NUMBER"
          ],
          "description": "The data type of the indexed key."
        }
      },
      "required": [
        "key",
        "type"
      ]
    },
    "InvocationConfigurationInput": {
      "type": "object",
      "properties": {
        "topicArn": {
          "type": "string",
          "description": "The ARN of the SNS topic for job notifications."
        },
        "payloadDeliveryBucketName": {
          "type": "string",
          "description": "The S3 bucket name for event payload delivery."
        }
      },
      "required": [
        "topicArn",
        "payloadDeliveryBucketName"
      ]
    },
    "KinesisResource": {
      "type": "object",
      "properties": {
        "dataStreamArn": {
          "type": "string",
          "description": "ARN of the Kinesis Data Stream."
        },
        "contentConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContentConfiguration"
          },
          "description": "Content configurations for stream delivery."
        }
      },
      "required": [
        "dataStreamArn",
        "contentConfigurations"
      ]
    },
    "LlmExtractionConfig": {
      "type": "object",
      "properties": {
        "llmExtractionInstruction": {
          "type": "string",
          "description": "Instructions for extraction. Supports built-in operators like LATEST_VALUE or custom natural-language instructions."
        },
        "definition": {
          "type": "string",
          "description": "Description of what this metadata field represents."
        },
        "validation": {
          "$ref": "#/$defs/Validation"
        }
      },
      "required": [
        "definition"
      ]
    },
    "MemoryRecordSchema": {
      "type": "object",
      "properties": {
        "metadataSchema": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MetadataSchemaEntry"
          },
          "description": "The metadata field definitions for this strategy."
        }
      }
    },
    "MemoryStrategyInput": {
      "type": "object",
      "properties": {
        "semanticMemoryStrategy": {
          "$ref": "#/$defs/SemanticMemoryStrategyInput"
        },
        "summaryMemoryStrategy": {
          "$ref": "#/$defs/SummaryMemoryStrategyInput"
        },
        "userPreferenceMemoryStrategy": {
          "$ref": "#/$defs/UserPreferenceMemoryStrategyInput"
        },
        "customMemoryStrategy": {
          "$ref": "#/$defs/CustomMemoryStrategyInput"
        },
        "episodicMemoryStrategy": {
          "$ref": "#/$defs/EpisodicMemoryStrategyInput"
        }
      },
      "description": "Exactly one member is set."
    },
    "MessageBasedTriggerInput": {
      "type": "object",
      "properties": {
        "messageCount": {
          "type": "integer",
          "description": "The number of messages that trigger memory processing."
        }
      }
    },
    "MetadataSchemaEntry": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The metadata field name. Must match an indexed key to be queryable via metadata filters."
        },
        "type": {
          "type": "string",
          "enum": [
            "STRING",
            "STRINGLIST",
            "NUMBER"
          ],
          "description": "The MetadataValueType."
        },
        "extractionType": {
          "type": "string",
          "enum": [
            "LLM_INFERRED",
            "STRICTLY_CONSISTENT"
          ],
          "description": "Specifies whether the metadata value is extracted by the LLM or passed through deterministically from the event."
        },
        "extractionConfig": {
          "$ref": "#/$defs/BedrockAgentcoreControlExtractionConfig"
        }
      },
      "required": [
        "key"
      ]
    },
    "NamespaceKeyEntry": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The namespace variable key name."
        },
        "validation": {
          "$ref": "#/$defs/NamespaceKeyValidation"
        }
      },
      "required": [
        "key"
      ]
    },
    "NamespaceKeyValidation": {
      "type": "object",
      "properties": {
        "allowedValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The allowed values for this namespace variable key."
        },
        "regexPattern": {
          "type": "string",
          "description": "A regex pattern that the namespace variable key-value must match."
        }
      }
    },
    "NumberValidation": {
      "type": "object",
      "properties": {
        "minValue": {
          "type": "number",
          "description": "Minimum allowed value."
        },
        "maxValue": {
          "type": "number",
          "description": "Maximum allowed value."
        }
      }
    },
    "SelfManagedConfigurationInput": {
      "type": "object",
      "properties": {
        "triggerConditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TriggerConditionInput"
          },
          "description": "A list of conditions that trigger memory processing."
        },
        "invocationConfiguration": {
          "$ref": "#/$defs/InvocationConfigurationInput"
        },
        "historicalContextWindowSize": {
          "type": "integer",
          "description": "Number of historical messages to include in processing context."
        }
      },
      "required": [
        "invocationConfiguration"
      ]
    },
    "SemanticMemoryStrategyInput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the semantic memory strategy."
        },
        "description": {
          "type": "string",
          "description": "The description of the semantic memory strategy."
        },
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "This is a legacy parameter, use namespaceTemplates. The namespaces associated with the semantic memory strategy."
        },
        "namespaceTemplates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The namespaceTemplates associated with the semantic memory strategy."
        },
        "memoryRecordSchema": {
          "$ref": "#/$defs/MemoryRecordSchema"
        },
        "recordExpirySpecification": {
          "$ref": "#/$defs/BedrockAgentcoreControlRecordExpirySpecification"
        }
      },
      "required": [
        "name"
      ]
    },
    "SemanticOverrideConfigurationInput": {
      "type": "object",
      "properties": {
        "extraction": {
          "$ref": "#/$defs/SemanticOverrideExtractionConfigurationInput"
        },
        "consolidation": {
          "$ref": "#/$defs/SemanticOverrideConsolidationConfigurationInput"
        }
      }
    },
    "SemanticOverrideConsolidationConfigurationInput": {
      "type": "object",
      "properties": {
        "appendToPrompt": {
          "type": "string",
          "description": "The text to append to the prompt for semantic consolidation."
        },
        "modelId": {
          "type": "string",
          "description": "The model ID to use for semantic consolidation."
        }
      },
      "required": [
        "appendToPrompt",
        "modelId"
      ]
    },
    "SemanticOverrideExtractionConfigurationInput": {
      "type": "object",
      "properties": {
        "appendToPrompt": {
          "type": "string",
          "description": "The text to append to the prompt for semantic extraction."
        },
        "modelId": {
          "type": "string",
          "description": "The model ID to use for semantic extraction."
        }
      },
      "required": [
        "appendToPrompt",
        "modelId"
      ]
    },
    "StreamDeliveryResource": {
      "type": "object",
      "properties": {
        "kinesis": {
          "$ref": "#/$defs/KinesisResource"
        }
      },
      "description": "Exactly one member is set."
    },
    "StreamDeliveryResources": {
      "type": "object",
      "properties": {
        "resources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StreamDeliveryResource"
          },
          "description": "List of stream delivery resource configurations."
        }
      },
      "required": [
        "resources"
      ]
    },
    "StringListValidation": {
      "type": "object",
      "properties": {
        "allowedValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Allowed values for items in this STRINGLIST field."
        },
        "maxItems": {
          "type": "integer",
          "description": "Maximum number of items in the string list."
        }
      }
    },
    "StringValidation": {
      "type": "object",
      "properties": {
        "allowedValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Allowed values for this STRING field."
        }
      },
      "required": [
        "allowedValues"
      ]
    },
    "SummaryMemoryStrategyInput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the summary memory strategy."
        },
        "description": {
          "type": "string",
          "description": "The description of the summary memory strategy."
        },
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "This is a legacy parameter, use namespaceTemplates. The namespaces associated with the summary memory strategy."
        },
        "namespaceTemplates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The namespaceTemplates associated with the summary memory strategy."
        },
        "memoryRecordSchema": {
          "$ref": "#/$defs/MemoryRecordSchema"
        },
        "recordExpirySpecification": {
          "$ref": "#/$defs/BedrockAgentcoreControlRecordExpirySpecification"
        }
      },
      "required": [
        "name"
      ]
    },
    "SummaryOverrideConfigurationInput": {
      "type": "object",
      "properties": {
        "consolidation": {
          "$ref": "#/$defs/SummaryOverrideConsolidationConfigurationInput"
        }
      }
    },
    "SummaryOverrideConsolidationConfigurationInput": {
      "type": "object",
      "properties": {
        "appendToPrompt": {
          "type": "string",
          "description": "The text to append to the prompt for summary consolidation."
        },
        "modelId": {
          "type": "string",
          "description": "The model ID to use for summary consolidation."
        }
      },
      "required": [
        "appendToPrompt",
        "modelId"
      ]
    },
    "TimeBasedTriggerInput": {
      "type": "object",
      "properties": {
        "idleSessionTimeout": {
          "type": "integer",
          "description": "Idle session timeout (seconds) that triggers memory processing."
        }
      }
    },
    "TokenBasedTriggerInput": {
      "type": "object",
      "properties": {
        "tokenCount": {
          "type": "integer",
          "description": "Number of tokens that trigger memory processing."
        }
      }
    },
    "TriggerConditionInput": {
      "type": "object",
      "properties": {
        "messageBasedTrigger": {
          "$ref": "#/$defs/MessageBasedTriggerInput"
        },
        "tokenBasedTrigger": {
          "$ref": "#/$defs/TokenBasedTriggerInput"
        },
        "timeBasedTrigger": {
          "$ref": "#/$defs/TimeBasedTriggerInput"
        }
      },
      "description": "Exactly one member is set."
    },
    "UserPreferenceMemoryStrategyInput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the user preference memory strategy."
        },
        "description": {
          "type": "string",
          "description": "The description of the user preference memory strategy."
        },
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "This is a legacy parameter, use namespaceTemplates. The namespaces associated with the user preference memory strategy."
        },
        "namespaceTemplates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The namespaceTemplates associated with the user preference memory strategy."
        },
        "memoryRecordSchema": {
          "$ref": "#/$defs/MemoryRecordSchema"
        },
        "recordExpirySpecification": {
          "$ref": "#/$defs/BedrockAgentcoreControlRecordExpirySpecification"
        }
      },
      "required": [
        "name"
      ]
    },
    "UserPreferenceOverrideConfigurationInput": {
      "type": "object",
      "properties": {
        "extraction": {
          "$ref": "#/$defs/UserPreferenceOverrideExtractionConfigurationInput"
        },
        "consolidation": {
          "$ref": "#/$defs/UserPreferenceOverrideConsolidationConfigurationInput"
        }
      }
    },
    "UserPreferenceOverrideConsolidationConfigurationInput": {
      "type": "object",
      "properties": {
        "appendToPrompt": {
          "type": "string",
          "description": "The text to append to the prompt for user preference consolidation."
        },
        "modelId": {
          "type": "string",
          "description": "The model ID to use for user preference consolidation."
        }
      },
      "required": [
        "appendToPrompt",
        "modelId"
      ]
    },
    "UserPreferenceOverrideExtractionConfigurationInput": {
      "type": "object",
      "properties": {
        "appendToPrompt": {
          "type": "string",
          "description": "The text to append to the prompt for user preference extraction."
        },
        "modelId": {
          "type": "string",
          "description": "The model ID to use for user preference extraction."
        }
      },
      "required": [
        "appendToPrompt",
        "modelId"
      ]
    },
    "Validation": {
      "type": "object",
      "properties": {
        "stringValidation": {
          "$ref": "#/$defs/StringValidation"
        },
        "stringListValidation": {
          "$ref": "#/$defs/StringListValidation"
        },
        "numberValidation": {
          "$ref": "#/$defs/NumberValidation"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-bedrock-create-memory-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.