
    	                     *   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KJr  SS	KJr  SS
KJr  SSKJr  Sr\	R&                  " \	R(                  R*                  \	R(                  R,                  5       " S S\	R.                  5      5       rg)z-Command to describe an Anthos cluster on AWS.    )absolute_import)division)unicode_literals)aws)base)resource_args)	constants)endpoint_util)versions)logz
To describe a cluster named ``my-cluster'' managed in location ``us-west1'',
run:

$ {command} my-cluster --location=us-west1
c                   <    \ rS rSrSrS\0r\S 5       rS r	S r
Srg)	Describe&   z"Describe an Anthos cluster on AWS.EXAMPLESc                 2    [         R                  " U S5        g)z!Registers flags for this command.zto describeN)r   AddAwsClusterResourceArg)parsers    .lib/surface/container/aws/clusters/describe.pyArgsDescribe.Args,   s     **6=A    c                 V   SU l         [        R                  " U5      n[        R                  " UR
                  5         [        R                  " 5       nUR                  U5      n[        R                  " X$[        R                  5      U l         UsSSS5        $ ! , (       d  f       g= f)zRuns the describe command.N)_upgrade_hintr   ParseAwsClusterResourceArgr
   GkemulticloudEndpointOverridelocationsIdapi_utilClustersClientGetr   upgrade_hint_clusterr	   AWS)selfargscluster_refcluster_clientcluster_infos        r   RunDescribe.Run1   sz    D::4@K		4	4[5L5L	M..0n#''4l#88
Y]]d  
N	M	Ms   AB
B(c                 z    U R                   (       a*  [        R                  R                  U R                   5        g g )N)r   r   statusPrint)r"   results_were_displayeds     r   EpilogDescribe.Epilog=   s(    	jjt))* r   )r   N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr   r'   r-   __static_attributes__ r   r   r   r   &   s-    *y)-B B
+r   r   N)r3   
__future__r   r   r   .googlecloudsdk.api_lib.container.gkemulticloudr   r   googlecloudsdk.callioper   (googlecloudsdk.command_lib.container.awsr   2googlecloudsdk.command_lib.container.gkemulticloudr	   r
   r   googlecloudsdk.corer   r4   ReleaseTracksReleaseTrackALPHAGADescribeCommandr   r8   r   r   <module>rD      sv    4 &  ' J ( B H L G #	 D%%++T->->-A-AB+t## + C+r   