describeOrganization method
Provides more information regarding a given organization based on its identifier.
May throw InvalidParameterException. May throw OrganizationNotFoundException.
Parameter organizationId
:
The identifier for the organization to be described.
Implementation
Future<DescribeOrganizationResponse> describeOrganization({
required String organizationId,
}) async {
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.DescribeOrganization'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'OrganizationId': organizationId,
},
);
return DescribeOrganizationResponse.fromJson(jsonResponse.body);
}