getGroup method
Returns information about a specified resource group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:GetGroup
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw MethodNotAllowedException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter group :
The name or the Amazon resource name (ARN) of the resource group to
retrieve.
Parameter groupName :
Deprecated - don't use this parameter. Use Group instead.
Implementation
Future<GetGroupOutput> getGroup({
String? group,
String? groupName,
}) async {
final $payload = <String, dynamic>{
if (group != null) 'Group': group,
if (groupName != null) 'GroupName': groupName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/get-group',
exceptionFnMap: _exceptionFns,
);
return GetGroupOutput.fromJson(response);
}