update_gateway_information
async
¶
update_gateway_information(
gateway_arn: GatewayARN,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
gateway_name: Optional[GatewayName] = None,
gateway_timezone: Optional[GatewayTimezone] = None,
cloud_watch_log_group_arn: Optional[CloudWatchLogGroupARN] = None,
gateway_capacity: Optional[GatewayCapacity] = None,
) -> UpdateGatewayInformationOutput
Updates a gateway's metadata, which includes the gateway's name, time zone, and metadata cache size. To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.
For gateways activated after September 2, 2015, the gateway's ARN contains the gateway ID rather than the gateway name. However, changing the name of the gateway has no effect on the gateway's ARN.
Parameters:
-
gateway_timezone(Optional[GatewayTimezone], default:None) –A value that indicates the time zone of the gateway.
-
cloud_watch_log_group_arn(Optional[CloudWatchLogGroupARN], default:None) –The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that you want to use to monitor and log events in the gateway.
For more information, see What is Amazon CloudWatch Logs?
-
gateway_capacity(Optional[GatewayCapacity], default:None) –Specifies the size of the gateway's metadata cache. This setting impacts gateway performance and hardware recommendations. For more information, see Performance guidance for gateways with multiple file shares in the Amazon S3 File Gateway User Guide.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a gateway's metadata Updates a gateway's metadata, which includes the gateway's name and time zone.
>>> await client.update_gateway_information(gateway_arn='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B', gateway_name='MyGateway2', gateway_timezone='GMT-12:00')
Source code in docs_src/capo_storage_gateway/_services/async_storage_gateway.py
5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 | |