getEnabledControl method

Future<GetEnabledControlOutput> getEnabledControl({
  1. required String enabledControlIdentifier,
})

Retrieves details about an enabled control. For usage examples, see the Controls Reference Guide .

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter enabledControlIdentifier : The controlIdentifier of the enabled control.

Implementation

Future<GetEnabledControlOutput> getEnabledControl({
  required String enabledControlIdentifier,
}) async {
  final $payload = <String, dynamic>{
    'enabledControlIdentifier': enabledControlIdentifier,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/get-enabled-control',
    exceptionFnMap: _exceptionFns,
  );
  return GetEnabledControlOutput.fromJson(response);
}