Skip to content

[Resource Type] - [Docs] - Improve documentation clarity for OpenSearchServerless Index Mappings Properties notation #2336

Open
@gitkanta

Description

@gitkanta

Name of the resource

Other

Resource name

AWS::OpenSearchServerless::Index

Reference Link

https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-opensearchserverless-index-mappings.html

Details

Issue Description

The current documentation for AWS::OpenSearchServerless::Index Mappings Properties is unclear about the required key-value pair notation structure. This makes it difficult for users to understand how to properly format their CloudFormation templates.

Current Documentation

The current documentation at AWS::OpenSearchServerless::Index Mappings doesn't provide clear examples of the required structure.

Example of Invalid Template

Mappings:
  Properties:
    Dimension: 1536
    Type: knn_vector

Example of Valid Template

Mappings:
  Properties:
    test:  # Required field name
      Dimension: 1536
      Type: knn_vector

Suggested Improvements

  • Add complete working examples to the documentation
  • Clarify that a field name is required as a key in the Properties object
  • Include more detailed explanation of the structure and its requirements
  • Add common use cases and their corresponding template structures

Impact

This improvement would help users:

  • Avoid trial and error when creating templates
  • Better understand the required structure
  • Save time in template development
  • Reduce support queries related to this issue

Would you please consider updating the documentation to make it more clear and user-friendly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions