describeOrganizationConfiguration method

Future<DescribeOrganizationConfigurationResponse> describeOrganizationConfiguration({
  1. required String detectorId,
})

Returns information about the account selected as the delegated administrator for GuardDuty.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter detectorId : The ID of the detector to retrieve information about the delegated administrator from.

Implementation

Future<DescribeOrganizationConfigurationResponse>
    describeOrganizationConfiguration({
  required String detectorId,
}) async {
  ArgumentError.checkNotNull(detectorId, 'detectorId');
  _s.validateStringLength(
    'detectorId',
    detectorId,
    1,
    300,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/detector/${Uri.encodeComponent(detectorId)}/admin',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeOrganizationConfigurationResponse.fromJson(response);
}