o .&a+ @sPddlZddlmZmZdZddZddZGdd d eZGd d d eZdS) N)CustomArgument CLIArgumentzT

The path to the file of the code you are uploading. Example: fileb://data.csv

cCs|dtdS)Nz4building-argument-table.translate.import-terminology)register_hoist_file_parameter)clirA/usr/lib/python3/dist-packages/awscli/customizations/translate.py%register_translate_import_terminologysr cKsTtdtddd|d<|d}t|j}|jd=td||jd|dd d |d<dS) Nz data-fileblobT) help_text cli_type_namerequiredzterminology-dataFileF event_emitterTerminologyData)nameargument_modeloperation_model is_requiredrserialized_name) FileArgumentFILE_DOCSTRINGcopydeepcopyrmembersTerminologyDataArgument_operation_model get_component)sessionargument_tablekwargs file_argument file_modelrrrrs  rc@eZdZddZdS)rcCs<|durdSd|i}|dr|d|dS||d<dS)Nrr)getupdate)self parametersvalue file_paramrrr add_to_params,s   zFileArgument.add_to_paramsN__name__ __module__ __qualname__r*rrrrr+ rc@r#)rcCsN|durdS||}d|vrtd|dr!|d|dS||d<dS)NrzFile cannot be provided as part of the '--terminology-data' argument. Please use the '--data-file' option instead to specify a file.r)_unpack_argument ValueErrorr$r%)r&r'r(unpackedrrrr*7s   z%TerminologyDataArgument.add_to_paramsNr+rrrrr6r/r) rawscli.argumentsrrrr rrrrrrrs