deleteAppInstanceAdmin method

Future<void> deleteAppInstanceAdmin({
  1. required String appInstanceAdminArn,
  2. required String appInstanceArn,
})

Demotes an AppInstanceAdmin to an AppInstanceUser. This action does not delete the user.

May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw ResourceLimitExceededException. May throw ThrottledClientException. May throw UnauthorizedClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter appInstanceAdminArn : The ARN of the app instance's administrator.

Parameter appInstanceArn : The ARN of the app instance.

Implementation

Future<void> deleteAppInstanceAdmin({
  required String appInstanceAdminArn,
  required String appInstanceArn,
}) async {
  ArgumentError.checkNotNull(appInstanceAdminArn, 'appInstanceAdminArn');
  _s.validateStringLength(
    'appInstanceAdminArn',
    appInstanceAdminArn,
    5,
    1600,
    isRequired: true,
  );
  ArgumentError.checkNotNull(appInstanceArn, 'appInstanceArn');
  _s.validateStringLength(
    'appInstanceArn',
    appInstanceArn,
    5,
    1600,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/app-instances/${Uri.encodeComponent(appInstanceArn)}/admins/${Uri.encodeComponent(appInstanceAdminArn)}',
    exceptionFnMap: _exceptionFns,
  );
}