# boto3 1.44.15 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
The method to serialize the Python data types.

        :param value: A python value to be serialized to DynamoDB. Here are
            the various conversions:

            Python                                  DynamoDB
            ------                                  --------
            None                                    {'NULL': True}
            True/False                              {'BOOL': True/False}
            int/Decimal                             {'N': str(value)}
            string                                  {'S': string}
            Binary/bytearray/bytes (py3 only)       {'B': bytes}
            set([int/Decimal])                      {'NS': [str(value)]}
            set([string])                           {'SS': [string])
            set([Binary/bytearray/bytes])           {'BS': [bytes]}
            list                                    {'L': list}
            dict                                    {'M': dict}

            For types that involve numbers, it is recommended that ``Decimal``
            objects are used to be able to round-trip the Python type.
            For types that involve binary, it is recommended that ``Binary``
            objects are used to be able to round-trip the Python type.

        :rtype: dict
        :returns: A dictionary that represents a dynamoDB data type. These
            dictionaries can be directly passed to botocore methods.
        
=== parse rest
short_description: 'The method to serialize the Python data types.'
blank_after_short_description: True
blank_after_long_description: False
style: rest
- DocstringParam
  description: |
    A python value to be serialized to DynamoDB. Here are
    the various conversions:
    
    Python                                  DynamoDB
    ------                                  --------
    None                                    {'NULL': True}
    True/False                              {'BOOL': True/False}
    int/Decimal                             {'N': str(value)}
    string                                  {'S': string}
    Binary/bytearray/bytes (py3 only)       {'B': bytes}
    set([int/Decimal])                      {'NS': [str(value)]}
    set([string])                           {'SS': [string])
    set([Binary/bytearray/bytes])           {'BS': [bytes]}
    list                                    {'L': list}
    dict                                    {'M': dict}
    
    For types that involve numbers, it is recommended that ``Decimal``
    objects are used to be able to round-trip the Python type.
    For types that involve binary, it is recommended that ``Binary``
    objects are used to be able to round-trip the Python type.
  kind: param
  key: 'param'
  arg_name: 'value'
  is_optional: False
- DocstringReturns
  description: |
    A dictionary that represents a dynamoDB data type. These
    dictionaries can be directly passed to botocore methods.
  kind: returns
  key: 'returns'
  type_name: 'dict'
  is_generator: False
=== detect
rest
=== compose rest
The method to serialize the Python data types.

:param value: A python value to be serialized to DynamoDB. Here are
    the various conversions:

    Python                                  DynamoDB
    ------                                  --------
    None                                    {'NULL': True}
    True/False                              {'BOOL': True/False}
    int/Decimal                             {'N': str(value)}
    string                                  {'S': string}
    Binary/bytearray/bytes (py3 only)       {'B': bytes}
    set([int/Decimal])                      {'NS': [str(value)]}
    set([string])                           {'SS': [string])
    set([Binary/bytearray/bytes])           {'BS': [bytes]}
    list                                    {'L': list}
    dict                                    {'M': dict}

    For types that involve numbers, it is recommended that ``Decimal``
    objects are used to be able to round-trip the Python type.
    For types that involve binary, it is recommended that ``Binary``
    objects are used to be able to round-trip the Python type.
:returns: A dictionary that represents a dynamoDB data type. These
    dictionaries can be directly passed to botocore methods.
:rtype: dict
