update_link
async
¶
update_link(
gateway_id: GatewayId,
link_id: LinkId,
*,
config_overrides: Optional[AsyncRTBFabricClientConfig] = None,
log_settings: Optional[LinkLogSettings] = None,
timeout_in_millis: Optional[LinkTimeoutInMillis] = None,
) -> UpdateLinkResponse
Updates the configuration of a link between gateways.
Allows you to modify settings and parameters for an existing link.
Parameters:
-
gateway_id(GatewayId) –The unique identifier of the gateway.
-
link_id(LinkId) –The unique identifier of the link.
-
log_settings(Optional[LinkLogSettings], default:None) –Settings for the application logs.
-
timeout_in_millis(Optional[LinkTimeoutInMillis], default:None) –The timeout value in milliseconds.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed because of a conflict in the current state of the resource.
-
InternalServerException–The request could not be completed because of an internal server error. Try your call again.
-
ResourceNotFoundException–The request could not be completed because the resource does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request could not be completed because it fails satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update link settings Updates configuration settings for an existing link
>>> await client.update_link(gateway_id='rtb-gw-12345678', link_id='link-87654321', log_settings={'applicationLogs': {'sampling': {'errorLog': 100.0, 'filterLog': 10.0}}})
Source code in docs_src/capo_rtbfabric/_services/async_rtb_fabric.py
1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 | |