getRealtimeLogConfig2020_05_31 method

Future<GetRealtimeLogConfigResult> getRealtimeLogConfig2020_05_31({
  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 NoSuchRealtimeLogConfig. May throw InvalidArgument. May throw AccessDenied.

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> getRealtimeLogConfig2020_05_31({
  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',
      attributes: [
        _s.XmlAttribute(_s.XmlName('xmlns'),
            'http://cloudfront.amazonaws.com/doc/2020-05-31/'),
      ],
    ),
    exceptionFnMap: _exceptionFns,
  );
  return GetRealtimeLogConfigResult.fromXml($result.body);
}