unshareApplication method

Future<void> unshareApplication({
  1. required String applicationId,
  2. required String organizationId,
})

Unshares an application from an AWS Organization.

This operation can be called only from the organization's master account.

May throw BadRequestException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter applicationId : The Amazon Resource Name (ARN) of the application.

Parameter organizationId : The AWS Organization ID to unshare the application from.

Implementation

Future<void> unshareApplication({
  required String applicationId,
  required String organizationId,
}) async {
  final $payload = <String, dynamic>{
    'organizationId': organizationId,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/applications/${Uri.encodeComponent(applicationId)}/unshare',
    exceptionFnMap: _exceptionFns,
  );
}