getGroup method

Future<GetGroupResponse> getGroup({
  1. required String groupIdentifier,
})

Returns information about one group. Groups are a global resource, so you can use this operation from any Region.

May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter groupIdentifier : Specifies the group to return information for. You can specify the group name, the ARN, or the group ID as the GroupIdentifier.

Implementation

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