describeGroup method
Returns the data available for the group.
May throw EntityNotFoundException. May throw InvalidParameterException. May throw OrganizationNotFoundException. May throw OrganizationStateException.
Parameter groupId
:
The identifier for the group to be described.
Parameter organizationId
:
The identifier for the organization under which the group exists.
Implementation
Future<DescribeGroupResponse> describeGroup({
required String groupId,
required String organizationId,
}) async {
ArgumentError.checkNotNull(groupId, 'groupId');
_s.validateStringLength(
'groupId',
groupId,
12,
256,
isRequired: true,
);
ArgumentError.checkNotNull(organizationId, 'organizationId');
_s.validateStringLength(
'organizationId',
organizationId,
34,
34,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkMailService.DescribeGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'GroupId': groupId,
'OrganizationId': organizationId,
},
);
return DescribeGroupResponse.fromJson(jsonResponse.body);
}