configureLogs method

Future<ConfigureLogsResponse> configureLogs({
  1. required String id,
  2. EgressAccessLogs? egressAccessLogs,
})

Changes the packaging group's properities to configure log subscription

May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException. May throw UnprocessableEntityException.

Parameter id : The ID of a MediaPackage VOD PackagingGroup resource.

Implementation

Future<ConfigureLogsResponse> configureLogs({
  required String id,
  EgressAccessLogs? egressAccessLogs,
}) async {
  final $payload = <String, dynamic>{
    if (egressAccessLogs != null) 'egressAccessLogs': egressAccessLogs,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/packaging_groups/${Uri.encodeComponent(id)}/configure_logs',
    exceptionFnMap: _exceptionFns,
  );
  return ConfigureLogsResponse.fromJson(response);
}