enableHealthServiceAccessForOrganization method

Future<void> enableHealthServiceAccessForOrganization()

Calling this operation enables AWS Health to work with AWS Organizations. This applies a service-linked role (SLR) to the master account in the organization. To call this operation, you must sign in as an IAM user, assume an IAM role, or sign in as the root user (not recommended) in the organization's master account.

For more information, see Aggregating AWS Health events in the AWS Health User Guide.

May throw ConcurrentModificationException.

Implementation

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