update_realtime_log_config
¶
update_realtime_log_config(
*,
config_overrides: Optional[CloudFrontClientConfig] = None,
end_points: Optional[EndPointList] = None,
fields: Optional[FieldList] = None,
name: Optional[string] = None,
arn: Optional[string] = None,
sampling_rate: Optional[long] = None,
) -> UpdateRealtimeLogConfigResult
Updates a real-time log configuration.
When you update a real-time log configuration, all the parameters are updated with the values provided in the request. You cannot update some parameters independent of others. To update a real-time log configuration:
-
Call
GetRealtimeLogConfigto get the current real-time log configuration. -
Locally modify the parameters in the real-time log configuration that you want to update.
-
Call this API (
UpdateRealtimeLogConfig) by providing the entire real-time log configuration, including the parameters that you modified and those that you didn't.
You cannot update a real-time log configuration's Name or ARN.
Parameters:
-
end_points(Optional[EndPointList], default:None) –Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
-
fields(Optional[FieldList], default:None) –A list of fields to include in each real-time log record.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
-
name(Optional[string], default:None) –The name for this real-time log configuration.
-
arn(Optional[string], default:None) –The Amazon Resource Name (ARN) for this real-time log configuration.
-
sampling_rate(Optional[long], default:None) –The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive.
Raises:
-
AccessDenied–Access denied.
-
InvalidArgument–An argument is invalid.
-
NoSuchRealtimeLogConfig–The real-time log configuration does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudfront/_services/cloud_front.py
10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 | |