
                            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	r\R                  " \R                   R"                  \R                   R$                  5       " S
 S\R&                  5      5       rg)z-Command to describe an Anthos cluster on AWS.    )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.Run.   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)r0   .googlecloudsdk.api_lib.container.gkemulticloudr   r   googlecloudsdk.callioper   (googlecloudsdk.command_lib.container.awsr   2googlecloudsdk.command_lib.container.gkemulticloudr   r   r   googlecloudsdk.corer	   r1   ReleaseTracksReleaseTrackALPHAGADescribeCommandr   r5   r   r   <module>r@      sp    4 K ( B H L G #	 D%%++T->->-A-AB+t## + C+r   