getPermissionGroup method

Future<GetPermissionGroupResponse> getPermissionGroup({
  1. required String permissionGroupId,
})

Retrieves the details of a specific permission group.

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

Parameter permissionGroupId : The unique identifier for the permission group.

Implementation

Future<GetPermissionGroupResponse> getPermissionGroup({
  required String permissionGroupId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/permission-group/${Uri.encodeComponent(permissionGroupId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetPermissionGroupResponse.fromJson(response);
}