
    n                        d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ dd	lmZ dd
lmZ dZ e	j$                  e	j&                  j(                  e	j&                  j*                         G d de	j,                               Zy)z?Command to get Anthos Multi-Cloud server configuration for AWS.    )absolute_import)division)unicode_literals)	locations)base)resource_args)	constants)endpoint_util)logzt
To return supported AWS regions and valid versions in location ``us-west1'', run:

$ {command} --location=us-west1
c                   .    e Zd ZdZdeiZed        Zd Zy)GetServerConfigz4Get Anthos Multi-Cloud server configuration for AWS.EXAMPLESc                     t        j                  | d       | j                  j                  t        j
                         y )Nzto get server configuration)r   AddLocationResourceArgdisplay_info	AddFormatr	   AWS_SERVER_CONFIG_FORMAT)parsers    .lib/surface/container/aws/get_server_config.pyArgszGetServerConfig.Args*   s-    ((1NO
!!)"D"DE    c                 p   |j                   j                  j                         }t        j                  |j
                        5  t        j                  j                  dj                  |j
                               t        j                         }|j                  |      cddd       S # 1 sw Y   yxY w)z#Runs the get-server-config command.z%Fetching server config for {location})locationN)CONCEPTSr   Parser
   GkemulticloudEndpointOverridelocationsIdr   statusPrintformatapi_utilLocationsClientGetAwsServerConfig)selfargslocation_refclients       r   RunzGetServerConfig.Run/   s    ==))//1L		4	4\5M5M	N	jj
1
8
8#// 9 
 '')f&&|4 
O	N	Ns   AB,,B5N)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r(    r   r   r   r   $   s(    <y)-F F
5r   r   N)r,   
__future__r   r   r   .googlecloudsdk.api_lib.container.gkemulticloudr   r!   googlecloudsdk.callioper   (googlecloudsdk.command_lib.container.awsr   2googlecloudsdk.command_lib.container.gkemulticloudr	   r
   googlecloudsdk.corer   r-   ReleaseTracksReleaseTrackALPHAGACommandr   r0   r   r   <module>r<      st    F &  ' P ( B H L #	 D%%++T->->-A-AB5dll 5 C5r   