def __attrs_post_init__()

in src/dynamodb_encryption_sdk/materials/raw.py [0:0]


    def __attrs_post_init__(self):
        """Verify that the encryption key is allowed be used for raw materials."""
        if self._decryption_key is not None and not self._decryption_key.allowed_for_raw_materials:
            raise ValueError(
                'Decryption key type "{}" does not allow use with RawDecryptionMaterials'.format(
                    type(self._decryption_key)
                )
            )