update_realtime_log_config
async
¶
update_realtime_log_config(
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = 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/async_cloud_front.py
10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 | |