o ?c@s^ddlZddlZddZddZddZdd Zd d Zd d Z dddZGdddZ dS)NcCsZg}|D]&}t|j}|j}|dr|dd}|ds|ddkr*||dq|S)zHelper method to determine which parameters to ignore for actions :returns: A list of the parameter names that does not need to be included in a resource's method call for documentation purposes. childrenrtypefieldvalue)jmespathcompiletargetparsedappend)paramsZ ignore_paramsparamresultcurrentrk/private/var/folders/cw/wlscbxl13mj6wd668h7l9g9sllkg5j/T/pip-target-b31awkwq/lib/python/boto3/docs/utils.pyget_resource_ignore_paramss   rcCs t|SN)inspect isfunction)Z action_handlerrris_resource_action' rcCsPt|}i}|D]\}}|ds%|ds%|ds%t|r%|||<q |S)N_rZ wait_until)r getmembers startswithisupperr)Zresource_classZresource_class_membersZresource_methodsnamememberrrrget_resource_public_actions+s     rcCsddd|DS)N,cSsg|]}d|dqS)'r).0 identifierrrr 8sz5get_identifier_values_for_example..joinZidentifier_namesrrr!get_identifier_values_for_example7sr&cCs d|S)Nrr#r%rrr!get_identifier_args_for_signature;rr'cCsd|d|dS)NzThe z's z" identifier. This **must** be set.r) resource_nameZidentifier_namerrrget_identifier_description?sr)cCs|j|d|j|j|||j|j|||j|durF|d|d|d|jdSdS)Nz.. rst-class:: admonition-titlezFor more information about z1 refer to the :ref:`Resources Introduction Guide`.)stylenew_linewritelower)sectionZ resource_type descriptionZ intro_linkrrradd_resource_type_overviewFs"          r0c@s$eZdZddZddZddZdS)DocumentModifiedShapecCs||_||_||_||_dSr) _shape_name _new_type_new_description_new_example_value)selfZ shape_namenew_typeZnew_descriptionZnew_example_valuerrr__init__[s zDocumentModifiedShape.__init__cKsd|j|jdkr||||jD]}||}|j|jdkr)|||q|||qdS)Nshape)r2contextget_replace_documentationavailable_sections get_section(replace_documentation_for_matching_shape)r6 event_namer.kwargs section_nameZ sub_sectionrrrr?cs   z>DocumentModifiedShape.replace_documentation_for_matching_shapecCs|ds |dr||||j|ds"|drud}|jD] }||vr2||q'|d}|||j|d}| dd rd||d |j d |j dS||j d |j d dSdS)Nzdocs.request-examplezdocs.response-examplezdocs.request-paramszdocs.response-params)z param-nameparam-documentationz end-structure param-typez end-paramrCrDzutf-8z:typez:type z: (z) -- )rZremove_all_sectionsZ clear_textr,r5r=Zdelete_sectionr>r4getvaluedecoderr3r*Zitalics)r6r@r.Zallowed_sectionsrBZdescription_sectionZ type_sectionrrrr<qs8      z,DocumentModifiedShape._replace_documentationN)__name__ __module__ __qualname__r8r?r<rrrrr1Zs r1r) rrrrrr&r'r)r0r1rrrrs