o saG @ s d dl Z d dlZd dlmZ d dlZd dlmZmZ dZdZ dd Z dd ZG d d deZ dd Zdd ZG dd deZG dd deZdS ) N)closing)CustomArgumentCLIArgumentzk--zip-file must be a zip file with the fileb:// prefix. Example usage: --zip-file fileb://path/to/file.zipz
The path to the zip file of the {param_type} you are uploading. Specify --zip-file or --{param_type}, but not both. Example: fileb://{param_type}.zip
c C s@ | dtdj | dtdj | dt | dt d S )Nz.building-argument-table.lambda.create-functionCodez4building-argument-table.lambda.publish-layer-versionContentz3building-argument-table.lambda.update-function-codez+process-cli-arg.lambda.update-function-code)registerZipFileArgumentHoisterhoist_modify_zipfile_docstringvalidate_is_zip_file)cli r A/usr/lib/python3/dist-packages/awscli/customizations/awslambda.pyregister_lambda_create_function! s r c K s | j dkrt| d S d S Nzip-file)name_should_contain_zip_content)cli_argumentvaluekwargsr r r r , s r c @ s e Zd ZdZdd Zdd ZdS )r ar Hoists a ZipFile argument up to the top level. Injects a top-level ZipFileArgument into the argument table which maps a --zip-file parameter to the underlying ``serialized_name`` ZipFile shape. Repalces the old ZipFile argument with an instance of ReplacedZipFileArgument to prevent its usage and recommend the new top-level injected parameter. c C s || _ | | _d S )N)_serialized_namelower_name)selfserialized_namer r r __init__: s zZipFileArgumentHoister.__init__c K sl t j| jd}td|d| jd|d<