
    N                     f    S SK r S SKrS SKJr  S rS rS rS rS rS r	 SS	 jr
 " S
 S\5      rg)    N)sixc                     / nU  Hl  n[         R                  " UR                  5      nUR                  nUS   (       a  US   S   nUS   (       a  M  US   S:X  d  MX  UR	                  US   5        Mn     U$ )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.
childrenr   typefieldvalue)jmespathcompiletargetparsedappend)paramsignore_paramsparamresultcurrents        #lib/third_party/boto3/docs/utils.pyget_resource_ignore_paramsr      s     M!!%,,/-- j!j)!,G j!! 6?g%  !12      c                     [         R                  (       a  [        R                  " U 5      $ [        R                  " U 5      $ N)r   PY3inspect
isfunctionismethod)action_handles    r   is_resource_actionr   )   s+    
ww!!-00..r   c                    [         R                  " U 5      n0 nU He  u  p4UR                  S5      (       a  M  US   R                  5       (       a  M7  UR                  S5      (       a  MO  [	        U5      (       d  Ma  XBU'   Mg     U$ )N_r   
wait_until)r   
getmembers
startswithisupperr   )resource_classresource_class_membersresource_methodsnamemembers        r   get_resource_public_actionsr)   0   so    $//?.s##7??$$|44)&1117. / r   c                 X    U  Vs/ s H  nSU-  PM
     nnSR                  U5      $ s  snf )Nz'%s',join)identifier_names
identifierexample_valuess      r   !get_identifier_values_for_exampler1   <   s2    >NO>N
h+>NNO88N## Ps   'c                 $    SR                  U 5      $ )Nr+   r,   )r.   s    r   !get_identifier_args_for_signaturer3   A   s    88$%%r   c                     SU < SU< S3$ )NzThe z's z" identifier. This **must** be set. )resource_nameidentifier_names     r   get_identifier_descriptionr8   E   s    ( (r   c                 .   U R                   R                  5         U R                  S5        U R                   R                  5         U R                   R                  5         U R                  U5        U R                   R                  5         U R                   R                  5         U R                  U5        U R                   R                  5         UbC  U R                  SUR                  5       < SU< S35        U R                   R                  5         g g )Nz.. rst-class:: admonition-titlezFor more information about z1 refer to the :ref:`Resources Introduction Guide<z>`.)stylenew_linewritelower)sectionresource_typedescription
intro_links       r   add_resource_type_overviewrB   J   s    MMMM34MMMMMM- MMMMMM+MM'--/= 	> 	 	 r   c                   &    \ rS rSrS rS rS rSrg)DocumentModifiedShape\   c                 4    Xl         X l        X0l        X@l        g r   )_shape_name	_new_type_new_description_new_example_value)self
shape_namenew_typenew_descriptionnew_example_values        r   __init__DocumentModifiedShape.__init__]   s    %! /"3r   c                 Z   U R                   UR                  R                  S5      :X  a  U R                  X5        UR                   Ha  nUR                  U5      nU R                   UR                  R                  S5      :X  a  U R                  X5        MP  U R                  X5        Mc     g )Nshape)rG   contextget_replace_documentationavailable_sectionsget_section(replace_documentation_for_matching_shape)rK   
event_namer>   kwargssection_namesub_sections         r   rY   >DocumentModifiedShape.replace_documentation_for_matching_shaped   s    w227;;''
<#66L!--l;K;#6#6#:#:7#CC++JD==- 7r   c                 r   UR                  S5      (       d  UR                  S5      (       a;  UR                  5         UR                  5         UR                  U R                  5        UR                  S5      (       d  UR                  S5      (       Ga#  UR
                   H  nUS;  d  M  UR                  U5        M     UR                  S5      nUR                  5         UR                  U R                  5        UR                  S5      nUR                  5       R                  S5      R                  S	5      (       a>  UR                  5         UR                  S
UR                  < SU R                  < 35        g UR                  5         UR                  R                  SU R                  -  5        g g )Nzdocs.request-examplezdocs.response-examplezdocs.request-paramszdocs.response-params)z
param-nameparam-documentationzend-structure
param-typez	end-paramr`   ra   zutf-8z:typez:type z: z(%s) -- )r"   remove_all_sections
clear_textr<   rJ   rW   delete_sectionrX   rI   getvaluedecoder'   rH   r:   italics)rK   rZ   r>   r\   description_sectiontype_sections         r   rV   ,DocumentModifiedShape._replace_documentationp   sj     !788%%&=>>'') MM$112  !677%%&<== ' : :   (5 5 **<8 !; #*"5"56K"L**,%%d&;&;< #..|<L$$&--g6AA'JJ'')""LL$..$2 3 '')""**:+FG- >r   )rI   rJ   rH   rG   N)__name__
__module____qualname____firstlineno__rP   rY   rV   __static_attributes__r5   r   r   rD   rD   \   s    4
-Hr   rD   r   )r   r	   botocore.compatr   r   r   r)   r1   r3   r8   rB   objectrD   r5   r   r   <module>rr      sF      */	$
&( +/!$2HF 2Hr   