
                         z    S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
   " S S	\R                  5      rg
)z&Fetch the IAM policy for an EkmConfig.    )absolute_import)division)unicode_literals)iam)base)resource_argsc                   .    \ rS rSrSr\S 5       rS rSrg)GetIamPolicy   a*  Get the IAM policy for an EkmConfig.

Gets the IAM policy for the given location.

Returns an empty policy if the resource does not have a policy set.

## EXAMPLES

The following command gets the IAM policy for the EkmConfig
within the location `us-central1`:

  $ {command} --location=us-central1
c                 r    [         R                  " U SS5        [        R                  R	                  U 5        g )NTz
--location)r   AddKmsLocationResourceArgForKMSr   URI_FLAGRemoveFromParser)parsers    ,lib/surface/kms/ekm_config/get_iam_policy.pyArgsGetIamPolicy.Args)   s&    11&$MMM""6*    c                     UR                   R                  R                  5       nSR                  UR                  UR
                  5      n[        R                  " U5      $ )Nz$projects/{0}/locations/{1}/ekmConfig)CONCEPTSlocationParseformat
projectsIdlocationsIdr   GetEkmConfigIamPolicy)selfargslocation_refekm_config_names       r   RunGetIamPolicy.Run.   sL    ==))//1L<CC!9!9;O$$_55r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r!   __static_attributes__r#   r   r   r
   r
      s      + +6r   r
   N)r(   
__future__r   r   r   googlecloudsdk.api_lib.cloudkmsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.kmsr   ListCommandr
   r#   r   r   <module>r0      s.    - &  ' / ( 864## 6r   