getRealtimeLogConfig method

Future<GetRealtimeLogConfigResult> getRealtimeLogConfig({
  1. String? arn,
  2. String? name,
})

Gets a real-time log configuration.

To get a real-time log configuration, you can provide the configuration's name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to get.

May throw AccessDenied. May throw InvalidArgument. May throw NoSuchRealtimeLogConfig.

Parameter arn : The Amazon Resource Name (ARN) of the real-time log configuration to get.

Parameter name : The name of the real-time log configuration to get.

Implementation

Future<GetRealtimeLogConfigResult> getRealtimeLogConfig({
  String? arn,
  String? name,
}) async {
  final $result = await _protocol.send(
    method: 'POST',
    requestUri: '/2020-05-31/get-realtime-log-config',
    payload: GetRealtimeLogConfigRequest(arn: arn, name: name)
        .toXml('GetRealtimeLogConfigRequest'),
    exceptionFnMap: _exceptionFns,
  );
  return GetRealtimeLogConfigResult.fromXml($result.body);
}