describeOrganization method

Future<DescribeOrganizationResponse> describeOrganization()

Retrieves information about the organization that the user's account belongs to.

You can call this operation from any account in a organization.

May throw AccessDeniedException. May throw AWSOrganizationsNotInUseException. May throw ConcurrentModificationException. May throw ServiceException. May throw TooManyRequestsException.

Implementation

Future<DescribeOrganizationResponse> describeOrganization() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSOrganizationsV20161128.DescribeOrganization'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return DescribeOrganizationResponse.fromJson(jsonResponse.body);
}