getGroup method

Future<GetGroupResult> getGroup({
  1. String? groupARN,
  2. String? groupName,
})

Retrieves group resource details.

May throw InvalidRequestException. May throw ThrottledException.

Parameter groupARN : The ARN of the group that was generated on creation.

Parameter groupName : The case-sensitive name of the group.

Implementation

Future<GetGroupResult> getGroup({
  String? groupARN,
  String? groupName,
}) async {
  _s.validateStringLength(
    'groupARN',
    groupARN,
    1,
    400,
  );
  _s.validateStringLength(
    'groupName',
    groupName,
    1,
    32,
  );
  final $payload = <String, dynamic>{
    if (groupARN != null) 'GroupARN': groupARN,
    if (groupName != null) 'GroupName': groupName,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/GetGroup',
    exceptionFnMap: _exceptionFns,
  );
  return GetGroupResult.fromJson(response);
}