update_gateway_information
¶
update_gateway_information(
gateway_arn: GatewayARN,
*,
config_overrides: Optional[StorageGatewayClientConfig] = 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.
>>> 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/storage_gateway.py
5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 | |